Skip to content

Commit c271d54

Browse files
feat: add Persistent Resource reboot api call to v1beta1 (#5182)
* feat: add Vertex AI extension registry and execution related API and services to v1beta1 client docs: Update comment for `name` and `parameters` in message `.google.cloud.aiplatform.v1beta1.FunctionDeclaration` PiperOrigin-RevId: 619232581 Source-Link: googleapis/googleapis@7870cbd Source-Link: googleapis/googleapis-gen@d91b4ce Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImQ5MWI0Y2U5NGI3ZjI4NmE5NGUxNTFkN2U1MzllMmMyYzgyODE5NDcifQ== * 🦉 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 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add several fields to manage state of database encryption update PiperOrigin-RevId: 619289281 Source-Link: googleapis/googleapis@3a7c334 Source-Link: googleapis/googleapis-gen@6a8c733 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjZhOGM3MzMwNjJkODMzZDExYzUyNDVlZGE1MGY1MTA4ZTBlNTUzMjQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add NotebookRuntime resource and APIs to public v1beta1 client library PiperOrigin-RevId: 620347728 Source-Link: googleapis/googleapis@3ebeb01 Source-Link: googleapis/googleapis-gen@a3ca6ab Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImEzY2E2YWJkN2UzZWExMDAwZjNkZmE0NDE3ZTg0NWNmZTc1MzdlNTcifQ== * feat: add NotebookRuntime resource and APIs to public v1 client library PiperOrigin-RevId: 620353345 Source-Link: googleapis/googleapis@98ae609 Source-Link: googleapis/googleapis-gen@1690f04 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjE2OTBmMDQ1MmYxZjVmMWM5NDJmYjgzOTJhZmUyMjQ4NDIxMzJmZTIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: A new field `presence_penalty` is added to message `.google.cloud.aiplatform.v1.GenerationConfig` feat: A new field `frequency_penalty` is added to message `.google.cloud.aiplatform.v1.GenerationConfig` feat: A new field `response_mime_type` is added to message `.google.cloud.aiplatform.v1.GenerationConfig` feat: A new enum `HarmBlockMethod` is added feat: A new field `method` is added to message `.google.cloud.aiplatform.v1.SafetySetting` feat: A new field `persistent_resource_id` is added to message `.google.cloud.aiplatform.v1.CustomJobSpec` feat: A new field `disable_explanations` is added to message `.google.cloud.aiplatform.v1.DeployedModel` feat: A new field `title` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `default` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `min_items` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `max_items` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `min_properties` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `max_properties` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `minimum` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `maximum` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `min_length` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `max_length` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new field `pattern` is added to message `.google.cloud.aiplatform.v1.Schema` feat: A new message `PersistentResource` is added feat: A new resource_definition `aiplatform.googleapis.com/PersistentResource` is added feat: A new message `ResourcePool` is added feat: A new message `ResourceRuntimeSpec` is added feat: A new message `RaySpec` is added feat: A new message `ResourceRuntime` is added feat: A new message `ServiceAccountSpec` is added feat: A new service `PersistentResourceService` is added feat: A new message `CreatePersistentResourceRequest` is added feat: A new message `CreatePersistentResourceOperationMetadata` is added feat: A new message `UpdatePersistentResourceOperationMetadata` is added feat: A new message `RebootPersistentResourceOperationMetadata` is added feat: A new message `GetPersistentResourceRequest` is added feat: A new message `ListPersistentResourcesRequest` is added feat: A new message `ListPersistentResourcesResponse` is added feat: A new message `DeletePersistentResourceRequest` is added feat: A new message `UpdatePersistentResourceRequest` is added feat: A new message `RebootPersistentResourceRequest` is added feat: A new field `system_instruction` is added to message `.google.cloud.aiplatform.v1.GenerateContentRequest` feat: A new value `BLOCKLIST` is added to enum `BlockedReason` feat: A new value `PROHIBITED_CONTENT` is added to enum `BlockedReason` docs: documentation updates PiperOrigin-RevId: 620417078 Source-Link: googleapis/googleapis@7efb929 Source-Link: googleapis/googleapis-gen@4fc4bc1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjRmYzRiYzFlMDI2NDRkMmI0NWJjMWJmNzFhODQ3OTIyMGU5ZTBmMmUifQ== * fix!: An existing field `response_recall_input` is removed from message `.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest` fix!: An existing field `rag_context_recall_input` is removed from message `.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest` fix!: An existing field `response_recall_result` is removed from message `.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse` fix!: An existing field `rag_context_recall_result` is removed from message `.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse` fix!: An existing message `ResponseRecallInput` is removed fix!: An existing message `ResponseRecallInstance` is removed fix!: An existing message `ResponseRecallSpec` is removed fix!: An existing message `ResponseRecallResult` is removed fix!: Changed field behavior for an existing field `context` in message `.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance` fix!: Changed field behavior for an existing field `context` in message `.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance` fix!: An existing message `RagContextRecallInput` is removed fix!: An existing message `RagContextRecallInstance` is removed fix!: An existing message `RagContextRecallSpec` is removed fix!: An existing message `RagContextRecallResult` is removed fix!: An existing message `NoAuth` is removed feat: A new field `presence_penalty` is added to message `.google.cloud.aiplatform.v1beta1.GenerationConfig` feat: A new field `frequency_penalty` is added to message `.google.cloud.aiplatform.v1beta1.GenerationConfig` feat: A new field `response_mime_type` is added to message `.google.cloud.aiplatform.v1beta1.GenerationConfig` feat: A new enum `HarmBlockMethod` is added feat: A new field `method` is added to message `.google.cloud.aiplatform.v1beta1.SafetySetting` feat: A new message `RetrievedContext` is added feat: A new field `retrieved_context` is added to message `.google.cloud.aiplatform.v1beta1.GroundingAttribution` feat: A new field `retrieval_queries` is added to message `.google.cloud.aiplatform.v1beta1.GroundingMetadata` feat: A new message `IndexConfig` is added feat: A new field `index_config` is added to message `.google.cloud.aiplatform.v1beta1.FeatureView` feat: A new message `GoogleDriveSource` is added feat: A new message `DirectUploadSource` is added feat: A new field `title` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `default` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `min_items` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `max_items` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `min_properties` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `max_properties` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `minimum` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `maximum` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `min_length` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `max_length` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new field `pattern` is added to message `.google.cloud.aiplatform.v1beta1.Schema` feat: A new method `ChatCompletions` is added to service `PredictionService` feat: A new field `system_instruction` is added to message `.google.cloud.aiplatform.v1beta1.GenerateContentRequest` feat: A new value `BLOCKLIST` is added to enum `BlockedReason` feat: A new value `PROHIBITED_CONTENT` is added to enum `BlockedReason` feat: A new message `ChatCompletionsRequest` is added feat: A new field `vertex_rag_store` is added to message `.google.cloud.aiplatform.v1beta1.Retrieval` feat: A new message `VertexRagStore` is added feat: A new message `RagCorpus` is added feat: A new resource_definition `aiplatform.googleapis.com/RagCorpus` is added feat: A new message `RagFile` is added feat: A new resource_definition `aiplatform.googleapis.com/RagFile` is added feat: A new message `RagFileChunkingConfig` is added feat: A new message `UploadRagFileConfig` is added feat: A new message `ImportRagFilesConfig` is added feat: A new service `VertexRagDataService` is added feat: A new message `CreateRagCorpusRequest` is added feat: A new message `GetRagCorpusRequest` is added feat: A new message `ListRagCorporaRequest` is added feat: A new message `ListRagCorporaResponse` is added feat: A new message `DeleteRagCorpusRequest` is added feat: A new message `UploadRagFileRequest` is added feat: A new message `UploadRagFileResponse` is added feat: A new message `ImportRagFilesRequest` is added feat: A new message `ImportRagFilesResponse` is added feat: A new message `GetRagFileRequest` is added feat: A new message `ListRagFilesRequest` is added feat: A new message `ListRagFilesResponse` is added feat: A new message `DeleteRagFileRequest` is added feat: A new message `CreateRagCorpusOperationMetadata` is added feat: A new message `ImportRagFilesOperationMetadata` is added feat: A new service `VertexRagService` is added feat: A new message `RagQuery` is added feat: A new message `RetrieveContextsRequest` is added feat: A new message `RagContexts` is added feat: A new message `RetrieveContextsResponse` is added docs: Documentation updates PiperOrigin-RevId: 620417091 Source-Link: googleapis/googleapis@afdd0cf Source-Link: googleapis/googleapis-gen@70289c1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjcwMjg5YzFmOTBkZWNkOTc4MTQ3MjVhZjBlYzdiMjE2ZGZiNGNkN2IifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: GenAiTuningService aiplatform v1 initial release PiperOrigin-RevId: 620892708 Source-Link: googleapis/googleapis@152a4c1 Source-Link: googleapis/googleapis-gen@c927ef1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImM5MjdlZjEyMzRkM2JlNzA2MjhlYzRmNDk3ZGYyNjQ4ZmQzZWYwNGMifQ== * feat: add Persistent Resource reboot api call to v1beta1 docs: A comment for field `service_account` in message `.google.cloud.aiplatform.v1beta1.ServiceAccountSpec` is changed PiperOrigin-RevId: 620918445 Source-Link: googleapis/googleapis@ca6f884 Source-Link: googleapis/googleapis-gen@0dcaa72 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjBkY2FhNzJjMWI0MjhjNjBkNDdlOTU3YTAxMTkwNGEyZGNkOTk2ZDgifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: add new features to index.ts * 🦉 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: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: Sofia Leon <sofialeon@google.com>
1 parent 8d7bf40 commit c271d54

File tree

297 files changed

+575283
-367443
lines changed

Some content is hidden

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

297 files changed

+575283
-367443
lines changed

packages/google-cloud-aiplatform/README.md

Lines changed: 49 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@ message Part {
102102
}
103103
}
104104

105-
// Raw media bytes.
105+
// Content blob.
106106
//
107-
// Text should not be sent as raw bytes, use the 'text' field.
107+
// It's preferred to send as [text][google.cloud.aiplatform.v1.Part.text]
108+
// directly rather than raw bytes.
108109
message Blob {
109110
// Required. The IANA standard MIME type of the source data.
110111
string mime_type = 1 [(google.api.field_behavior) = REQUIRED];
111112

112-
// Required. Raw bytes for media formats.
113+
// Required. Raw bytes.
113114
bytes data = 2 [(google.api.field_behavior) = REQUIRED];
114115
}
115116

@@ -152,6 +153,21 @@ message GenerationConfig {
152153

153154
// Optional. Stop sequences.
154155
repeated string stop_sequences = 6 [(google.api.field_behavior) = OPTIONAL];
156+
157+
// Optional. Positive penalties.
158+
optional float presence_penalty = 8 [(google.api.field_behavior) = OPTIONAL];
159+
160+
// Optional. Frequency penalties.
161+
optional float frequency_penalty = 9 [(google.api.field_behavior) = OPTIONAL];
162+
163+
// Optional. Output response mimetype of the generated candidate text.
164+
// Supported mimetype:
165+
// - `text/plain`: (default) Text output.
166+
// - `application/json`: JSON response in the candidates.
167+
// The model needs to be prompted to output the appropriate response type,
168+
// otherwise the behavior is undefined.
169+
// This is a preview feature.
170+
string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL];
155171
}
156172

157173
// Safety settings.
@@ -174,11 +190,27 @@ message SafetySetting {
174190
BLOCK_NONE = 4;
175191
}
176192

193+
// Probability vs severity.
194+
enum HarmBlockMethod {
195+
// The harm block method is unspecified.
196+
HARM_BLOCK_METHOD_UNSPECIFIED = 0;
197+
198+
// The harm block method uses both probability and severity scores.
199+
SEVERITY = 1;
200+
201+
// The harm block method uses the probability score.
202+
PROBABILITY = 2;
203+
}
204+
177205
// Required. Harm category.
178206
HarmCategory category = 1 [(google.api.field_behavior) = REQUIRED];
179207

180208
// Required. The harm block threshold.
181209
HarmBlockThreshold threshold = 2 [(google.api.field_behavior) = REQUIRED];
210+
211+
// Optional. Specify if the threshold is used for probability or severity
212+
// score. If not specified, the threshold is used for probability score.
213+
HarmBlockMethod method = 4 [(google.api.field_behavior) = OPTIONAL];
182214
}
183215

184216
// Safety rating corresponding to the generated content.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ message CustomJob {
113113

114114
// Represents the spec of a CustomJob.
115115
message CustomJobSpec {
116+
// Optional. The ID of the PersistentResource in the same Project and Location
117+
// which to run
118+
//
119+
// If this is specified, the job will be run on existing machines held by the
120+
// PersistentResource instead of on-demand short-live machines.
121+
// The network and CMEK configs on the job should be consistent with those on
122+
// the PersistentResource, otherwise, the job will be rejected.
123+
string persistent_resource_id = 14 [
124+
(google.api.field_behavior) = OPTIONAL,
125+
(google.api.resource_reference) = {
126+
type: "aiplatform.googleapis.com/PersistentResource"
127+
}
128+
];
129+
116130
// Required. The spec of the worker pools including machine type and Docker
117131
// image. All worker pools except the first one are optional and can be
118132
// skipped by providing an empty value.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ message DeployedModel {
221221
// will be used for the explanation configuration.
222222
ExplanationSpec explanation_spec = 9;
223223

224+
// If true, deploy the model without explainable feature, regardless the
225+
// existence of
226+
// [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]
227+
// or
228+
// [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec].
229+
bool disable_explanations = 19;
230+
224231
// The service account that the DeployedModel's container runs as. Specify the
225232
// email address of the service account. If this service account is not
226233
// specified, the container runs as a service account that doesn't have access

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint_service.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,8 @@ message ListEndpointsRequest {
211211
// names both snake_case and camelCase are supported.
212212
//
213213
// * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint
214-
// ID,
215-
// i.e. the last segment of the Endpoint's [resource
216-
// name][google.cloud.aiplatform.v1.Endpoint.name].
214+
// ID, i.e. the last segment of the Endpoint's
215+
// [resource name][google.cloud.aiplatform.v1.Endpoint.name].
217216
// * `display_name` supports `=` and `!=`.
218217
// * `labels` supports general map functions that is:
219218
// * `labels.key=value` - key:value equality
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/field_behavior.proto";
22+
import "google/api/resource.proto";
23+
import "google/cloud/aiplatform/v1/tuning_job.proto";
24+
import "google/protobuf/empty.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "GenAiTuningServiceProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// A service for creating and managing GenAI Tuning Jobs.
35+
service GenAiTuningService {
36+
option (google.api.default_host) = "aiplatform.googleapis.com";
37+
option (google.api.oauth_scopes) =
38+
"https://www.googleapis.com/auth/cloud-platform";
39+
40+
// Creates a TuningJob. A created TuningJob right away will be attempted to
41+
// be run.
42+
rpc CreateTuningJob(CreateTuningJobRequest) returns (TuningJob) {
43+
option (google.api.http) = {
44+
post: "/v1/{parent=projects/*/locations/*}/tuningJobs"
45+
body: "tuning_job"
46+
};
47+
option (google.api.method_signature) = "parent,tuning_job";
48+
}
49+
50+
// Gets a TuningJob.
51+
rpc GetTuningJob(GetTuningJobRequest) returns (TuningJob) {
52+
option (google.api.http) = {
53+
get: "/v1/{name=projects/*/locations/*/tuningJobs/*}"
54+
};
55+
option (google.api.method_signature) = "name";
56+
}
57+
58+
// Lists TuningJobs in a Location.
59+
rpc ListTuningJobs(ListTuningJobsRequest) returns (ListTuningJobsResponse) {
60+
option (google.api.http) = {
61+
get: "/v1/{parent=projects/*/locations/*}/tuningJobs"
62+
};
63+
option (google.api.method_signature) = "parent";
64+
}
65+
66+
// Cancels a TuningJob.
67+
// Starts asynchronous cancellation on the TuningJob. The server makes a best
68+
// effort to cancel the job, but success is not guaranteed. Clients can use
69+
// [GenAiTuningService.GetTuningJob][google.cloud.aiplatform.v1.GenAiTuningService.GetTuningJob]
70+
// or other methods to check whether the cancellation succeeded or whether the
71+
// job completed despite cancellation. On successful cancellation, the
72+
// TuningJob is not deleted; instead it becomes a job with a
73+
// [TuningJob.error][google.cloud.aiplatform.v1.TuningJob.error] value with a
74+
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
75+
// `Code.CANCELLED`, and
76+
// [TuningJob.state][google.cloud.aiplatform.v1.TuningJob.state] is set to
77+
// `CANCELLED`.
78+
rpc CancelTuningJob(CancelTuningJobRequest) returns (google.protobuf.Empty) {
79+
option (google.api.http) = {
80+
post: "/v1/{name=projects/*/locations/*/tuningJobs/*}:cancel"
81+
body: "*"
82+
};
83+
option (google.api.method_signature) = "name";
84+
}
85+
}
86+
87+
// Request message for
88+
// [GenAiTuningService.CreateTuningJob][google.cloud.aiplatform.v1.GenAiTuningService.CreateTuningJob].
89+
message CreateTuningJobRequest {
90+
// Required. The resource name of the Location to create the TuningJob in.
91+
// Format: `projects/{project}/locations/{location}`
92+
string parent = 1 [
93+
(google.api.field_behavior) = REQUIRED,
94+
(google.api.resource_reference) = {
95+
type: "locations.googleapis.com/Location"
96+
}
97+
];
98+
99+
// Required. The TuningJob to create.
100+
TuningJob tuning_job = 2 [(google.api.field_behavior) = REQUIRED];
101+
}
102+
103+
// Request message for
104+
// [GenAiTuningService.GetTuningJob][google.cloud.aiplatform.v1.GenAiTuningService.GetTuningJob].
105+
message GetTuningJobRequest {
106+
// Required. The name of the TuningJob resource. Format:
107+
// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`
108+
string name = 1 [
109+
(google.api.field_behavior) = REQUIRED,
110+
(google.api.resource_reference) = {
111+
type: "aiplatform.googleapis.com/TuningJob"
112+
}
113+
];
114+
}
115+
116+
// Request message for
117+
// [GenAiTuningService.ListTuningJobs][google.cloud.aiplatform.v1.GenAiTuningService.ListTuningJobs].
118+
message ListTuningJobsRequest {
119+
// Required. The resource name of the Location to list the TuningJobs from.
120+
// Format: `projects/{project}/locations/{location}`
121+
string parent = 1 [
122+
(google.api.field_behavior) = REQUIRED,
123+
(google.api.resource_reference) = {
124+
type: "locations.googleapis.com/Location"
125+
}
126+
];
127+
128+
// Optional. The standard list filter.
129+
string filter = 2 [(google.api.field_behavior) = OPTIONAL];
130+
131+
// Optional. The standard list page size.
132+
int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
133+
134+
// Optional. The standard list page token.
135+
// Typically obtained via [ListTuningJob.next_page_token][] of the
136+
// previous GenAiTuningService.ListTuningJob][] call.
137+
string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
138+
}
139+
140+
// Response message for
141+
// [GenAiTuningService.ListTuningJobs][google.cloud.aiplatform.v1.GenAiTuningService.ListTuningJobs]
142+
message ListTuningJobsResponse {
143+
// List of TuningJobs in the requested page.
144+
repeated TuningJob tuning_jobs = 1;
145+
146+
// A token to retrieve the next page of results.
147+
// Pass to
148+
// [ListTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListTuningJobsRequest.page_token]
149+
// to obtain that page.
150+
string next_page_token = 2;
151+
}
152+
153+
// Request message for
154+
// [GenAiTuningService.CancelTuningJob][google.cloud.aiplatform.v1.GenAiTuningService.CancelTuningJob].
155+
message CancelTuningJobRequest {
156+
// Required. The name of the TuningJob to cancel. Format:
157+
// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`
158+
string name = 1 [
159+
(google.api.field_behavior) = REQUIRED,
160+
(google.api.resource_reference) = {
161+
type: "aiplatform.googleapis.com/TuningJob"
162+
}
163+
];
164+
}

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,17 @@ message AutoscalingMetricSpec {
232232
// (representing 60%) if not provided.
233233
int32 target = 2;
234234
}
235+
236+
// A set of Shielded Instance options.
237+
// See [Images using supported Shielded VM
238+
// features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
239+
message ShieldedVmConfig {
240+
// Defines whether the instance has [Secure
241+
// Boot](https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot)
242+
// enabled.
243+
//
244+
// Secure Boot helps ensure that the system only runs authentic software by
245+
// verifying the digital signature of all boot components, and halting the
246+
// boot process if signature verification fails.
247+
bool enable_secure_boot = 1;
248+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/resource.proto";
20+
21+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
22+
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "NetworkSpecProto";
25+
option java_package = "com.google.cloud.aiplatform.v1";
26+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
27+
option ruby_package = "Google::Cloud::AIPlatform::V1";
28+
option (google.api.resource_definition) = {
29+
type: "compute.googleapis.com/Subnetwork"
30+
pattern: "projects/{project}/regions/{region}/subnetworks/{subnetwork}"
31+
};
32+
33+
// Network spec.
34+
message NetworkSpec {
35+
// Whether to enable public internet access. Default false.
36+
bool enable_internet_access = 1;
37+
38+
// The full name of the Google Compute Engine
39+
// [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
40+
string network = 2 [
41+
(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
42+
];
43+
44+
// The name of the subnet that this instance is in.
45+
// Format:
46+
// `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`
47+
string subnetwork = 3 [(google.api.resource_reference) = {
48+
type: "compute.googleapis.com/Subnetwork"
49+
}];
50+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
22+
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "NotebookEucConfigProto";
25+
option java_package = "com.google.cloud.aiplatform.v1";
26+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
27+
option ruby_package = "Google::Cloud::AIPlatform::V1";
28+
29+
// The euc configuration of NotebookRuntimeTemplate.
30+
message NotebookEucConfig {
31+
// Input only. Whether EUC is disabled in this NotebookRuntimeTemplate.
32+
// In proto3, the default value of a boolean is false. In this way, by default
33+
// EUC will be enabled for NotebookRuntimeTemplate.
34+
bool euc_disabled = 1 [(google.api.field_behavior) = INPUT_ONLY];
35+
36+
// Output only. Whether ActAs check is bypassed for service account attached
37+
// to the VM. If false, we need ActAs check for the default Compute Engine
38+
// Service account. When a Runtime is created, a VM is allocated using Default
39+
// Compute Engine Service Account. Any user requesting to use this Runtime
40+
// requires Service Account User (ActAs) permission over this SA. If true,
41+
// Runtime owner is using EUC and does not require the above permission as VM
42+
// no longer use default Compute Engine SA, but a P4SA.
43+
bool bypass_actas_check = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
44+
}

0 commit comments

Comments
 (0)