google-cloud-ai_platform-v1 0.38.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) 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 +39 -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 +2188 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3901 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1136 -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 +3901 -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 +21 -11
  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 +3901 -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 +3901 -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 +3901 -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 +3901 -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 +765 -0
  56. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/credentials.rb +47 -0
  57. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/paths.rb +154 -0
  58. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
  59. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
  60. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
  61. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +55 -0
  62. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
  63. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
  64. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
  65. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3901 -0
  66. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
  67. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
  68. data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
  69. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
  70. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
  71. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
  72. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3901 -0
  73. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
  74. data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
  75. data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
  76. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
  77. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
  78. data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +19 -0
  79. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
  80. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3901 -0
  81. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
  82. data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
  83. data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
  84. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
  85. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
  86. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
  87. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
  88. data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
  89. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
  90. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
  91. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
  92. data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
  93. data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
  94. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
  95. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
  96. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
  97. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3901 -0
  98. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
  99. data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
  100. data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
  101. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
  102. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
  103. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
  104. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3901 -0
  105. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
  106. data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
  107. data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
  108. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
  109. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
  110. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
  111. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
  112. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
  113. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
  114. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
  115. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
  116. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3901 -0
  117. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
  118. data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
  119. data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
  120. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +1497 -0
  121. data/lib/google/cloud/ai_platform/v1/notebook_service/credentials.rb +47 -0
  122. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +817 -0
  123. data/lib/google/cloud/ai_platform/v1/notebook_service/paths.rb +124 -0
  124. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1410 -0
  125. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3901 -0
  126. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +663 -0
  127. data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
  128. data/lib/google/cloud/ai_platform/v1/notebook_service.rb +56 -0
  129. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +1001 -0
  130. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/credentials.rb +47 -0
  131. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +817 -0
  132. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/paths.rb +86 -0
  133. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
  134. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3901 -0
  135. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
  136. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
  137. data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +56 -0
  138. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
  139. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
  140. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
  141. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3901 -0
  142. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
  143. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
  144. data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
  145. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +39 -15
  146. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1297 -0
  147. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +642 -0
  148. data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
  149. data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
  150. data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
  151. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
  152. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
  153. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
  154. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3901 -0
  155. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
  156. data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
  157. data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
  158. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
  159. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
  160. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
  161. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3901 -0
  162. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
  163. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
  164. data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
  165. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
  166. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
  167. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
  168. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3901 -0
  169. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
  170. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
  171. data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
  172. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  173. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
  174. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
  175. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
  176. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3901 -0
  177. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
  178. data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
  179. data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
  180. data/lib/google/cloud/ai_platform/v1.rb +9 -1
  181. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  182. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -1
  183. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +1 -1
  184. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
  185. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  186. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +1 -1
  187. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +5 -1
  188. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_pb.rb +54 -0
  189. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +63 -0
  190. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  191. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +2 -1
  192. data/lib/google/cloud/aiplatform/v1/network_spec_pb.rb +44 -0
  193. data/lib/google/cloud/aiplatform/v1/notebook_euc_config_pb.rb +44 -0
  194. data/lib/google/cloud/aiplatform/v1/notebook_idle_shutdown_config_pb.rb +46 -0
  195. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +61 -0
  196. data/lib/google/cloud/aiplatform/v1/notebook_runtime_template_ref_pb.rb +45 -0
  197. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +72 -0
  198. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +64 -0
  199. data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +1 -1
  200. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +60 -0
  201. data/lib/google/cloud/aiplatform/v1/persistent_resource_service_pb.rb +64 -0
  202. data/lib/google/cloud/aiplatform/v1/persistent_resource_service_services_pb.rb +55 -0
  203. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  204. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
  205. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +60 -0
  206. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  207. data/proto_docs/google/cloud/aiplatform/v1/content.rb +52 -3
  208. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +9 -0
  209. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +14 -0
  210. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +2 -3
  211. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +29 -0
  212. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +5 -0
  213. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
  214. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +86 -0
  215. data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +100 -0
  216. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +3 -0
  217. data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +17 -0
  218. data/proto_docs/google/cloud/aiplatform/v1/network_spec.rb +44 -0
  219. data/proto_docs/google/cloud/aiplatform/v1/notebook_euc_config.rb +46 -0
  220. data/proto_docs/google/cloud/aiplatform/v1/notebook_idle_shutdown_config.rb +41 -0
  221. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +263 -0
  222. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime_template_ref.rb +35 -0
  223. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +371 -0
  224. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +43 -4
  225. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +248 -0
  226. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource_service.rb +170 -0
  227. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +12 -0
  228. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
  229. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +7 -5
  230. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +262 -0
  231. metadata +138 -2
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for reading and writing metadata entries.
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
 
@@ -279,10 +282,11 @@ module Google
279
282
  # Customize the options with defaults
280
283
  metadata = @config.rpcs.create_metadata_store.metadata.to_h
281
284
 
282
- # Set x-goog-api-client and x-goog-user-project headers
285
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
286
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
287
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
288
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
289
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
290
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
291
 
288
292
  header_params = {}
@@ -367,10 +371,11 @@ module Google
367
371
  # Customize the options with defaults
368
372
  metadata = @config.rpcs.get_metadata_store.metadata.to_h
369
373
 
370
- # Set x-goog-api-client and x-goog-user-project headers
374
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
371
375
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
372
376
  lib_name: @config.lib_name, lib_version: @config.lib_version,
373
377
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
378
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
374
379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
380
 
376
381
  header_params = {}
@@ -470,10 +475,11 @@ module Google
470
475
  # Customize the options with defaults
471
476
  metadata = @config.rpcs.list_metadata_stores.metadata.to_h
472
477
 
473
- # Set x-goog-api-client and x-goog-user-project headers
478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
479
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
481
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
482
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
483
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
484
 
479
485
  header_params = {}
@@ -568,10 +574,11 @@ module Google
568
574
  # Customize the options with defaults
569
575
  metadata = @config.rpcs.delete_metadata_store.metadata.to_h
570
576
 
571
- # Set x-goog-api-client and x-goog-user-project headers
577
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
572
578
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
573
579
  lib_name: @config.lib_name, lib_version: @config.lib_version,
574
580
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
581
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
575
582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
583
 
577
584
  header_params = {}
@@ -667,10 +674,11 @@ module Google
667
674
  # Customize the options with defaults
668
675
  metadata = @config.rpcs.create_artifact.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 = {}
@@ -754,10 +762,11 @@ module Google
754
762
  # Customize the options with defaults
755
763
  metadata = @config.rpcs.get_artifact.metadata.to_h
756
764
 
757
- # Set x-goog-api-client and x-goog-user-project headers
765
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
758
766
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
759
767
  lib_name: @config.lib_name, lib_version: @config.lib_version,
760
768
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
769
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
761
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
762
771
 
763
772
  header_params = {}
@@ -895,10 +904,11 @@ module Google
895
904
  # Customize the options with defaults
896
905
  metadata = @config.rpcs.list_artifacts.metadata.to_h
897
906
 
898
- # Set x-goog-api-client and x-goog-user-project headers
907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
899
908
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
900
909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
901
910
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
911
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
902
912
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
903
913
 
904
914
  header_params = {}
@@ -990,10 +1000,11 @@ module Google
990
1000
  # Customize the options with defaults
991
1001
  metadata = @config.rpcs.update_artifact.metadata.to_h
992
1002
 
993
- # Set x-goog-api-client and x-goog-user-project headers
1003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
994
1004
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
995
1005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
996
1006
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1007
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
997
1008
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
998
1009
 
999
1010
  header_params = {}
@@ -1088,10 +1099,11 @@ module Google
1088
1099
  # Customize the options with defaults
1089
1100
  metadata = @config.rpcs.delete_artifact.metadata.to_h
1090
1101
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1102
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1103
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1104
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1105
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1106
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1095
1107
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1108
 
1097
1109
  header_params = {}
@@ -1190,10 +1202,11 @@ module Google
1190
1202
  # Customize the options with defaults
1191
1203
  metadata = @config.rpcs.purge_artifacts.metadata.to_h
1192
1204
 
1193
- # Set x-goog-api-client and x-goog-user-project headers
1205
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1194
1206
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1195
1207
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1196
1208
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1209
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1197
1210
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1198
1211
 
1199
1212
  header_params = {}
@@ -1288,10 +1301,11 @@ module Google
1288
1301
  # Customize the options with defaults
1289
1302
  metadata = @config.rpcs.create_context.metadata.to_h
1290
1303
 
1291
- # Set x-goog-api-client and x-goog-user-project headers
1304
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1292
1305
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1293
1306
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1294
1307
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1308
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1295
1309
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1296
1310
 
1297
1311
  header_params = {}
@@ -1375,10 +1389,11 @@ module Google
1375
1389
  # Customize the options with defaults
1376
1390
  metadata = @config.rpcs.get_context.metadata.to_h
1377
1391
 
1378
- # Set x-goog-api-client and x-goog-user-project headers
1392
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1379
1393
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1380
1394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1381
1395
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1396
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1382
1397
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1383
1398
 
1384
1399
  header_params = {}
@@ -1520,10 +1535,11 @@ module Google
1520
1535
  # Customize the options with defaults
1521
1536
  metadata = @config.rpcs.list_contexts.metadata.to_h
1522
1537
 
1523
- # Set x-goog-api-client and x-goog-user-project headers
1538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1524
1539
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1525
1540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1526
1541
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1542
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1527
1543
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1528
1544
 
1529
1545
  header_params = {}
@@ -1614,10 +1630,11 @@ module Google
1614
1630
  # Customize the options with defaults
1615
1631
  metadata = @config.rpcs.update_context.metadata.to_h
1616
1632
 
1617
- # Set x-goog-api-client and x-goog-user-project headers
1633
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1618
1634
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1619
1635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1620
1636
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1637
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1621
1638
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1622
1639
 
1623
1640
  header_params = {}
@@ -1715,10 +1732,11 @@ module Google
1715
1732
  # Customize the options with defaults
1716
1733
  metadata = @config.rpcs.delete_context.metadata.to_h
1717
1734
 
1718
- # Set x-goog-api-client and x-goog-user-project headers
1735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1719
1736
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1720
1737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1721
1738
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1739
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1722
1740
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1723
1741
 
1724
1742
  header_params = {}
@@ -1817,10 +1835,11 @@ module Google
1817
1835
  # Customize the options with defaults
1818
1836
  metadata = @config.rpcs.purge_contexts.metadata.to_h
1819
1837
 
1820
- # Set x-goog-api-client and x-goog-user-project headers
1838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1821
1839
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1822
1840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1823
1841
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1842
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1824
1843
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1825
1844
 
1826
1845
  header_params = {}
@@ -1918,10 +1937,11 @@ module Google
1918
1937
  # Customize the options with defaults
1919
1938
  metadata = @config.rpcs.add_context_artifacts_and_executions.metadata.to_h
1920
1939
 
1921
- # Set x-goog-api-client and x-goog-user-project headers
1940
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1922
1941
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1923
1942
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1924
1943
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1944
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1925
1945
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1926
1946
 
1927
1947
  header_params = {}
@@ -2012,10 +2032,11 @@ module Google
2012
2032
  # Customize the options with defaults
2013
2033
  metadata = @config.rpcs.add_context_children.metadata.to_h
2014
2034
 
2015
- # Set x-goog-api-client and x-goog-user-project headers
2035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2016
2036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2017
2037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2018
2038
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2039
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2019
2040
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2020
2041
 
2021
2042
  header_params = {}
@@ -2104,10 +2125,11 @@ module Google
2104
2125
  # Customize the options with defaults
2105
2126
  metadata = @config.rpcs.remove_context_children.metadata.to_h
2106
2127
 
2107
- # Set x-goog-api-client and x-goog-user-project headers
2128
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2108
2129
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2109
2130
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2110
2131
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2132
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2111
2133
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2112
2134
 
2113
2135
  header_params = {}
@@ -2197,10 +2219,11 @@ module Google
2197
2219
  # Customize the options with defaults
2198
2220
  metadata = @config.rpcs.query_context_lineage_subgraph.metadata.to_h
2199
2221
 
2200
- # Set x-goog-api-client and x-goog-user-project headers
2222
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2201
2223
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2202
2224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2203
2225
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2226
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2204
2227
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2205
2228
 
2206
2229
  header_params = {}
@@ -2296,10 +2319,11 @@ module Google
2296
2319
  # Customize the options with defaults
2297
2320
  metadata = @config.rpcs.create_execution.metadata.to_h
2298
2321
 
2299
- # Set x-goog-api-client and x-goog-user-project headers
2322
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2300
2323
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2301
2324
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2302
2325
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2326
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2303
2327
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2304
2328
 
2305
2329
  header_params = {}
@@ -2383,10 +2407,11 @@ module Google
2383
2407
  # Customize the options with defaults
2384
2408
  metadata = @config.rpcs.get_execution.metadata.to_h
2385
2409
 
2386
- # Set x-goog-api-client and x-goog-user-project headers
2410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2387
2411
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2388
2412
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2389
2413
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2414
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2390
2415
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2391
2416
 
2392
2417
  header_params = {}
@@ -2524,10 +2549,11 @@ module Google
2524
2549
  # Customize the options with defaults
2525
2550
  metadata = @config.rpcs.list_executions.metadata.to_h
2526
2551
 
2527
- # Set x-goog-api-client and x-goog-user-project headers
2552
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2528
2553
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2529
2554
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2530
2555
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2556
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2531
2557
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2532
2558
 
2533
2559
  header_params = {}
@@ -2619,10 +2645,11 @@ module Google
2619
2645
  # Customize the options with defaults
2620
2646
  metadata = @config.rpcs.update_execution.metadata.to_h
2621
2647
 
2622
- # Set x-goog-api-client and x-goog-user-project headers
2648
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2623
2649
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2624
2650
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2625
2651
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2652
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2626
2653
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2627
2654
 
2628
2655
  header_params = {}
@@ -2717,10 +2744,11 @@ module Google
2717
2744
  # Customize the options with defaults
2718
2745
  metadata = @config.rpcs.delete_execution.metadata.to_h
2719
2746
 
2720
- # Set x-goog-api-client and x-goog-user-project headers
2747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2721
2748
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2722
2749
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2723
2750
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2751
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2724
2752
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2725
2753
 
2726
2754
  header_params = {}
@@ -2819,10 +2847,11 @@ module Google
2819
2847
  # Customize the options with defaults
2820
2848
  metadata = @config.rpcs.purge_executions.metadata.to_h
2821
2849
 
2822
- # 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
2823
2851
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2824
2852
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2825
2853
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2854
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2826
2855
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2827
2856
 
2828
2857
  header_params = {}
@@ -2913,10 +2942,11 @@ module Google
2913
2942
  # Customize the options with defaults
2914
2943
  metadata = @config.rpcs.add_execution_events.metadata.to_h
2915
2944
 
2916
- # Set x-goog-api-client and x-goog-user-project headers
2945
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2917
2946
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2918
2947
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2919
2948
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2949
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2920
2950
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2921
2951
 
2922
2952
  header_params = {}
@@ -3002,10 +3032,11 @@ module Google
3002
3032
  # Customize the options with defaults
3003
3033
  metadata = @config.rpcs.query_execution_inputs_and_outputs.metadata.to_h
3004
3034
 
3005
- # Set x-goog-api-client and x-goog-user-project headers
3035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3006
3036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3007
3037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3008
3038
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3039
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3009
3040
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3010
3041
 
3011
3042
  header_params = {}
@@ -3100,10 +3131,11 @@ module Google
3100
3131
  # Customize the options with defaults
3101
3132
  metadata = @config.rpcs.create_metadata_schema.metadata.to_h
3102
3133
 
3103
- # Set x-goog-api-client and x-goog-user-project headers
3134
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3104
3135
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3105
3136
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3106
3137
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3138
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3107
3139
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3108
3140
 
3109
3141
  header_params = {}
@@ -3187,10 +3219,11 @@ module Google
3187
3219
  # Customize the options with defaults
3188
3220
  metadata = @config.rpcs.get_metadata_schema.metadata.to_h
3189
3221
 
3190
- # Set x-goog-api-client and x-goog-user-project headers
3222
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3191
3223
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3192
3224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3193
3225
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3226
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3194
3227
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3195
3228
 
3196
3229
  header_params = {}
@@ -3292,10 +3325,11 @@ module Google
3292
3325
  # Customize the options with defaults
3293
3326
  metadata = @config.rpcs.list_metadata_schemas.metadata.to_h
3294
3327
 
3295
- # Set x-goog-api-client and x-goog-user-project headers
3328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3296
3329
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3297
3330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3298
3331
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3332
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3299
3333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3300
3334
 
3301
3335
  header_params = {}
@@ -3417,10 +3451,11 @@ module Google
3417
3451
  # Customize the options with defaults
3418
3452
  metadata = @config.rpcs.query_artifact_lineage_subgraph.metadata.to_h
3419
3453
 
3420
- # Set x-goog-api-client and x-goog-user-project headers
3454
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3421
3455
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3422
3456
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3423
3457
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
3458
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3424
3459
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3425
3460
 
3426
3461
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module MetadataService
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 = {}