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
  # A service for managing Vertex AI's machine learning Models.
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
 
@@ -286,10 +289,11 @@ module Google
286
289
  # Customize the options with defaults
287
290
  metadata = @config.rpcs.upload_model.metadata.to_h
288
291
 
289
- # Set x-goog-api-client and x-goog-user-project headers
292
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
290
293
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
291
294
  lib_name: @config.lib_name, lib_version: @config.lib_version,
292
295
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
296
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
293
297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
298
 
295
299
  header_params = {}
@@ -383,10 +387,11 @@ module Google
383
387
  # Customize the options with defaults
384
388
  metadata = @config.rpcs.get_model.metadata.to_h
385
389
 
386
- # Set x-goog-api-client and x-goog-user-project headers
390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
387
391
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
388
392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
389
393
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
394
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
390
395
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
396
 
392
397
  header_params = {}
@@ -514,10 +519,11 @@ module Google
514
519
  # Customize the options with defaults
515
520
  metadata = @config.rpcs.list_models.metadata.to_h
516
521
 
517
- # Set x-goog-api-client and x-goog-user-project headers
522
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
523
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
524
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
525
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
526
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
521
527
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
528
 
523
529
  header_params = {}
@@ -636,10 +642,11 @@ module Google
636
642
  # Customize the options with defaults
637
643
  metadata = @config.rpcs.list_model_versions.metadata.to_h
638
644
 
639
- # Set x-goog-api-client and x-goog-user-project headers
645
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
646
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
648
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
649
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
643
650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
644
651
 
645
652
  header_params = {}
@@ -743,10 +750,11 @@ module Google
743
750
  # Customize the options with defaults
744
751
  metadata = @config.rpcs.update_model.metadata.to_h
745
752
 
746
- # Set x-goog-api-client and x-goog-user-project headers
753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
747
754
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
748
755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
749
756
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
757
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
750
758
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
751
759
 
752
760
  header_params = {}
@@ -838,10 +846,11 @@ module Google
838
846
  # Customize the options with defaults
839
847
  metadata = @config.rpcs.update_explanation_dataset.metadata.to_h
840
848
 
841
- # Set x-goog-api-client and x-goog-user-project headers
849
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
842
850
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
843
851
  lib_name: @config.lib_name, lib_version: @config.lib_version,
844
852
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
853
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
845
854
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
846
855
 
847
856
  header_params = {}
@@ -939,10 +948,11 @@ module Google
939
948
  # Customize the options with defaults
940
949
  metadata = @config.rpcs.delete_model.metadata.to_h
941
950
 
942
- # Set x-goog-api-client and x-goog-user-project headers
951
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
943
952
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
944
953
  lib_name: @config.lib_name, lib_version: @config.lib_version,
945
954
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
955
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
946
956
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
947
957
 
948
958
  header_params = {}
@@ -1041,10 +1051,11 @@ module Google
1041
1051
  # Customize the options with defaults
1042
1052
  metadata = @config.rpcs.delete_model_version.metadata.to_h
1043
1053
 
1044
- # Set x-goog-api-client and x-goog-user-project headers
1054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1045
1055
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1046
1056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1047
1057
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1058
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1048
1059
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1049
1060
 
1050
1061
  header_params = {}
@@ -1143,10 +1154,11 @@ module Google
1143
1154
  # Customize the options with defaults
1144
1155
  metadata = @config.rpcs.merge_version_aliases.metadata.to_h
1145
1156
 
1146
- # Set x-goog-api-client and x-goog-user-project headers
1157
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1147
1158
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
1159
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
1160
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1161
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1150
1162
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1151
1163
 
1152
1164
  header_params = {}
@@ -1242,10 +1254,11 @@ module Google
1242
1254
  # Customize the options with defaults
1243
1255
  metadata = @config.rpcs.export_model.metadata.to_h
1244
1256
 
1245
- # Set x-goog-api-client and x-goog-user-project headers
1257
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1246
1258
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1247
1259
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1248
1260
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1261
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1249
1262
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1250
1263
 
1251
1264
  header_params = {}
@@ -1358,10 +1371,11 @@ module Google
1358
1371
  # Customize the options with defaults
1359
1372
  metadata = @config.rpcs.copy_model.metadata.to_h
1360
1373
 
1361
- # Set x-goog-api-client and x-goog-user-project headers
1374
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1362
1375
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1363
1376
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1364
1377
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1378
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1365
1379
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1366
1380
 
1367
1381
  header_params = {}
@@ -1447,10 +1461,11 @@ module Google
1447
1461
  # Customize the options with defaults
1448
1462
  metadata = @config.rpcs.import_model_evaluation.metadata.to_h
1449
1463
 
1450
- # Set x-goog-api-client and x-goog-user-project headers
1464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1451
1465
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1452
1466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1453
1467
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1454
1469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1455
1470
 
1456
1471
  header_params = {}
@@ -1536,10 +1551,11 @@ module Google
1536
1551
  # Customize the options with defaults
1537
1552
  metadata = @config.rpcs.batch_import_model_evaluation_slices.metadata.to_h
1538
1553
 
1539
- # Set x-goog-api-client and x-goog-user-project headers
1554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1540
1555
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1541
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1542
1557
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1558
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1543
1559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1544
1560
 
1545
1561
  header_params = {}
@@ -1625,10 +1641,11 @@ module Google
1625
1641
  # Customize the options with defaults
1626
1642
  metadata = @config.rpcs.batch_import_evaluated_annotations.metadata.to_h
1627
1643
 
1628
- # Set x-goog-api-client and x-goog-user-project headers
1644
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1629
1645
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1630
1646
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1631
1647
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1648
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1632
1649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1633
1650
 
1634
1651
  header_params = {}
@@ -1712,10 +1729,11 @@ module Google
1712
1729
  # Customize the options with defaults
1713
1730
  metadata = @config.rpcs.get_model_evaluation.metadata.to_h
1714
1731
 
1715
- # Set x-goog-api-client and x-goog-user-project headers
1732
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1716
1733
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1717
1734
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1718
1735
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1736
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1719
1737
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1720
1738
 
1721
1739
  header_params = {}
@@ -1815,10 +1833,11 @@ module Google
1815
1833
  # Customize the options with defaults
1816
1834
  metadata = @config.rpcs.list_model_evaluations.metadata.to_h
1817
1835
 
1818
- # Set x-goog-api-client and x-goog-user-project headers
1836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1819
1837
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1820
1838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1821
1839
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1840
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1822
1841
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1823
1842
 
1824
1843
  header_params = {}
@@ -1903,10 +1922,11 @@ module Google
1903
1922
  # Customize the options with defaults
1904
1923
  metadata = @config.rpcs.get_model_evaluation_slice.metadata.to_h
1905
1924
 
1906
- # Set x-goog-api-client and x-goog-user-project headers
1925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1907
1926
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1908
1927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1909
1928
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1929
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1910
1930
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1911
1931
 
1912
1932
  header_params = {}
@@ -2009,10 +2029,11 @@ module Google
2009
2029
  # Customize the options with defaults
2010
2030
  metadata = @config.rpcs.list_model_evaluation_slices.metadata.to_h
2011
2031
 
2012
- # Set x-goog-api-client and x-goog-user-project headers
2032
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2013
2033
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2014
2034
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2015
2035
  gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2036
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2016
2037
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2017
2038
 
2018
2039
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ModelService
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 = {}