google-cloud-ai_platform-v1 0.39.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/bindings_override.rb +399 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +138 -18
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +13 -5
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2280 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3971 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1196 -0
  8. data/lib/google/cloud/ai_platform/v1/dataset_service/rest.rb +54 -0
  9. data/lib/google/cloud/ai_platform/v1/dataset_service.rb +6 -0
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +13 -5
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +13 -5
  12. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +851 -0
  13. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +3971 -0
  14. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +365 -0
  15. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest.rb +54 -0
  16. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +6 -0
  17. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +19 -8
  18. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +13 -5
  19. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +1215 -0
  20. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +3971 -0
  21. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +546 -0
  22. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest.rb +54 -0
  23. data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +6 -0
  24. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +29 -13
  25. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +13 -5
  26. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1732 -0
  27. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +3971 -0
  28. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +841 -0
  29. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest.rb +55 -0
  30. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +6 -0
  31. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -2
  32. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +534 -0
  33. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +189 -0
  34. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest.rb +53 -0
  35. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +6 -0
  36. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +24 -11
  37. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +13 -5
  38. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +1450 -0
  39. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +3971 -0
  40. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +663 -0
  41. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest.rb +55 -0
  42. data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +6 -0
  43. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +9 -3
  44. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +645 -0
  45. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +244 -0
  46. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest.rb +53 -0
  47. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +6 -0
  48. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -21
  49. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +13 -5
  50. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2765 -0
  51. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +3971 -0
  52. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +1319 -0
  53. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest.rb +54 -0
  54. data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +6 -0
  55. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +11 -4
  56. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
  57. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
  58. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
  59. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +6 -0
  60. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
  61. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
  62. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
  63. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3971 -0
  64. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
  65. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
  66. data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
  67. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
  68. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
  69. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
  70. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3971 -0
  71. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
  72. data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
  73. data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
  74. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
  75. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
  76. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
  77. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3971 -0
  78. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
  79. data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
  80. data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
  81. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
  82. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
  83. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
  84. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
  85. data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
  86. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
  87. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
  88. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
  89. data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
  90. data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
  91. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
  92. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
  93. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
  94. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3971 -0
  95. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
  96. data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
  97. data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
  98. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
  99. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
  100. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
  101. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3971 -0
  102. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
  103. data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
  104. data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
  105. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
  106. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
  107. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
  108. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
  109. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
  110. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
  111. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
  112. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
  113. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3971 -0
  114. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
  115. data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
  116. data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
  117. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +123 -10
  118. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +13 -5
  119. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1503 -0
  120. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3971 -0
  121. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +723 -0
  122. data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
  123. data/lib/google/cloud/ai_platform/v1/notebook_service.rb +6 -0
  124. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +15 -6
  125. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +13 -5
  126. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
  127. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3971 -0
  128. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
  129. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
  130. data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +6 -0
  131. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
  132. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
  133. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
  134. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3971 -0
  135. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
  136. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
  137. data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
  138. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +37 -15
  139. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  140. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1303 -0
  141. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +658 -0
  142. data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
  143. data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
  144. data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
  145. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
  146. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
  147. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
  148. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3971 -0
  149. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
  150. data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
  151. data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
  152. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
  153. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
  154. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
  155. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3971 -0
  156. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
  157. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
  158. data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
  159. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
  160. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
  161. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
  162. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3971 -0
  163. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
  164. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
  165. data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
  166. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  167. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
  168. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
  169. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
  170. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3971 -0
  171. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
  172. data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
  173. data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
  174. data/lib/google/cloud/ai_platform/v1.rb +6 -1
  175. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  176. data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -4
  177. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  178. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  179. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  180. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  181. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  182. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
  183. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  184. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  185. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  186. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  187. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  188. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  189. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  190. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  191. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  192. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  193. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  194. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  195. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
  196. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  197. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  198. data/proto_docs/google/cloud/aiplatform/v1/content.rb +26 -48
  199. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  200. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  201. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  202. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  203. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +7 -0
  204. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  205. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  206. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  207. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
  208. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  209. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  210. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +20 -2
  211. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  212. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  213. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  214. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +17 -2
  215. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  216. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  217. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  218. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
  219. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  220. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +8 -7
  221. metadata +101 -2
@@ -32,6 +32,9 @@ module Google
32
32
  # 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 = {}