google-cloud-ai_platform-v1 0.60.0 → 0.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +43 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +166 -116
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +33 -7
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +38 -14
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +38 -14
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +118 -80
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +38 -12
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +38 -12
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +102 -68
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +31 -14
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -22
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +45 -22
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +182 -128
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +872 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +820 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +31 -6
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +31 -6
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +33 -8
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +33 -8
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +44 -36
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +44 -36
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +294 -212
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +42 -33
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +42 -33
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +270 -194
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +31 -3
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +31 -3
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -19
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +39 -19
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +158 -110
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +41 -17
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +41 -17
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +142 -98
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +35 -13
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +35 -13
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +110 -74
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +43 -16
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +43 -9
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +593 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +564 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +914 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +814 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +862 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4293 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
- data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +31 -8
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +31 -8
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +33 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +33 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +40 -31
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +40 -30
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +247 -176
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +36 -11
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +36 -11
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +94 -62
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +38 -20
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -16
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +33 -16
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +84 -35
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/ai_platform/v1.rb +3 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
- data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
- data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
- data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +101 -0
- data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
- data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +11 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +15 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +42 -8
@@ -166,14 +166,26 @@ module Google
|
|
166
166
|
universe_domain: @config.universe_domain,
|
167
167
|
channel_args: @config.channel_args,
|
168
168
|
interceptors: @config.interceptors,
|
169
|
-
channel_pool_config: @config.channel_pool
|
169
|
+
channel_pool_config: @config.channel_pool,
|
170
|
+
logger: @config.logger
|
170
171
|
)
|
171
172
|
|
173
|
+
@job_service_stub.stub_logger&.info do |entry|
|
174
|
+
entry.set_system_name
|
175
|
+
entry.set_service
|
176
|
+
entry.message = "Created client for #{entry.service}"
|
177
|
+
entry.set_credentials_fields credentials
|
178
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
179
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
180
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
181
|
+
end
|
182
|
+
|
172
183
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
173
184
|
config.credentials = credentials
|
174
185
|
config.quota_project = @quota_project_id
|
175
186
|
config.endpoint = @job_service_stub.endpoint
|
176
187
|
config.universe_domain = @job_service_stub.universe_domain
|
188
|
+
config.logger = @job_service_stub.logger if config.respond_to? :logger=
|
177
189
|
end
|
178
190
|
|
179
191
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -181,6 +193,7 @@ module Google
|
|
181
193
|
config.quota_project = @quota_project_id
|
182
194
|
config.endpoint = @job_service_stub.endpoint
|
183
195
|
config.universe_domain = @job_service_stub.universe_domain
|
196
|
+
config.logger = @job_service_stub.logger if config.respond_to? :logger=
|
184
197
|
end
|
185
198
|
end
|
186
199
|
|
@@ -205,6 +218,15 @@ module Google
|
|
205
218
|
#
|
206
219
|
attr_reader :iam_policy_client
|
207
220
|
|
221
|
+
##
|
222
|
+
# The logger used for request/response debug logging.
|
223
|
+
#
|
224
|
+
# @return [Logger]
|
225
|
+
#
|
226
|
+
def logger
|
227
|
+
@job_service_stub.logger
|
228
|
+
end
|
229
|
+
|
208
230
|
# Service calls
|
209
231
|
|
210
232
|
##
|
@@ -291,7 +313,6 @@ module Google
|
|
291
313
|
|
292
314
|
@job_service_stub.call_rpc :create_custom_job, request, options: options do |response, operation|
|
293
315
|
yield response, operation if block_given?
|
294
|
-
return response
|
295
316
|
end
|
296
317
|
rescue ::GRPC::BadStatus => e
|
297
318
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -379,7 +400,6 @@ module Google
|
|
379
400
|
|
380
401
|
@job_service_stub.call_rpc :get_custom_job, request, options: options do |response, operation|
|
381
402
|
yield response, operation if block_given?
|
382
|
-
return response
|
383
403
|
end
|
384
404
|
rescue ::GRPC::BadStatus => e
|
385
405
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -503,7 +523,7 @@ module Google
|
|
503
523
|
@job_service_stub.call_rpc :list_custom_jobs, request, options: options do |response, operation|
|
504
524
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_custom_jobs, request, response, operation, options
|
505
525
|
yield response, operation if block_given?
|
506
|
-
|
526
|
+
throw :response, response
|
507
527
|
end
|
508
528
|
rescue ::GRPC::BadStatus => e
|
509
529
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +619,7 @@ module Google
|
|
599
619
|
@job_service_stub.call_rpc :delete_custom_job, request, options: options do |response, operation|
|
600
620
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
621
|
yield response, operation if block_given?
|
602
|
-
|
622
|
+
throw :response, response
|
603
623
|
end
|
604
624
|
rescue ::GRPC::BadStatus => e
|
605
625
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -699,7 +719,6 @@ module Google
|
|
699
719
|
|
700
720
|
@job_service_stub.call_rpc :cancel_custom_job, request, options: options do |response, operation|
|
701
721
|
yield response, operation if block_given?
|
702
|
-
return response
|
703
722
|
end
|
704
723
|
rescue ::GRPC::BadStatus => e
|
705
724
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -788,7 +807,6 @@ module Google
|
|
788
807
|
|
789
808
|
@job_service_stub.call_rpc :create_data_labeling_job, request, options: options do |response, operation|
|
790
809
|
yield response, operation if block_given?
|
791
|
-
return response
|
792
810
|
end
|
793
811
|
rescue ::GRPC::BadStatus => e
|
794
812
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -876,7 +894,6 @@ module Google
|
|
876
894
|
|
877
895
|
@job_service_stub.call_rpc :get_data_labeling_job, request, options: options do |response, operation|
|
878
896
|
yield response, operation if block_given?
|
879
|
-
return response
|
880
897
|
end
|
881
898
|
rescue ::GRPC::BadStatus => e
|
882
899
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1002,7 +1019,7 @@ module Google
|
|
1002
1019
|
@job_service_stub.call_rpc :list_data_labeling_jobs, request, options: options do |response, operation|
|
1003
1020
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_data_labeling_jobs, request, response, operation, options
|
1004
1021
|
yield response, operation if block_given?
|
1005
|
-
|
1022
|
+
throw :response, response
|
1006
1023
|
end
|
1007
1024
|
rescue ::GRPC::BadStatus => e
|
1008
1025
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1098,7 +1115,7 @@ module Google
|
|
1098
1115
|
@job_service_stub.call_rpc :delete_data_labeling_job, request, options: options do |response, operation|
|
1099
1116
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1100
1117
|
yield response, operation if block_given?
|
1101
|
-
|
1118
|
+
throw :response, response
|
1102
1119
|
end
|
1103
1120
|
rescue ::GRPC::BadStatus => e
|
1104
1121
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1186,7 +1203,6 @@ module Google
|
|
1186
1203
|
|
1187
1204
|
@job_service_stub.call_rpc :cancel_data_labeling_job, request, options: options do |response, operation|
|
1188
1205
|
yield response, operation if block_given?
|
1189
|
-
return response
|
1190
1206
|
end
|
1191
1207
|
rescue ::GRPC::BadStatus => e
|
1192
1208
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1276,7 +1292,6 @@ module Google
|
|
1276
1292
|
|
1277
1293
|
@job_service_stub.call_rpc :create_hyperparameter_tuning_job, request, options: options do |response, operation|
|
1278
1294
|
yield response, operation if block_given?
|
1279
|
-
return response
|
1280
1295
|
end
|
1281
1296
|
rescue ::GRPC::BadStatus => e
|
1282
1297
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1364,7 +1379,6 @@ module Google
|
|
1364
1379
|
|
1365
1380
|
@job_service_stub.call_rpc :get_hyperparameter_tuning_job, request, options: options do |response, operation|
|
1366
1381
|
yield response, operation if block_given?
|
1367
|
-
return response
|
1368
1382
|
end
|
1369
1383
|
rescue ::GRPC::BadStatus => e
|
1370
1384
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1489,7 +1503,7 @@ module Google
|
|
1489
1503
|
@job_service_stub.call_rpc :list_hyperparameter_tuning_jobs, request, options: options do |response, operation|
|
1490
1504
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_hyperparameter_tuning_jobs, request, response, operation, options
|
1491
1505
|
yield response, operation if block_given?
|
1492
|
-
|
1506
|
+
throw :response, response
|
1493
1507
|
end
|
1494
1508
|
rescue ::GRPC::BadStatus => e
|
1495
1509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1585,7 +1599,7 @@ module Google
|
|
1585
1599
|
@job_service_stub.call_rpc :delete_hyperparameter_tuning_job, request, options: options do |response, operation|
|
1586
1600
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1587
1601
|
yield response, operation if block_given?
|
1588
|
-
|
1602
|
+
throw :response, response
|
1589
1603
|
end
|
1590
1604
|
rescue ::GRPC::BadStatus => e
|
1591
1605
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1686,7 +1700,6 @@ module Google
|
|
1686
1700
|
|
1687
1701
|
@job_service_stub.call_rpc :cancel_hyperparameter_tuning_job, request, options: options do |response, operation|
|
1688
1702
|
yield response, operation if block_given?
|
1689
|
-
return response
|
1690
1703
|
end
|
1691
1704
|
rescue ::GRPC::BadStatus => e
|
1692
1705
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1775,7 +1788,6 @@ module Google
|
|
1775
1788
|
|
1776
1789
|
@job_service_stub.call_rpc :create_nas_job, request, options: options do |response, operation|
|
1777
1790
|
yield response, operation if block_given?
|
1778
|
-
return response
|
1779
1791
|
end
|
1780
1792
|
rescue ::GRPC::BadStatus => e
|
1781
1793
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1863,7 +1875,6 @@ module Google
|
|
1863
1875
|
|
1864
1876
|
@job_service_stub.call_rpc :get_nas_job, request, options: options do |response, operation|
|
1865
1877
|
yield response, operation if block_given?
|
1866
|
-
return response
|
1867
1878
|
end
|
1868
1879
|
rescue ::GRPC::BadStatus => e
|
1869
1880
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1987,7 +1998,7 @@ module Google
|
|
1987
1998
|
@job_service_stub.call_rpc :list_nas_jobs, request, options: options do |response, operation|
|
1988
1999
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_nas_jobs, request, response, operation, options
|
1989
2000
|
yield response, operation if block_given?
|
1990
|
-
|
2001
|
+
throw :response, response
|
1991
2002
|
end
|
1992
2003
|
rescue ::GRPC::BadStatus => e
|
1993
2004
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2083,7 +2094,7 @@ module Google
|
|
2083
2094
|
@job_service_stub.call_rpc :delete_nas_job, request, options: options do |response, operation|
|
2084
2095
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2085
2096
|
yield response, operation if block_given?
|
2086
|
-
|
2097
|
+
throw :response, response
|
2087
2098
|
end
|
2088
2099
|
rescue ::GRPC::BadStatus => e
|
2089
2100
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2183,7 +2194,6 @@ module Google
|
|
2183
2194
|
|
2184
2195
|
@job_service_stub.call_rpc :cancel_nas_job, request, options: options do |response, operation|
|
2185
2196
|
yield response, operation if block_given?
|
2186
|
-
return response
|
2187
2197
|
end
|
2188
2198
|
rescue ::GRPC::BadStatus => e
|
2189
2199
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2271,7 +2281,6 @@ module Google
|
|
2271
2281
|
|
2272
2282
|
@job_service_stub.call_rpc :get_nas_trial_detail, request, options: options do |response, operation|
|
2273
2283
|
yield response, operation if block_given?
|
2274
|
-
return response
|
2275
2284
|
end
|
2276
2285
|
rescue ::GRPC::BadStatus => e
|
2277
2286
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2373,7 +2382,7 @@ module Google
|
|
2373
2382
|
@job_service_stub.call_rpc :list_nas_trial_details, request, options: options do |response, operation|
|
2374
2383
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_nas_trial_details, request, response, operation, options
|
2375
2384
|
yield response, operation if block_given?
|
2376
|
-
|
2385
|
+
throw :response, response
|
2377
2386
|
end
|
2378
2387
|
rescue ::GRPC::BadStatus => e
|
2379
2388
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2463,7 +2472,6 @@ module Google
|
|
2463
2472
|
|
2464
2473
|
@job_service_stub.call_rpc :create_batch_prediction_job, request, options: options do |response, operation|
|
2465
2474
|
yield response, operation if block_given?
|
2466
|
-
return response
|
2467
2475
|
end
|
2468
2476
|
rescue ::GRPC::BadStatus => e
|
2469
2477
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2551,7 +2559,6 @@ module Google
|
|
2551
2559
|
|
2552
2560
|
@job_service_stub.call_rpc :get_batch_prediction_job, request, options: options do |response, operation|
|
2553
2561
|
yield response, operation if block_given?
|
2554
|
-
return response
|
2555
2562
|
end
|
2556
2563
|
rescue ::GRPC::BadStatus => e
|
2557
2564
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2676,7 +2683,7 @@ module Google
|
|
2676
2683
|
@job_service_stub.call_rpc :list_batch_prediction_jobs, request, options: options do |response, operation|
|
2677
2684
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_batch_prediction_jobs, request, response, operation, options
|
2678
2685
|
yield response, operation if block_given?
|
2679
|
-
|
2686
|
+
throw :response, response
|
2680
2687
|
end
|
2681
2688
|
rescue ::GRPC::BadStatus => e
|
2682
2689
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2773,7 +2780,7 @@ module Google
|
|
2773
2780
|
@job_service_stub.call_rpc :delete_batch_prediction_job, request, options: options do |response, operation|
|
2774
2781
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2775
2782
|
yield response, operation if block_given?
|
2776
|
-
|
2783
|
+
throw :response, response
|
2777
2784
|
end
|
2778
2785
|
rescue ::GRPC::BadStatus => e
|
2779
2786
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2872,7 +2879,6 @@ module Google
|
|
2872
2879
|
|
2873
2880
|
@job_service_stub.call_rpc :cancel_batch_prediction_job, request, options: options do |response, operation|
|
2874
2881
|
yield response, operation if block_given?
|
2875
|
-
return response
|
2876
2882
|
end
|
2877
2883
|
rescue ::GRPC::BadStatus => e
|
2878
2884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2962,7 +2968,6 @@ module Google
|
|
2962
2968
|
|
2963
2969
|
@job_service_stub.call_rpc :create_model_deployment_monitoring_job, request, options: options do |response, operation|
|
2964
2970
|
yield response, operation if block_given?
|
2965
|
-
return response
|
2966
2971
|
end
|
2967
2972
|
rescue ::GRPC::BadStatus => e
|
2968
2973
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3077,7 +3082,7 @@ module Google
|
|
3077
3082
|
@job_service_stub.call_rpc :search_model_deployment_monitoring_stats_anomalies, request, options: options do |response, operation|
|
3078
3083
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :search_model_deployment_monitoring_stats_anomalies, request, response, operation, options
|
3079
3084
|
yield response, operation if block_given?
|
3080
|
-
|
3085
|
+
throw :response, response
|
3081
3086
|
end
|
3082
3087
|
rescue ::GRPC::BadStatus => e
|
3083
3088
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3165,7 +3170,6 @@ module Google
|
|
3165
3170
|
|
3166
3171
|
@job_service_stub.call_rpc :get_model_deployment_monitoring_job, request, options: options do |response, operation|
|
3167
3172
|
yield response, operation if block_given?
|
3168
|
-
return response
|
3169
3173
|
end
|
3170
3174
|
rescue ::GRPC::BadStatus => e
|
3171
3175
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3284,7 +3288,7 @@ module Google
|
|
3284
3288
|
@job_service_stub.call_rpc :list_model_deployment_monitoring_jobs, request, options: options do |response, operation|
|
3285
3289
|
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_model_deployment_monitoring_jobs, request, response, operation, options
|
3286
3290
|
yield response, operation if block_given?
|
3287
|
-
|
3291
|
+
throw :response, response
|
3288
3292
|
end
|
3289
3293
|
rescue ::GRPC::BadStatus => e
|
3290
3294
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3406,7 +3410,7 @@ module Google
|
|
3406
3410
|
@job_service_stub.call_rpc :update_model_deployment_monitoring_job, request, options: options do |response, operation|
|
3407
3411
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3408
3412
|
yield response, operation if block_given?
|
3409
|
-
|
3413
|
+
throw :response, response
|
3410
3414
|
end
|
3411
3415
|
rescue ::GRPC::BadStatus => e
|
3412
3416
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3502,7 +3506,7 @@ module Google
|
|
3502
3506
|
@job_service_stub.call_rpc :delete_model_deployment_monitoring_job, request, options: options do |response, operation|
|
3503
3507
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3504
3508
|
yield response, operation if block_given?
|
3505
|
-
|
3509
|
+
throw :response, response
|
3506
3510
|
end
|
3507
3511
|
rescue ::GRPC::BadStatus => e
|
3508
3512
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3593,7 +3597,6 @@ module Google
|
|
3593
3597
|
|
3594
3598
|
@job_service_stub.call_rpc :pause_model_deployment_monitoring_job, request, options: options do |response, operation|
|
3595
3599
|
yield response, operation if block_given?
|
3596
|
-
return response
|
3597
3600
|
end
|
3598
3601
|
rescue ::GRPC::BadStatus => e
|
3599
3602
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3683,7 +3686,6 @@ module Google
|
|
3683
3686
|
|
3684
3687
|
@job_service_stub.call_rpc :resume_model_deployment_monitoring_job, request, options: options do |response, operation|
|
3685
3688
|
yield response, operation if block_given?
|
3686
|
-
return response
|
3687
3689
|
end
|
3688
3690
|
rescue ::GRPC::BadStatus => e
|
3689
3691
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3772,6 +3774,11 @@ module Google
|
|
3772
3774
|
# default endpoint URL. The default value of nil uses the environment
|
3773
3775
|
# universe (usually the default "googleapis.com" universe).
|
3774
3776
|
# @return [::String,nil]
|
3777
|
+
# @!attribute [rw] logger
|
3778
|
+
# A custom logger to use for request/response debug logging, or the value
|
3779
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3780
|
+
# explicitly disable logging.
|
3781
|
+
# @return [::Logger,:default,nil]
|
3775
3782
|
#
|
3776
3783
|
class Configuration
|
3777
3784
|
extend ::Gapic::Config
|
@@ -3796,6 +3803,7 @@ module Google
|
|
3796
3803
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3797
3804
|
config_attr :quota_project, nil, ::String, nil
|
3798
3805
|
config_attr :universe_domain, nil, ::String, nil
|
3806
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
3799
3807
|
|
3800
3808
|
# @private
|
3801
3809
|
def initialize parent_config = nil
|
@@ -213,7 +213,7 @@ module Google
|
|
213
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
214
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
215
215
|
yield response, operation if block_given?
|
216
|
-
|
216
|
+
throw :response, response
|
217
217
|
end
|
218
218
|
rescue ::GRPC::BadStatus => e
|
219
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -309,7 +309,7 @@ module Google
|
|
309
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
310
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
311
311
|
yield response, operation if block_given?
|
312
|
-
|
312
|
+
throw :response, response
|
313
313
|
end
|
314
314
|
rescue ::GRPC::BadStatus => e
|
315
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -398,7 +398,6 @@ module Google
|
|
398
398
|
|
399
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
400
400
|
yield response, operation if block_given?
|
401
|
-
return response
|
402
401
|
end
|
403
402
|
rescue ::GRPC::BadStatus => e
|
404
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -494,7 +493,6 @@ module Google
|
|
494
493
|
|
495
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
496
495
|
yield response, operation if block_given?
|
497
|
-
return response
|
498
496
|
end
|
499
497
|
rescue ::GRPC::BadStatus => e
|
500
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -600,7 +598,7 @@ module Google
|
|
600
598
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
601
599
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
602
600
|
yield response, operation if block_given?
|
603
|
-
|
601
|
+
throw :response, response
|
604
602
|
end
|
605
603
|
rescue ::GRPC::BadStatus => e
|
606
604
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -689,6 +687,11 @@ module Google
|
|
689
687
|
# default endpoint URL. The default value of nil uses the environment
|
690
688
|
# universe (usually the default "googleapis.com" universe).
|
691
689
|
# @return [::String,nil]
|
690
|
+
# @!attribute [rw] logger
|
691
|
+
# A custom logger to use for request/response debug logging, or the value
|
692
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
693
|
+
# explicitly disable logging.
|
694
|
+
# @return [::Logger,:default,nil]
|
692
695
|
#
|
693
696
|
class Configuration
|
694
697
|
extend ::Gapic::Config
|
@@ -713,6 +716,7 @@ module Google
|
|
713
716
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
714
717
|
config_attr :quota_project, nil, ::String, nil
|
715
718
|
config_attr :universe_domain, nil, ::String, nil
|
719
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
716
720
|
|
717
721
|
# @private
|
718
722
|
def initialize parent_config = nil
|