google-cloud-ai_platform-v1 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +38 -48
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +14 -16
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +32 -28
  6. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +14 -16
  7. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +8 -8
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +179 -74
  9. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +14 -16
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +26 -28
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +14 -16
  12. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +18 -20
  13. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +14 -16
  14. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +62 -78
  15. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +14 -16
  16. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +54 -64
  17. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +14 -16
  18. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +10 -12
  19. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +14 -16
  20. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +137 -48
  21. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +14 -16
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +18 -22
  23. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +14 -16
  24. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +2 -2
  25. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +18 -20
  26. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +14 -16
  27. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +52 -62
  28. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +14 -16
  29. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  30. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +19 -23
  31. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +14 -16
  32. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
  33. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
  34. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
  35. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
  36. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
  37. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
  38. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
  39. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
  40. data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
  41. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
  42. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
  43. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
  44. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
  45. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
  46. data/lib/google/cloud/aiplatform/v1/model_pb.rb +2 -0
  47. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +11 -0
  48. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +5 -2
  49. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
  50. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
  51. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
  52. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
  53. data/proto_docs/google/api/client.rb +57 -3
  54. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
  56. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +5 -1
  58. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +10 -4
  59. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
  62. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +129 -4
  63. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +11 -1
  64. data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
  65. data/proto_docs/google/cloud/aiplatform/v1/model.rb +24 -11
  66. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
  67. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +25 -0
  69. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
  70. data/proto_docs/google/type/interval.rb +45 -0
  71. metadata +15 -11
@@ -44,6 +44,12 @@ module Google
44
44
  # @!attribute [r] create_time
45
45
  # @return [::Google::Protobuf::Timestamp]
46
46
  # Output only. Timestamp when this ModelEvaluationSlice was created.
47
+ # @!attribute [r] model_explanation
48
+ # @return [::Google::Cloud::AIPlatform::V1::ModelExplanation]
49
+ # Output only. Aggregated explanation metrics for the Model's prediction
50
+ # output over the data this ModelEvaluation uses. This field is populated
51
+ # only if the Model is evaluated with explanations, and only for tabular
52
+ # Models.
47
53
  class ModelEvaluationSlice
48
54
  include ::Google::Protobuf::MessageExts
49
55
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -58,12 +64,137 @@ module Google
58
64
  # {::Google::Cloud::AIPlatform::V1::AnnotationSpec#display_name AnnotationSpec.display_name}
59
65
  # equals to
60
66
  # {::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice#value value}.
67
+ # * `slice`: This slice is a user customized slice defined by its
68
+ # SliceSpec.
61
69
  # @!attribute [r] value
62
70
  # @return [::String]
63
71
  # Output only. The value of the dimension in this slice.
72
+ # @!attribute [r] slice_spec
73
+ # @return [::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice::SliceSpec]
74
+ # Output only. Specification for how the data was sliced.
64
75
  class Slice
65
76
  include ::Google::Protobuf::MessageExts
66
77
  extend ::Google::Protobuf::MessageExts::ClassMethods
78
+
79
+ # Specification for how the data should be sliced.
80
+ # @!attribute [rw] configs
81
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice::SliceSpec::SliceConfig}]
82
+ # Mapping configuration for this SliceSpec.
83
+ # The key is the name of the feature.
84
+ # By default, the key will be prefixed by "instance" as a dictionary
85
+ # prefix for Vertex Batch Predictions output format.
86
+ class SliceSpec
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+
90
+ # Specification message containing the config for this SliceSpec.
91
+ # When `kind` is selected as `value` and/or `range`, only a single slice
92
+ # will be computed.
93
+ # When `all_values` is present, a separate slice will be computed for
94
+ # each possible label/value for the corresponding key in `config`.
95
+ # Examples, with feature zip_code with values 12345, 23334, 88888 and
96
+ # feature country with values "US", "Canada", "Mexico" in the dataset:
97
+ #
98
+ # Example 1:
99
+ #
100
+ # {
101
+ # "zip_code": { "value": { "float_value": 12345.0 } }
102
+ # }
103
+ #
104
+ # A single slice for any data with zip_code 12345 in the dataset.
105
+ #
106
+ # Example 2:
107
+ #
108
+ # {
109
+ # "zip_code": { "range": { "low": 12345, "high": 20000 } }
110
+ # }
111
+ #
112
+ # A single slice containing data where the zip_codes between 12345 and
113
+ # 20000 For this example, data with the zip_code of 12345 will be in this
114
+ # slice.
115
+ #
116
+ # Example 3:
117
+ #
118
+ # {
119
+ # "zip_code": { "range": { "low": 10000, "high": 20000 } },
120
+ # "country": { "value": { "string_value": "US" } }
121
+ # }
122
+ #
123
+ # A single slice containing data where the zip_codes between 10000 and
124
+ # 20000 has the country "US". For this example, data with the zip_code of
125
+ # 12345 and country "US" will be in this slice.
126
+ #
127
+ # Example 4:
128
+ #
129
+ # { "country": {"all_values": { "value": true } } }
130
+ #
131
+ # Three slices are computed, one for each unique country in the dataset.
132
+ #
133
+ # Example 5:
134
+ #
135
+ # {
136
+ # "country": { "all_values": { "value": true } },
137
+ # "zip_code": { "value": { "float_value": 12345.0 } }
138
+ # }
139
+ #
140
+ # Three slices are computed, one for each unique country in the dataset
141
+ # where the zip_code is also 12345. For this example, data with zip_code
142
+ # 12345 and country "US" will be in one slice, zip_code 12345 and country
143
+ # "Canada" in another slice, and zip_code 12345 and country "Mexico" in
144
+ # another slice, totaling 3 slices.
145
+ # @!attribute [rw] value
146
+ # @return [::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice::SliceSpec::Value]
147
+ # A unique specific value for a given feature.
148
+ # Example: `{ "value": { "string_value": "12345" } }`
149
+ # @!attribute [rw] range
150
+ # @return [::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice::SliceSpec::Range]
151
+ # A range of values for a numerical feature.
152
+ # Example: `{"range":{"low":10000.0,"high":50000.0}}`
153
+ # will capture 12345 and 23334 in the slice.
154
+ # @!attribute [rw] all_values
155
+ # @return [::Google::Protobuf::BoolValue]
156
+ # If all_values is set to true, then all possible labels of the keyed
157
+ # feature will have another slice computed.
158
+ # Example: `{"all_values":{"value":true}}`
159
+ class SliceConfig
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+
164
+ # A range of values for slice(s).
165
+ # `low` is inclusive, `high` is exclusive.
166
+ # @!attribute [rw] low
167
+ # @return [::Float]
168
+ # Inclusive low value for the range.
169
+ # @!attribute [rw] high
170
+ # @return [::Float]
171
+ # Exclusive high value for the range.
172
+ class Range
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # Single value that supports strings and floats.
178
+ # @!attribute [rw] string_value
179
+ # @return [::String]
180
+ # String type.
181
+ # @!attribute [rw] float_value
182
+ # @return [::Float]
183
+ # Float type.
184
+ class Value
185
+ include ::Google::Protobuf::MessageExts
186
+ extend ::Google::Protobuf::MessageExts::ClassMethods
187
+ end
188
+
189
+ # @!attribute [rw] key
190
+ # @return [::String]
191
+ # @!attribute [rw] value
192
+ # @return [::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice::Slice::SliceSpec::SliceConfig]
193
+ class ConfigsEntry
194
+ include ::Google::Protobuf::MessageExts
195
+ extend ::Google::Protobuf::MessageExts::ClassMethods
196
+ end
197
+ end
67
198
  end
68
199
  end
69
200
  end
@@ -500,6 +500,31 @@ module Google
500
500
  extend ::Google::Protobuf::MessageExts::ClassMethods
501
501
  end
502
502
 
503
+ # Request message for
504
+ # {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_evaluated_annotations ModelService.BatchImportEvaluatedAnnotations}
505
+ # @!attribute [rw] parent
506
+ # @return [::String]
507
+ # Required. The name of the parent ModelEvaluationSlice resource.
508
+ # Format:
509
+ # `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
510
+ # @!attribute [rw] evaluated_annotations
511
+ # @return [::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation>]
512
+ # Required. Evaluated annotations resource to be imported.
513
+ class BatchImportEvaluatedAnnotationsRequest
514
+ include ::Google::Protobuf::MessageExts
515
+ extend ::Google::Protobuf::MessageExts::ClassMethods
516
+ end
517
+
518
+ # Response message for
519
+ # {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_evaluated_annotations ModelService.BatchImportEvaluatedAnnotations}
520
+ # @!attribute [r] imported_evaluated_annotations_count
521
+ # @return [::Integer]
522
+ # Output only. Number of EvaluatedAnnotations imported.
523
+ class BatchImportEvaluatedAnnotationsResponse
524
+ include ::Google::Protobuf::MessageExts
525
+ extend ::Google::Protobuf::MessageExts::ClassMethods
526
+ end
527
+
503
528
  # Request message for
504
529
  # {::Google::Cloud::AIPlatform::V1::ModelService::Client#get_model_evaluation ModelService.GetModelEvaluation}.
505
530
  # @!attribute [rw] name
@@ -58,7 +58,8 @@ module Google
58
58
  extend ::Google::Protobuf::MessageExts::ClassMethods
59
59
  end
60
60
 
61
- # Response message for [TensorboardService.GetTensorboardUsage][].
61
+ # Response message for
62
+ # {::Google::Cloud::AIPlatform::V1::TensorboardService::Client#read_tensorboard_usage TensorboardService.ReadTensorboardUsage}.
62
63
  # @!attribute [rw] monthly_usage_data
63
64
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse::PerMonthUsageData}]
64
65
  # Maps year-month (YYYYMM) string to per month usage data.
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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 time interval, encoded as a Timestamp start (inclusive) and a
23
+ # Timestamp end (exclusive).
24
+ #
25
+ # The start must be less than or equal to the end.
26
+ # When the start equals the end, the interval is empty (matches no time).
27
+ # When both start and end are unspecified, the interval matches any time.
28
+ # @!attribute [rw] start_time
29
+ # @return [::Google::Protobuf::Timestamp]
30
+ # Optional. Inclusive start of the interval.
31
+ #
32
+ # If specified, a Timestamp matching this interval will have to be the same
33
+ # or after the start.
34
+ # @!attribute [rw] end_time
35
+ # @return [::Google::Protobuf::Timestamp]
36
+ # Optional. Exclusive end of the interval.
37
+ #
38
+ # If specified, a Timestamp matching this interval will have to be before the
39
+ # end.
40
+ class Interval
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+ end
45
+ 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.19.0
4
+ version: 0.21.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: 2023-02-13 00:00:00.000000000 Z
11
+ date: 2023-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 0.18.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.16.0
29
+ version: 0.18.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.3'
53
+ version: '0.4'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.3'
63
+ version: '0.4'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -70,7 +70,7 @@ dependencies:
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: '0.3'
73
+ version: '0.4'
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.a
@@ -80,7 +80,7 @@ dependencies:
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '0.3'
83
+ version: '0.4'
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
86
  version: 2.a
@@ -90,14 +90,14 @@ dependencies:
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: 1.26.1
93
+ version: 1.26.3
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: 1.26.1
100
+ version: 1.26.3
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: minitest
103
103
  requirement: !ruby/object:Gem::Requirement
@@ -307,6 +307,7 @@ files:
307
307
  - lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb
308
308
  - lib/google/cloud/aiplatform/v1/entity_type_pb.rb
309
309
  - lib/google/cloud/aiplatform/v1/env_var_pb.rb
310
+ - lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb
310
311
  - lib/google/cloud/aiplatform/v1/event_pb.rb
311
312
  - lib/google/cloud/aiplatform/v1/execution_pb.rb
312
313
  - lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb
@@ -402,6 +403,7 @@ files:
402
403
  - proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb
403
404
  - proto_docs/google/cloud/aiplatform/v1/entity_type.rb
404
405
  - proto_docs/google/cloud/aiplatform/v1/env_var.rb
406
+ - proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb
405
407
  - proto_docs/google/cloud/aiplatform/v1/event.rb
406
408
  - proto_docs/google/cloud/aiplatform/v1/execution.rb
407
409
  - proto_docs/google/cloud/aiplatform/v1/explanation.rb
@@ -505,6 +507,7 @@ files:
505
507
  - proto_docs/google/protobuf/wrappers.rb
506
508
  - proto_docs/google/rpc/status.rb
507
509
  - proto_docs/google/type/expr.rb
510
+ - proto_docs/google/type/interval.rb
508
511
  - proto_docs/google/type/money.rb
509
512
  homepage: https://github.com/googleapis/google-cloud-ruby
510
513
  licenses:
@@ -528,5 +531,6 @@ requirements: []
528
531
  rubygems_version: 3.4.2
529
532
  signing_key:
530
533
  specification_version: 4
531
- summary: API Client library for the Vertex AI V1 API
534
+ summary: Train high-quality custom machine learning models with minimal machine learning
535
+ expertise and effort.
532
536
  test_files: []