Skip to content

Commit 665682d

Browse files
Google APIscopybara-github
authored andcommitted
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
1 parent 80c19a4 commit 665682d

10 files changed

Lines changed: 74 additions & 10 deletions

google/cloud/aiplatform/v1beta1/aiplatform_v1beta1.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,29 @@ documentation:
9494
- selector: google.cloud.location.Locations.ListLocations
9595
description: Lists information about the supported locations for this service.
9696

97+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
98+
description: |-
99+
Gets the access control policy for a resource. Returns an empty policy
100+
if the resource exists and does not have a policy set.
101+
102+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
103+
description: |-
104+
Sets the access control policy on the specified resource. Replaces
105+
any existing policy.
106+
107+
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
108+
errors.
109+
110+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
111+
description: |-
112+
Returns permissions that a caller has on the specified resource. If the
113+
resource does not exist, this will return an empty set of
114+
permissions, not a `NOT_FOUND` error.
115+
116+
Note: This operation is designed to be used for building
117+
permission-aware UIs and command-line tools, not for authorization
118+
checking. This operation may "fail open" without warning.
119+
97120
backend:
98121
rules:
99122
- selector: 'google.cloud.aiplatform.v1beta1.DatasetService.*'
@@ -134,6 +157,8 @@ backend:
134157
deadline: 30.0
135158
- selector: google.cloud.location.Locations.ListLocations
136159
deadline: 30.0
160+
- selector: 'google.iam.v1.IAMPolicy.*'
161+
deadline: 60.0
137162
- selector: 'google.longrunning.Operations.*'
138163
deadline: 60.0
139164

@@ -147,6 +172,30 @@ http:
147172
get: '/ui/{name=projects/*}/locations'
148173
additional_bindings:
149174
- get: '/v1beta1/{name=projects/*}/locations'
175+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
176+
post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy'
177+
body: '*'
178+
additional_bindings:
179+
- post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy'
180+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy'
181+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy'
182+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
183+
post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy'
184+
body: '*'
185+
additional_bindings:
186+
- post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy'
187+
body: '*'
188+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy'
189+
body: '*'
190+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy'
191+
body: '*'
192+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
193+
post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions'
194+
body: '*'
195+
additional_bindings:
196+
- post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions'
197+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions'
198+
- post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions'
150199
- selector: google.longrunning.Operations.CancelOperation
151200
post: '/ui/{name=projects/*/locations/*/operations/*}:cancel'
152201
additional_bindings:
@@ -537,6 +586,10 @@ authentication:
537586
oauth:
538587
canonical_scopes: |-
539588
https://www.googleapis.com/auth/cloud-platform
589+
- selector: 'google.iam.v1.IAMPolicy.*'
590+
oauth:
591+
canonical_scopes: |-
592+
https://www.googleapis.com/auth/cloud-platform
540593
- selector: 'google.longrunning.Operations.*'
541594
oauth:
542595
canonical_scopes: |-

google/cloud/aiplatform/v1beta1/batch_prediction_job.proto

Lines changed: 3 additions & 0 deletions
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
}];

google/cloud/aiplatform/v1beta1/completion_stats.proto

Lines changed: 4 additions & 0 deletions
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
}

google/cloud/aiplatform/v1beta1/endpoint.proto

Lines changed: 5 additions & 2 deletions
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) = {

google/cloud/aiplatform/v1beta1/explanation.proto

Lines changed: 2 additions & 2 deletions
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.

google/cloud/aiplatform/v1beta1/featurestore_online_service.proto

Lines changed: 0 additions & 1 deletion
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 {

google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto

Lines changed: 1 addition & 1 deletion
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
}

google/cloud/aiplatform/v1beta1/model_monitoring.proto

Lines changed: 2 additions & 0 deletions
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.

google/cloud/aiplatform/v1beta1/model_service.proto

Lines changed: 3 additions & 3 deletions
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

google/cloud/aiplatform/v1beta1/pipeline_service.proto

Lines changed: 1 addition & 1 deletion
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)