Skip to content

Commit 39dc74e

Browse files
feat: add a v1 UpdateEndpointLongRunning API (#5812)
* feat: add a `nfs_mounts` to RaySpec in PersistentResource API PiperOrigin-RevId: 696288226 Source-Link: googleapis/googleapis@50d87b4 Source-Link: googleapis/googleapis-gen@f635540 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImY2MzU1NDA0NjAwYmZlNzFmMGY4MzRmYWVlNDM5ZDZkYTE2MjI1NTQifQ== * feat: add CustomEnvironmentSpec to NotebookExecutionJob PiperOrigin-RevId: 697694162 Source-Link: googleapis/googleapis@7b30cb5 Source-Link: googleapis/googleapis-gen@7243ba9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjcyNDNiYTliYzk0ZDQzYWFjMzRhOWRmMzk2NGY4ZTU3YjVlMzYzYWMifQ== * feat: add CustomEnvironmentSpec to NotebookExecutionJob PiperOrigin-RevId: 697698546 Source-Link: googleapis/googleapis@caa9439 Source-Link: googleapis/googleapis-gen@d16c0f0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImQxNmMwZjAyNzE5OWFhZjhiMTU3MzdkMGM4MzgzODEzNjE5ODNjNmYifQ== * feat: Trajectory eval metrics added to evaluation service proto docs: Fixed typo for field `use_strict_string_match` in message `.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpec` PiperOrigin-RevId: 697705080 Source-Link: googleapis/googleapis@231f232 Source-Link: googleapis/googleapis-gen@1c17fe0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjFjMTdmZTAwZmRmYzBhMDk3MzhhNDNkMjdiM2YyYjczZTQ1Zjc0NzcifQ== * feat: add a v1 UpdateEndpointLongRunning API PiperOrigin-RevId: 697715678 Source-Link: googleapis/googleapis@4ab02f3 Source-Link: googleapis/googleapis-gen@829605e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjgyOTYwNWUxNmRlZTFkOGQ3OTVkNGRlYTQ1YjRjMTJkOGQ5ODNhMWMifQ== * chore: run post-processor * 🦉 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: Sofia Leon <sofialeon@google.com>
1 parent ced8054 commit 39dc74e

20 files changed

+16802
-1789
lines changed

packages/google-cloud-aiplatform/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
135135
| Endpoint_service.mutate_deployed_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js,packages/google-cloud-aiplatform/samples/README.md) |
136136
| Endpoint_service.undeploy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js,packages/google-cloud-aiplatform/samples/README.md) |
137137
| Endpoint_service.update_endpoint | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js,packages/google-cloud-aiplatform/samples/README.md) |
138+
| Endpoint_service.update_endpoint_long_running | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint_long_running.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint_long_running.js,packages/google-cloud-aiplatform/samples/README.md) |
138139
| Evaluation_service.evaluate_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js,packages/google-cloud-aiplatform/samples/README.md) |
139140
| Feature_online_store_admin_service.create_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) |
140141
| Feature_online_store_admin_service.create_feature_view | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) |

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1/explanation.proto";
2323
import "google/cloud/aiplatform/v1/io.proto";
2424
import "google/cloud/aiplatform/v1/machine_resources.proto";
2525
import "google/cloud/aiplatform/v1/service_networking.proto";
26+
import "google/protobuf/duration.proto";
2627
import "google/protobuf/timestamp.proto";
2728

2829
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
@@ -167,6 +168,9 @@ message Endpoint {
167168
string dedicated_endpoint_dns = 25
168169
[(google.api.field_behavior) = OUTPUT_ONLY];
169170

171+
// Configurations that are applied to the endpoint for online prediction.
172+
ClientConnectionConfig client_connection_config = 23;
173+
170174
// Output only. Reserved for future use.
171175
bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
172176

@@ -294,6 +298,9 @@ message DeployedModel {
294298
PrivateEndpoints private_endpoints = 14
295299
[(google.api.field_behavior) = OUTPUT_ONLY];
296300

301+
// Configuration for faster model deployment.
302+
FasterDeploymentConfig faster_deployment_config = 23;
303+
297304
// System labels to apply to Model Garden deployments.
298305
// System labels are managed by Google for internal use only.
299306
map<string, string> system_labels = 28;
@@ -336,3 +343,15 @@ message PredictRequestResponseLoggingConfig {
336343
// given, a new table will be created with name `request_response_logging`
337344
BigQueryDestination bigquery_destination = 3;
338345
}
346+
347+
// Configuration for faster model deployment.
348+
message FasterDeploymentConfig {
349+
// If true, enable fast tryout feature for this deployed model.
350+
bool fast_tryout_enabled = 2;
351+
}
352+
353+
// Configurations (e.g. inference timeout) that are applied on your endpoints.
354+
message ClientConnectionConfig {
355+
// Customizable online prediction request timeout.
356+
google.protobuf.Duration inference_timeout = 1;
357+
}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ service EndpointService {
8080
option (google.api.method_signature) = "endpoint,update_mask";
8181
}
8282

83+
// Updates an Endpoint with a long running operation.
84+
rpc UpdateEndpointLongRunning(UpdateEndpointLongRunningRequest)
85+
returns (google.longrunning.Operation) {
86+
option (google.api.http) = {
87+
post: "/v1/{endpoint.name=projects/*/locations/*/endpoints/*}:update"
88+
body: "*"
89+
};
90+
option (google.api.method_signature) = "endpoint";
91+
option (google.longrunning.operation_info) = {
92+
response_type: "Endpoint"
93+
metadata_type: "UpdateEndpointOperationMetadata"
94+
};
95+
}
96+
8397
// Deletes an Endpoint.
8498
rpc DeleteEndpoint(DeleteEndpointRequest)
8599
returns (google.longrunning.Operation) {
@@ -280,6 +294,22 @@ message UpdateEndpointRequest {
280294
[(google.api.field_behavior) = REQUIRED];
281295
}
282296

297+
// Request message for
298+
// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
299+
message UpdateEndpointLongRunningRequest {
300+
// Required. The Endpoint which replaces the resource on the server. Currently
301+
// we only support updating the `client_connection_config` field, all the
302+
// other fields' update will be blocked.
303+
Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED];
304+
}
305+
306+
// Runtime operation information for
307+
// [EndpointService.UpdateEndpointLongRunning][google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning].
308+
message UpdateEndpointOperationMetadata {
309+
// The operation generic information.
310+
GenericOperationMetadata generic_metadata = 1;
311+
}
312+
283313
// Request message for
284314
// [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint].
285315
message DeleteEndpointRequest {

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/aiplatform/v1/encryption_spec.proto";
2222
import "google/cloud/aiplatform/v1/job_state.proto";
23+
import "google/cloud/aiplatform/v1/machine_resources.proto";
24+
import "google/cloud/aiplatform/v1/network_spec.proto";
2325
import "google/protobuf/duration.proto";
2426
import "google/protobuf/timestamp.proto";
2527
import "google/rpc/status.proto";
@@ -70,6 +72,18 @@ message NotebookExecutionJob {
7072
bytes content = 1;
7173
}
7274

75+
// Compute configuration to use for an execution job.
76+
message CustomEnvironmentSpec {
77+
// The specification of a single machine for the execution job.
78+
MachineSpec machine_spec = 1;
79+
80+
// The specification of a persistent disk to attach for the execution job.
81+
PersistentDiskSpec persistent_disk_spec = 2;
82+
83+
// The network configuration to use for the execution job.
84+
NetworkSpec network_spec = 3;
85+
}
86+
7387
// The input notebook.
7488
oneof notebook_source {
7589
// The Dataform Repository pointing to a single file notebook repository.
@@ -90,6 +104,9 @@ message NotebookExecutionJob {
90104
[(google.api.resource_reference) = {
91105
type: "aiplatform.googleapis.com/NotebookRuntimeTemplate"
92106
}];
107+
108+
// The custom compute configuration for an execution job.
109+
CustomEnvironmentSpec custom_environment_spec = 16;
93110
}
94111

95112
// The location to store the notebook execution result.

0 commit comments

Comments
 (0)