Skip to content

Commit a17b84a

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support for developer connect based deployment
docs: A comment for message `ReasoningEngineSpec` is changed docs: A comment for field `package_spec` in message `.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec` is changed PiperOrigin-RevId: 833917724
1 parent 8d526e8 commit a17b84a

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

google/cloud/aiplatform/v1beta1/reasoning_engine.proto

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ option java_outer_classname = "ReasoningEngineProto";
3232
option java_package = "com.google.cloud.aiplatform.v1beta1";
3333
option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
3434
option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
35+
option (google.api.resource_definition) = {
36+
type: "developerconnect.googleapis.com/GitRepositoryLink"
37+
pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}"
38+
};
3539

3640
// ReasoningEngine configurations
3741
message ReasoningEngineSpec {
@@ -48,8 +52,9 @@ message ReasoningEngineSpec {
4852
// Optional. The Cloud Storage URI of the `requirements.txt` file
4953
string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL];
5054

51-
// Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
52-
// If not specified, default value is 3.10.
55+
// Optional. The Python version. Supported values
56+
// are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
57+
// is 3.10.
5358
string python_version = 4 [(google.api.field_behavior) = OPTIONAL];
5459
}
5560

@@ -113,6 +118,38 @@ message ReasoningEngineSpec {
113118
];
114119
}
115120

121+
// Specifies the configuration for fetching source code from a Git
122+
// repository that is managed by Developer Connect. This includes the
123+
// repository, revision, and directory to use.
124+
message DeveloperConnectConfig {
125+
// Required. The Developer Connect Git repository link, formatted as
126+
// `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
127+
string git_repository_link = 1 [
128+
(google.api.field_behavior) = REQUIRED,
129+
(google.api.resource_reference) = {
130+
type: "developerconnect.googleapis.com/GitRepositoryLink"
131+
}
132+
];
133+
134+
// Required. Directory, relative to the source root, in which to run the
135+
// build.
136+
string dir = 2 [(google.api.field_behavior) = REQUIRED];
137+
138+
// Required. The revision to fetch from the Git repository such as a
139+
// branch, a tag, a commit SHA, or any Git ref.
140+
string revision = 3 [(google.api.field_behavior) = REQUIRED];
141+
}
142+
143+
// Specifies source code to be fetched from a Git repository managed through
144+
// the Developer Connect service.
145+
message DeveloperConnectSource {
146+
// Required. The Developer Connect configuration that defines the
147+
// specific repository, revision, and directory to use as the source code
148+
// root.
149+
DeveloperConnectConfig config = 1
150+
[(google.api.field_behavior) = REQUIRED];
151+
}
152+
116153
// Specification for running a Python application from source.
117154
message PythonSpec {
118155
// Optional. The version of Python to use. Support version
@@ -142,6 +179,9 @@ message ReasoningEngineSpec {
142179
oneof source {
143180
// Source code is provided directly in the request.
144181
InlineSource inline_source = 1;
182+
183+
// Source code is in a Git repository managed by Developer Connect.
184+
DeveloperConnectSource developer_connect_source = 3;
145185
}
146186

147187
// Specifies the language-specific configuration for building and running

0 commit comments

Comments
 (0)