google-cloud-ai_platform-v1 0.39.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
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
  # A service for creating and managing Vertex AI's jobs.
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
 
@@ -263,10 +266,11 @@ module Google
263
266
  # Customize the options with defaults
264
267
  metadata = @config.rpcs.create_custom_job.metadata.to_h
265
268
 
266
- # Set x-goog-api-client and x-goog-user-project headers
269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
267
270
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
268
271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
269
272
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
273
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
270
274
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
275
 
272
276
  header_params = {}
@@ -350,10 +354,11 @@ module Google
350
354
  # Customize the options with defaults
351
355
  metadata = @config.rpcs.get_custom_job.metadata.to_h
352
356
 
353
- # Set x-goog-api-client and x-goog-user-project headers
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
358
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
360
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
361
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  header_params = {}
@@ -472,10 +477,11 @@ module Google
472
477
  # Customize the options with defaults
473
478
  metadata = @config.rpcs.list_custom_jobs.metadata.to_h
474
479
 
475
- # Set x-goog-api-client and x-goog-user-project headers
480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
476
481
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
477
482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
478
483
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
484
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
479
485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
480
486
 
481
487
  header_params = {}
@@ -567,10 +573,11 @@ module Google
567
573
  # Customize the options with defaults
568
574
  metadata = @config.rpcs.delete_custom_job.metadata.to_h
569
575
 
570
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
571
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
572
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
573
579
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
574
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
575
582
 
576
583
  header_params = {}
@@ -667,10 +674,11 @@ module Google
667
674
  # Customize the options with defaults
668
675
  metadata = @config.rpcs.cancel_custom_job.metadata.to_h
669
676
 
670
- # Set x-goog-api-client and x-goog-user-project headers
677
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
671
678
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
672
679
  lib_name: @config.lib_name, lib_version: @config.lib_version,
673
680
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
681
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
674
682
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
675
683
 
676
684
  header_params = {}
@@ -755,10 +763,11 @@ module Google
755
763
  # Customize the options with defaults
756
764
  metadata = @config.rpcs.create_data_labeling_job.metadata.to_h
757
765
 
758
- # Set x-goog-api-client and x-goog-user-project headers
766
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
759
767
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
760
768
  lib_name: @config.lib_name, lib_version: @config.lib_version,
761
769
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
770
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
762
771
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
763
772
 
764
773
  header_params = {}
@@ -842,10 +851,11 @@ module Google
842
851
  # Customize the options with defaults
843
852
  metadata = @config.rpcs.get_data_labeling_job.metadata.to_h
844
853
 
845
- # Set x-goog-api-client and x-goog-user-project headers
854
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
855
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
856
  lib_name: @config.lib_name, lib_version: @config.lib_version,
848
857
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
858
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
849
859
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
850
860
 
851
861
  header_params = {}
@@ -966,10 +976,11 @@ module Google
966
976
  # Customize the options with defaults
967
977
  metadata = @config.rpcs.list_data_labeling_jobs.metadata.to_h
968
978
 
969
- # Set x-goog-api-client and x-goog-user-project headers
979
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
970
980
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
971
981
  lib_name: @config.lib_name, lib_version: @config.lib_version,
972
982
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
983
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
973
984
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
974
985
 
975
986
  header_params = {}
@@ -1061,10 +1072,11 @@ module Google
1061
1072
  # Customize the options with defaults
1062
1073
  metadata = @config.rpcs.delete_data_labeling_job.metadata.to_h
1063
1074
 
1064
- # Set x-goog-api-client and x-goog-user-project headers
1075
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1065
1076
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1066
1077
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1067
1078
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1079
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1068
1080
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1069
1081
 
1070
1082
  header_params = {}
@@ -1149,10 +1161,11 @@ module Google
1149
1161
  # Customize the options with defaults
1150
1162
  metadata = @config.rpcs.cancel_data_labeling_job.metadata.to_h
1151
1163
 
1152
- # Set x-goog-api-client and x-goog-user-project headers
1164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1153
1165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1154
1166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1155
1167
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1156
1169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1157
1170
 
1158
1171
  header_params = {}
@@ -1238,10 +1251,11 @@ module Google
1238
1251
  # Customize the options with defaults
1239
1252
  metadata = @config.rpcs.create_hyperparameter_tuning_job.metadata.to_h
1240
1253
 
1241
- # Set x-goog-api-client and x-goog-user-project headers
1254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1242
1255
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1243
1256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1244
1257
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1258
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1245
1259
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1246
1260
 
1247
1261
  header_params = {}
@@ -1325,10 +1339,11 @@ module Google
1325
1339
  # Customize the options with defaults
1326
1340
  metadata = @config.rpcs.get_hyperparameter_tuning_job.metadata.to_h
1327
1341
 
1328
- # Set x-goog-api-client and x-goog-user-project headers
1342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1329
1343
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1330
1344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1331
1345
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1346
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1332
1347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1333
1348
 
1334
1349
  header_params = {}
@@ -1448,10 +1463,11 @@ module Google
1448
1463
  # Customize the options with defaults
1449
1464
  metadata = @config.rpcs.list_hyperparameter_tuning_jobs.metadata.to_h
1450
1465
 
1451
- # Set x-goog-api-client and x-goog-user-project headers
1466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1452
1467
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1453
1468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1454
1469
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1470
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1455
1471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1456
1472
 
1457
1473
  header_params = {}
@@ -1543,10 +1559,11 @@ module Google
1543
1559
  # Customize the options with defaults
1544
1560
  metadata = @config.rpcs.delete_hyperparameter_tuning_job.metadata.to_h
1545
1561
 
1546
- # Set x-goog-api-client and x-goog-user-project headers
1562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1547
1563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1548
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1549
1565
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1550
1567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1551
1568
 
1552
1569
  header_params = {}
@@ -1644,10 +1661,11 @@ module Google
1644
1661
  # Customize the options with defaults
1645
1662
  metadata = @config.rpcs.cancel_hyperparameter_tuning_job.metadata.to_h
1646
1663
 
1647
- # Set x-goog-api-client and x-goog-user-project headers
1664
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1648
1665
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1649
1666
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1650
1667
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1668
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1651
1669
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1652
1670
 
1653
1671
  header_params = {}
@@ -1732,10 +1750,11 @@ module Google
1732
1750
  # Customize the options with defaults
1733
1751
  metadata = @config.rpcs.create_nas_job.metadata.to_h
1734
1752
 
1735
- # Set x-goog-api-client and x-goog-user-project headers
1753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1736
1754
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1737
1755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1738
1756
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1757
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1739
1758
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1740
1759
 
1741
1760
  header_params = {}
@@ -1819,10 +1838,11 @@ module Google
1819
1838
  # Customize the options with defaults
1820
1839
  metadata = @config.rpcs.get_nas_job.metadata.to_h
1821
1840
 
1822
- # Set x-goog-api-client and x-goog-user-project headers
1841
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1823
1842
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1824
1843
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1825
1844
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1845
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1826
1846
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1827
1847
 
1828
1848
  header_params = {}
@@ -1941,10 +1961,11 @@ module Google
1941
1961
  # Customize the options with defaults
1942
1962
  metadata = @config.rpcs.list_nas_jobs.metadata.to_h
1943
1963
 
1944
- # Set x-goog-api-client and x-goog-user-project headers
1964
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1945
1965
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1946
1966
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1947
1967
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1968
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1948
1969
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1949
1970
 
1950
1971
  header_params = {}
@@ -2036,10 +2057,11 @@ module Google
2036
2057
  # Customize the options with defaults
2037
2058
  metadata = @config.rpcs.delete_nas_job.metadata.to_h
2038
2059
 
2039
- # Set x-goog-api-client and x-goog-user-project headers
2060
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2040
2061
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2041
2062
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2042
2063
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2064
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2043
2065
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2044
2066
 
2045
2067
  header_params = {}
@@ -2136,10 +2158,11 @@ module Google
2136
2158
  # Customize the options with defaults
2137
2159
  metadata = @config.rpcs.cancel_nas_job.metadata.to_h
2138
2160
 
2139
- # Set x-goog-api-client and x-goog-user-project headers
2161
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2140
2162
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2141
2163
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2142
2164
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2165
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2143
2166
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2144
2167
 
2145
2168
  header_params = {}
@@ -2223,10 +2246,11 @@ module Google
2223
2246
  # Customize the options with defaults
2224
2247
  metadata = @config.rpcs.get_nas_trial_detail.metadata.to_h
2225
2248
 
2226
- # Set x-goog-api-client and x-goog-user-project headers
2249
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2227
2250
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2228
2251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2229
2252
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2253
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2230
2254
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2231
2255
 
2232
2256
  header_params = {}
@@ -2323,10 +2347,11 @@ module Google
2323
2347
  # Customize the options with defaults
2324
2348
  metadata = @config.rpcs.list_nas_trial_details.metadata.to_h
2325
2349
 
2326
- # Set x-goog-api-client and x-goog-user-project headers
2350
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2327
2351
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2328
2352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2329
2353
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2354
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2330
2355
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2331
2356
 
2332
2357
  header_params = {}
@@ -2413,10 +2438,11 @@ module Google
2413
2438
  # Customize the options with defaults
2414
2439
  metadata = @config.rpcs.create_batch_prediction_job.metadata.to_h
2415
2440
 
2416
- # Set x-goog-api-client and x-goog-user-project headers
2441
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2417
2442
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2418
2443
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2419
2444
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2445
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2420
2446
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2421
2447
 
2422
2448
  header_params = {}
@@ -2500,10 +2526,11 @@ module Google
2500
2526
  # Customize the options with defaults
2501
2527
  metadata = @config.rpcs.get_batch_prediction_job.metadata.to_h
2502
2528
 
2503
- # Set x-goog-api-client and x-goog-user-project headers
2529
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2504
2530
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2505
2531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2506
2532
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2533
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2507
2534
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2508
2535
 
2509
2536
  header_params = {}
@@ -2623,10 +2650,11 @@ module Google
2623
2650
  # Customize the options with defaults
2624
2651
  metadata = @config.rpcs.list_batch_prediction_jobs.metadata.to_h
2625
2652
 
2626
- # Set x-goog-api-client and x-goog-user-project headers
2653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2627
2654
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2628
2655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2629
2656
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2630
2658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2631
2659
 
2632
2660
  header_params = {}
@@ -2719,10 +2747,11 @@ module Google
2719
2747
  # Customize the options with defaults
2720
2748
  metadata = @config.rpcs.delete_batch_prediction_job.metadata.to_h
2721
2749
 
2722
- # Set x-goog-api-client and x-goog-user-project headers
2750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2723
2751
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2724
2752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2725
2753
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2754
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2726
2755
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2727
2756
 
2728
2757
  header_params = {}
@@ -2818,10 +2847,11 @@ module Google
2818
2847
  # Customize the options with defaults
2819
2848
  metadata = @config.rpcs.cancel_batch_prediction_job.metadata.to_h
2820
2849
 
2821
- # Set x-goog-api-client and x-goog-user-project headers
2850
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2822
2851
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2823
2852
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2824
2853
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2854
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2825
2855
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2826
2856
 
2827
2857
  header_params = {}
@@ -2907,10 +2937,11 @@ module Google
2907
2937
  # Customize the options with defaults
2908
2938
  metadata = @config.rpcs.create_model_deployment_monitoring_job.metadata.to_h
2909
2939
 
2910
- # Set x-goog-api-client and x-goog-user-project headers
2940
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2911
2941
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2912
2942
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2913
2943
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2944
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2914
2945
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2915
2946
 
2916
2947
  header_params = {}
@@ -3020,10 +3051,11 @@ module Google
3020
3051
  # Customize the options with defaults
3021
3052
  metadata = @config.rpcs.search_model_deployment_monitoring_stats_anomalies.metadata.to_h
3022
3053
 
3023
- # Set x-goog-api-client and x-goog-user-project headers
3054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3024
3055
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3025
3056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3026
3057
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3058
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3027
3059
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3028
3060
 
3029
3061
  header_params = {}
@@ -3108,10 +3140,11 @@ module Google
3108
3140
  # Customize the options with defaults
3109
3141
  metadata = @config.rpcs.get_model_deployment_monitoring_job.metadata.to_h
3110
3142
 
3111
- # Set x-goog-api-client and x-goog-user-project headers
3143
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3112
3144
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3113
3145
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3114
3146
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3147
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3115
3148
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3116
3149
 
3117
3150
  header_params = {}
@@ -3225,10 +3258,11 @@ module Google
3225
3258
  # Customize the options with defaults
3226
3259
  metadata = @config.rpcs.list_model_deployment_monitoring_jobs.metadata.to_h
3227
3260
 
3228
- # Set x-goog-api-client and x-goog-user-project headers
3261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3229
3262
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3230
3263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3231
3264
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3265
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3232
3266
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3233
3267
 
3234
3268
  header_params = {}
@@ -3346,10 +3380,11 @@ module Google
3346
3380
  # Customize the options with defaults
3347
3381
  metadata = @config.rpcs.update_model_deployment_monitoring_job.metadata.to_h
3348
3382
 
3349
- # Set x-goog-api-client and x-goog-user-project headers
3383
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3350
3384
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3351
3385
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3352
3386
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3387
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3353
3388
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3354
3389
 
3355
3390
  header_params = {}
@@ -3441,10 +3476,11 @@ module Google
3441
3476
  # Customize the options with defaults
3442
3477
  metadata = @config.rpcs.delete_model_deployment_monitoring_job.metadata.to_h
3443
3478
 
3444
- # Set x-goog-api-client and x-goog-user-project headers
3479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3445
3480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3446
3481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3447
3482
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3448
3484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3449
3485
 
3450
3486
  header_params = {}
@@ -3532,10 +3568,11 @@ module Google
3532
3568
  # Customize the options with defaults
3533
3569
  metadata = @config.rpcs.pause_model_deployment_monitoring_job.metadata.to_h
3534
3570
 
3535
- # Set x-goog-api-client and x-goog-user-project headers
3571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3536
3572
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3537
3573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3538
3574
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3575
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3539
3576
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3540
3577
 
3541
3578
  header_params = {}
@@ -3621,10 +3658,11 @@ module Google
3621
3658
  # Customize the options with defaults
3622
3659
  metadata = @config.rpcs.resume_model_deployment_monitoring_job.metadata.to_h
3623
3660
 
3624
- # Set x-goog-api-client and x-goog-user-project headers
3661
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3625
3662
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3626
3663
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3627
3664
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3665
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3628
3666
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3629
3667
 
3630
3668
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module JobService
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 = {}