google-cloud-ai_platform-v1 0.39.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/bindings_override.rb +399 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +138 -18
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +13 -5
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2280 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3971 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1196 -0
  8. data/lib/google/cloud/ai_platform/v1/dataset_service/rest.rb +54 -0
  9. data/lib/google/cloud/ai_platform/v1/dataset_service.rb +6 -0
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +13 -5
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +13 -5
  12. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +851 -0
  13. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +3971 -0
  14. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +365 -0
  15. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest.rb +54 -0
  16. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +6 -0
  17. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +19 -8
  18. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +13 -5
  19. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +1215 -0
  20. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +3971 -0
  21. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +546 -0
  22. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest.rb +54 -0
  23. data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +6 -0
  24. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +29 -13
  25. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +13 -5
  26. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1732 -0
  27. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +3971 -0
  28. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +841 -0
  29. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest.rb +55 -0
  30. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +6 -0
  31. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -2
  32. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +534 -0
  33. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +189 -0
  34. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest.rb +53 -0
  35. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +6 -0
  36. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +24 -11
  37. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +13 -5
  38. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +1450 -0
  39. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +3971 -0
  40. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +663 -0
  41. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest.rb +55 -0
  42. data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +6 -0
  43. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +9 -3
  44. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +645 -0
  45. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +244 -0
  46. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest.rb +53 -0
  47. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +6 -0
  48. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -21
  49. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +13 -5
  50. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2765 -0
  51. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +3971 -0
  52. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +1319 -0
  53. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest.rb +54 -0
  54. data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +6 -0
  55. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +11 -4
  56. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
  57. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
  58. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
  59. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +6 -0
  60. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
  61. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
  62. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
  63. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3971 -0
  64. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
  65. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
  66. data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
  67. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
  68. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
  69. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
  70. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3971 -0
  71. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
  72. data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
  73. data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
  74. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
  75. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
  76. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
  77. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3971 -0
  78. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
  79. data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
  80. data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
  81. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
  82. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
  83. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
  84. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
  85. data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
  86. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
  87. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
  88. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
  89. data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
  90. data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
  91. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
  92. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
  93. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
  94. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3971 -0
  95. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
  96. data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
  97. data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
  98. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
  99. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
  100. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
  101. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3971 -0
  102. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
  103. data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
  104. data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
  105. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
  106. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
  107. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
  108. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
  109. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
  110. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
  111. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
  112. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
  113. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3971 -0
  114. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
  115. data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
  116. data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
  117. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +123 -10
  118. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +13 -5
  119. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1503 -0
  120. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3971 -0
  121. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +723 -0
  122. data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
  123. data/lib/google/cloud/ai_platform/v1/notebook_service.rb +6 -0
  124. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +15 -6
  125. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +13 -5
  126. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
  127. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3971 -0
  128. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
  129. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
  130. data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +6 -0
  131. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
  132. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
  133. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
  134. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3971 -0
  135. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
  136. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
  137. data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
  138. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +37 -15
  139. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  140. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1303 -0
  141. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +658 -0
  142. data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
  143. data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
  144. data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
  145. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
  146. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
  147. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
  148. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3971 -0
  149. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
  150. data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
  151. data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
  152. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
  153. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
  154. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
  155. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3971 -0
  156. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
  157. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
  158. data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
  159. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
  160. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
  161. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
  162. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3971 -0
  163. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
  164. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
  165. data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
  166. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  167. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
  168. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
  169. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
  170. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3971 -0
  171. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
  172. data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
  173. data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
  174. data/lib/google/cloud/ai_platform/v1.rb +6 -1
  175. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  176. data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -4
  177. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  178. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  179. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  180. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  181. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  182. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
  183. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  184. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  185. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  186. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  187. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  188. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  189. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  190. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  191. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  192. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  193. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  194. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  195. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
  196. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  197. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  198. data/proto_docs/google/cloud/aiplatform/v1/content.rb +26 -48
  199. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  200. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  201. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  202. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  203. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +7 -0
  204. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  205. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  206. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  207. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
  208. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  209. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  210. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +20 -2
  211. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  212. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  213. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  214. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +17 -2
  215. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  216. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  217. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  218. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
  219. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  220. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +8 -7
  221. metadata +101 -2
@@ -32,6 +32,9 @@ module Google
32
32
  # The service that manages Vertex AI Dataset and its child resources.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
37
40
 
@@ -269,10 +272,11 @@ module Google
269
272
  # Customize the options with defaults
270
273
  metadata = @config.rpcs.create_dataset.metadata.to_h
271
274
 
272
- # Set x-goog-api-client and x-goog-user-project headers
275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
276
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
278
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
279
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
276
280
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
277
281
 
278
282
  header_params = {}
@@ -357,10 +361,11 @@ module Google
357
361
  # Customize the options with defaults
358
362
  metadata = @config.rpcs.get_dataset.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
368
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
364
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
365
370
 
366
371
  header_params = {}
@@ -450,10 +455,11 @@ module Google
450
455
  # Customize the options with defaults
451
456
  metadata = @config.rpcs.update_dataset.metadata.to_h
452
457
 
453
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
459
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
456
461
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
462
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
457
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
458
464
 
459
465
  header_params = {}
@@ -569,10 +575,11 @@ module Google
569
575
  # Customize the options with defaults
570
576
  metadata = @config.rpcs.list_datasets.metadata.to_h
571
577
 
572
- # Set x-goog-api-client and x-goog-user-project headers
578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
573
579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
574
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
575
581
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
576
583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
584
 
578
585
  header_params = {}
@@ -664,10 +671,11 @@ module Google
664
671
  # Customize the options with defaults
665
672
  metadata = @config.rpcs.delete_dataset.metadata.to_h
666
673
 
667
- # Set x-goog-api-client and x-goog-user-project headers
674
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
668
675
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
669
676
  lib_name: @config.lib_name, lib_version: @config.lib_version,
670
677
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
678
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
671
679
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
672
680
 
673
681
  header_params = {}
@@ -762,10 +770,11 @@ module Google
762
770
  # Customize the options with defaults
763
771
  metadata = @config.rpcs.import_data.metadata.to_h
764
772
 
765
- # Set x-goog-api-client and x-goog-user-project headers
773
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
774
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
775
  lib_name: @config.lib_name, lib_version: @config.lib_version,
768
776
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
777
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
769
778
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
779
 
771
780
  header_params = {}
@@ -859,10 +868,11 @@ module Google
859
868
  # Customize the options with defaults
860
869
  metadata = @config.rpcs.export_data.metadata.to_h
861
870
 
862
- # Set x-goog-api-client and x-goog-user-project headers
871
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
863
872
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
864
873
  lib_name: @config.lib_name, lib_version: @config.lib_version,
865
874
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
875
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
866
876
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
867
877
 
868
878
  header_params = {}
@@ -958,10 +968,11 @@ module Google
958
968
  # Customize the options with defaults
959
969
  metadata = @config.rpcs.create_dataset_version.metadata.to_h
960
970
 
961
- # Set x-goog-api-client and x-goog-user-project headers
971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
962
972
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
963
973
  lib_name: @config.lib_name, lib_version: @config.lib_version,
964
974
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
975
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
965
976
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
966
977
 
967
978
  header_params = {}
@@ -989,6 +1000,98 @@ module Google
989
1000
  raise ::Google::Cloud::Error.from_error(e)
990
1001
  end
991
1002
 
1003
+ ##
1004
+ # Updates a DatasetVersion.
1005
+ #
1006
+ # @overload update_dataset_version(request, options = nil)
1007
+ # Pass arguments to `update_dataset_version` via a request object, either of type
1008
+ # {::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest} or an equivalent Hash.
1009
+ #
1010
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Hash]
1011
+ # A request object representing the call parameters. Required. To specify no
1012
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1013
+ # @param options [::Gapic::CallOptions, ::Hash]
1014
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1015
+ #
1016
+ # @overload update_dataset_version(dataset_version: nil, update_mask: nil)
1017
+ # Pass arguments to `update_dataset_version` via keyword arguments. Note that at
1018
+ # least one keyword argument is required. To specify no parameters, or to keep all
1019
+ # the default parameter values, pass an empty Hash as a request object (see above).
1020
+ #
1021
+ # @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash]
1022
+ # Required. The DatasetVersion which replaces the resource on the server.
1023
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1024
+ # Required. The update mask applies to the resource.
1025
+ # For the `FieldMask` definition, see
1026
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields:
1027
+ #
1028
+ # * `display_name`
1029
+ #
1030
+ # @yield [response, operation] Access the result along with the RPC operation
1031
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::DatasetVersion]
1032
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1033
+ #
1034
+ # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion]
1035
+ #
1036
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1037
+ #
1038
+ # @example Basic example
1039
+ # require "google/cloud/ai_platform/v1"
1040
+ #
1041
+ # # Create a client object. The client can be reused for multiple calls.
1042
+ # client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
1043
+ #
1044
+ # # Create a request. To set request fields, pass in keyword arguments.
1045
+ # request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new
1046
+ #
1047
+ # # Call the update_dataset_version method.
1048
+ # result = client.update_dataset_version request
1049
+ #
1050
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion.
1051
+ # p result
1052
+ #
1053
+ def update_dataset_version request, options = nil
1054
+ raise ::ArgumentError, "request must be provided" if request.nil?
1055
+
1056
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest
1057
+
1058
+ # Converts hash and nil to an options object
1059
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1060
+
1061
+ # Customize the options with defaults
1062
+ metadata = @config.rpcs.update_dataset_version.metadata.to_h
1063
+
1064
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1065
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1066
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1067
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1068
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1069
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
+
1071
+ header_params = {}
1072
+ if request.dataset_version&.name
1073
+ header_params["dataset_version.name"] = request.dataset_version.name
1074
+ end
1075
+
1076
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1077
+ metadata[:"x-goog-request-params"] ||= request_params_header
1078
+
1079
+ options.apply_defaults timeout: @config.rpcs.update_dataset_version.timeout,
1080
+ metadata: metadata,
1081
+ retry_policy: @config.rpcs.update_dataset_version.retry_policy
1082
+
1083
+ options.apply_defaults timeout: @config.timeout,
1084
+ metadata: @config.metadata,
1085
+ retry_policy: @config.retry_policy
1086
+
1087
+ @dataset_service_stub.call_rpc :update_dataset_version, request, options: options do |response, operation|
1088
+ yield response, operation if block_given?
1089
+ return response
1090
+ end
1091
+ rescue ::GRPC::BadStatus => e
1092
+ raise ::Google::Cloud::Error.from_error(e)
1093
+ end
1094
+
992
1095
  ##
993
1096
  # Deletes a Dataset version.
994
1097
  #
@@ -1053,10 +1156,11 @@ module Google
1053
1156
  # Customize the options with defaults
1054
1157
  metadata = @config.rpcs.delete_dataset_version.metadata.to_h
1055
1158
 
1056
- # Set x-goog-api-client and x-goog-user-project headers
1159
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1057
1160
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1058
1161
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1059
1162
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1163
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1060
1164
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1061
1165
 
1062
1166
  header_params = {}
@@ -1143,10 +1247,11 @@ module Google
1143
1247
  # Customize the options with defaults
1144
1248
  metadata = @config.rpcs.get_dataset_version.metadata.to_h
1145
1249
 
1146
- # Set x-goog-api-client and x-goog-user-project headers
1250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1147
1251
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
1252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
1253
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1254
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1150
1255
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1151
1256
 
1152
1257
  header_params = {}
@@ -1245,10 +1350,11 @@ module Google
1245
1350
  # Customize the options with defaults
1246
1351
  metadata = @config.rpcs.list_dataset_versions.metadata.to_h
1247
1352
 
1248
- # Set x-goog-api-client and x-goog-user-project headers
1353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1249
1354
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1250
1355
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1251
1356
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1357
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1252
1358
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1253
1359
 
1254
1360
  header_params = {}
@@ -1340,10 +1446,11 @@ module Google
1340
1446
  # Customize the options with defaults
1341
1447
  metadata = @config.rpcs.restore_dataset_version.metadata.to_h
1342
1448
 
1343
- # Set x-goog-api-client and x-goog-user-project headers
1449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1344
1450
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1345
1451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1346
1452
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1453
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1347
1454
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1348
1455
 
1349
1456
  header_params = {}
@@ -1443,10 +1550,11 @@ module Google
1443
1550
  # Customize the options with defaults
1444
1551
  metadata = @config.rpcs.list_data_items.metadata.to_h
1445
1552
 
1446
- # Set x-goog-api-client and x-goog-user-project headers
1553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1447
1554
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1448
1555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1449
1556
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1557
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1450
1558
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1451
1559
 
1452
1560
  header_params = {}
@@ -1594,10 +1702,11 @@ module Google
1594
1702
  # Customize the options with defaults
1595
1703
  metadata = @config.rpcs.search_data_items.metadata.to_h
1596
1704
 
1597
- # Set x-goog-api-client and x-goog-user-project headers
1705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1598
1706
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1599
1707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1600
1708
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1709
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1601
1710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1602
1711
 
1603
1712
  header_params = {}
@@ -1697,10 +1806,11 @@ module Google
1697
1806
  # Customize the options with defaults
1698
1807
  metadata = @config.rpcs.list_saved_queries.metadata.to_h
1699
1808
 
1700
- # Set x-goog-api-client and x-goog-user-project headers
1809
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1701
1810
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1702
1811
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1703
1812
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1813
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1704
1814
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1705
1815
 
1706
1816
  header_params = {}
@@ -1792,10 +1902,11 @@ module Google
1792
1902
  # Customize the options with defaults
1793
1903
  metadata = @config.rpcs.delete_saved_query.metadata.to_h
1794
1904
 
1795
- # Set x-goog-api-client and x-goog-user-project headers
1905
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1796
1906
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1797
1907
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1798
1908
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1909
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1799
1910
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1800
1911
 
1801
1912
  header_params = {}
@@ -1882,10 +1993,11 @@ module Google
1882
1993
  # Customize the options with defaults
1883
1994
  metadata = @config.rpcs.get_annotation_spec.metadata.to_h
1884
1995
 
1885
- # Set x-goog-api-client and x-goog-user-project headers
1996
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1886
1997
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1887
1998
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1888
1999
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2000
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1889
2001
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1890
2002
 
1891
2003
  header_params = {}
@@ -1984,10 +2096,11 @@ module Google
1984
2096
  # Customize the options with defaults
1985
2097
  metadata = @config.rpcs.list_annotations.metadata.to_h
1986
2098
 
1987
- # Set x-goog-api-client and x-goog-user-project headers
2099
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1988
2100
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1989
2101
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1990
2102
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2103
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1991
2104
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1992
2105
 
1993
2106
  header_params = {}
@@ -2209,6 +2322,11 @@ module Google
2209
2322
  #
2210
2323
  attr_reader :create_dataset_version
2211
2324
  ##
2325
+ # RPC-specific configuration for `update_dataset_version`
2326
+ # @return [::Gapic::Config::Method]
2327
+ #
2328
+ attr_reader :update_dataset_version
2329
+ ##
2212
2330
  # RPC-specific configuration for `delete_dataset_version`
2213
2331
  # @return [::Gapic::Config::Method]
2214
2332
  #
@@ -2277,6 +2395,8 @@ module Google
2277
2395
  @export_data = ::Gapic::Config::Method.new export_data_config
2278
2396
  create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version
2279
2397
  @create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config
2398
+ update_dataset_version_config = parent_rpcs.update_dataset_version if parent_rpcs.respond_to? :update_dataset_version
2399
+ @update_dataset_version = ::Gapic::Config::Method.new update_dataset_version_config
2280
2400
  delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version
2281
2401
  @delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config
2282
2402
  get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version
@@ -26,6 +26,9 @@ module Google
26
26
  module DatasetService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  header_params = {}