google-cloud-ai_platform-v1 0.5.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +140 -0
  3. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +28 -0
  4. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +28 -0
  5. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +29 -0
  6. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +28 -0
  7. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +28 -0
  8. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +28 -0
  9. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +28 -0
  10. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +28 -0
  11. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +480 -1
  12. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +28 -0
  13. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +28 -0
  14. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +28 -0
  15. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +28 -0
  16. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  17. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +28 -0
  18. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
  19. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -0
  20. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +15 -0
  21. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  22. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +1 -0
  23. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +27 -0
  24. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +1 -0
  25. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +2 -0
  26. data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -0
  27. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +34 -0
  28. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +12 -0
  29. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -0
  30. data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +36 -0
  31. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +3 -0
  32. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +6 -0
  33. data/proto_docs/google/cloud/aiplatform/v1/completion_stats.rb +4 -0
  34. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +39 -0
  35. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
  36. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +69 -0
  37. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +0 -1
  38. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -0
  39. data/proto_docs/google/cloud/aiplatform/v1/model.rb +26 -0
  40. data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +10 -0
  41. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +10 -0
  42. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +135 -0
  43. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  44. data/proto_docs/google/cloud/aiplatform/v1/saved_query.rb +78 -0
  45. data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +25 -0
  46. data/proto_docs/google/type/expr.rb +75 -0
  47. metadata +45 -2
@@ -39,6 +39,12 @@ module Google
39
39
  # descending order. If {::Google::Cloud::AIPlatform::V1::ExplanationParameters#output_indices ExplanationParameters.output_indices} is specified,
40
40
  # the attributions are stored by {::Google::Cloud::AIPlatform::V1::Attribution#output_index Attribution.output_index} in the same
41
41
  # order as they appear in the output_indices.
42
+ # @!attribute [r] neighbors
43
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Neighbor>]
44
+ # Output only. List of the nearest neighbors for example-based explanations.
45
+ #
46
+ # For models deployed with the examples explanations feature enabled, the
47
+ # attributions field is empty and instead the neighbors field is populated.
42
48
  class Explanation
43
49
  include ::Google::Protobuf::MessageExts
44
50
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -164,6 +170,18 @@ module Google
164
170
  extend ::Google::Protobuf::MessageExts::ClassMethods
165
171
  end
166
172
 
173
+ # Neighbors for example-based explanations.
174
+ # @!attribute [r] neighbor_id
175
+ # @return [::String]
176
+ # Output only. The neighbor id.
177
+ # @!attribute [r] neighbor_distance
178
+ # @return [::Float]
179
+ # Output only. The neighbor distance.
180
+ class Neighbor
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
167
185
  # Specification of Model explanation.
168
186
  # @!attribute [rw] parameters
169
187
  # @return [::Google::Cloud::AIPlatform::V1::ExplanationParameters]
@@ -397,6 +415,9 @@ module Google
397
415
  # @!attribute [rw] metadata
398
416
  # @return [::Google::Cloud::AIPlatform::V1::ExplanationMetadataOverride]
399
417
  # The metadata to be overridden. If not specified, no metadata is overridden.
418
+ # @!attribute [rw] examples_override
419
+ # @return [::Google::Cloud::AIPlatform::V1::ExamplesOverride]
420
+ # The example-based explanations parameter overrides.
400
421
  class ExplanationSpecOverride
401
422
  include ::Google::Protobuf::MessageExts
402
423
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -439,6 +460,54 @@ module Google
439
460
  extend ::Google::Protobuf::MessageExts::ClassMethods
440
461
  end
441
462
  end
463
+
464
+ # Overrides for example-based explanations.
465
+ # @!attribute [rw] neighbor_count
466
+ # @return [::Integer]
467
+ # The number of neighbors to return.
468
+ # @!attribute [rw] crowding_count
469
+ # @return [::Integer]
470
+ # The number of neighbors to return that have the same crowding tag.
471
+ # @!attribute [rw] restrictions
472
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::ExamplesRestrictionsNamespace>]
473
+ # Restrict the resulting nearest neighbors to respect these constraints.
474
+ # @!attribute [rw] return_embeddings
475
+ # @return [::Boolean]
476
+ # If true, return the embeddings instead of neighbors.
477
+ # @!attribute [rw] data_format
478
+ # @return [::Google::Cloud::AIPlatform::V1::ExamplesOverride::DataFormat]
479
+ # The format of the data being provided with each call.
480
+ class ExamplesOverride
481
+ include ::Google::Protobuf::MessageExts
482
+ extend ::Google::Protobuf::MessageExts::ClassMethods
483
+
484
+ # Data format enum.
485
+ module DataFormat
486
+ # Unspecified format. Must not be used.
487
+ DATA_FORMAT_UNSPECIFIED = 0
488
+
489
+ # Provided data is a set of model inputs.
490
+ INSTANCES = 1
491
+
492
+ # Provided data is a set of embeddings.
493
+ EMBEDDINGS = 2
494
+ end
495
+ end
496
+
497
+ # Restrictions namespace for example-based explanations overrides.
498
+ # @!attribute [rw] namespace_name
499
+ # @return [::String]
500
+ # The namespace name.
501
+ # @!attribute [rw] allow
502
+ # @return [::Array<::String>]
503
+ # The list of allowed tags.
504
+ # @!attribute [rw] deny
505
+ # @return [::Array<::String>]
506
+ # The list of deny tags.
507
+ class ExamplesRestrictionsNamespace
508
+ include ::Google::Protobuf::MessageExts
509
+ extend ::Google::Protobuf::MessageExts::ClassMethods
510
+ end
442
511
  end
443
512
  end
444
513
  end
@@ -139,7 +139,6 @@ module Google
139
139
  end
140
140
 
141
141
  # Value for a feature.
142
- # (-- NEXT ID: 15 --)
143
142
  # @!attribute [rw] bool_value
144
143
  # @return [::Boolean]
145
144
  # Bool type feature value.
@@ -147,6 +147,7 @@ module Google
147
147
  #
148
148
  # * `labels`
149
149
  # * `online_serving_config.fixed_node_count`
150
+ # * `online_serving_config.scaling`
150
151
  class UpdateFeaturestoreRequest
151
152
  include ::Google::Protobuf::MessageExts
152
153
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,6 +25,29 @@ module Google
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
27
  # The resource name of the Model.
28
+ # @!attribute [r] version_id
29
+ # @return [::String]
30
+ # Output only. Immutable. The version ID of the model.
31
+ # A new version is committed when a new model version is uploaded or
32
+ # trained under an existing model id. It is an auto-incrementing decimal
33
+ # number in string representation.
34
+ # @!attribute [rw] version_aliases
35
+ # @return [::Array<::String>]
36
+ # User provided version aliases so that a model version can be referenced via
37
+ # alias (i.e.
38
+ # projects/\\{project}/locations/\\{location}/models/\\{model_id}@\\{version_alias}
39
+ # instead of auto-generated version id (i.e.
40
+ # projects/\\{project}/locations/\\{location}/models/\\{model_id}@\\{version_id}).
41
+ # The format is [a-z][a-zA-Z0-9-]\\{0,126}[a-z0-9] to distinguish from
42
+ # version_id. A default version alias will be created for the first version
43
+ # of the model, and there must be exactly one default version alias for a
44
+ # model.
45
+ # @!attribute [r] version_create_time
46
+ # @return [::Google::Protobuf::Timestamp]
47
+ # Output only. Timestamp when this version was created.
48
+ # @!attribute [r] version_update_time
49
+ # @return [::Google::Protobuf::Timestamp]
50
+ # Output only. Timestamp when this version was most recently updated.
28
51
  # @!attribute [rw] display_name
29
52
  # @return [::String]
30
53
  # Required. The display name of the Model.
@@ -33,6 +56,9 @@ module Google
33
56
  # @!attribute [rw] description
34
57
  # @return [::String]
35
58
  # The description of the Model.
59
+ # @!attribute [rw] version_description
60
+ # @return [::String]
61
+ # The description of this version.
36
62
  # @!attribute [rw] predict_schemata
37
63
  # @return [::Google::Cloud::AIPlatform::V1::PredictSchemata]
38
64
  # The schemata that describe formats of the Model's predictions and
@@ -240,6 +240,16 @@ module Google
240
240
  # @return [::Google::Protobuf::Duration]
241
241
  # Required. The model monitoring job scheduling interval. It will be rounded up to next
242
242
  # full hour. This defines how often the monitoring jobs are triggered.
243
+ # @!attribute [rw] monitor_window
244
+ # @return [::Google::Protobuf::Duration]
245
+ # The time window of the prediction data being included in each prediction
246
+ # dataset. This window specifies how long the data should be collected from
247
+ # historical model results for each run. If not set,
248
+ # {::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringScheduleConfig#monitor_interval ModelDeploymentMonitoringScheduleConfig.monitor_interval} will be used.
249
+ # e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
250
+ # monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
251
+ # to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
252
+ # monitoring statistics.
243
253
  class ModelDeploymentMonitoringScheduleConfig
244
254
  include ::Google::Protobuf::MessageExts
245
255
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -91,6 +91,11 @@ module Google
91
91
  # Key is the feature name and value is the threshold. The threshold here is
92
92
  # against attribution score distance between the training and prediction
93
93
  # feature.
94
+ # @!attribute [rw] default_skew_threshold
95
+ # @return [::Google::Cloud::AIPlatform::V1::ThresholdConfig]
96
+ # Skew anomaly detection threshold used by all features.
97
+ # When the per-feature thresholds are not set, this field can be used to
98
+ # specify a threshold for all features.
94
99
  class TrainingPredictionSkewDetectionConfig
95
100
  include ::Google::Protobuf::MessageExts
96
101
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -125,6 +130,11 @@ module Google
125
130
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::ThresholdConfig}]
126
131
  # Key is the feature name and value is the threshold. The threshold here is
127
132
  # against attribution score distance between different time windows.
133
+ # @!attribute [rw] default_drift_threshold
134
+ # @return [::Google::Cloud::AIPlatform::V1::ThresholdConfig]
135
+ # Drift anomaly detection threshold used by all features.
136
+ # When the per-feature thresholds are not set, this field can be used to
137
+ # specify a threshold for all features.
128
138
  class PredictionDriftDetectionConfig
129
139
  include ::Google::Protobuf::MessageExts
130
140
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -26,6 +26,17 @@ module Google
26
26
  # @return [::String]
27
27
  # Required. The resource name of the Location into which to upload the Model.
28
28
  # Format: `projects/{project}/locations/{location}`
29
+ # @!attribute [rw] parent_model
30
+ # @return [::String]
31
+ # Optional. The resource name of the model into which to upload the version. Only
32
+ # specify this field when uploading a new version.
33
+ # @!attribute [rw] model_id
34
+ # @return [::String]
35
+ # Optional. The ID to use for the uploaded Model, which will become the final
36
+ # component of the model resource name.
37
+ #
38
+ # This value may be up to 63 characters, and valid characters are
39
+ # `[a-z0-9_-]`. The first character cannot be a number or hyphen.
29
40
  # @!attribute [rw] model
30
41
  # @return [::Google::Cloud::AIPlatform::V1::Model]
31
42
  # Required. The Model to create.
@@ -48,6 +59,9 @@ module Google
48
59
  # @return [::String]
49
60
  # The name of the uploaded Model resource.
50
61
  # Format: `projects/{project}/locations/{location}/models/{model}`
62
+ # @!attribute [r] model_version_id
63
+ # @return [::String]
64
+ # Output only. The version ID of the model that is uploaded.
51
65
  class UploadModelResponse
52
66
  include ::Google::Protobuf::MessageExts
53
67
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -58,6 +72,16 @@ module Google
58
72
  # @return [::String]
59
73
  # Required. The name of the Model resource.
60
74
  # Format: `projects/{project}/locations/{location}/models/{model}`
75
+ #
76
+ # In order to retrieve a specific version of the model, also provide
77
+ # the version ID or version alias.
78
+ # Example: `projects/{project}/locations/{location}/models/{model}@2`
79
+ # or
80
+ # `projects/{project}/locations/{location}/models/{model}@golden`
81
+ # If no version ID or alias is specified, the "default" version will be
82
+ # returned. The "default" version alias is created for the first version of
83
+ # the model, and can be moved to other versions later on. There will be
84
+ # exactly one default version.
61
85
  class GetModelRequest
62
86
  include ::Google::Protobuf::MessageExts
63
87
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -125,6 +149,54 @@ module Google
125
149
  extend ::Google::Protobuf::MessageExts::ClassMethods
126
150
  end
127
151
 
152
+ # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#list_model_versions ModelService.ListModelVersions}.
153
+ # @!attribute [rw] name
154
+ # @return [::String]
155
+ # Required. The name of the model to list versions for.
156
+ # @!attribute [rw] page_size
157
+ # @return [::Integer]
158
+ # The standard list page size.
159
+ # @!attribute [rw] page_token
160
+ # @return [::String]
161
+ # The standard list page token.
162
+ # Typically obtained via
163
+ # {::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse#next_page_token ListModelVersionsResponse.next_page_token} of the previous
164
+ # [ModelService.ListModelversions][] call.
165
+ # @!attribute [rw] filter
166
+ # @return [::String]
167
+ # An expression for filtering the results of the request. For field names
168
+ # both snake_case and camelCase are supported.
169
+ #
170
+ # * `labels` supports general map functions that is:
171
+ # * `labels.key=value` - key:value equality
172
+ # * `labels.key:* or labels:key - key existence
173
+ # * A key including a space must be quoted. `labels."a key"`.
174
+ #
175
+ # Some examples:
176
+ # * `labels.myKey="myValue"`
177
+ # @!attribute [rw] read_mask
178
+ # @return [::Google::Protobuf::FieldMask]
179
+ # Mask specifying which fields to read.
180
+ class ListModelVersionsRequest
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Response message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#list_model_versions ModelService.ListModelVersions}
186
+ # @!attribute [rw] models
187
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::Model>]
188
+ # List of Model versions in the requested page.
189
+ # In the returned Model name field, version ID instead of regvision tag will
190
+ # be included.
191
+ # @!attribute [rw] next_page_token
192
+ # @return [::String]
193
+ # A token to retrieve the next page of results.
194
+ # Pass to {::Google::Cloud::AIPlatform::V1::ListModelVersionsRequest#page_token ListModelVersionsRequest.page_token} to obtain that page.
195
+ class ListModelVersionsResponse
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
+ end
199
+
128
200
  # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#update_model ModelService.UpdateModel}.
129
201
  # @!attribute [rw] model
130
202
  # @return [::Google::Cloud::AIPlatform::V1::Model]
@@ -165,10 +237,50 @@ module Google
165
237
  extend ::Google::Protobuf::MessageExts::ClassMethods
166
238
  end
167
239
 
240
+ # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#delete_model_version ModelService.DeleteModelVersion}.
241
+ # @!attribute [rw] name
242
+ # @return [::String]
243
+ # Required. The name of the model version to be deleted, with a version ID explicitly
244
+ # included.
245
+ #
246
+ # Example: `projects/{project}/locations/{location}/models/{model}@1234`
247
+ class DeleteModelVersionRequest
248
+ include ::Google::Protobuf::MessageExts
249
+ extend ::Google::Protobuf::MessageExts::ClassMethods
250
+ end
251
+
252
+ # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#merge_version_aliases ModelService.MergeVersionAliases}.
253
+ # @!attribute [rw] name
254
+ # @return [::String]
255
+ # Required. The name of the model version to merge aliases, with a version ID
256
+ # explicitly included.
257
+ #
258
+ # Example: `projects/{project}/locations/{location}/models/{model}@1234`
259
+ # @!attribute [rw] version_aliases
260
+ # @return [::Array<::String>]
261
+ # Required. The set of version aliases to merge.
262
+ # The alias should be at most 128 characters, and match
263
+ # `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
264
+ # Add the `-` prefix to an alias means removing that alias from the version.
265
+ # `-` is NOT counted in the 128 characters. Example: `-golden` means removing
266
+ # the `golden` alias from the version.
267
+ #
268
+ # There is NO ordering in aliases, which means
269
+ # 1) The aliases returned from GetModel API might not have the exactly same
270
+ # order from this MergeVersionAliases API. 2) Adding and deleting the same
271
+ # alias in the request is not recommended, and the 2 operations will be
272
+ # cancelled out.
273
+ class MergeVersionAliasesRequest
274
+ include ::Google::Protobuf::MessageExts
275
+ extend ::Google::Protobuf::MessageExts::ClassMethods
276
+ end
277
+
168
278
  # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#export_model ModelService.ExportModel}.
169
279
  # @!attribute [rw] name
170
280
  # @return [::String]
171
281
  # Required. The resource name of the Model to export.
282
+ # The resource name may contain version id or version alias to specify the
283
+ # version, if no version is specified, the default version will be exported.
172
284
  # @!attribute [rw] output_config
173
285
  # @return [::Google::Cloud::AIPlatform::V1::ExportModelRequest::OutputConfig]
174
286
  # Required. The desired output location and configuration.
@@ -252,6 +364,29 @@ module Google
252
364
  extend ::Google::Protobuf::MessageExts::ClassMethods
253
365
  end
254
366
 
367
+ # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_model_evaluation_slices ModelService.BatchImportModelEvaluationSlices}
368
+ # @!attribute [rw] parent
369
+ # @return [::String]
370
+ # Required. The name of the parent ModelEvaluation resource.
371
+ # Format:
372
+ # `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
373
+ # @!attribute [rw] model_evaluation_slices
374
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice>]
375
+ # Required. Model evaluation slice resource to be imported.
376
+ class BatchImportModelEvaluationSlicesRequest
377
+ include ::Google::Protobuf::MessageExts
378
+ extend ::Google::Protobuf::MessageExts::ClassMethods
379
+ end
380
+
381
+ # Response message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_model_evaluation_slices ModelService.BatchImportModelEvaluationSlices}
382
+ # @!attribute [r] imported_model_evaluation_slices
383
+ # @return [::Array<::String>]
384
+ # Output only. List of imported {::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice#name ModelEvaluationSlice.name}.
385
+ class BatchImportModelEvaluationSlicesResponse
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+ end
389
+
255
390
  # Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#get_model_evaluation ModelService.GetModelEvaluation}.
256
391
  # @!attribute [rw] name
257
392
  # @return [::String]
@@ -64,6 +64,10 @@ module Google
64
64
  # @return [::String]
65
65
  # Output only. The resource name of the Model which is deployed as the DeployedModel that
66
66
  # this prediction hits.
67
+ # @!attribute [r] model_version_id
68
+ # @return [::String]
69
+ # Output only. The version ID of the Model which is deployed as the DeployedModel that
70
+ # this prediction hits.
67
71
  # @!attribute [r] model_display_name
68
72
  # @return [::String]
69
73
  # Output only. The {::Google::Cloud::AIPlatform::V1::Model#display_name display name} of the Model which is deployed as
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AIPlatform
23
+ module V1
24
+ # A SavedQuery is a view of the dataset. It references a subset of annotations
25
+ # by problem type and filters.
26
+ # @!attribute [r] name
27
+ # @return [::String]
28
+ # Output only. Resource name of the SavedQuery.
29
+ # @!attribute [rw] display_name
30
+ # @return [::String]
31
+ # Required. The user-defined name of the SavedQuery.
32
+ # The name can be up to 128 characters long and can consist of any UTF-8
33
+ # characters.
34
+ # @!attribute [rw] metadata
35
+ # @return [::Google::Protobuf::Value]
36
+ # Some additional information about the SavedQuery.
37
+ # @!attribute [r] create_time
38
+ # @return [::Google::Protobuf::Timestamp]
39
+ # Output only. Timestamp when this SavedQuery was created.
40
+ # @!attribute [r] update_time
41
+ # @return [::Google::Protobuf::Timestamp]
42
+ # Output only. Timestamp when SavedQuery was last updated.
43
+ # @!attribute [r] annotation_filter
44
+ # @return [::String]
45
+ # Output only. Filters on the Annotations in the dataset.
46
+ # @!attribute [rw] problem_type
47
+ # @return [::String]
48
+ # Required. Problem type of the SavedQuery.
49
+ # Allowed values:
50
+ # * IMAGE_CLASSIFICATION_SINGLE_LABEL
51
+ # * IMAGE_CLASSIFICATION_MULTI_LABEL
52
+ # * IMAGE_BOUNDING_POLY
53
+ # * IMAGE_BOUNDING_BOX
54
+ # * TEXT_CLASSIFICATION_SINGLE_LABEL
55
+ # * TEXT_CLASSIFICATION_MULTI_LABEL
56
+ # * TEXT_EXTRACTION
57
+ # * TEXT_SENTIMENT
58
+ # * VIDEO_CLASSIFICATION
59
+ # * VIDEO_OBJECT_TRACKING
60
+ # @!attribute [r] annotation_spec_count
61
+ # @return [::Integer]
62
+ # Output only. Number of AnnotationSpecs in the context of the SavedQuery.
63
+ # @!attribute [rw] etag
64
+ # @return [::String]
65
+ # Used to perform a consistent read-modify-write update. If not set, a blind
66
+ # "overwrite" update happens.
67
+ # @!attribute [r] support_automl_training
68
+ # @return [::Boolean]
69
+ # Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
70
+ # training.
71
+ class SavedQuery
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -77,6 +77,17 @@ module Google
77
77
  # model_to_upload's resource {::Google::Cloud::AIPlatform::V1::Model#name name} is populated. The Model
78
78
  # is always uploaded into the Project and Location in which this pipeline
79
79
  # is.
80
+ # @!attribute [rw] model_id
81
+ # @return [::String]
82
+ # Optional. The ID to use for the uploaded Model, which will become the final
83
+ # component of the model resource name.
84
+ #
85
+ # This value may be up to 63 characters, and valid characters are
86
+ # `[a-z0-9_-]`. The first character cannot be a number or hyphen.
87
+ # @!attribute [rw] parent_model
88
+ # @return [::String]
89
+ # Optional. When specify this field, the `model_to_upload` will not be uploaded as a
90
+ # new model, instead, it will become a new version of this `parent_model`.
80
91
  # @!attribute [r] state
81
92
  # @return [::Google::Cloud::AIPlatform::V1::PipelineState]
82
93
  # Output only. The detailed state of the pipeline.
@@ -237,6 +248,20 @@ module Google
237
248
  # When used in conjunction with {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}, the Annotations used
238
249
  # for training are filtered by both {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter} and
239
250
  # {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotation_schema_uri annotation_schema_uri}.
251
+ # @!attribute [rw] saved_query_id
252
+ # @return [::String]
253
+ # Only applicable to Datasets that have SavedQueries.
254
+ #
255
+ # The ID of a SavedQuery (annotation set) under the Dataset specified by
256
+ # {::Google::Cloud::AIPlatform::V1::InputDataConfig#dataset_id dataset_id} used for filtering Annotations for training.
257
+ #
258
+ # Only Annotations that are associated with this SavedQuery are used in
259
+ # respectively training. When used in conjunction with
260
+ # {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}, the Annotations used for training are filtered by
261
+ # both {::Google::Cloud::AIPlatform::V1::InputDataConfig#saved_query_id saved_query_id} and {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}.
262
+ #
263
+ # Only one of {::Google::Cloud::AIPlatform::V1::InputDataConfig#saved_query_id saved_query_id} and {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotation_schema_uri annotation_schema_uri} should be
264
+ # specified as both of them represent the same thing: problem type.
240
265
  class InputDataConfig
241
266
  include ::Google::Protobuf::MessageExts
242
267
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Type
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
25
+ #
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
53
+ # @!attribute [rw] expression
54
+ # @return [::String]
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
57
+ # @!attribute [rw] title
58
+ # @return [::String]
59
+ # Optional. Title for the expression, i.e. a short string describing
60
+ # its purpose. This can be used e.g. in UIs which allow to enter the
61
+ # expression.
62
+ # @!attribute [rw] description
63
+ # @return [::String]
64
+ # Optional. Description of the expression. This is a longer text which
65
+ # describes the expression, e.g. when hovered over it in a UI.
66
+ # @!attribute [rw] location
67
+ # @return [::String]
68
+ # Optional. String indicating the location of the expression for error
69
+ # reporting, e.g. a file name and a position in the file.
70
+ class Expr
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+ end
75
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-ai_platform-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-26 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,6 +44,46 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
67
+ - !ruby/object:Gem::Dependency
68
+ name: google-iam-v1
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 2.a
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0.0'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.a
47
87
  - !ruby/object:Gem::Dependency
48
88
  name: google-style
49
89
  requirement: !ruby/object:Gem::Requirement
@@ -316,6 +356,7 @@ files:
316
356
  - lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb
317
357
  - lib/google/cloud/aiplatform/v1/prediction_service_pb.rb
318
358
  - lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb
359
+ - lib/google/cloud/aiplatform/v1/saved_query_pb.rb
319
360
  - lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb
320
361
  - lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb
321
362
  - lib/google/cloud/aiplatform/v1/specialist_pool_service_services_pb.rb
@@ -396,6 +437,7 @@ files:
396
437
  - proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb
397
438
  - proto_docs/google/cloud/aiplatform/v1/pipeline_state.rb
398
439
  - proto_docs/google/cloud/aiplatform/v1/prediction_service.rb
440
+ - proto_docs/google/cloud/aiplatform/v1/saved_query.rb
399
441
  - proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.rb
400
442
  - proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.rb
401
443
  - proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.rb
@@ -456,6 +498,7 @@ files:
456
498
  - proto_docs/google/protobuf/timestamp.rb
457
499
  - proto_docs/google/protobuf/wrappers.rb
458
500
  - proto_docs/google/rpc/status.rb
501
+ - proto_docs/google/type/expr.rb
459
502
  - proto_docs/google/type/money.rb
460
503
  homepage: https://github.com/googleapis/google-cloud-ruby
461
504
  licenses: