google-cloud-ai_platform-v1 0.61.0 → 0.63.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/ai_platform/v1/bindings_override.rb +24 -0
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +11 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +7 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +11 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +70 -0
  8. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +7 -0
  9. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +7 -0
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +7 -0
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +70 -0
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +7 -0
  13. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +7 -0
  14. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +7 -0
  15. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +70 -0
  16. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +57 -0
  17. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +57 -0
  18. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +7 -0
  19. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +7 -0
  20. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +7 -0
  21. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +70 -0
  22. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -0
  23. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +7 -0
  24. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +7 -0
  25. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +7 -0
  26. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +7 -0
  27. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +70 -0
  28. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +7 -0
  29. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +7 -0
  30. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +26 -0
  31. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +7 -0
  32. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +26 -0
  33. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +70 -0
  34. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +879 -0
  35. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/credentials.rb +47 -0
  36. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/paths.rb +88 -0
  37. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/client.rb +827 -0
  38. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest/service_stub.rb +388 -0
  39. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/rest.rb +53 -0
  40. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service.rb +55 -0
  41. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +7 -0
  42. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +7 -0
  43. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +7 -0
  44. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +70 -0
  45. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +7 -0
  46. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +7 -0
  47. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +7 -0
  48. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +70 -0
  49. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +7 -0
  50. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +7 -0
  51. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +7 -0
  52. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +70 -0
  53. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +7 -0
  54. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +7 -0
  55. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +7 -0
  56. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +70 -0
  57. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -0
  58. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +7 -0
  59. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -0
  60. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +7 -0
  61. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +7 -0
  62. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +7 -0
  63. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +7 -0
  64. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +70 -0
  65. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -0
  66. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +7 -0
  67. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +7 -0
  68. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +70 -0
  69. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +7 -0
  70. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +7 -0
  71. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +124 -0
  72. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +7 -0
  73. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +117 -0
  74. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +70 -0
  75. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +61 -0
  76. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +7 -0
  77. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +7 -0
  78. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +7 -0
  79. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +70 -0
  80. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +7 -0
  81. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +7 -0
  82. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +7 -0
  83. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +70 -0
  84. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +7 -0
  85. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +7 -0
  86. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +7 -0
  87. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +70 -0
  88. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +21 -2
  89. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  90. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +21 -2
  91. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +600 -0
  92. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/credentials.rb +47 -0
  93. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb +52 -0
  94. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +571 -0
  95. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +199 -0
  96. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest.rb +53 -0
  97. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service.rb +55 -0
  98. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +921 -0
  99. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/credentials.rb +47 -0
  100. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +821 -0
  101. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb +69 -0
  102. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/client.rb +869 -0
  103. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +4328 -0
  104. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/service_stub.rb +388 -0
  105. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest.rb +54 -0
  106. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service.rb +56 -0
  107. data/lib/google/cloud/ai_platform/v1/rest.rb +3 -0
  108. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +7 -0
  109. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +7 -0
  110. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +7 -0
  111. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +70 -0
  112. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +7 -0
  113. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +7 -0
  114. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +7 -0
  115. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +70 -0
  116. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +7 -0
  117. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +7 -0
  118. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +7 -0
  119. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +70 -0
  120. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  121. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +7 -0
  122. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +7 -0
  123. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +7 -0
  124. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +70 -0
  125. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +7 -0
  126. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +7 -0
  127. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +7 -0
  128. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +7 -0
  129. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +7 -0
  130. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +70 -0
  131. data/lib/google/cloud/ai_platform/v1.rb +3 -0
  132. data/lib/google/cloud/aiplatform/v1/cached_content_pb.rb +54 -0
  133. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -1
  134. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +5 -2
  135. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -1
  136. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_pb.rb +57 -0
  137. data/lib/google/cloud/aiplatform/v1/gen_ai_cache_service_services_pb.rb +54 -0
  138. data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -1
  139. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +4 -1
  140. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +2 -0
  141. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +1 -1
  142. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  143. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +52 -0
  144. data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +47 -0
  145. data/lib/google/cloud/aiplatform/v1/reasoning_engine_pb.rb +51 -0
  146. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_pb.rb +62 -0
  147. data/lib/google/cloud/aiplatform/v1/reasoning_engine_service_services_pb.rb +53 -0
  148. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +9 -1
  149. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +12 -0
  150. data/proto_docs/google/cloud/aiplatform/v1/cached_content.rb +105 -0
  151. data/proto_docs/google/cloud/aiplatform/v1/content.rb +61 -0
  152. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +4 -0
  153. data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +4 -0
  154. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  155. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +4 -0
  156. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +57 -5
  157. data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +100 -0
  158. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +16 -0
  159. data/proto_docs/google/cloud/aiplatform/v1/explanation_metadata.rb +4 -0
  160. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  161. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +18 -0
  162. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +39 -0
  163. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  164. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +29 -0
  165. data/proto_docs/google/cloud/aiplatform/v1/gen_ai_cache_service.rb +108 -0
  166. data/proto_docs/google/cloud/aiplatform/v1/index.rb +6 -0
  167. data/proto_docs/google/cloud/aiplatform/v1/io.rb +8 -0
  168. data/proto_docs/google/cloud/aiplatform/v1/migratable_resource.rb +8 -0
  169. data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +18 -0
  170. data/proto_docs/google/cloud/aiplatform/v1/model.rb +7 -0
  171. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +10 -0
  172. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +10 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +63 -0
  174. data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +14 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +42 -2
  176. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +4 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +24 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +14 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine.rb +87 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +73 -0
  181. data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_service.rb +136 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/schedule.rb +4 -0
  183. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.rb +12 -0
  184. data/proto_docs/google/cloud/aiplatform/v1/study.rb +24 -0
  185. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_data.rb +6 -0
  186. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +95 -0
  187. data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +14 -0
  188. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +6 -0
  189. data/proto_docs/google/cloud/aiplatform/v1/user_action_reference.rb +4 -0
  190. data/proto_docs/google/cloud/aiplatform/v1/value.rb +6 -0
  191. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +32 -0
  192. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +8 -0
  193. data/proto_docs/google/longrunning/operations.rb +4 -0
  194. data/proto_docs/google/protobuf/struct.rb +12 -0
  195. data/proto_docs/google/type/latlng.rb +38 -0
  196. metadata +43 -9
@@ -601,6 +601,13 @@ module Google
601
601
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
602
602
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
603
603
  # * (`nil`) indicating no credentials
604
+ #
605
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
606
+ # external source for authentication to Google Cloud, you must validate it before
607
+ # providing it to a Google API client library. Providing an unvalidated credential
608
+ # configuration to Google APIs can compromise the security of your systems and data.
609
+ # For more information, refer to [Validate credential configurations from external
610
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
604
611
  # @return [::Object]
605
612
  # @!attribute [rw] scope
606
613
  # The OAuth scopes
@@ -1314,6 +1321,13 @@ module Google
1314
1321
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1315
1322
  ]
1316
1323
  )
1324
+ .with_bindings(
1325
+ uri_method: :get,
1326
+ uri_template: "/ui/{name}:wait",
1327
+ matches: [
1328
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
1329
+ ]
1330
+ )
1317
1331
  .with_bindings(
1318
1332
  uri_method: :get,
1319
1333
  uri_template: "/v1/{name}/operations",
@@ -1510,6 +1524,13 @@ module Google
1510
1524
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1511
1525
  ]
1512
1526
  )
1527
+ .with_bindings(
1528
+ uri_method: :get,
1529
+ uri_template: "/v1/{name}/operations",
1530
+ matches: [
1531
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
1532
+ ]
1533
+ )
1513
1534
  .with_bindings(
1514
1535
  uri_method: :get,
1515
1536
  uri_template: "/v1/{name}/operations",
@@ -1993,6 +2014,13 @@ module Google
1993
2014
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1994
2015
  ]
1995
2016
  )
2017
+ .with_bindings(
2018
+ uri_method: :get,
2019
+ uri_template: "/ui/{name}",
2020
+ matches: [
2021
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2022
+ ]
2023
+ )
1996
2024
  .with_bindings(
1997
2025
  uri_method: :get,
1998
2026
  uri_template: "/v1/{name}",
@@ -2203,6 +2231,13 @@ module Google
2203
2231
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2204
2232
  ]
2205
2233
  )
2234
+ .with_bindings(
2235
+ uri_method: :get,
2236
+ uri_template: "/v1/{name}",
2237
+ matches: [
2238
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2239
+ ]
2240
+ )
2206
2241
  .with_bindings(
2207
2242
  uri_method: :get,
2208
2243
  uri_template: "/v1/{name}",
@@ -2651,6 +2686,13 @@ module Google
2651
2686
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
2652
2687
  ]
2653
2688
  )
2689
+ .with_bindings(
2690
+ uri_method: :delete,
2691
+ uri_template: "/ui/{name}",
2692
+ matches: [
2693
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2694
+ ]
2695
+ )
2654
2696
  .with_bindings(
2655
2697
  uri_method: :delete,
2656
2698
  uri_template: "/ui/{name}",
@@ -2861,6 +2903,13 @@ module Google
2861
2903
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2862
2904
  ]
2863
2905
  )
2906
+ .with_bindings(
2907
+ uri_method: :delete,
2908
+ uri_template: "/v1/{name}",
2909
+ matches: [
2910
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2911
+ ]
2912
+ )
2864
2913
  .with_bindings(
2865
2914
  uri_method: :delete,
2866
2915
  uri_template: "/v1/{name}",
@@ -3512,6 +3561,13 @@ module Google
3512
3561
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3513
3562
  ]
3514
3563
  )
3564
+ .with_bindings(
3565
+ uri_method: :post,
3566
+ uri_template: "/v1/{name}:cancel",
3567
+ matches: [
3568
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
3569
+ ]
3570
+ )
3515
3571
  .with_bindings(
3516
3572
  uri_method: :post,
3517
3573
  uri_template: "/v1/{name}:cancel",
@@ -3939,6 +3995,13 @@ module Google
3939
3995
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
3940
3996
  ]
3941
3997
  )
3998
+ .with_bindings(
3999
+ uri_method: :post,
4000
+ uri_template: "/ui/{name}:wait",
4001
+ matches: [
4002
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
4003
+ ]
4004
+ )
3942
4005
  .with_bindings(
3943
4006
  uri_method: :post,
3944
4007
  uri_template: "/v1/{name}:wait",
@@ -4142,6 +4205,13 @@ module Google
4142
4205
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4143
4206
  ]
4144
4207
  )
4208
+ .with_bindings(
4209
+ uri_method: :post,
4210
+ uri_template: "/v1/{name}:wait",
4211
+ matches: [
4212
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
4213
+ ]
4214
+ )
4145
4215
  .with_bindings(
4146
4216
  uri_method: :post,
4147
4217
  uri_template: "/v1/{name}:wait",
@@ -855,6 +855,13 @@ module Google
855
855
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
856
856
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
857
857
  # * (`nil`) indicating no credentials
858
+ #
859
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
860
+ # external source for authentication to Google Cloud, you must validate it before
861
+ # providing it to a Google API client library. Providing an unvalidated credential
862
+ # configuration to Google APIs can compromise the security of your systems and data.
863
+ # For more information, refer to [Validate credential configurations from external
864
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
858
865
  # @return [::Object]
859
866
  # @!attribute [rw] scope
860
867
  # The OAuth scopes
@@ -648,6 +648,13 @@ module Google
648
648
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
649
649
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
650
  # * (`nil`) indicating no credentials
651
+ #
652
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # external source for authentication to Google Cloud, you must validate it before
654
+ # providing it to a Google API client library. Providing an unvalidated credential
655
+ # configuration to Google APIs can compromise the security of your systems and data.
656
+ # For more information, refer to [Validate credential configurations from external
657
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
651
658
  # @return [::Object]
652
659
  # @!attribute [rw] scope
653
660
  # The OAuth scopes
@@ -806,6 +806,13 @@ module Google
806
806
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
807
807
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
808
808
  # * (`nil`) indicating no credentials
809
+ #
810
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
811
+ # external source for authentication to Google Cloud, you must validate it before
812
+ # providing it to a Google API client library. Providing an unvalidated credential
813
+ # configuration to Google APIs can compromise the security of your systems and data.
814
+ # For more information, refer to [Validate credential configurations from external
815
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
809
816
  # @return [::Object]
810
817
  # @!attribute [rw] scope
811
818
  # The OAuth scopes
@@ -601,6 +601,13 @@ module Google
601
601
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
602
602
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
603
603
  # * (`nil`) indicating no credentials
604
+ #
605
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
606
+ # external source for authentication to Google Cloud, you must validate it before
607
+ # providing it to a Google API client library. Providing an unvalidated credential
608
+ # configuration to Google APIs can compromise the security of your systems and data.
609
+ # For more information, refer to [Validate credential configurations from external
610
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
604
611
  # @return [::Object]
605
612
  # @!attribute [rw] scope
606
613
  # The OAuth scopes
@@ -1314,6 +1321,13 @@ module Google
1314
1321
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1315
1322
  ]
1316
1323
  )
1324
+ .with_bindings(
1325
+ uri_method: :get,
1326
+ uri_template: "/ui/{name}:wait",
1327
+ matches: [
1328
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
1329
+ ]
1330
+ )
1317
1331
  .with_bindings(
1318
1332
  uri_method: :get,
1319
1333
  uri_template: "/v1/{name}/operations",
@@ -1510,6 +1524,13 @@ module Google
1510
1524
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1511
1525
  ]
1512
1526
  )
1527
+ .with_bindings(
1528
+ uri_method: :get,
1529
+ uri_template: "/v1/{name}/operations",
1530
+ matches: [
1531
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
1532
+ ]
1533
+ )
1513
1534
  .with_bindings(
1514
1535
  uri_method: :get,
1515
1536
  uri_template: "/v1/{name}/operations",
@@ -1993,6 +2014,13 @@ module Google
1993
2014
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1994
2015
  ]
1995
2016
  )
2017
+ .with_bindings(
2018
+ uri_method: :get,
2019
+ uri_template: "/ui/{name}",
2020
+ matches: [
2021
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2022
+ ]
2023
+ )
1996
2024
  .with_bindings(
1997
2025
  uri_method: :get,
1998
2026
  uri_template: "/v1/{name}",
@@ -2203,6 +2231,13 @@ module Google
2203
2231
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2204
2232
  ]
2205
2233
  )
2234
+ .with_bindings(
2235
+ uri_method: :get,
2236
+ uri_template: "/v1/{name}",
2237
+ matches: [
2238
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2239
+ ]
2240
+ )
2206
2241
  .with_bindings(
2207
2242
  uri_method: :get,
2208
2243
  uri_template: "/v1/{name}",
@@ -2651,6 +2686,13 @@ module Google
2651
2686
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
2652
2687
  ]
2653
2688
  )
2689
+ .with_bindings(
2690
+ uri_method: :delete,
2691
+ uri_template: "/ui/{name}",
2692
+ matches: [
2693
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2694
+ ]
2695
+ )
2654
2696
  .with_bindings(
2655
2697
  uri_method: :delete,
2656
2698
  uri_template: "/ui/{name}",
@@ -2861,6 +2903,13 @@ module Google
2861
2903
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2862
2904
  ]
2863
2905
  )
2906
+ .with_bindings(
2907
+ uri_method: :delete,
2908
+ uri_template: "/v1/{name}",
2909
+ matches: [
2910
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2911
+ ]
2912
+ )
2864
2913
  .with_bindings(
2865
2914
  uri_method: :delete,
2866
2915
  uri_template: "/v1/{name}",
@@ -3512,6 +3561,13 @@ module Google
3512
3561
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3513
3562
  ]
3514
3563
  )
3564
+ .with_bindings(
3565
+ uri_method: :post,
3566
+ uri_template: "/v1/{name}:cancel",
3567
+ matches: [
3568
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
3569
+ ]
3570
+ )
3515
3571
  .with_bindings(
3516
3572
  uri_method: :post,
3517
3573
  uri_template: "/v1/{name}:cancel",
@@ -3939,6 +3995,13 @@ module Google
3939
3995
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
3940
3996
  ]
3941
3997
  )
3998
+ .with_bindings(
3999
+ uri_method: :post,
4000
+ uri_template: "/ui/{name}:wait",
4001
+ matches: [
4002
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
4003
+ ]
4004
+ )
3942
4005
  .with_bindings(
3943
4006
  uri_method: :post,
3944
4007
  uri_template: "/v1/{name}:wait",
@@ -4142,6 +4205,13 @@ module Google
4142
4205
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4143
4206
  ]
4144
4207
  )
4208
+ .with_bindings(
4209
+ uri_method: :post,
4210
+ uri_template: "/v1/{name}:wait",
4211
+ matches: [
4212
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
4213
+ ]
4214
+ )
4145
4215
  .with_bindings(
4146
4216
  uri_method: :post,
4147
4217
  uri_template: "/v1/{name}:wait",
@@ -1508,6 +1508,13 @@ module Google
1508
1508
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1509
1509
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1510
1510
  # * (`nil`) indicating no credentials
1511
+ #
1512
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1513
+ # external source for authentication to Google Cloud, you must validate it before
1514
+ # providing it to a Google API client library. Providing an unvalidated credential
1515
+ # configuration to Google APIs can compromise the security of your systems and data.
1516
+ # For more information, refer to [Validate credential configurations from external
1517
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1511
1518
  # @return [::Object]
1512
1519
  # @!attribute [rw] scope
1513
1520
  # The OAuth scopes
@@ -648,6 +648,13 @@ module Google
648
648
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
649
649
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
650
  # * (`nil`) indicating no credentials
651
+ #
652
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # external source for authentication to Google Cloud, you must validate it before
654
+ # providing it to a Google API client library. Providing an unvalidated credential
655
+ # configuration to Google APIs can compromise the security of your systems and data.
656
+ # For more information, refer to [Validate credential configurations from external
657
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
651
658
  # @return [::Object]
652
659
  # @!attribute [rw] scope
653
660
  # The OAuth scopes
@@ -1417,6 +1417,13 @@ module Google
1417
1417
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1418
1418
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1419
1419
  # * (`nil`) indicating no credentials
1420
+ #
1421
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1422
+ # external source for authentication to Google Cloud, you must validate it before
1423
+ # providing it to a Google API client library. Providing an unvalidated credential
1424
+ # configuration to Google APIs can compromise the security of your systems and data.
1425
+ # For more information, refer to [Validate credential configurations from external
1426
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1420
1427
  # @return [::Object]
1421
1428
  # @!attribute [rw] scope
1422
1429
  # The OAuth scopes
@@ -601,6 +601,13 @@ module Google
601
601
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
602
602
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
603
603
  # * (`nil`) indicating no credentials
604
+ #
605
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
606
+ # external source for authentication to Google Cloud, you must validate it before
607
+ # providing it to a Google API client library. Providing an unvalidated credential
608
+ # configuration to Google APIs can compromise the security of your systems and data.
609
+ # For more information, refer to [Validate credential configurations from external
610
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
604
611
  # @return [::Object]
605
612
  # @!attribute [rw] scope
606
613
  # The OAuth scopes
@@ -1314,6 +1321,13 @@ module Google
1314
1321
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1315
1322
  ]
1316
1323
  )
1324
+ .with_bindings(
1325
+ uri_method: :get,
1326
+ uri_template: "/ui/{name}:wait",
1327
+ matches: [
1328
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
1329
+ ]
1330
+ )
1317
1331
  .with_bindings(
1318
1332
  uri_method: :get,
1319
1333
  uri_template: "/v1/{name}/operations",
@@ -1510,6 +1524,13 @@ module Google
1510
1524
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1511
1525
  ]
1512
1526
  )
1527
+ .with_bindings(
1528
+ uri_method: :get,
1529
+ uri_template: "/v1/{name}/operations",
1530
+ matches: [
1531
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
1532
+ ]
1533
+ )
1513
1534
  .with_bindings(
1514
1535
  uri_method: :get,
1515
1536
  uri_template: "/v1/{name}/operations",
@@ -1993,6 +2014,13 @@ module Google
1993
2014
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
1994
2015
  ]
1995
2016
  )
2017
+ .with_bindings(
2018
+ uri_method: :get,
2019
+ uri_template: "/ui/{name}",
2020
+ matches: [
2021
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2022
+ ]
2023
+ )
1996
2024
  .with_bindings(
1997
2025
  uri_method: :get,
1998
2026
  uri_template: "/v1/{name}",
@@ -2203,6 +2231,13 @@ module Google
2203
2231
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2204
2232
  ]
2205
2233
  )
2234
+ .with_bindings(
2235
+ uri_method: :get,
2236
+ uri_template: "/v1/{name}",
2237
+ matches: [
2238
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2239
+ ]
2240
+ )
2206
2241
  .with_bindings(
2207
2242
  uri_method: :get,
2208
2243
  uri_template: "/v1/{name}",
@@ -2651,6 +2686,13 @@ module Google
2651
2686
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
2652
2687
  ]
2653
2688
  )
2689
+ .with_bindings(
2690
+ uri_method: :delete,
2691
+ uri_template: "/ui/{name}",
2692
+ matches: [
2693
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
2694
+ ]
2695
+ )
2654
2696
  .with_bindings(
2655
2697
  uri_method: :delete,
2656
2698
  uri_template: "/ui/{name}",
@@ -2861,6 +2903,13 @@ module Google
2861
2903
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2862
2904
  ]
2863
2905
  )
2906
+ .with_bindings(
2907
+ uri_method: :delete,
2908
+ uri_template: "/v1/{name}",
2909
+ matches: [
2910
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
2911
+ ]
2912
+ )
2864
2913
  .with_bindings(
2865
2914
  uri_method: :delete,
2866
2915
  uri_template: "/v1/{name}",
@@ -3512,6 +3561,13 @@ module Google
3512
3561
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3513
3562
  ]
3514
3563
  )
3564
+ .with_bindings(
3565
+ uri_method: :post,
3566
+ uri_template: "/v1/{name}:cancel",
3567
+ matches: [
3568
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
3569
+ ]
3570
+ )
3515
3571
  .with_bindings(
3516
3572
  uri_method: :post,
3517
3573
  uri_template: "/v1/{name}:cancel",
@@ -3939,6 +3995,13 @@ module Google
3939
3995
  ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+/?$}, false]
3940
3996
  ]
3941
3997
  )
3998
+ .with_bindings(
3999
+ uri_method: :post,
4000
+ uri_template: "/ui/{name}:wait",
4001
+ matches: [
4002
+ ["name", %r{^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+/?$}, false]
4003
+ ]
4004
+ )
3942
4005
  .with_bindings(
3943
4006
  uri_method: :post,
3944
4007
  uri_template: "/v1/{name}:wait",
@@ -4142,6 +4205,13 @@ module Google
4142
4205
  ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4143
4206
  ]
4144
4207
  )
4208
+ .with_bindings(
4209
+ uri_method: :post,
4210
+ uri_template: "/v1/{name}:wait",
4211
+ matches: [
4212
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+/?$}, false]
4213
+ ]
4214
+ )
4145
4215
  .with_bindings(
4146
4216
  uri_method: :post,
4147
4217
  uri_template: "/v1/{name}:wait",
@@ -1262,7 +1262,7 @@ module Google
1262
1262
  # @param options [::Gapic::CallOptions, ::Hash]
1263
1263
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1264
1264
  #
1265
- # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, labels: nil, safety_settings: nil, generation_config: nil)
1265
+ # @overload generate_content(model: nil, contents: nil, system_instruction: nil, cached_content: nil, tools: nil, tool_config: nil, labels: nil, safety_settings: nil, generation_config: nil)
1266
1266
  # Pass arguments to `generate_content` via keyword arguments. Note that at
1267
1267
  # least one keyword argument is required. To specify no parameters, or to keep all
1268
1268
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1286,6 +1286,12 @@ module Google
1286
1286
  # Optional. The user provided system instructions for the model.
1287
1287
  # Note: only text should be used in parts and content in each part will be in
1288
1288
  # a separate paragraph.
1289
+ # @param cached_content [::String]
1290
+ # Optional. The name of the cached content used as context to serve the
1291
+ # prediction. Note: only used in explicit caching, where users can have
1292
+ # control over caching (e.g. what content to cache) and enjoy guaranteed cost
1293
+ # savings. Format:
1294
+ # `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
1289
1295
  # @param tools [::Array<::Google::Cloud::AIPlatform::V1::Tool, ::Hash>]
1290
1296
  # Optional. A list of `Tools` the model may use to generate the next
1291
1297
  # response.
@@ -1387,7 +1393,7 @@ module Google
1387
1393
  # @param options [::Gapic::CallOptions, ::Hash]
1388
1394
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1389
1395
  #
1390
- # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, labels: nil, safety_settings: nil, generation_config: nil)
1396
+ # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, cached_content: nil, tools: nil, tool_config: nil, labels: nil, safety_settings: nil, generation_config: nil)
1391
1397
  # Pass arguments to `stream_generate_content` via keyword arguments. Note that at
1392
1398
  # least one keyword argument is required. To specify no parameters, or to keep all
1393
1399
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1411,6 +1417,12 @@ module Google
1411
1417
  # Optional. The user provided system instructions for the model.
1412
1418
  # Note: only text should be used in parts and content in each part will be in
1413
1419
  # a separate paragraph.
1420
+ # @param cached_content [::String]
1421
+ # Optional. The name of the cached content used as context to serve the
1422
+ # prediction. Note: only used in explicit caching, where users can have
1423
+ # control over caching (e.g. what content to cache) and enjoy guaranteed cost
1424
+ # savings. Format:
1425
+ # `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
1414
1426
  # @param tools [::Array<::Google::Cloud::AIPlatform::V1::Tool, ::Hash>]
1415
1427
  # Optional. A list of `Tools` the model may use to generate the next
1416
1428
  # response.
@@ -1546,6 +1558,13 @@ module Google
1546
1558
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1547
1559
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1548
1560
  # * (`nil`) indicating no credentials
1561
+ #
1562
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1563
+ # external source for authentication to Google Cloud, you must validate it before
1564
+ # providing it to a Google API client library. Providing an unvalidated credential
1565
+ # configuration to Google APIs can compromise the security of your systems and data.
1566
+ # For more information, refer to [Validate credential configurations from external
1567
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1549
1568
  # @return [::Object]
1550
1569
  # @!attribute [rw] scope
1551
1570
  # The OAuth scopes
@@ -24,6 +24,25 @@ module Google
24
24
  module PredictionService
25
25
  # Path helper methods for the PredictionService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified CachedContent resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/cachedContents/{cached_content}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param cached_content [String]
37
+ #
38
+ # @return [::String]
39
+ def cached_content_path project:, location:, cached_content:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/cachedContents/#{cached_content}"
44
+ end
45
+
27
46
  ##
28
47
  # Create a fully-qualified Endpoint resource string.
29
48
  #