@@ -32,6 +32,10 @@ option java_outer_classname = "ReasoningEngineProto"; |
32 | 32 | option java_package = "com.google.cloud.aiplatform.v1beta1"; |
33 | 33 | option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; |
34 | 34 | 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 | +}; |
35 | 39 |
|
36 | 40 | // ReasoningEngine configurations |
37 | 41 | message ReasoningEngineSpec { |
@@ -48,8 +52,9 @@ message ReasoningEngineSpec { |
48 | 52 | // Optional. The Cloud Storage URI of the `requirements.txt` file |
49 | 53 | string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; |
50 | 54 |
|
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. |
53 | 58 | string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; |
54 | 59 | } |
55 | 60 |
|
@@ -113,6 +118,38 @@ message ReasoningEngineSpec { |
113 | 118 | ]; |
114 | 119 | } |
115 | 120 |
|
| 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 | + |
116 | 153 | // Specification for running a Python application from source. |
117 | 154 | message PythonSpec { |
118 | 155 | // Optional. The version of Python to use. Support version |
@@ -142,6 +179,9 @@ message ReasoningEngineSpec { |
142 | 179 | oneof source { |
143 | 180 | // Source code is provided directly in the request. |
144 | 181 | InlineSource inline_source = 1; |
| 182 | + |
| 183 | + // Source code is in a Git repository managed by Developer Connect. |
| 184 | + DeveloperConnectSource developer_connect_source = 3; |
145 | 185 | } |
146 | 186 |
|
147 | 187 | // Specifies the language-specific configuration for building and running |
|