@@ -31,6 +31,10 @@ option java_outer_classname = "ReasoningEngineProto";
3131option java_package = "com.google.cloud.aiplatform.v1" ;
3232option php_namespace = "Google\\Cloud\\AIPlatform\\V1" ;
3333option ruby_package = "Google::Cloud::AIPlatform::V1" ;
34+ option (google.api.resource_definition ) = {
35+ type : "developerconnect.googleapis.com/GitRepositoryLink"
36+ pattern : "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}"
37+ };
3438
3539// ReasoningEngine configurations
3640message ReasoningEngineSpec {
@@ -47,8 +51,9 @@ message ReasoningEngineSpec {
4751 // Optional. The Cloud Storage URI of the `requirements.txt` file
4852 string requirements_gcs_uri = 3 [(google.api.field_behavior ) = OPTIONAL ];
4953
50- // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
51- // If not specified, default value is 3.10.
54+ // Optional. The Python version. Supported values
55+ // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
56+ // is 3.10.
5257 string python_version = 4 [(google.api.field_behavior ) = OPTIONAL ];
5358 }
5459
@@ -104,14 +109,45 @@ message ReasoningEngineSpec {
104109 // Specifies source code provided as a byte stream.
105110 message InlineSource {
106111 // Required. Input only. The application source code archive, provided as
107- // a compressed tarball
108- // (.tar.gz) file.
112+ // a compressed tarball (.tar.gz) file.
109113 bytes source_archive = 1 [
110114 (google.api.field_behavior ) = REQUIRED ,
111115 (google.api.field_behavior ) = INPUT_ONLY
112116 ];
113117 }
114118
119+ // Specifies the configuration for fetching source code from a Git
120+ // repository that is managed by Developer Connect. This includes the
121+ // repository, revision, and directory to use.
122+ message DeveloperConnectConfig {
123+ // Required. The Developer Connect Git repository link, formatted as
124+ // `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
125+ string git_repository_link = 1 [
126+ (google.api.field_behavior ) = REQUIRED ,
127+ (google.api.resource_reference ) = {
128+ type : "developerconnect.googleapis.com/GitRepositoryLink"
129+ }
130+ ];
131+
132+ // Required. Directory, relative to the source root, in which to run the
133+ // build.
134+ string dir = 2 [(google.api.field_behavior ) = REQUIRED ];
135+
136+ // Required. The revision to fetch from the Git repository such as a
137+ // branch, a tag, a commit SHA, or any Git ref.
138+ string revision = 3 [(google.api.field_behavior ) = REQUIRED ];
139+ }
140+
141+ // Specifies source code to be fetched from a Git repository managed through
142+ // the Developer Connect service.
143+ message DeveloperConnectSource {
144+ // Required. The Developer Connect configuration that defines the
145+ // specific repository, revision, and directory to use as the source code
146+ // root.
147+ DeveloperConnectConfig config = 1
148+ [(google.api.field_behavior ) = REQUIRED ];
149+ }
150+
115151 // Specification for running a Python application from source.
116152 message PythonSpec {
117153 // Optional. The version of Python to use. Support version
@@ -141,6 +177,9 @@ message ReasoningEngineSpec {
141177 oneof source {
142178 // Source code is provided directly in the request.
143179 InlineSource inline_source = 1 ;
180+
181+ // Source code is in a Git repository managed by Developer Connect.
182+ DeveloperConnectSource developer_connect_source = 3 ;
144183 }
145184
146185 // Specifies the language-specific configuration for building and running
0 commit comments