google-cloud-ai_platform-v1 0.59.0 → 0.61.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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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_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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -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 +29 -14
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +29 -7
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
- 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 +49 -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 +49 -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 +49 -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 +49 -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 +49 -35
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/notebook_execution_job_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +15 -1
- metadata +5 -5
@@ -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
|
+
@featurestore_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 = @featurestore_service_stub.endpoint
|
176
187
|
config.universe_domain = @featurestore_service_stub.universe_domain
|
188
|
+
config.logger = @featurestore_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 = @featurestore_service_stub.endpoint
|
183
195
|
config.universe_domain = @featurestore_service_stub.universe_domain
|
196
|
+
config.logger = @featurestore_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
|
+
@featurestore_service_stub.logger
|
228
|
+
end
|
229
|
+
|
208
230
|
# Service calls
|
209
231
|
|
210
232
|
##
|
@@ -307,7 +329,7 @@ module Google
|
|
307
329
|
@featurestore_service_stub.call_rpc :create_featurestore, request, options: options do |response, operation|
|
308
330
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
309
331
|
yield response, operation if block_given?
|
310
|
-
|
332
|
+
throw :response, response
|
311
333
|
end
|
312
334
|
rescue ::GRPC::BadStatus => e
|
313
335
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -393,7 +415,6 @@ module Google
|
|
393
415
|
|
394
416
|
@featurestore_service_stub.call_rpc :get_featurestore, request, options: options do |response, operation|
|
395
417
|
yield response, operation if block_given?
|
396
|
-
return response
|
397
418
|
end
|
398
419
|
rescue ::GRPC::BadStatus => e
|
399
420
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -529,7 +550,7 @@ module Google
|
|
529
550
|
@featurestore_service_stub.call_rpc :list_featurestores, request, options: options do |response, operation|
|
530
551
|
response = ::Gapic::PagedEnumerable.new @featurestore_service_stub, :list_featurestores, request, response, operation, options
|
531
552
|
yield response, operation if block_given?
|
532
|
-
|
553
|
+
throw :response, response
|
533
554
|
end
|
534
555
|
rescue ::GRPC::BadStatus => e
|
535
556
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -640,7 +661,7 @@ module Google
|
|
640
661
|
@featurestore_service_stub.call_rpc :update_featurestore, request, options: options do |response, operation|
|
641
662
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
642
663
|
yield response, operation if block_given?
|
643
|
-
|
664
|
+
throw :response, response
|
644
665
|
end
|
645
666
|
rescue ::GRPC::BadStatus => e
|
646
667
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -741,7 +762,7 @@ module Google
|
|
741
762
|
@featurestore_service_stub.call_rpc :delete_featurestore, request, options: options do |response, operation|
|
742
763
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
743
764
|
yield response, operation if block_given?
|
744
|
-
|
765
|
+
throw :response, response
|
745
766
|
end
|
746
767
|
rescue ::GRPC::BadStatus => e
|
747
768
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -847,7 +868,7 @@ module Google
|
|
847
868
|
@featurestore_service_stub.call_rpc :create_entity_type, request, options: options do |response, operation|
|
848
869
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
849
870
|
yield response, operation if block_given?
|
850
|
-
|
871
|
+
throw :response, response
|
851
872
|
end
|
852
873
|
rescue ::GRPC::BadStatus => e
|
853
874
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -935,7 +956,6 @@ module Google
|
|
935
956
|
|
936
957
|
@featurestore_service_stub.call_rpc :get_entity_type, request, options: options do |response, operation|
|
937
958
|
yield response, operation if block_given?
|
938
|
-
return response
|
939
959
|
end
|
940
960
|
rescue ::GRPC::BadStatus => e
|
941
961
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1071,7 +1091,7 @@ module Google
|
|
1071
1091
|
@featurestore_service_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
|
1072
1092
|
response = ::Gapic::PagedEnumerable.new @featurestore_service_stub, :list_entity_types, request, response, operation, options
|
1073
1093
|
yield response, operation if block_given?
|
1074
|
-
|
1094
|
+
throw :response, response
|
1075
1095
|
end
|
1076
1096
|
rescue ::GRPC::BadStatus => e
|
1077
1097
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1180,7 +1200,6 @@ module Google
|
|
1180
1200
|
|
1181
1201
|
@featurestore_service_stub.call_rpc :update_entity_type, request, options: options do |response, operation|
|
1182
1202
|
yield response, operation if block_given?
|
1183
|
-
return response
|
1184
1203
|
end
|
1185
1204
|
rescue ::GRPC::BadStatus => e
|
1186
1205
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1280,7 +1299,7 @@ module Google
|
|
1280
1299
|
@featurestore_service_stub.call_rpc :delete_entity_type, request, options: options do |response, operation|
|
1281
1300
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1282
1301
|
yield response, operation if block_given?
|
1283
|
-
|
1302
|
+
throw :response, response
|
1284
1303
|
end
|
1285
1304
|
rescue ::GRPC::BadStatus => e
|
1286
1305
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1388,7 +1407,7 @@ module Google
|
|
1388
1407
|
@featurestore_service_stub.call_rpc :create_feature, request, options: options do |response, operation|
|
1389
1408
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1390
1409
|
yield response, operation if block_given?
|
1391
|
-
|
1410
|
+
throw :response, response
|
1392
1411
|
end
|
1393
1412
|
rescue ::GRPC::BadStatus => e
|
1394
1413
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1491,7 +1510,7 @@ module Google
|
|
1491
1510
|
@featurestore_service_stub.call_rpc :batch_create_features, request, options: options do |response, operation|
|
1492
1511
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1493
1512
|
yield response, operation if block_given?
|
1494
|
-
|
1513
|
+
throw :response, response
|
1495
1514
|
end
|
1496
1515
|
rescue ::GRPC::BadStatus => e
|
1497
1516
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1581,7 +1600,6 @@ module Google
|
|
1581
1600
|
|
1582
1601
|
@featurestore_service_stub.call_rpc :get_feature, request, options: options do |response, operation|
|
1583
1602
|
yield response, operation if block_given?
|
1584
|
-
return response
|
1585
1603
|
end
|
1586
1604
|
rescue ::GRPC::BadStatus => e
|
1587
1605
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1733,7 +1751,7 @@ module Google
|
|
1733
1751
|
@featurestore_service_stub.call_rpc :list_features, request, options: options do |response, operation|
|
1734
1752
|
response = ::Gapic::PagedEnumerable.new @featurestore_service_stub, :list_features, request, response, operation, options
|
1735
1753
|
yield response, operation if block_given?
|
1736
|
-
|
1754
|
+
throw :response, response
|
1737
1755
|
end
|
1738
1756
|
rescue ::GRPC::BadStatus => e
|
1739
1757
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1838,7 +1856,6 @@ module Google
|
|
1838
1856
|
|
1839
1857
|
@featurestore_service_stub.call_rpc :update_feature, request, options: options do |response, operation|
|
1840
1858
|
yield response, operation if block_given?
|
1841
|
-
return response
|
1842
1859
|
end
|
1843
1860
|
rescue ::GRPC::BadStatus => e
|
1844
1861
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1935,7 +1952,7 @@ module Google
|
|
1935
1952
|
@featurestore_service_stub.call_rpc :delete_feature, request, options: options do |response, operation|
|
1936
1953
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1937
1954
|
yield response, operation if block_given?
|
1938
|
-
|
1955
|
+
throw :response, response
|
1939
1956
|
end
|
1940
1957
|
rescue ::GRPC::BadStatus => e
|
1941
1958
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2079,7 +2096,7 @@ module Google
|
|
2079
2096
|
@featurestore_service_stub.call_rpc :import_feature_values, request, options: options do |response, operation|
|
2080
2097
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2081
2098
|
yield response, operation if block_given?
|
2082
|
-
|
2099
|
+
throw :response, response
|
2083
2100
|
end
|
2084
2101
|
rescue ::GRPC::BadStatus => e
|
2085
2102
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2224,7 +2241,7 @@ module Google
|
|
2224
2241
|
@featurestore_service_stub.call_rpc :batch_read_feature_values, request, options: options do |response, operation|
|
2225
2242
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2226
2243
|
yield response, operation if block_given?
|
2227
|
-
|
2244
|
+
throw :response, response
|
2228
2245
|
end
|
2229
2246
|
rescue ::GRPC::BadStatus => e
|
2230
2247
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2332,7 +2349,7 @@ module Google
|
|
2332
2349
|
@featurestore_service_stub.call_rpc :export_feature_values, request, options: options do |response, operation|
|
2333
2350
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2334
2351
|
yield response, operation if block_given?
|
2335
|
-
|
2352
|
+
throw :response, response
|
2336
2353
|
end
|
2337
2354
|
rescue ::GRPC::BadStatus => e
|
2338
2355
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2442,7 +2459,7 @@ module Google
|
|
2442
2459
|
@featurestore_service_stub.call_rpc :delete_feature_values, request, options: options do |response, operation|
|
2443
2460
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2444
2461
|
yield response, operation if block_given?
|
2445
|
-
|
2462
|
+
throw :response, response
|
2446
2463
|
end
|
2447
2464
|
rescue ::GRPC::BadStatus => e
|
2448
2465
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2609,7 +2626,7 @@ module Google
|
|
2609
2626
|
@featurestore_service_stub.call_rpc :search_features, request, options: options do |response, operation|
|
2610
2627
|
response = ::Gapic::PagedEnumerable.new @featurestore_service_stub, :search_features, request, response, operation, options
|
2611
2628
|
yield response, operation if block_given?
|
2612
|
-
|
2629
|
+
throw :response, response
|
2613
2630
|
end
|
2614
2631
|
rescue ::GRPC::BadStatus => e
|
2615
2632
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2698,6 +2715,11 @@ module Google
|
|
2698
2715
|
# default endpoint URL. The default value of nil uses the environment
|
2699
2716
|
# universe (usually the default "googleapis.com" universe).
|
2700
2717
|
# @return [::String,nil]
|
2718
|
+
# @!attribute [rw] logger
|
2719
|
+
# A custom logger to use for request/response debug logging, or the value
|
2720
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2721
|
+
# explicitly disable logging.
|
2722
|
+
# @return [::Logger,:default,nil]
|
2701
2723
|
#
|
2702
2724
|
class Configuration
|
2703
2725
|
extend ::Gapic::Config
|
@@ -2722,6 +2744,7 @@ module Google
|
|
2722
2744
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2723
2745
|
config_attr :quota_project, nil, ::String, nil
|
2724
2746
|
config_attr :universe_domain, nil, ::String, nil
|
2747
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2725
2748
|
|
2726
2749
|
# @private
|
2727
2750
|
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
|
@@ -159,15 +159,27 @@ module Google
|
|
159
159
|
endpoint: @config.endpoint,
|
160
160
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
161
161
|
universe_domain: @config.universe_domain,
|
162
|
-
credentials: credentials
|
162
|
+
credentials: credentials,
|
163
|
+
logger: @config.logger
|
163
164
|
)
|
164
165
|
|
166
|
+
@featurestore_service_stub.logger(stub: true)&.info do |entry|
|
167
|
+
entry.set_system_name
|
168
|
+
entry.set_service
|
169
|
+
entry.message = "Created client for #{entry.service}"
|
170
|
+
entry.set_credentials_fields credentials
|
171
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
172
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
173
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
174
|
+
end
|
175
|
+
|
165
176
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
166
177
|
config.credentials = credentials
|
167
178
|
config.quota_project = @quota_project_id
|
168
179
|
config.endpoint = @featurestore_service_stub.endpoint
|
169
180
|
config.universe_domain = @featurestore_service_stub.universe_domain
|
170
181
|
config.bindings_override = @config.bindings_override
|
182
|
+
config.logger = @featurestore_service_stub.logger if config.respond_to? :logger=
|
171
183
|
end
|
172
184
|
|
173
185
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -176,6 +188,7 @@ module Google
|
|
176
188
|
config.endpoint = @featurestore_service_stub.endpoint
|
177
189
|
config.universe_domain = @featurestore_service_stub.universe_domain
|
178
190
|
config.bindings_override = @config.bindings_override
|
191
|
+
config.logger = @featurestore_service_stub.logger if config.respond_to? :logger=
|
179
192
|
end
|
180
193
|
end
|
181
194
|
|
@@ -200,6 +213,15 @@ module Google
|
|
200
213
|
#
|
201
214
|
attr_reader :iam_policy_client
|
202
215
|
|
216
|
+
##
|
217
|
+
# The logger used for request/response debug logging.
|
218
|
+
#
|
219
|
+
# @return [Logger]
|
220
|
+
#
|
221
|
+
def logger
|
222
|
+
@featurestore_service_stub.logger
|
223
|
+
end
|
224
|
+
|
203
225
|
# Service calls
|
204
226
|
|
205
227
|
##
|
@@ -295,7 +317,7 @@ module Google
|
|
295
317
|
@featurestore_service_stub.create_featurestore request, options do |result, operation|
|
296
318
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
297
319
|
yield result, operation if block_given?
|
298
|
-
|
320
|
+
throw :response, result
|
299
321
|
end
|
300
322
|
rescue ::Gapic::Rest::Error => e
|
301
323
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -374,7 +396,6 @@ module Google
|
|
374
396
|
|
375
397
|
@featurestore_service_stub.get_featurestore request, options do |result, operation|
|
376
398
|
yield result, operation if block_given?
|
377
|
-
return result
|
378
399
|
end
|
379
400
|
rescue ::Gapic::Rest::Error => e
|
380
401
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -503,7 +524,7 @@ module Google
|
|
503
524
|
@featurestore_service_stub.list_featurestores request, options do |result, operation|
|
504
525
|
result = ::Gapic::Rest::PagedEnumerable.new @featurestore_service_stub, :list_featurestores, "featurestores", request, result, options
|
505
526
|
yield result, operation if block_given?
|
506
|
-
|
527
|
+
throw :response, result
|
507
528
|
end
|
508
529
|
rescue ::Gapic::Rest::Error => e
|
509
530
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -607,7 +628,7 @@ module Google
|
|
607
628
|
@featurestore_service_stub.update_featurestore request, options do |result, operation|
|
608
629
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
609
630
|
yield result, operation if block_given?
|
610
|
-
|
631
|
+
throw :response, result
|
611
632
|
end
|
612
633
|
rescue ::Gapic::Rest::Error => e
|
613
634
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -701,7 +722,7 @@ module Google
|
|
701
722
|
@featurestore_service_stub.delete_featurestore request, options do |result, operation|
|
702
723
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
703
724
|
yield result, operation if block_given?
|
704
|
-
|
725
|
+
throw :response, result
|
705
726
|
end
|
706
727
|
rescue ::Gapic::Rest::Error => e
|
707
728
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -800,7 +821,7 @@ module Google
|
|
800
821
|
@featurestore_service_stub.create_entity_type request, options do |result, operation|
|
801
822
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
802
823
|
yield result, operation if block_given?
|
803
|
-
|
824
|
+
throw :response, result
|
804
825
|
end
|
805
826
|
rescue ::Gapic::Rest::Error => e
|
806
827
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -881,7 +902,6 @@ module Google
|
|
881
902
|
|
882
903
|
@featurestore_service_stub.get_entity_type request, options do |result, operation|
|
883
904
|
yield result, operation if block_given?
|
884
|
-
return result
|
885
905
|
end
|
886
906
|
rescue ::Gapic::Rest::Error => e
|
887
907
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1010,7 +1030,7 @@ module Google
|
|
1010
1030
|
@featurestore_service_stub.list_entity_types request, options do |result, operation|
|
1011
1031
|
result = ::Gapic::Rest::PagedEnumerable.new @featurestore_service_stub, :list_entity_types, "entity_types", request, result, options
|
1012
1032
|
yield result, operation if block_given?
|
1013
|
-
|
1033
|
+
throw :response, result
|
1014
1034
|
end
|
1015
1035
|
rescue ::Gapic::Rest::Error => e
|
1016
1036
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1112,7 +1132,6 @@ module Google
|
|
1112
1132
|
|
1113
1133
|
@featurestore_service_stub.update_entity_type request, options do |result, operation|
|
1114
1134
|
yield result, operation if block_given?
|
1115
|
-
return result
|
1116
1135
|
end
|
1117
1136
|
rescue ::Gapic::Rest::Error => e
|
1118
1137
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1205,7 +1224,7 @@ module Google
|
|
1205
1224
|
@featurestore_service_stub.delete_entity_type request, options do |result, operation|
|
1206
1225
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1207
1226
|
yield result, operation if block_given?
|
1208
|
-
|
1227
|
+
throw :response, result
|
1209
1228
|
end
|
1210
1229
|
rescue ::Gapic::Rest::Error => e
|
1211
1230
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1306,7 +1325,7 @@ module Google
|
|
1306
1325
|
@featurestore_service_stub.create_feature request, options do |result, operation|
|
1307
1326
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1308
1327
|
yield result, operation if block_given?
|
1309
|
-
|
1328
|
+
throw :response, result
|
1310
1329
|
end
|
1311
1330
|
rescue ::Gapic::Rest::Error => e
|
1312
1331
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1402,7 +1421,7 @@ module Google
|
|
1402
1421
|
@featurestore_service_stub.batch_create_features request, options do |result, operation|
|
1403
1422
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1404
1423
|
yield result, operation if block_given?
|
1405
|
-
|
1424
|
+
throw :response, result
|
1406
1425
|
end
|
1407
1426
|
rescue ::Gapic::Rest::Error => e
|
1408
1427
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1485,7 +1504,6 @@ module Google
|
|
1485
1504
|
|
1486
1505
|
@featurestore_service_stub.get_feature request, options do |result, operation|
|
1487
1506
|
yield result, operation if block_given?
|
1488
|
-
return result
|
1489
1507
|
end
|
1490
1508
|
rescue ::Gapic::Rest::Error => e
|
1491
1509
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1630,7 +1648,7 @@ module Google
|
|
1630
1648
|
@featurestore_service_stub.list_features request, options do |result, operation|
|
1631
1649
|
result = ::Gapic::Rest::PagedEnumerable.new @featurestore_service_stub, :list_features, "features", request, result, options
|
1632
1650
|
yield result, operation if block_given?
|
1633
|
-
|
1651
|
+
throw :response, result
|
1634
1652
|
end
|
1635
1653
|
rescue ::Gapic::Rest::Error => e
|
1636
1654
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1728,7 +1746,6 @@ module Google
|
|
1728
1746
|
|
1729
1747
|
@featurestore_service_stub.update_feature request, options do |result, operation|
|
1730
1748
|
yield result, operation if block_given?
|
1731
|
-
return result
|
1732
1749
|
end
|
1733
1750
|
rescue ::Gapic::Rest::Error => e
|
1734
1751
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1818,7 +1835,7 @@ module Google
|
|
1818
1835
|
@featurestore_service_stub.delete_feature request, options do |result, operation|
|
1819
1836
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1820
1837
|
yield result, operation if block_given?
|
1821
|
-
|
1838
|
+
throw :response, result
|
1822
1839
|
end
|
1823
1840
|
rescue ::Gapic::Rest::Error => e
|
1824
1841
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1955,7 +1972,7 @@ module Google
|
|
1955
1972
|
@featurestore_service_stub.import_feature_values request, options do |result, operation|
|
1956
1973
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1957
1974
|
yield result, operation if block_given?
|
1958
|
-
|
1975
|
+
throw :response, result
|
1959
1976
|
end
|
1960
1977
|
rescue ::Gapic::Rest::Error => e
|
1961
1978
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2093,7 +2110,7 @@ module Google
|
|
2093
2110
|
@featurestore_service_stub.batch_read_feature_values request, options do |result, operation|
|
2094
2111
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2095
2112
|
yield result, operation if block_given?
|
2096
|
-
|
2113
|
+
throw :response, result
|
2097
2114
|
end
|
2098
2115
|
rescue ::Gapic::Rest::Error => e
|
2099
2116
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2194,7 +2211,7 @@ module Google
|
|
2194
2211
|
@featurestore_service_stub.export_feature_values request, options do |result, operation|
|
2195
2212
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2196
2213
|
yield result, operation if block_given?
|
2197
|
-
|
2214
|
+
throw :response, result
|
2198
2215
|
end
|
2199
2216
|
rescue ::Gapic::Rest::Error => e
|
2200
2217
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2297,7 +2314,7 @@ module Google
|
|
2297
2314
|
@featurestore_service_stub.delete_feature_values request, options do |result, operation|
|
2298
2315
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2299
2316
|
yield result, operation if block_given?
|
2300
|
-
|
2317
|
+
throw :response, result
|
2301
2318
|
end
|
2302
2319
|
rescue ::Gapic::Rest::Error => e
|
2303
2320
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2457,7 +2474,7 @@ module Google
|
|
2457
2474
|
@featurestore_service_stub.search_features request, options do |result, operation|
|
2458
2475
|
result = ::Gapic::Rest::PagedEnumerable.new @featurestore_service_stub, :search_features, "features", request, result, options
|
2459
2476
|
yield result, operation if block_given?
|
2460
|
-
|
2477
|
+
throw :response, result
|
2461
2478
|
end
|
2462
2479
|
rescue ::Gapic::Rest::Error => e
|
2463
2480
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2537,6 +2554,11 @@ module Google
|
|
2537
2554
|
# default endpoint URL. The default value of nil uses the environment
|
2538
2555
|
# universe (usually the default "googleapis.com" universe).
|
2539
2556
|
# @return [::String,nil]
|
2557
|
+
# @!attribute [rw] logger
|
2558
|
+
# A custom logger to use for request/response debug logging, or the value
|
2559
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
2560
|
+
# explicitly disable logging.
|
2561
|
+
# @return [::Logger,:default,nil]
|
2540
2562
|
#
|
2541
2563
|
class Configuration
|
2542
2564
|
extend ::Gapic::Config
|
@@ -2565,6 +2587,7 @@ module Google
|
|
2565
2587
|
# by the host service.
|
2566
2588
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
2567
2589
|
config_attr :bindings_override, {}, ::Hash, nil
|
2590
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
2568
2591
|
|
2569
2592
|
# @private
|
2570
2593
|
def initialize parent_config = nil
|