Skip to content

Commit d58a096

Browse files
feat: add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to PersistentResource (#4470)
* feat: add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to PersistentResource PiperOrigin-RevId: 551874408 Source-Link: googleapis/googleapis@4d230dd Source-Link: googleapis/googleapis-gen@9e603a7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjllNjAzYTcwODBiZTc4YjFlYzhhNmNmNGNlMWQwNmE1MjU5ZWZjMjMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Alexander Fenster <fenster@google.com>
1 parent fbfb4ba commit d58a096

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7410
-997
lines changed

packages/google-cloud-aiplatform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ also contains samples.
561561

562562
## Supported Node.js Versions
563563

564-
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
564+
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
565565
Libraries are compatible with all current _active_ and _maintenance_ versions of
566566
Node.js.
567567
If you are using an end-of-life version of Node.js, we recommend that you update

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ message PersistentResource {
6262
ERROR = 5;
6363
}
6464

65-
// Output only. Resource name of a PersistentResource.
66-
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
65+
// Immutable. Resource name of a PersistentResource.
66+
string name = 1 [(google.api.field_behavior) = IMMUTABLE];
6767

6868
// Optional. The display name of the PersistentResource.
6969
// The name can be up to 128 characters long and can consist of any UTF-8
@@ -134,6 +134,10 @@ message PersistentResource {
134134
ResourceRuntimeSpec resource_runtime_spec = 13
135135
[(google.api.field_behavior) = OPTIONAL];
136136

137+
// Output only. Runtime information of the Persistent Resource.
138+
ResourceRuntime resource_runtime = 14
139+
[(google.api.field_behavior) = OUTPUT_ONLY];
140+
137141
// Optional. A list of names for the reserved ip ranges under the VPC network
138142
// that can be used for this persistent resource.
139143
//
@@ -200,6 +204,36 @@ message ResourceRuntimeSpec {
200204
// Optional. Configure the use of workload identity on the PersistentResource
201205
ServiceAccountSpec service_account_spec = 2
202206
[(google.api.field_behavior) = OPTIONAL];
207+
208+
// Ray cluster configuration.
209+
// Required when creating a dedicated RayCluster on the PersistentResource.
210+
RaySpec ray_spec = 1 [(google.api.field_behavior) = OPTIONAL];
211+
}
212+
213+
// Configuration information for the Ray cluster.
214+
// For experimental launch, Ray cluster creation and Persistent
215+
// cluster creation are 1:1 mapping: We will provision all the nodes within the
216+
// Persistent cluster as Ray nodes.
217+
message RaySpec {
218+
// Optional. Default image for user to choose a preferred ML framework(e.g.
219+
// tensorflow or Pytorch) by choosing from Vertex prebuild
220+
// images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
221+
// Either this or the resource_pool_images is required. Use this field if
222+
// you need all the resource pools to have the same Ray image, Otherwise, use
223+
// the {@code resource_pool_images} field.
224+
string image_uri = 1 [(google.api.field_behavior) = OPTIONAL];
225+
}
226+
227+
// Persistent Cluster runtime information as output
228+
message ResourceRuntime {
229+
// Output only. URIs for user to connect to the Cluster.
230+
// Example:
231+
// {
232+
// "RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001"
233+
// "RAY_DASHBOARD_URI": "ray-dashboard-address:8888"
234+
// }
235+
map<string, string> access_uris = 1
236+
[(google.api.field_behavior) = OUTPUT_ONLY];
203237
}
204238

205239
// Configuration for the use of custom service account to run the workloads.

packages/google-cloud-aiplatform/protos/protos.d.ts

Lines changed: 1803 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-aiplatform/protos/protos.js

Lines changed: 4352 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)