google-cloud-ai_platform-v1 0.60.0 → 0.61.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -20
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +9 -5
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +43 -20
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +49 -35
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +166 -116
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +34 -7
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +9 -5
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +33 -7
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +49 -35
  12. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +62 -38
  13. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +36 -10
  14. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +9 -5
  15. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +36 -10
  16. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +49 -35
  17. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +86 -56
  18. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +29 -2
  19. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +29 -2
  20. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/service_stub.rb +22 -8
  21. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +38 -14
  22. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +9 -5
  23. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +38 -14
  24. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +49 -35
  25. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +118 -80
  26. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +29 -3
  27. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +29 -3
  28. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +30 -14
  29. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +38 -12
  30. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +9 -5
  31. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +38 -12
  32. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +49 -35
  33. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +102 -68
  34. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +29 -4
  35. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +29 -3
  36. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +31 -14
  37. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -22
  38. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +9 -5
  39. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +45 -22
  40. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +49 -35
  41. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +182 -128
  42. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +31 -6
  43. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +9 -5
  44. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +31 -6
  45. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +49 -35
  46. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +54 -32
  47. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +35 -9
  48. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +9 -5
  49. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +35 -9
  50. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +49 -35
  51. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +78 -50
  52. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +33 -8
  53. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +9 -5
  54. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +33 -8
  55. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +49 -35
  56. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +70 -44
  57. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +44 -36
  58. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +9 -5
  59. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +44 -36
  60. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +49 -35
  61. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +294 -212
  62. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +29 -3
  63. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +29 -3
  64. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +30 -14
  65. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +29 -3
  66. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +29 -3
  67. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +30 -14
  68. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +42 -33
  69. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +9 -5
  70. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +42 -33
  71. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +49 -35
  72. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +270 -194
  73. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +31 -3
  74. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +9 -5
  75. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +31 -3
  76. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +49 -35
  77. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +30 -14
  78. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +29 -2
  79. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +29 -2
  80. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +22 -8
  81. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -19
  82. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +9 -5
  83. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +39 -19
  84. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +49 -35
  85. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +158 -110
  86. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +41 -17
  87. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +9 -5
  88. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +41 -17
  89. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +49 -35
  90. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +142 -98
  91. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +34 -7
  92. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +9 -5
  93. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +34 -7
  94. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +49 -35
  95. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +62 -38
  96. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +35 -13
  97. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +9 -5
  98. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +35 -13
  99. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +49 -35
  100. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +110 -74
  101. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +29 -14
  102. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +29 -7
  103. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
  104. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +31 -8
  105. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +9 -5
  106. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +31 -8
  107. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +49 -35
  108. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +70 -44
  109. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +33 -6
  110. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +9 -5
  111. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +33 -6
  112. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +49 -35
  113. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +54 -32
  114. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +40 -31
  115. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +9 -5
  116. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +40 -30
  117. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +49 -35
  118. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +247 -176
  119. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  120. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +36 -11
  121. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +9 -5
  122. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +36 -11
  123. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +49 -35
  124. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +94 -62
  125. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +29 -4
  126. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +29 -4
  127. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +38 -20
  128. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -16
  129. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +9 -5
  130. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +33 -16
  131. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +49 -35
  132. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
  133. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  134. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  135. metadata +4 -4
@@ -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
+ @metadata_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 = @metadata_service_stub.endpoint
176
187
  config.universe_domain = @metadata_service_stub.universe_domain
188
+ config.logger = @metadata_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 = @metadata_service_stub.endpoint
183
195
  config.universe_domain = @metadata_service_stub.universe_domain
196
+ config.logger = @metadata_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
+ @metadata_service_stub.logger
228
+ end
229
+
208
230
  # Service calls
209
231
 
210
232
  ##
@@ -308,7 +330,7 @@ module Google
308
330
  @metadata_service_stub.call_rpc :create_metadata_store, request, options: options do |response, operation|
309
331
  response = ::Gapic::Operation.new response, @operations_client, options: options
310
332
  yield response, operation if block_given?
311
- return response
333
+ throw :response, response
312
334
  end
313
335
  rescue ::GRPC::BadStatus => e
314
336
  raise ::Google::Cloud::Error.from_error(e)
@@ -396,7 +418,6 @@ module Google
396
418
 
397
419
  @metadata_service_stub.call_rpc :get_metadata_store, request, options: options do |response, operation|
398
420
  yield response, operation if block_given?
399
- return response
400
421
  end
401
422
  rescue ::GRPC::BadStatus => e
402
423
  raise ::Google::Cloud::Error.from_error(e)
@@ -501,7 +522,7 @@ module Google
501
522
  @metadata_service_stub.call_rpc :list_metadata_stores, request, options: options do |response, operation|
502
523
  response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_metadata_stores, request, response, operation, options
503
524
  yield response, operation if block_given?
504
- return response
525
+ throw :response, response
505
526
  end
506
527
  rescue ::GRPC::BadStatus => e
507
528
  raise ::Google::Cloud::Error.from_error(e)
@@ -600,7 +621,7 @@ module Google
600
621
  @metadata_service_stub.call_rpc :delete_metadata_store, request, options: options do |response, operation|
601
622
  response = ::Gapic::Operation.new response, @operations_client, options: options
602
623
  yield response, operation if block_given?
603
- return response
624
+ throw :response, response
604
625
  end
605
626
  rescue ::GRPC::BadStatus => e
606
627
  raise ::Google::Cloud::Error.from_error(e)
@@ -699,7 +720,6 @@ module Google
699
720
 
700
721
  @metadata_service_stub.call_rpc :create_artifact, request, options: options do |response, operation|
701
722
  yield response, operation if block_given?
702
- return response
703
723
  end
704
724
  rescue ::GRPC::BadStatus => e
705
725
  raise ::Google::Cloud::Error.from_error(e)
@@ -787,7 +807,6 @@ module Google
787
807
 
788
808
  @metadata_service_stub.call_rpc :get_artifact, request, options: options do |response, operation|
789
809
  yield response, operation if block_given?
790
- return response
791
810
  end
792
811
  rescue ::GRPC::BadStatus => e
793
812
  raise ::Google::Cloud::Error.from_error(e)
@@ -930,7 +949,7 @@ module Google
930
949
  @metadata_service_stub.call_rpc :list_artifacts, request, options: options do |response, operation|
931
950
  response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_artifacts, request, response, operation, options
932
951
  yield response, operation if block_given?
933
- return response
952
+ throw :response, response
934
953
  end
935
954
  rescue ::GRPC::BadStatus => e
936
955
  raise ::Google::Cloud::Error.from_error(e)
@@ -1025,7 +1044,6 @@ module Google
1025
1044
 
1026
1045
  @metadata_service_stub.call_rpc :update_artifact, request, options: options do |response, operation|
1027
1046
  yield response, operation if block_given?
1028
- return response
1029
1047
  end
1030
1048
  rescue ::GRPC::BadStatus => e
1031
1049
  raise ::Google::Cloud::Error.from_error(e)
@@ -1125,7 +1143,7 @@ module Google
1125
1143
  @metadata_service_stub.call_rpc :delete_artifact, request, options: options do |response, operation|
1126
1144
  response = ::Gapic::Operation.new response, @operations_client, options: options
1127
1145
  yield response, operation if block_given?
1128
- return response
1146
+ throw :response, response
1129
1147
  end
1130
1148
  rescue ::GRPC::BadStatus => e
1131
1149
  raise ::Google::Cloud::Error.from_error(e)
@@ -1228,7 +1246,7 @@ module Google
1228
1246
  @metadata_service_stub.call_rpc :purge_artifacts, request, options: options do |response, operation|
1229
1247
  response = ::Gapic::Operation.new response, @operations_client, options: options
1230
1248
  yield response, operation if block_given?
1231
- return response
1249
+ throw :response, response
1232
1250
  end
1233
1251
  rescue ::GRPC::BadStatus => e
1234
1252
  raise ::Google::Cloud::Error.from_error(e)
@@ -1326,7 +1344,6 @@ module Google
1326
1344
 
1327
1345
  @metadata_service_stub.call_rpc :create_context, request, options: options do |response, operation|
1328
1346
  yield response, operation if block_given?
1329
- return response
1330
1347
  end
1331
1348
  rescue ::GRPC::BadStatus => e
1332
1349
  raise ::Google::Cloud::Error.from_error(e)
@@ -1414,7 +1431,6 @@ module Google
1414
1431
 
1415
1432
  @metadata_service_stub.call_rpc :get_context, request, options: options do |response, operation|
1416
1433
  yield response, operation if block_given?
1417
- return response
1418
1434
  end
1419
1435
  rescue ::GRPC::BadStatus => e
1420
1436
  raise ::Google::Cloud::Error.from_error(e)
@@ -1561,7 +1577,7 @@ module Google
1561
1577
  @metadata_service_stub.call_rpc :list_contexts, request, options: options do |response, operation|
1562
1578
  response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_contexts, request, response, operation, options
1563
1579
  yield response, operation if block_given?
1564
- return response
1580
+ throw :response, response
1565
1581
  end
1566
1582
  rescue ::GRPC::BadStatus => e
1567
1583
  raise ::Google::Cloud::Error.from_error(e)
@@ -1655,7 +1671,6 @@ module Google
1655
1671
 
1656
1672
  @metadata_service_stub.call_rpc :update_context, request, options: options do |response, operation|
1657
1673
  yield response, operation if block_given?
1658
- return response
1659
1674
  end
1660
1675
  rescue ::GRPC::BadStatus => e
1661
1676
  raise ::Google::Cloud::Error.from_error(e)
@@ -1758,7 +1773,7 @@ module Google
1758
1773
  @metadata_service_stub.call_rpc :delete_context, request, options: options do |response, operation|
1759
1774
  response = ::Gapic::Operation.new response, @operations_client, options: options
1760
1775
  yield response, operation if block_given?
1761
- return response
1776
+ throw :response, response
1762
1777
  end
1763
1778
  rescue ::GRPC::BadStatus => e
1764
1779
  raise ::Google::Cloud::Error.from_error(e)
@@ -1861,7 +1876,7 @@ module Google
1861
1876
  @metadata_service_stub.call_rpc :purge_contexts, request, options: options do |response, operation|
1862
1877
  response = ::Gapic::Operation.new response, @operations_client, options: options
1863
1878
  yield response, operation if block_given?
1864
- return response
1879
+ throw :response, response
1865
1880
  end
1866
1881
  rescue ::GRPC::BadStatus => e
1867
1882
  raise ::Google::Cloud::Error.from_error(e)
@@ -1962,7 +1977,6 @@ module Google
1962
1977
 
1963
1978
  @metadata_service_stub.call_rpc :add_context_artifacts_and_executions, request, options: options do |response, operation|
1964
1979
  yield response, operation if block_given?
1965
- return response
1966
1980
  end
1967
1981
  rescue ::GRPC::BadStatus => e
1968
1982
  raise ::Google::Cloud::Error.from_error(e)
@@ -2057,7 +2071,6 @@ module Google
2057
2071
 
2058
2072
  @metadata_service_stub.call_rpc :add_context_children, request, options: options do |response, operation|
2059
2073
  yield response, operation if block_given?
2060
- return response
2061
2074
  end
2062
2075
  rescue ::GRPC::BadStatus => e
2063
2076
  raise ::Google::Cloud::Error.from_error(e)
@@ -2150,7 +2163,6 @@ module Google
2150
2163
 
2151
2164
  @metadata_service_stub.call_rpc :remove_context_children, request, options: options do |response, operation|
2152
2165
  yield response, operation if block_given?
2153
- return response
2154
2166
  end
2155
2167
  rescue ::GRPC::BadStatus => e
2156
2168
  raise ::Google::Cloud::Error.from_error(e)
@@ -2244,7 +2256,6 @@ module Google
2244
2256
 
2245
2257
  @metadata_service_stub.call_rpc :query_context_lineage_subgraph, request, options: options do |response, operation|
2246
2258
  yield response, operation if block_given?
2247
- return response
2248
2259
  end
2249
2260
  rescue ::GRPC::BadStatus => e
2250
2261
  raise ::Google::Cloud::Error.from_error(e)
@@ -2344,7 +2355,6 @@ module Google
2344
2355
 
2345
2356
  @metadata_service_stub.call_rpc :create_execution, request, options: options do |response, operation|
2346
2357
  yield response, operation if block_given?
2347
- return response
2348
2358
  end
2349
2359
  rescue ::GRPC::BadStatus => e
2350
2360
  raise ::Google::Cloud::Error.from_error(e)
@@ -2432,7 +2442,6 @@ module Google
2432
2442
 
2433
2443
  @metadata_service_stub.call_rpc :get_execution, request, options: options do |response, operation|
2434
2444
  yield response, operation if block_given?
2435
- return response
2436
2445
  end
2437
2446
  rescue ::GRPC::BadStatus => e
2438
2447
  raise ::Google::Cloud::Error.from_error(e)
@@ -2575,7 +2584,7 @@ module Google
2575
2584
  @metadata_service_stub.call_rpc :list_executions, request, options: options do |response, operation|
2576
2585
  response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_executions, request, response, operation, options
2577
2586
  yield response, operation if block_given?
2578
- return response
2587
+ throw :response, response
2579
2588
  end
2580
2589
  rescue ::GRPC::BadStatus => e
2581
2590
  raise ::Google::Cloud::Error.from_error(e)
@@ -2670,7 +2679,6 @@ module Google
2670
2679
 
2671
2680
  @metadata_service_stub.call_rpc :update_execution, request, options: options do |response, operation|
2672
2681
  yield response, operation if block_given?
2673
- return response
2674
2682
  end
2675
2683
  rescue ::GRPC::BadStatus => e
2676
2684
  raise ::Google::Cloud::Error.from_error(e)
@@ -2770,7 +2778,7 @@ module Google
2770
2778
  @metadata_service_stub.call_rpc :delete_execution, request, options: options do |response, operation|
2771
2779
  response = ::Gapic::Operation.new response, @operations_client, options: options
2772
2780
  yield response, operation if block_given?
2773
- return response
2781
+ throw :response, response
2774
2782
  end
2775
2783
  rescue ::GRPC::BadStatus => e
2776
2784
  raise ::Google::Cloud::Error.from_error(e)
@@ -2873,7 +2881,7 @@ module Google
2873
2881
  @metadata_service_stub.call_rpc :purge_executions, request, options: options do |response, operation|
2874
2882
  response = ::Gapic::Operation.new response, @operations_client, options: options
2875
2883
  yield response, operation if block_given?
2876
- return response
2884
+ throw :response, response
2877
2885
  end
2878
2886
  rescue ::GRPC::BadStatus => e
2879
2887
  raise ::Google::Cloud::Error.from_error(e)
@@ -2967,7 +2975,6 @@ module Google
2967
2975
 
2968
2976
  @metadata_service_stub.call_rpc :add_execution_events, request, options: options do |response, operation|
2969
2977
  yield response, operation if block_given?
2970
- return response
2971
2978
  end
2972
2979
  rescue ::GRPC::BadStatus => e
2973
2980
  raise ::Google::Cloud::Error.from_error(e)
@@ -3057,7 +3064,6 @@ module Google
3057
3064
 
3058
3065
  @metadata_service_stub.call_rpc :query_execution_inputs_and_outputs, request, options: options do |response, operation|
3059
3066
  yield response, operation if block_given?
3060
- return response
3061
3067
  end
3062
3068
  rescue ::GRPC::BadStatus => e
3063
3069
  raise ::Google::Cloud::Error.from_error(e)
@@ -3156,7 +3162,6 @@ module Google
3156
3162
 
3157
3163
  @metadata_service_stub.call_rpc :create_metadata_schema, request, options: options do |response, operation|
3158
3164
  yield response, operation if block_given?
3159
- return response
3160
3165
  end
3161
3166
  rescue ::GRPC::BadStatus => e
3162
3167
  raise ::Google::Cloud::Error.from_error(e)
@@ -3244,7 +3249,6 @@ module Google
3244
3249
 
3245
3250
  @metadata_service_stub.call_rpc :get_metadata_schema, request, options: options do |response, operation|
3246
3251
  yield response, operation if block_given?
3247
- return response
3248
3252
  end
3249
3253
  rescue ::GRPC::BadStatus => e
3250
3254
  raise ::Google::Cloud::Error.from_error(e)
@@ -3351,7 +3355,7 @@ module Google
3351
3355
  @metadata_service_stub.call_rpc :list_metadata_schemas, request, options: options do |response, operation|
3352
3356
  response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_metadata_schemas, request, response, operation, options
3353
3357
  yield response, operation if block_given?
3354
- return response
3358
+ throw :response, response
3355
3359
  end
3356
3360
  rescue ::GRPC::BadStatus => e
3357
3361
  raise ::Google::Cloud::Error.from_error(e)
@@ -3476,7 +3480,6 @@ module Google
3476
3480
 
3477
3481
  @metadata_service_stub.call_rpc :query_artifact_lineage_subgraph, request, options: options do |response, operation|
3478
3482
  yield response, operation if block_given?
3479
- return response
3480
3483
  end
3481
3484
  rescue ::GRPC::BadStatus => e
3482
3485
  raise ::Google::Cloud::Error.from_error(e)
@@ -3565,6 +3568,11 @@ module Google
3565
3568
  # default endpoint URL. The default value of nil uses the environment
3566
3569
  # universe (usually the default "googleapis.com" universe).
3567
3570
  # @return [::String,nil]
3571
+ # @!attribute [rw] logger
3572
+ # A custom logger to use for request/response debug logging, or the value
3573
+ # `:default` (the default) to construct a default logger, or `nil` to
3574
+ # explicitly disable logging.
3575
+ # @return [::Logger,:default,nil]
3568
3576
  #
3569
3577
  class Configuration
3570
3578
  extend ::Gapic::Config
@@ -3589,6 +3597,7 @@ module Google
3589
3597
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3590
3598
  config_attr :quota_project, nil, ::String, nil
3591
3599
  config_attr :universe_domain, nil, ::String, nil
3600
+ config_attr :logger, :default, ::Logger, nil, :default
3592
3601
 
3593
3602
  # @private
3594
3603
  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
- return response
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
- return response
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
- return response
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