Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 6557767

Browse files
feat: add IAM policy to aiplatform_v1beta1.yaml (#308)
* fix: fixes for dynamic routing and streaming descriptors Use gapic-generator-typescript v2.14.5. PiperOrigin-RevId: 450616838 Source-Link: googleapis/googleapis@7a47b72 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42cc6331bae0b99f61b8e01ae15b05211716c4f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjYzYzMzFiYWUwYjk5ZjYxYjhlMDFhZTE1YjA1MjExNzE2YzRmOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add latent_space_source to ExplanationMetadata in aiplatform v1 explanation_metadata.proto feat: add scaling to OnlineServingConfig in aiplatform v1 featurestore.proto feat: add template_metadata to PipelineJob in aiplatform v1 pipeline_job.proto PiperOrigin-RevId: 450687287 Source-Link: googleapis/googleapis@058bff3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f072bfe7704d996c41d74ac3aa1d8514f464c4ff Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjA3MmJmZTc3MDRkOTk2YzQxZDc0YWMzYWExZDg1MTRmNDY0YzRmZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add failure_policy to PipelineJob in aiplatform v1 & v1beta1 pipeline_job.proto PiperOrigin-RevId: 450704795 Source-Link: googleapis/googleapis@c875f2b Source-Link: https://github.com/googleapis/googleapis-gen/commit/e606d62ab32b85434697678b3004f2206d5c02ae Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTYwNmQ2MmFiMzJiODU0MzQ2OTc2NzhiMzAwNGYyMjA2ZDVjMDJhZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add IAM policy to aiplatform_v1beta1.yaml feat: add preset configuration for example-based explanations in aiplatform v1beta1 explanation.proto feat: add latent_space_source to ExplanationMetadata in aiplatform v1beta1 explanation_metadata.proto feat: add successful_forecast_point_count to CompletionStats in completion_stats.proto PiperOrigin-RevId: 450727462 Source-Link: googleapis/googleapis@665682d Source-Link: https://github.com/googleapis/googleapis-gen/commit/34cddbef39c17c58f96f5ffebf6065136b6d5719 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzRjZGRiZWYzOWMxN2M1OGY5NmY1ZmZlYmY2MDY1MTM2YjZkNTcxOSJ9 * 🦉 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>
1 parent c69ac2b commit 6557767

File tree

63 files changed

+1330
-170
lines changed

Some content is hidden

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

63 files changed

+1330
-170
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ message DeployedModel {
154154
// This value should be 1-10 characters, and valid characters are /[0-9]/.
155155
string id = 1 [(google.api.field_behavior) = IMMUTABLE];
156156

157-
// Required. The name of the Model that this is the deployment of. Note that the Model
158-
// may be in a different location than the DeployedModel's Endpoint.
157+
// Required. The resource name of the Model that this is the deployment of. Note that
158+
// the Model may be in a different location than the DeployedModel's Endpoint.
159159
string model = 2 [
160160
(google.api.field_behavior) = REQUIRED,
161161
(google.api.resource_reference) = {

protos/google/cloud/aiplatform/v1/explanation_metadata.proto

+3
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,7 @@ message ExplanationMetadata {
392392
// than the one given on input. The output URI will point to a location where
393393
// the user only has a read access.
394394
string feature_attributions_schema_uri = 3;
395+
396+
// Name of the source to generate embeddings for example based explanations.
397+
string latent_space_source = 5;
395398
}

protos/google/cloud/aiplatform/v1/featurestore.proto

+18
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,29 @@ message Featurestore {
4141
// OnlineServingConfig specifies the details for provisioning online serving
4242
// resources.
4343
message OnlineServingConfig {
44+
// Online serving scaling configuration. If min_node_count and
45+
// max_node_count are set to the same value, the cluster will be configured
46+
// with the fixed number of node (no auto-scaling).
47+
message Scaling {
48+
// Required. The minimum number of nodes to scale down to. Must be greater than or
49+
// equal to 1.
50+
int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED];
51+
52+
// The maximum number of nodes to scale up to. Must be greater than
53+
// min_node_count, and less than or equal to 10 times of 'min_node_count'.
54+
int32 max_node_count = 2;
55+
}
56+
4457
// The number of nodes for the online store. The number of nodes doesn't
4558
// scale automatically, but you can manually update the number of
4659
// nodes. If set to 0, the featurestore will not have an
4760
// online store and cannot be used for online serving.
4861
int32 fixed_node_count = 2;
62+
63+
// Online serving scaling configuration.
64+
// Only one of `fixed_node_count` and `scaling` can be set. Setting one will
65+
// reset the other.
66+
Scaling scaling = 4;
4967
}
5068

5169
// Possible states a featurestore can have.

protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ message ManualBatchTuningParameters {
3434
// speeds up the batch operation's execution, but too high value will result
3535
// in a whole batch not fitting in a machine's memory, and the whole
3636
// operation will fail.
37-
// The default value is 4.
37+
// The default value is 64.
3838
int32 batch_size = 1 [(google.api.field_behavior) = IMMUTABLE];
3939
}

protos/google/cloud/aiplatform/v1/model_monitoring.proto

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ message ModelMonitoringObjectiveConfig {
5555
//
5656
// "csv"
5757
// The source file is a CSV file.
58+
// "jsonl"
59+
// The source file is a JSONL file.
5860
string data_format = 2;
5961

6062
// The target field name the model is to predict.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2022 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+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "PipelineFailurePolicyProto";
23+
option java_package = "com.google.cloud.aiplatform.v1";
24+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
25+
option ruby_package = "Google::Cloud::AIPlatform::V1";
26+
27+
// Represents the failure policy of a pipeline. Currently, the default of a
28+
// pipeline is that the pipeline will continue to run until no more tasks can be
29+
// executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
30+
// pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
31+
// any new tasks when a task has failed. Any scheduled tasks will continue to
32+
// completion.
33+
enum PipelineFailurePolicy {
34+
// Default value, and follows fail slow behavior.
35+
PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0;
36+
37+
// Indicates that the pipeline should continue to run until all possible
38+
// tasks have been scheduled and completed.
39+
PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1;
40+
41+
// Indicates that the pipeline should stop scheduling new tasks after a task
42+
// has failed.
43+
PIPELINE_FAILURE_POLICY_FAIL_FAST = 2;
44+
}

protos/google/cloud/aiplatform/v1/pipeline_job.proto

+30
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1/artifact.proto";
2222
import "google/cloud/aiplatform/v1/context.proto";
2323
import "google/cloud/aiplatform/v1/encryption_spec.proto";
2424
import "google/cloud/aiplatform/v1/execution.proto";
25+
import "google/cloud/aiplatform/v1/pipeline_failure_policy.proto";
2526
import "google/cloud/aiplatform/v1/pipeline_state.proto";
2627
import "google/cloud/aiplatform/v1/value.proto";
2728
import "google/protobuf/struct.proto";
@@ -72,6 +73,14 @@ message PipelineJob {
7273
// `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built
7374
// using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL.
7475
map<string, google.protobuf.Value> parameter_values = 3;
76+
77+
// Represents the failure policy of a pipeline. Currently, the default of a
78+
// pipeline is that the pipeline will continue to run until no more tasks
79+
// can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
80+
// However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
81+
// will stop scheduling any new tasks when a task has failed. Any scheduled
82+
// tasks will continue to completion.
83+
PipelineFailurePolicy failure_policy = 4;
7584
}
7685

7786
// Output only. The resource name of the PipelineJob.
@@ -150,6 +159,27 @@ message PipelineJob {
150159
string network = 18 [(google.api.resource_reference) = {
151160
type: "compute.googleapis.com/Network"
152161
}];
162+
163+
// A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
164+
// be downloaded.
165+
string template_uri = 19;
166+
167+
// Output only. Pipeline template metadata. Will fill up fields if
168+
// [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
169+
PipelineTemplateMetadata template_metadata = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
170+
}
171+
172+
// Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported
173+
// template registry. Currently, the only supported registry is Artifact
174+
// Registry.
175+
message PipelineTemplateMetadata {
176+
// The version_name in artifact registry.
177+
//
178+
// Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
179+
// from supported template registry.
180+
//
181+
// Format is "sha256:abcdef123456...".
182+
string version = 3;
153183
}
154184

155185
// The runtime detail of PipelineJob.

protos/google/cloud/aiplatform/v1/pipeline_service.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ message ListPipelineJobsRequest {
323323
// Values must be in RFC 3339 format.
324324
// * `labels`: Supports key-value equality and key presence.
325325
// * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard.
326-
// * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:`
326+
// * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:`
327327
// wildcard.
328328
//
329329
// Filter expressions can be combined together using logical operators

protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ message BatchPredictionJob {
159159
// Starting this job has no impact on any existing deployments of the Model
160160
// and their resources.
161161
// Exactly one of model and unmanaged_container_model must be set.
162+
//
163+
// The model resource name may contain version id or version alias to specify
164+
// the version, if no version is specified, the default version will be used.
162165
string model = 3 [(google.api.resource_reference) = {
163166
type: "aiplatform.googleapis.com/Model"
164167
}];

protos/google/cloud/aiplatform/v1beta1/completion_stats.proto

+4
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ message CompletionStats {
4141
// Set to -1 if the number is unknown (for example, the operation failed
4242
// before the total entity number could be collected).
4343
int64 incomplete_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
44+
45+
// Output only. The number of the successful forecast points that are generated by the
46+
// forecasting model. This is ONLY used by the forecasting batch prediction.
47+
int64 successful_forecast_point_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
4448
}

protos/google/cloud/aiplatform/v1beta1/endpoint.proto

+5-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@ message DeployedModel {
154154
// This value should be 1-10 characters, and valid characters are /[0-9]/.
155155
string id = 1 [(google.api.field_behavior) = IMMUTABLE];
156156

157-
// Required. The name of the Model that this is the deployment of. Note that the Model
158-
// may be in a different location than the DeployedModel's Endpoint.
157+
// Required. The resource name of the Model that this is the deployment of. Note that
158+
// the Model may be in a different location than the DeployedModel's Endpoint.
159+
//
160+
// The resource name may contain version id or version alias to specify the
161+
// version, if no version is specified, the default version will be deployed.
159162
string model = 2 [
160163
(google.api.field_behavior) = REQUIRED,
161164
(google.api.resource_reference) = {

protos/google/cloud/aiplatform/v1beta1/explanation.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ message Examples {
395395

396396
// Preset config based on the desired query speed-precision trade-off
397397
// and modality
398-
Preset preset = 4;
398+
Presets presets = 4;
399399
}
400400

401401
// The Cloud Storage location for the input instances.
@@ -406,7 +406,7 @@ message Examples {
406406
}
407407

408408
// Preset configuration for example-based explanations
409-
message Preset {
409+
message Presets {
410410
// Preset option controlling parameters for query speed-precision trade-off
411411
enum Query {
412412
// More precise neighbors as a trade-off against slower response.

protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ message StreamingReadFeatureValuesRequest {
171171
}
172172

173173
// Value for a feature.
174-
// (-- NEXT ID: 15 --)
175174
message FeatureValue {
176175
// Metadata of feature value.
177176
message Metadata {

protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ message ManualBatchTuningParameters {
3434
// speeds up the batch operation's execution, but too high value will result
3535
// in a whole batch not fitting in a machine's memory, and the whole
3636
// operation will fail.
37-
// The default value is 4.
37+
// The default value is 64.
3838
int32 batch_size = 1 [(google.api.field_behavior) = IMMUTABLE];
3939
}

protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ message ModelMonitoringObjectiveConfig {
5555
//
5656
// "csv"
5757
// The source file is a CSV file.
58+
// "jsonl"
59+
// The source file is a JSONL file.
5860
string data_format = 2;
5961

6062
// The target field name the model is to predict.

protos/google/cloud/aiplatform/v1beta1/model_service.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ service ModelService {
8888
option (google.api.method_signature) = "model,update_mask";
8989
}
9090

91-
// Incremental update the dataset used for a examples model.
91+
// Incrementally update the dataset used for an examples model.
9292
rpc UpdateExplanationDataset(UpdateExplanationDatasetRequest) returns (google.longrunning.Operation) {
9393
option (google.api.http) = {
9494
post: "/v1beta1/{model=projects/*/locations/*/models/*}:updateExplanationDataset"
@@ -250,9 +250,9 @@ message GetModelRequest {
250250
//
251251
// In order to retrieve a specific version of the model, also provide
252252
// the version ID or version alias.
253-
// Example: projects/{project}/locations/{location}/models/{model}@2
253+
// Example: `projects/{project}/locations/{location}/models/{model}@2`
254254
// or
255-
// projects/{project}/locations/{location}/models/{model}@golden
255+
// `projects/{project}/locations/{location}/models/{model}@golden`
256256
// If no version ID or alias is specified, the "default" version will be
257257
// returned. The "default" version alias is created for the first version of
258258
// the model, and can be moved to other versions later on. There will be
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2022 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.v1beta1;
18+
19+
option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "PipelineFailurePolicyProto";
23+
option java_package = "com.google.cloud.aiplatform.v1beta1";
24+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
25+
option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
26+
27+
// Represents the failure policy of a pipeline. Currently, the default of a
28+
// pipeline is that the pipeline will continue to run until no more tasks can be
29+
// executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
30+
// pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
31+
// any new tasks when a task has failed. Any scheduled tasks will continue to
32+
// completion.
33+
enum PipelineFailurePolicy {
34+
// Default value, and follows fail slow behavior.
35+
PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0;
36+
37+
// Indicates that the pipeline should continue to run until all possible
38+
// tasks have been scheduled and completed.
39+
PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1;
40+
41+
// Indicates that the pipeline should stop scheduling new tasks after a task
42+
// has failed.
43+
PIPELINE_FAILURE_POLICY_FAIL_FAST = 2;
44+
}

protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto

+9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1beta1/artifact.proto";
2222
import "google/cloud/aiplatform/v1beta1/context.proto";
2323
import "google/cloud/aiplatform/v1beta1/encryption_spec.proto";
2424
import "google/cloud/aiplatform/v1beta1/execution.proto";
25+
import "google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto";
2526
import "google/cloud/aiplatform/v1beta1/pipeline_state.proto";
2627
import "google/cloud/aiplatform/v1beta1/value.proto";
2728
import "google/protobuf/struct.proto";
@@ -72,6 +73,14 @@ message PipelineJob {
7273
// `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built
7374
// using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL.
7475
map<string, google.protobuf.Value> parameter_values = 3;
76+
77+
// Represents the failure policy of a pipeline. Currently, the default of a
78+
// pipeline is that the pipeline will continue to run until no more tasks
79+
// can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
80+
// However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
81+
// will stop scheduling any new tasks when a task has failed. Any scheduled
82+
// tasks will continue to completion.
83+
PipelineFailurePolicy failure_policy = 4;
7584
}
7685

7786
// Output only. The resource name of the PipelineJob.

protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ message ListPipelineJobsRequest {
323323
// Values must be in RFC 3339 format.
324324
// * `labels`: Supports key-value equality and key presence.
325325
// * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard.
326-
// * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:`
326+
// * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:`
327327
// wildcard.
328328
//
329329
// Filter expressions can be combined together using logical operators

0 commit comments

Comments
 (0)