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.
Files changed (181) 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 +84 -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 +84 -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 +84 -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 +84 -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 +84 -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 +84 -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_cache_service/client.rb +872 -0
  43. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
  44. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
  45. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +820 -0
  46. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
  47. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
  48. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
  49. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +31 -6
  50. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +9 -5
  51. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +31 -6
  52. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +84 -35
  53. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +54 -32
  54. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +35 -9
  55. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +9 -5
  56. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +35 -9
  57. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +84 -35
  58. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +78 -50
  59. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +33 -8
  60. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +9 -5
  61. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +33 -8
  62. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +84 -35
  63. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +70 -44
  64. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +44 -36
  65. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +9 -5
  66. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +44 -36
  67. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +84 -35
  68. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +294 -212
  69. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +29 -3
  70. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +29 -3
  71. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +30 -14
  72. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +29 -3
  73. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +29 -3
  74. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +30 -14
  75. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +42 -33
  76. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +9 -5
  77. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +42 -33
  78. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +84 -35
  79. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +270 -194
  80. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +31 -3
  81. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +9 -5
  82. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +31 -3
  83. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +84 -35
  84. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +30 -14
  85. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +29 -2
  86. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +29 -2
  87. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +22 -8
  88. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -19
  89. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +9 -5
  90. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +39 -19
  91. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +84 -35
  92. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +158 -110
  93. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +41 -17
  94. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +9 -5
  95. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +41 -17
  96. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +84 -35
  97. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +142 -98
  98. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +34 -7
  99. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +9 -5
  100. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +34 -7
  101. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +84 -35
  102. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +62 -38
  103. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +35 -13
  104. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +9 -5
  105. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +35 -13
  106. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +84 -35
  107. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +110 -74
  108. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +43 -16
  109. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  110. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +43 -9
  111. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
  112. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +593 -0
  113. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
  114. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
  115. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +564 -0
  116. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
  117. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
  118. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
  119. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +914 -0
  120. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
  121. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +814 -0
  122. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
  123. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +862 -0
  124. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4293 -0
  125. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
  126. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
  127. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
  128. data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
  129. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +31 -8
  130. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +9 -5
  131. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +31 -8
  132. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +84 -35
  133. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +70 -44
  134. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +33 -6
  135. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +9 -5
  136. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +33 -6
  137. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +84 -35
  138. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +54 -32
  139. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +40 -31
  140. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +9 -5
  141. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +40 -30
  142. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +84 -35
  143. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +247 -176
  144. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  145. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +36 -11
  146. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +9 -5
  147. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +36 -11
  148. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +84 -35
  149. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +94 -62
  150. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +29 -4
  151. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +29 -4
  152. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +38 -20
  153. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -16
  154. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +9 -5
  155. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +33 -16
  156. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +84 -35
  157. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
  158. data/lib/google/cloud/ai_platform/v1.rb +3 -0
  159. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  160. data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
  161. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
  162. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
  163. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
  164. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  165. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
  166. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
  167. data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
  168. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
  169. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
  170. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  171. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  172. data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +101 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
  174. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
  175. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +11 -0
  176. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +15 -0
  180. data/proto_docs/google/type/latlng.rb +38 -0
  181. metadata +42 -8
@@ -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
+ @tensorboard_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 = @tensorboard_service_stub.endpoint
169
180
  config.universe_domain = @tensorboard_service_stub.universe_domain
170
181
  config.bindings_override = @config.bindings_override
182
+ config.logger = @tensorboard_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 = @tensorboard_service_stub.endpoint
177
189
  config.universe_domain = @tensorboard_service_stub.universe_domain
178
190
  config.bindings_override = @config.bindings_override
191
+ config.logger = @tensorboard_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
+ @tensorboard_service_stub.logger
223
+ end
224
+
203
225
  # Service calls
204
226
 
205
227
  ##
@@ -286,7 +308,7 @@ module Google
286
308
  @tensorboard_service_stub.create_tensorboard request, options do |result, operation|
287
309
  result = ::Gapic::Operation.new result, @operations_client, options: options
288
310
  yield result, operation if block_given?
289
- return result
311
+ throw :response, result
290
312
  end
291
313
  rescue ::Gapic::Rest::Error => e
292
314
  raise ::Google::Cloud::Error.from_error(e)
@@ -367,7 +389,6 @@ module Google
367
389
 
368
390
  @tensorboard_service_stub.get_tensorboard request, options do |result, operation|
369
391
  yield result, operation if block_given?
370
- return result
371
392
  end
372
393
  rescue ::Gapic::Rest::Error => e
373
394
  raise ::Google::Cloud::Error.from_error(e)
@@ -463,7 +484,7 @@ module Google
463
484
  @tensorboard_service_stub.update_tensorboard request, options do |result, operation|
464
485
  result = ::Gapic::Operation.new result, @operations_client, options: options
465
486
  yield result, operation if block_given?
466
- return result
487
+ throw :response, result
467
488
  end
468
489
  rescue ::Gapic::Rest::Error => e
469
490
  raise ::Google::Cloud::Error.from_error(e)
@@ -568,7 +589,7 @@ module Google
568
589
  @tensorboard_service_stub.list_tensorboards request, options do |result, operation|
569
590
  result = ::Gapic::Rest::PagedEnumerable.new @tensorboard_service_stub, :list_tensorboards, "tensorboards", request, result, options
570
591
  yield result, operation if block_given?
571
- return result
592
+ throw :response, result
572
593
  end
573
594
  rescue ::Gapic::Rest::Error => e
574
595
  raise ::Google::Cloud::Error.from_error(e)
@@ -657,7 +678,7 @@ module Google
657
678
  @tensorboard_service_stub.delete_tensorboard request, options do |result, operation|
658
679
  result = ::Gapic::Operation.new result, @operations_client, options: options
659
680
  yield result, operation if block_given?
660
- return result
681
+ throw :response, result
661
682
  end
662
683
  rescue ::Gapic::Rest::Error => e
663
684
  raise ::Google::Cloud::Error.from_error(e)
@@ -738,7 +759,6 @@ module Google
738
759
 
739
760
  @tensorboard_service_stub.read_tensorboard_usage request, options do |result, operation|
740
761
  yield result, operation if block_given?
741
- return result
742
762
  end
743
763
  rescue ::Gapic::Rest::Error => e
744
764
  raise ::Google::Cloud::Error.from_error(e)
@@ -819,7 +839,6 @@ module Google
819
839
 
820
840
  @tensorboard_service_stub.read_tensorboard_size request, options do |result, operation|
821
841
  yield result, operation if block_given?
822
- return result
823
842
  end
824
843
  rescue ::Gapic::Rest::Error => e
825
844
  raise ::Google::Cloud::Error.from_error(e)
@@ -908,7 +927,6 @@ module Google
908
927
 
909
928
  @tensorboard_service_stub.create_tensorboard_experiment request, options do |result, operation|
910
929
  yield result, operation if block_given?
911
- return result
912
930
  end
913
931
  rescue ::Gapic::Rest::Error => e
914
932
  raise ::Google::Cloud::Error.from_error(e)
@@ -989,7 +1007,6 @@ module Google
989
1007
 
990
1008
  @tensorboard_service_stub.get_tensorboard_experiment request, options do |result, operation|
991
1009
  yield result, operation if block_given?
992
- return result
993
1010
  end
994
1011
  rescue ::Gapic::Rest::Error => e
995
1012
  raise ::Google::Cloud::Error.from_error(e)
@@ -1077,7 +1094,6 @@ module Google
1077
1094
 
1078
1095
  @tensorboard_service_stub.update_tensorboard_experiment request, options do |result, operation|
1079
1096
  yield result, operation if block_given?
1080
- return result
1081
1097
  end
1082
1098
  rescue ::Gapic::Rest::Error => e
1083
1099
  raise ::Google::Cloud::Error.from_error(e)
@@ -1182,7 +1198,7 @@ module Google
1182
1198
  @tensorboard_service_stub.list_tensorboard_experiments request, options do |result, operation|
1183
1199
  result = ::Gapic::Rest::PagedEnumerable.new @tensorboard_service_stub, :list_tensorboard_experiments, "tensorboard_experiments", request, result, options
1184
1200
  yield result, operation if block_given?
1185
- return result
1201
+ throw :response, result
1186
1202
  end
1187
1203
  rescue ::Gapic::Rest::Error => e
1188
1204
  raise ::Google::Cloud::Error.from_error(e)
@@ -1271,7 +1287,7 @@ module Google
1271
1287
  @tensorboard_service_stub.delete_tensorboard_experiment request, options do |result, operation|
1272
1288
  result = ::Gapic::Operation.new result, @operations_client, options: options
1273
1289
  yield result, operation if block_given?
1274
- return result
1290
+ throw :response, result
1275
1291
  end
1276
1292
  rescue ::Gapic::Rest::Error => e
1277
1293
  raise ::Google::Cloud::Error.from_error(e)
@@ -1360,7 +1376,6 @@ module Google
1360
1376
 
1361
1377
  @tensorboard_service_stub.create_tensorboard_run request, options do |result, operation|
1362
1378
  yield result, operation if block_given?
1363
- return result
1364
1379
  end
1365
1380
  rescue ::Gapic::Rest::Error => e
1366
1381
  raise ::Google::Cloud::Error.from_error(e)
@@ -1446,7 +1461,6 @@ module Google
1446
1461
 
1447
1462
  @tensorboard_service_stub.batch_create_tensorboard_runs request, options do |result, operation|
1448
1463
  yield result, operation if block_given?
1449
- return result
1450
1464
  end
1451
1465
  rescue ::Gapic::Rest::Error => e
1452
1466
  raise ::Google::Cloud::Error.from_error(e)
@@ -1527,7 +1541,6 @@ module Google
1527
1541
 
1528
1542
  @tensorboard_service_stub.get_tensorboard_run request, options do |result, operation|
1529
1543
  yield result, operation if block_given?
1530
- return result
1531
1544
  end
1532
1545
  rescue ::Gapic::Rest::Error => e
1533
1546
  raise ::Google::Cloud::Error.from_error(e)
@@ -1615,7 +1628,6 @@ module Google
1615
1628
 
1616
1629
  @tensorboard_service_stub.update_tensorboard_run request, options do |result, operation|
1617
1630
  yield result, operation if block_given?
1618
- return result
1619
1631
  end
1620
1632
  rescue ::Gapic::Rest::Error => e
1621
1633
  raise ::Google::Cloud::Error.from_error(e)
@@ -1720,7 +1732,7 @@ module Google
1720
1732
  @tensorboard_service_stub.list_tensorboard_runs request, options do |result, operation|
1721
1733
  result = ::Gapic::Rest::PagedEnumerable.new @tensorboard_service_stub, :list_tensorboard_runs, "tensorboard_runs", request, result, options
1722
1734
  yield result, operation if block_given?
1723
- return result
1735
+ throw :response, result
1724
1736
  end
1725
1737
  rescue ::Gapic::Rest::Error => e
1726
1738
  raise ::Google::Cloud::Error.from_error(e)
@@ -1809,7 +1821,7 @@ module Google
1809
1821
  @tensorboard_service_stub.delete_tensorboard_run request, options do |result, operation|
1810
1822
  result = ::Gapic::Operation.new result, @operations_client, options: options
1811
1823
  yield result, operation if block_given?
1812
- return result
1824
+ throw :response, result
1813
1825
  end
1814
1826
  rescue ::Gapic::Rest::Error => e
1815
1827
  raise ::Google::Cloud::Error.from_error(e)
@@ -1897,7 +1909,6 @@ module Google
1897
1909
 
1898
1910
  @tensorboard_service_stub.batch_create_tensorboard_time_series request, options do |result, operation|
1899
1911
  yield result, operation if block_given?
1900
- return result
1901
1912
  end
1902
1913
  rescue ::Gapic::Rest::Error => e
1903
1914
  raise ::Google::Cloud::Error.from_error(e)
@@ -1986,7 +1997,6 @@ module Google
1986
1997
 
1987
1998
  @tensorboard_service_stub.create_tensorboard_time_series request, options do |result, operation|
1988
1999
  yield result, operation if block_given?
1989
- return result
1990
2000
  end
1991
2001
  rescue ::Gapic::Rest::Error => e
1992
2002
  raise ::Google::Cloud::Error.from_error(e)
@@ -2067,7 +2077,6 @@ module Google
2067
2077
 
2068
2078
  @tensorboard_service_stub.get_tensorboard_time_series request, options do |result, operation|
2069
2079
  yield result, operation if block_given?
2070
- return result
2071
2080
  end
2072
2081
  rescue ::Gapic::Rest::Error => e
2073
2082
  raise ::Google::Cloud::Error.from_error(e)
@@ -2156,7 +2165,6 @@ module Google
2156
2165
 
2157
2166
  @tensorboard_service_stub.update_tensorboard_time_series request, options do |result, operation|
2158
2167
  yield result, operation if block_given?
2159
- return result
2160
2168
  end
2161
2169
  rescue ::Gapic::Rest::Error => e
2162
2170
  raise ::Google::Cloud::Error.from_error(e)
@@ -2261,7 +2269,7 @@ module Google
2261
2269
  @tensorboard_service_stub.list_tensorboard_time_series request, options do |result, operation|
2262
2270
  result = ::Gapic::Rest::PagedEnumerable.new @tensorboard_service_stub, :list_tensorboard_time_series, "tensorboard_time_series", request, result, options
2263
2271
  yield result, operation if block_given?
2264
- return result
2272
+ throw :response, result
2265
2273
  end
2266
2274
  rescue ::Gapic::Rest::Error => e
2267
2275
  raise ::Google::Cloud::Error.from_error(e)
@@ -2350,7 +2358,7 @@ module Google
2350
2358
  @tensorboard_service_stub.delete_tensorboard_time_series request, options do |result, operation|
2351
2359
  result = ::Gapic::Operation.new result, @operations_client, options: options
2352
2360
  yield result, operation if block_given?
2353
- return result
2361
+ throw :response, result
2354
2362
  end
2355
2363
  rescue ::Gapic::Rest::Error => e
2356
2364
  raise ::Google::Cloud::Error.from_error(e)
@@ -2442,7 +2450,6 @@ module Google
2442
2450
 
2443
2451
  @tensorboard_service_stub.batch_read_tensorboard_time_series_data request, options do |result, operation|
2444
2452
  yield result, operation if block_given?
2445
- return result
2446
2453
  end
2447
2454
  rescue ::Gapic::Rest::Error => e
2448
2455
  raise ::Google::Cloud::Error.from_error(e)
@@ -2534,7 +2541,6 @@ module Google
2534
2541
 
2535
2542
  @tensorboard_service_stub.read_tensorboard_time_series_data request, options do |result, operation|
2536
2543
  yield result, operation if block_given?
2537
- return result
2538
2544
  end
2539
2545
  rescue ::Gapic::Rest::Error => e
2540
2546
  raise ::Google::Cloud::Error.from_error(e)
@@ -2708,7 +2714,6 @@ module Google
2708
2714
 
2709
2715
  @tensorboard_service_stub.write_tensorboard_experiment_data request, options do |result, operation|
2710
2716
  yield result, operation if block_given?
2711
- return result
2712
2717
  end
2713
2718
  rescue ::Gapic::Rest::Error => e
2714
2719
  raise ::Google::Cloud::Error.from_error(e)
@@ -2796,7 +2801,6 @@ module Google
2796
2801
 
2797
2802
  @tensorboard_service_stub.write_tensorboard_run_data request, options do |result, operation|
2798
2803
  yield result, operation if block_given?
2799
- return result
2800
2804
  end
2801
2805
  rescue ::Gapic::Rest::Error => e
2802
2806
  raise ::Google::Cloud::Error.from_error(e)
@@ -2901,7 +2905,7 @@ module Google
2901
2905
  @tensorboard_service_stub.export_tensorboard_time_series_data request, options do |result, operation|
2902
2906
  result = ::Gapic::Rest::PagedEnumerable.new @tensorboard_service_stub, :export_tensorboard_time_series_data, "time_series_data_points", request, result, options
2903
2907
  yield result, operation if block_given?
2904
- return result
2908
+ throw :response, result
2905
2909
  end
2906
2910
  rescue ::Gapic::Rest::Error => e
2907
2911
  raise ::Google::Cloud::Error.from_error(e)
@@ -2981,6 +2985,11 @@ module Google
2981
2985
  # default endpoint URL. The default value of nil uses the environment
2982
2986
  # universe (usually the default "googleapis.com" universe).
2983
2987
  # @return [::String,nil]
2988
+ # @!attribute [rw] logger
2989
+ # A custom logger to use for request/response debug logging, or the value
2990
+ # `:default` (the default) to construct a default logger, or `nil` to
2991
+ # explicitly disable logging.
2992
+ # @return [::Logger,:default,nil]
2984
2993
  #
2985
2994
  class Configuration
2986
2995
  extend ::Gapic::Config
@@ -3009,6 +3018,7 @@ module Google
3009
3018
  # by the host service.
3010
3019
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
3011
3020
  config_attr :bindings_override, {}, ::Hash, nil
3021
+ config_attr :logger, :default, ::Logger, nil, :default
3012
3022
 
3013
3023
  # @private
3014
3024
  def initialize parent_config = nil
@@ -196,7 +196,7 @@ module Google
196
196
  @operations_stub.list_operations request, options do |result, operation|
197
197
  result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
198
198
  yield result, operation if block_given?
199
- return result
199
+ throw :response, result
200
200
  end
201
201
  rescue ::Gapic::Rest::Error => e
202
202
  raise ::Google::Cloud::Error.from_error(e)
@@ -285,7 +285,7 @@ module Google
285
285
  @operations_stub.get_operation request, options do |result, operation|
286
286
  result = ::Gapic::Operation.new result, @operations_client, options: options
287
287
  yield result, operation if block_given?
288
- return result
288
+ throw :response, result
289
289
  end
290
290
  rescue ::Gapic::Rest::Error => e
291
291
  raise ::Google::Cloud::Error.from_error(e)
@@ -367,7 +367,6 @@ module Google
367
367
 
368
368
  @operations_stub.delete_operation request, options do |result, operation|
369
369
  yield result, operation if block_given?
370
- return result
371
370
  end
372
371
  rescue ::Gapic::Rest::Error => e
373
372
  raise ::Google::Cloud::Error.from_error(e)
@@ -456,7 +455,6 @@ module Google
456
455
 
457
456
  @operations_stub.cancel_operation request, options do |result, operation|
458
457
  yield result, operation if block_given?
459
- return result
460
458
  end
461
459
  rescue ::Gapic::Rest::Error => e
462
460
  raise ::Google::Cloud::Error.from_error(e)
@@ -555,7 +553,7 @@ module Google
555
553
  @operations_stub.wait_operation request, options do |result, operation|
556
554
  result = ::Gapic::Operation.new result, @operations_client, options: options
557
555
  yield result, operation if block_given?
558
- return result
556
+ throw :response, result
559
557
  end
560
558
  rescue ::Gapic::Rest::Error => e
561
559
  raise ::Google::Cloud::Error.from_error(e)
@@ -635,6 +633,11 @@ module Google
635
633
  # default endpoint URL. The default value of nil uses the environment
636
634
  # universe (usually the default "googleapis.com" universe).
637
635
  # @return [::String,nil]
636
+ # @!attribute [rw] logger
637
+ # A custom logger to use for request/response debug logging, or the value
638
+ # `:default` (the default) to construct a default logger, or `nil` to
639
+ # explicitly disable logging.
640
+ # @return [::Logger,:default,nil]
638
641
  #
639
642
  class Configuration
640
643
  extend ::Gapic::Config
@@ -656,6 +659,7 @@ module Google
656
659
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
657
660
  config_attr :quota_project, nil, ::String, nil
658
661
  config_attr :universe_domain, nil, ::String, nil
662
+ config_attr :logger, :default, ::Logger, nil, :default
659
663
 
660
664
  # @private
661
665
  def initialize parent_config = nil
@@ -782,16 +786,18 @@ module Google
782
786
 
783
787
  response = @client_stub.make_http_request(
784
788
  verb,
785
- uri: uri,
786
- body: body || "",
787
- params: query_string_params,
789
+ uri: uri,
790
+ body: body || "",
791
+ params: query_string_params,
792
+ method_name: "list_operations",
788
793
  options: options
789
794
  )
790
795
  operation = ::Gapic::Rest::TransportOperation.new response
791
796
  result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
792
-
793
- yield result, operation if block_given?
794
- result
797
+ catch :response do
798
+ yield result, operation if block_given?
799
+ result
800
+ end
795
801
  end
796
802
 
797
803
  ##
@@ -820,16 +826,18 @@ module Google
820
826
 
821
827
  response = @client_stub.make_http_request(
822
828
  verb,
823
- uri: uri,
824
- body: body || "",
825
- params: query_string_params,
829
+ uri: uri,
830
+ body: body || "",
831
+ params: query_string_params,
832
+ method_name: "get_operation",
826
833
  options: options
827
834
  )
828
835
  operation = ::Gapic::Rest::TransportOperation.new response
829
836
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
830
-
831
- yield result, operation if block_given?
832
- result
837
+ catch :response do
838
+ yield result, operation if block_given?
839
+ result
840
+ end
833
841
  end
834
842
 
835
843
  ##
@@ -858,16 +866,18 @@ module Google
858
866
 
859
867
  response = @client_stub.make_http_request(
860
868
  verb,
861
- uri: uri,
862
- body: body || "",
863
- params: query_string_params,
869
+ uri: uri,
870
+ body: body || "",
871
+ params: query_string_params,
872
+ method_name: "delete_operation",
864
873
  options: options
865
874
  )
866
875
  operation = ::Gapic::Rest::TransportOperation.new response
867
876
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
868
-
869
- yield result, operation if block_given?
870
- result
877
+ catch :response do
878
+ yield result, operation if block_given?
879
+ result
880
+ end
871
881
  end
872
882
 
873
883
  ##
@@ -896,16 +906,18 @@ module Google
896
906
 
897
907
  response = @client_stub.make_http_request(
898
908
  verb,
899
- uri: uri,
900
- body: body || "",
901
- params: query_string_params,
909
+ uri: uri,
910
+ body: body || "",
911
+ params: query_string_params,
912
+ method_name: "cancel_operation",
902
913
  options: options
903
914
  )
904
915
  operation = ::Gapic::Rest::TransportOperation.new response
905
916
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
906
-
907
- yield result, operation if block_given?
908
- result
917
+ catch :response do
918
+ yield result, operation if block_given?
919
+ result
920
+ end
909
921
  end
910
922
 
911
923
  ##
@@ -934,16 +946,18 @@ module Google
934
946
 
935
947
  response = @client_stub.make_http_request(
936
948
  verb,
937
- uri: uri,
938
- body: body || "",
939
- params: query_string_params,
949
+ uri: uri,
950
+ body: body || "",
951
+ params: query_string_params,
952
+ method_name: "wait_operation",
940
953
  options: options
941
954
  )
942
955
  operation = ::Gapic::Rest::TransportOperation.new response
943
956
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
944
-
945
- yield result, operation if block_given?
946
- result
957
+ catch :response do
958
+ yield result, operation if block_given?
959
+ result
960
+ end
947
961
  end
948
962
 
949
963
  ##
@@ -1496,6 +1510,13 @@ module Google
1496
1510
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1497
1511
  ]
1498
1512
  )
1513
+ .with_bindings(
1514
+ uri_method: :get,
1515
+ uri_template: "/v1/{name}/operations",
1516
+ matches: [
1517
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
1518
+ ]
1519
+ )
1499
1520
  .with_bindings(
1500
1521
  uri_method: :get,
1501
1522
  uri_template: "/v1/{name}/operations",
@@ -2189,6 +2210,13 @@ module Google
2189
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2190
2211
  ]
2191
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :get,
2215
+ uri_template: "/v1/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2192
2220
  .with_bindings(
2193
2221
  uri_method: :get,
2194
2222
  uri_template: "/v1/{name}",
@@ -2847,6 +2875,13 @@ module Google
2847
2875
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2848
2876
  ]
2849
2877
  )
2878
+ .with_bindings(
2879
+ uri_method: :delete,
2880
+ uri_template: "/v1/{name}",
2881
+ matches: [
2882
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2883
+ ]
2884
+ )
2850
2885
  .with_bindings(
2851
2886
  uri_method: :delete,
2852
2887
  uri_template: "/v1/{name}",
@@ -3498,6 +3533,13 @@ module Google
3498
3533
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3499
3534
  ]
3500
3535
  )
3536
+ .with_bindings(
3537
+ uri_method: :post,
3538
+ uri_template: "/v1/{name}:cancel",
3539
+ matches: [
3540
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
3541
+ ]
3542
+ )
3501
3543
  .with_bindings(
3502
3544
  uri_method: :post,
3503
3545
  uri_template: "/v1/{name}:cancel",
@@ -4128,6 +4170,13 @@ module Google
4128
4170
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4129
4171
  ]
4130
4172
  )
4173
+ .with_bindings(
4174
+ uri_method: :post,
4175
+ uri_template: "/v1/{name}:wait",
4176
+ matches: [
4177
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
4178
+ ]
4179
+ )
4131
4180
  .with_bindings(
4132
4181
  uri_method: :post,
4133
4182
  uri_template: "/v1/{name}:wait",