google-cloud-ai_platform-v1 0.5.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 385fa6ee4cbc3d3cf1b5a0191433b8676c488d9185a3117ee9f898f018800749
4
- data.tar.gz: c6f72cd006e7869f50a729dd59e22cfd3537ee5e187f395b390626a8a0702c8d
3
+ metadata.gz: 59a3d37a7fce4cf3caf6b35eb41d7ae112ad5f5aa5f3124fbbd6a926ddc4cf9f
4
+ data.tar.gz: 404f2fa76f03a06ef44483b9aa69d70910aa5d90b038ed9ee64f7f974e0b7986
5
5
  SHA512:
6
- metadata.gz: 776dc3013ea32ec71f47e130e20ac10a6340ad8fa1022a5944623141e9fbf380475f0a776e6b25662861108a3acce193df02547f5f5f17fdb35e155ab394b313
7
- data.tar.gz: c0793cb7fbdd91dde4a2a79d7853d2ab30dfc0682410ea9c4eaac7bba6c45e80d44f4ca5624cabb6014b5d9d90cbc17bba51bfe971d75eb613c9118dc316355a
6
+ metadata.gz: c54d12cc3ce58960fbfbf66bff26d24feb626756063fe9a6583444c02d9bf97ac6d67436b4bc51b50aaac6eb54cb7a64878c0b57c20dea63c109cced35523a34
7
+ data.tar.gz: a05f031abc12a9d9a6b13ced4feb9482f515f681f5ee2e598bd5143aa9304872e93c83b9b1e57f60004ade7766ea4683a53c0d2cde3afa8afb74ba12ff0b478e
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/dataset_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -140,6 +142,18 @@ module Google
140
142
  config.endpoint = @config.endpoint
141
143
  end
142
144
 
145
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
146
+ config.credentials = credentials
147
+ config.quota_project = @quota_project_id
148
+ config.endpoint = @config.endpoint
149
+ end
150
+
151
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ end
156
+
143
157
  @dataset_service_stub = ::Gapic::ServiceStub.new(
144
158
  ::Google::Cloud::AIPlatform::V1::DatasetService::Stub,
145
159
  credentials: credentials,
@@ -156,6 +170,20 @@ module Google
156
170
  #
157
171
  attr_reader :operations_client
158
172
 
173
+ ##
174
+ # Get the associated client for mix-in of the Locations.
175
+ #
176
+ # @return [Google::Cloud::Location::Locations::Client]
177
+ #
178
+ attr_reader :location_client
179
+
180
+ ##
181
+ # Get the associated client for mix-in of the IAMPolicy.
182
+ #
183
+ # @return [Google::Iam::V1::IAMPolicy::Client]
184
+ #
185
+ attr_reader :iam_policy_client
186
+
159
187
  # Service calls
160
188
 
161
189
  ##
@@ -949,6 +977,111 @@ module Google
949
977
  raise ::Google::Cloud::Error.from_error(e)
950
978
  end
951
979
 
980
+ ##
981
+ # Lists SavedQueries in a Dataset.
982
+ #
983
+ # @overload list_saved_queries(request, options = nil)
984
+ # Pass arguments to `list_saved_queries` via a request object, either of type
985
+ # {::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest} or an equivalent Hash.
986
+ #
987
+ # @param request [::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Hash]
988
+ # A request object representing the call parameters. Required. To specify no
989
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
990
+ # @param options [::Gapic::CallOptions, ::Hash]
991
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
992
+ #
993
+ # @overload list_saved_queries(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
994
+ # Pass arguments to `list_saved_queries` via keyword arguments. Note that at
995
+ # least one keyword argument is required. To specify no parameters, or to keep all
996
+ # the default parameter values, pass an empty Hash as a request object (see above).
997
+ #
998
+ # @param parent [::String]
999
+ # Required. The resource name of the Dataset to list SavedQueries from.
1000
+ # Format:
1001
+ # `projects/{project}/locations/{location}/datasets/{dataset}`
1002
+ # @param filter [::String]
1003
+ # The standard list filter.
1004
+ # @param page_size [::Integer]
1005
+ # The standard list page size.
1006
+ # @param page_token [::String]
1007
+ # The standard list page token.
1008
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1009
+ # Mask specifying which fields to read.
1010
+ # @param order_by [::String]
1011
+ # A comma-separated list of fields to order by, sorted in ascending order.
1012
+ # Use "desc" after a field name for descending.
1013
+ #
1014
+ # @yield [response, operation] Access the result along with the RPC operation
1015
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SavedQuery>]
1016
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1017
+ #
1018
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SavedQuery>]
1019
+ #
1020
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1021
+ #
1022
+ # @example Basic example
1023
+ # require "google/cloud/ai_platform/v1"
1024
+ #
1025
+ # # Create a client object. The client can be reused for multiple calls.
1026
+ # client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
1027
+ #
1028
+ # # Create a request. To set request fields, pass in keyword arguments.
1029
+ # request = Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest.new
1030
+ #
1031
+ # # Call the list_saved_queries method.
1032
+ # result = client.list_saved_queries request
1033
+ #
1034
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1035
+ # # iterate over all elements by calling #each, and the enumerable
1036
+ # # will lazily make API calls to fetch subsequent pages. Other
1037
+ # # methods are also available for managing paging directly.
1038
+ # result.each do |response|
1039
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::SavedQuery.
1040
+ # p response
1041
+ # end
1042
+ #
1043
+ def list_saved_queries request, options = nil
1044
+ raise ::ArgumentError, "request must be provided" if request.nil?
1045
+
1046
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest
1047
+
1048
+ # Converts hash and nil to an options object
1049
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1050
+
1051
+ # Customize the options with defaults
1052
+ metadata = @config.rpcs.list_saved_queries.metadata.to_h
1053
+
1054
+ # Set x-goog-api-client and x-goog-user-project headers
1055
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1056
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1057
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1058
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1059
+
1060
+ header_params = {}
1061
+ if request.parent
1062
+ header_params["parent"] = request.parent
1063
+ end
1064
+
1065
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1066
+ metadata[:"x-goog-request-params"] ||= request_params_header
1067
+
1068
+ options.apply_defaults timeout: @config.rpcs.list_saved_queries.timeout,
1069
+ metadata: metadata,
1070
+ retry_policy: @config.rpcs.list_saved_queries.retry_policy
1071
+
1072
+ options.apply_defaults timeout: @config.timeout,
1073
+ metadata: @config.metadata,
1074
+ retry_policy: @config.retry_policy
1075
+
1076
+ @dataset_service_stub.call_rpc :list_saved_queries, request, options: options do |response, operation|
1077
+ response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_saved_queries, request, response, operation, options
1078
+ yield response, operation if block_given?
1079
+ return response
1080
+ end
1081
+ rescue ::GRPC::BadStatus => e
1082
+ raise ::Google::Cloud::Error.from_error(e)
1083
+ end
1084
+
952
1085
  ##
953
1086
  # Gets an AnnotationSpec.
954
1087
  #
@@ -1319,6 +1452,11 @@ module Google
1319
1452
  #
1320
1453
  attr_reader :list_data_items
1321
1454
  ##
1455
+ # RPC-specific configuration for `list_saved_queries`
1456
+ # @return [::Gapic::Config::Method]
1457
+ #
1458
+ attr_reader :list_saved_queries
1459
+ ##
1322
1460
  # RPC-specific configuration for `get_annotation_spec`
1323
1461
  # @return [::Gapic::Config::Method]
1324
1462
  #
@@ -1347,6 +1485,8 @@ module Google
1347
1485
  @export_data = ::Gapic::Config::Method.new export_data_config
1348
1486
  list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
1349
1487
  @list_data_items = ::Gapic::Config::Method.new list_data_items_config
1488
+ list_saved_queries_config = parent_rpcs.list_saved_queries if parent_rpcs.respond_to? :list_saved_queries
1489
+ @list_saved_queries = ::Gapic::Config::Method.new list_saved_queries_config
1350
1490
  get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
1351
1491
  @get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
1352
1492
  list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/endpoint_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @endpoint_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::EndpointService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/featurestore_online_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -133,6 +135,18 @@ module Google
133
135
  @quota_project_id = @config.quota_project
134
136
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
137
 
138
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
139
+ config.credentials = credentials
140
+ config.quota_project = @quota_project_id
141
+ config.endpoint = @config.endpoint
142
+ end
143
+
144
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
136
150
  @featurestore_online_serving_service_stub = ::Gapic::ServiceStub.new(
137
151
  ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Stub,
138
152
  credentials: credentials,
@@ -142,6 +156,20 @@ module Google
142
156
  )
143
157
  end
144
158
 
159
+ ##
160
+ # Get the associated client for mix-in of the Locations.
161
+ #
162
+ # @return [Google::Cloud::Location::Locations::Client]
163
+ #
164
+ attr_reader :location_client
165
+
166
+ ##
167
+ # Get the associated client for mix-in of the IAMPolicy.
168
+ #
169
+ # @return [Google::Iam::V1::IAMPolicy::Client]
170
+ #
171
+ attr_reader :iam_policy_client
172
+
145
173
  # Service calls
146
174
 
147
175
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/featurestore_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @featurestore_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::FeaturestoreService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -520,6 +548,7 @@ module Google
520
548
  #
521
549
  # * `labels`
522
550
  # * `online_serving_config.fixed_node_count`
551
+ # * `online_serving_config.scaling`
523
552
  #
524
553
  # @yield [response, operation] Access the result along with the RPC operation
525
554
  # @yieldparam response [::Gapic::Operation]
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/index_endpoint_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @index_endpoint_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/index_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @index_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::IndexService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/job_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @job_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::JobService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/metadata_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -139,6 +141,18 @@ module Google
139
141
  config.endpoint = @config.endpoint
140
142
  end
141
143
 
144
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ end
149
+
150
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
142
156
  @metadata_service_stub = ::Gapic::ServiceStub.new(
143
157
  ::Google::Cloud::AIPlatform::V1::MetadataService::Stub,
144
158
  credentials: credentials,
@@ -155,6 +169,20 @@ module Google
155
169
  #
156
170
  attr_reader :operations_client
157
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
179
+ ##
180
+ # Get the associated client for mix-in of the IAMPolicy.
181
+ #
182
+ # @return [Google::Iam::V1::IAMPolicy::Client]
183
+ #
184
+ attr_reader :iam_policy_client
185
+
158
186
  # Service calls
159
187
 
160
188
  ##
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/aiplatform/v1/migration_service_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1/iam_policy"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -140,6 +142,18 @@ module Google
140
142
  config.endpoint = @config.endpoint
141
143
  end
142
144
 
145
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
146
+ config.credentials = credentials
147
+ config.quota_project = @quota_project_id
148
+ config.endpoint = @config.endpoint
149
+ end
150
+
151
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ end
156
+
143
157
  @migration_service_stub = ::Gapic::ServiceStub.new(
144
158
  ::Google::Cloud::AIPlatform::V1::MigrationService::Stub,
145
159
  credentials: credentials,
@@ -156,6 +170,20 @@ module Google
156
170
  #
157
171
  attr_reader :operations_client
158
172
 
173
+ ##
174
+ # Get the associated client for mix-in of the Locations.
175
+ #
176
+ # @return [Google::Cloud::Location::Locations::Client]
177
+ #
178
+ attr_reader :location_client
179
+
180
+ ##
181
+ # Get the associated client for mix-in of the IAMPolicy.
182
+ #
183
+ # @return [Google::Iam::V1::IAMPolicy::Client]
184
+ #
185
+ attr_reader :iam_policy_client
186
+
159
187
  # Service calls
160
188
 
161
189
  ##