google-cloud-ai_platform-v1 0.57.0 → 0.59.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +2 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +3 -10
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +73 -10
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +3 -10
  7. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +73 -10
  8. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +103 -0
  9. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +3 -10
  10. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +96 -0
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +73 -10
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +60 -0
  13. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +6 -1
  14. data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +6 -1
  15. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +1 -0
  16. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +3 -10
  17. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1 -0
  18. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +73 -10
  19. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +4 -4
  20. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +3 -10
  21. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +4 -4
  22. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +73 -10
  23. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +3 -10
  24. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +73 -10
  25. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +3 -4
  26. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +3 -10
  27. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +3 -4
  28. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +73 -10
  29. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +4 -2
  30. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +3 -10
  31. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +4 -2
  32. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +73 -10
  33. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +3 -10
  34. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +73 -10
  35. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +3 -10
  36. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +73 -10
  37. data/lib/google/cloud/ai_platform/v1/llm_utility_service/paths.rb +19 -0
  38. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +3 -10
  39. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +73 -10
  40. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +3 -10
  41. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +73 -10
  42. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +3 -10
  43. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +73 -10
  44. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +2 -1
  45. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +3 -10
  46. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +2 -1
  47. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +73 -10
  48. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +2 -2
  49. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +3 -10
  50. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +2 -2
  51. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +73 -10
  52. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +3 -10
  53. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +73 -10
  54. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +19 -0
  55. data/lib/google/cloud/ai_platform/v1/rest.rb +2 -0
  56. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +3 -2
  57. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +3 -10
  58. data/lib/google/cloud/ai_platform/v1/schedule_service/paths.rb +38 -0
  59. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +3 -2
  60. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +73 -10
  61. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +3 -10
  62. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +73 -10
  63. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +3 -10
  64. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +73 -10
  65. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  66. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +1405 -0
  67. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/credentials.rb +47 -0
  68. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +810 -0
  69. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/paths.rb +173 -0
  70. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +1318 -0
  71. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +4244 -0
  72. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +663 -0
  73. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest.rb +54 -0
  74. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service.rb +56 -0
  75. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +672 -0
  76. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/credentials.rb +47 -0
  77. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/paths.rb +69 -0
  78. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +634 -0
  79. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +249 -0
  80. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest.rb +53 -0
  81. data/lib/google/cloud/ai_platform/v1/vertex_rag_service.rb +55 -0
  82. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +3 -10
  83. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +73 -10
  84. data/lib/google/cloud/ai_platform/v1.rb +2 -0
  85. data/lib/google/cloud/aiplatform/v1/api_auth_pb.rb +46 -0
  86. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  87. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +6 -1
  88. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +3 -1
  89. data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +2 -0
  90. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +2 -1
  91. data/lib/google/cloud/aiplatform/v1/evaluation_service_pb.rb +11 -1
  92. data/lib/google/cloud/aiplatform/v1/genai_tuning_service_services_pb.rb +0 -2
  93. data/lib/google/cloud/aiplatform/v1/io_pb.rb +16 -1
  94. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  95. data/lib/google/cloud/aiplatform/v1/notebook_execution_job_pb.rb +6 -1
  96. data/lib/google/cloud/aiplatform/v1/schedule_service_services_pb.rb +3 -2
  97. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +5 -1
  98. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +1 -1
  99. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_pb.rb +67 -0
  100. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_pb.rb +71 -0
  101. data/lib/google/cloud/aiplatform/v1/vertex_rag_data_service_services_pb.rb +63 -0
  102. data/lib/google/cloud/aiplatform/v1/vertex_rag_service_pb.rb +65 -0
  103. data/lib/google/cloud/aiplatform/v1/vertex_rag_service_services_pb.rb +52 -0
  104. data/proto_docs/google/cloud/aiplatform/v1/api_auth.rb +45 -0
  105. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +2 -2
  106. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -2
  107. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +2 -0
  108. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +42 -0
  109. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +22 -0
  110. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +1 -1
  111. data/proto_docs/google/cloud/aiplatform/v1/evaluation_service.rb +149 -1
  112. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +2 -2
  113. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
  114. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +4 -4
  115. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
  116. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -1
  117. data/proto_docs/google/cloud/aiplatform/v1/genai_tuning_service.rb +3 -2
  118. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint_service.rb +4 -2
  119. data/proto_docs/google/cloud/aiplatform/v1/io.rb +158 -0
  120. data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +8 -0
  121. data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +1 -1
  122. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  123. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +3 -3
  124. data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +18 -0
  125. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +5 -3
  126. data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +2 -2
  127. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource_service.rb +4 -3
  128. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +72 -0
  129. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +9 -0
  130. data/proto_docs/google/cloud/aiplatform/v1/types.rb +13 -13
  131. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb +334 -0
  132. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_data_service.rb +293 -0
  133. data/proto_docs/google/cloud/aiplatform/v1/vertex_rag_service.rb +279 -0
  134. data/proto_docs/google/longrunning/operations.rb +19 -14
  135. metadata +28 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 787f546a0a1a0ca2eceacaf11cb9ca661a935cbaabdb5c78845eeefbbd68185e
4
- data.tar.gz: 5fa0b4e85b9cc9a32b2f7be4a6ac236116610fef7b091e06261566f0ae030c9a
3
+ metadata.gz: 03500ed587f5105dba7edcd5693050514cf80f56cee3e46d008f8bc329c461fb
4
+ data.tar.gz: 254589357f5fde41c263368347dcaef15e19d0c04c2b8df788a1c0437aadd7c1
5
5
  SHA512:
6
- metadata.gz: dc968228fed15ec6919a843ad5ece17b1e44dd0dc550b34b90771d29600082931e199f2e64c5493d97e543a20328c69d39658f7e9327b14e6e1918ce9c48e28d
7
- data.tar.gz: 555c177e4d3f7c105fcc420d2c0c074a94d1103f244f5a126d45b58c44419f1ba8e5f68d176657a02f894fa954585a0cdb65bd36038c294b67e2a471e3988090
6
+ metadata.gz: b583064edf0987a69d54fa73297e45b939616c86b04b0ec2ca968bd8074d92a10e0fdcae00a775844abf11a61f5e39fcc8fe3def61d9ca716101bf49d2806bed
7
+ data.tar.gz: 7ac7c1666a89cebcff3df3b7d457a3ad3aee88311e4b6cfc49a12b7bfb41f75f5015fe72220e5decad6e62e64cb6761204c1d68b25a8456ab3f36fb68ab47f6c
@@ -2026,6 +2026,8 @@ module Google
2026
2026
 
2027
2027
  ##
2028
2028
  # Lists Annotations belongs to a dataitem
2029
+ # This RPC is only available in InternalDatasetService. It is only used for
2030
+ # exporting conversation data to CCAI Insights.
2029
2031
  #
2030
2032
  # @overload list_annotations(request, options = nil)
2031
2033
  # Pass arguments to `list_annotations` via a request object, either of type
@@ -124,14 +124,6 @@ module Google
124
124
  # Lists operations that match the specified filter in the request. If the
125
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
126
126
  #
127
- # NOTE: the `name` binding allows API services to override the binding
128
- # to use different resource name schemes, such as `users/*/operations`. To
129
- # override the binding, API services can add a binding such as
130
- # `"/v1/{name=users/*}/operations"` to their service configuration.
131
- # For backwards compatibility, the default name includes the operations
132
- # collection id, however overriding users must ensure the name binding
133
- # is the parent resource, without the operations collection id.
134
- #
135
127
  # @overload list_operations(request, options = nil)
136
128
  # Pass arguments to `list_operations` via a request object, either of type
137
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -421,8 +413,9 @@ module Google
421
413
  # other methods to check whether the cancellation succeeded or whether the
422
414
  # operation completed despite cancellation. On successful cancellation,
423
415
  # the operation is not deleted; instead, it becomes an operation with
424
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
426
419
  #
427
420
  # @overload cancel_operation(request, options = nil)
428
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -1895,6 +1895,8 @@ module Google
1895
1895
 
1896
1896
  ##
1897
1897
  # Lists Annotations belongs to a dataitem
1898
+ # This RPC is only available in InternalDatasetService. It is only used for
1899
+ # exporting conversation data to CCAI Insights.
1898
1900
  #
1899
1901
  # @overload list_annotations(request, options = nil)
1900
1902
  # Pass arguments to `list_annotations` via a request object, either of type
@@ -115,14 +115,6 @@ module Google
115
115
  # Lists operations that match the specified filter in the request. If the
116
116
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
117
117
  #
118
- # NOTE: the `name` binding allows API services to override the binding
119
- # to use different resource name schemes, such as `users/*/operations`. To
120
- # override the binding, API services can add a binding such as
121
- # `"/v1/{name=users/*}/operations"` to their service configuration.
122
- # For backwards compatibility, the default name includes the operations
123
- # collection id, however overriding users must ensure the name binding
124
- # is the parent resource, without the operations collection id.
125
- #
126
118
  # @overload list_operations(request, options = nil)
127
119
  # Pass arguments to `list_operations` via a request object, either of type
128
120
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -390,8 +382,9 @@ module Google
390
382
  # other methods to check whether the cancellation succeeded or whether the
391
383
  # operation completed despite cancellation. On successful cancellation,
392
384
  # the operation is not deleted; instead, it becomes an operation with
393
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
394
- # corresponding to `Code.CANCELLED`.
385
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
386
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
387
+ # `Code.CANCELLED`.
395
388
  #
396
389
  # @overload cancel_operation(request, options = nil)
397
390
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -1538,6 +1531,20 @@ module Google
1538
1531
  ["name", %r{^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/?$}, false]
1539
1532
  ]
1540
1533
  )
1534
+ .with_bindings(
1535
+ uri_method: :get,
1536
+ uri_template: "/v1/{name}/operations",
1537
+ matches: [
1538
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/?$}, false]
1539
+ ]
1540
+ )
1541
+ .with_bindings(
1542
+ uri_method: :get,
1543
+ uri_template: "/v1/{name}/operations",
1544
+ matches: [
1545
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/?$}, false]
1546
+ ]
1547
+ )
1541
1548
  .with_bindings(
1542
1549
  uri_method: :get,
1543
1550
  uri_template: "/v1/{name}/operations",
@@ -2168,6 +2175,20 @@ module Google
2168
2175
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2169
2176
  ]
2170
2177
  )
2178
+ .with_bindings(
2179
+ uri_method: :get,
2180
+ uri_template: "/v1/{name}",
2181
+ matches: [
2182
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
2183
+ ]
2184
+ )
2185
+ .with_bindings(
2186
+ uri_method: :get,
2187
+ uri_template: "/v1/{name}",
2188
+ matches: [
2189
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2190
+ ]
2191
+ )
2171
2192
  .with_bindings(
2172
2193
  uri_method: :get,
2173
2194
  uri_template: "/v1/{name}",
@@ -2812,6 +2833,20 @@ module Google
2812
2833
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2813
2834
  ]
2814
2835
  )
2836
+ .with_bindings(
2837
+ uri_method: :delete,
2838
+ uri_template: "/v1/{name}",
2839
+ matches: [
2840
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
2841
+ ]
2842
+ )
2843
+ .with_bindings(
2844
+ uri_method: :delete,
2845
+ uri_template: "/v1/{name}",
2846
+ matches: [
2847
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2848
+ ]
2849
+ )
2815
2850
  .with_bindings(
2816
2851
  uri_method: :delete,
2817
2852
  uri_template: "/v1/{name}",
@@ -3449,6 +3484,20 @@ module Google
3449
3484
  ["name", %r{^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+/?$}, false]
3450
3485
  ]
3451
3486
  )
3487
+ .with_bindings(
3488
+ uri_method: :post,
3489
+ uri_template: "/v1/{name}:cancel",
3490
+ matches: [
3491
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
3492
+ ]
3493
+ )
3494
+ .with_bindings(
3495
+ uri_method: :post,
3496
+ uri_template: "/v1/{name}:cancel",
3497
+ matches: [
3498
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3499
+ ]
3500
+ )
3452
3501
  .with_bindings(
3453
3502
  uri_method: :post,
3454
3503
  uri_template: "/v1/{name}:cancel",
@@ -4065,6 +4114,20 @@ module Google
4065
4114
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
4066
4115
  ]
4067
4116
  )
4117
+ .with_bindings(
4118
+ uri_method: :post,
4119
+ uri_template: "/v1/{name}:wait",
4120
+ matches: [
4121
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
4122
+ ]
4123
+ )
4124
+ .with_bindings(
4125
+ uri_method: :post,
4126
+ uri_template: "/v1/{name}:wait",
4127
+ matches: [
4128
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4129
+ ]
4130
+ )
4068
4131
  .with_bindings(
4069
4132
  uri_method: :post,
4070
4133
  uri_template: "/v1/{name}:wait",
@@ -124,14 +124,6 @@ module Google
124
124
  # Lists operations that match the specified filter in the request. If the
125
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
126
126
  #
127
- # NOTE: the `name` binding allows API services to override the binding
128
- # to use different resource name schemes, such as `users/*/operations`. To
129
- # override the binding, API services can add a binding such as
130
- # `"/v1/{name=users/*}/operations"` to their service configuration.
131
- # For backwards compatibility, the default name includes the operations
132
- # collection id, however overriding users must ensure the name binding
133
- # is the parent resource, without the operations collection id.
134
- #
135
127
  # @overload list_operations(request, options = nil)
136
128
  # Pass arguments to `list_operations` via a request object, either of type
137
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -421,8 +413,9 @@ module Google
421
413
  # other methods to check whether the cancellation succeeded or whether the
422
414
  # operation completed despite cancellation. On successful cancellation,
423
415
  # the operation is not deleted; instead, it becomes an operation with
424
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
426
419
  #
427
420
  # @overload cancel_operation(request, options = nil)
428
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -115,14 +115,6 @@ module Google
115
115
  # Lists operations that match the specified filter in the request. If the
116
116
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
117
117
  #
118
- # NOTE: the `name` binding allows API services to override the binding
119
- # to use different resource name schemes, such as `users/*/operations`. To
120
- # override the binding, API services can add a binding such as
121
- # `"/v1/{name=users/*}/operations"` to their service configuration.
122
- # For backwards compatibility, the default name includes the operations
123
- # collection id, however overriding users must ensure the name binding
124
- # is the parent resource, without the operations collection id.
125
- #
126
118
  # @overload list_operations(request, options = nil)
127
119
  # Pass arguments to `list_operations` via a request object, either of type
128
120
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -390,8 +382,9 @@ module Google
390
382
  # other methods to check whether the cancellation succeeded or whether the
391
383
  # operation completed despite cancellation. On successful cancellation,
392
384
  # the operation is not deleted; instead, it becomes an operation with
393
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
394
- # corresponding to `Code.CANCELLED`.
385
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
386
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
387
+ # `Code.CANCELLED`.
395
388
  #
396
389
  # @overload cancel_operation(request, options = nil)
397
390
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -1538,6 +1531,20 @@ module Google
1538
1531
  ["name", %r{^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/?$}, false]
1539
1532
  ]
1540
1533
  )
1534
+ .with_bindings(
1535
+ uri_method: :get,
1536
+ uri_template: "/v1/{name}/operations",
1537
+ matches: [
1538
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/?$}, false]
1539
+ ]
1540
+ )
1541
+ .with_bindings(
1542
+ uri_method: :get,
1543
+ uri_template: "/v1/{name}/operations",
1544
+ matches: [
1545
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/?$}, false]
1546
+ ]
1547
+ )
1541
1548
  .with_bindings(
1542
1549
  uri_method: :get,
1543
1550
  uri_template: "/v1/{name}/operations",
@@ -2168,6 +2175,20 @@ module Google
2168
2175
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2169
2176
  ]
2170
2177
  )
2178
+ .with_bindings(
2179
+ uri_method: :get,
2180
+ uri_template: "/v1/{name}",
2181
+ matches: [
2182
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
2183
+ ]
2184
+ )
2185
+ .with_bindings(
2186
+ uri_method: :get,
2187
+ uri_template: "/v1/{name}",
2188
+ matches: [
2189
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2190
+ ]
2191
+ )
2171
2192
  .with_bindings(
2172
2193
  uri_method: :get,
2173
2194
  uri_template: "/v1/{name}",
@@ -2812,6 +2833,20 @@ module Google
2812
2833
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2813
2834
  ]
2814
2835
  )
2836
+ .with_bindings(
2837
+ uri_method: :delete,
2838
+ uri_template: "/v1/{name}",
2839
+ matches: [
2840
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
2841
+ ]
2842
+ )
2843
+ .with_bindings(
2844
+ uri_method: :delete,
2845
+ uri_template: "/v1/{name}",
2846
+ matches: [
2847
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
2848
+ ]
2849
+ )
2815
2850
  .with_bindings(
2816
2851
  uri_method: :delete,
2817
2852
  uri_template: "/v1/{name}",
@@ -3449,6 +3484,20 @@ module Google
3449
3484
  ["name", %r{^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+/?$}, false]
3450
3485
  ]
3451
3486
  )
3487
+ .with_bindings(
3488
+ uri_method: :post,
3489
+ uri_template: "/v1/{name}:cancel",
3490
+ matches: [
3491
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
3492
+ ]
3493
+ )
3494
+ .with_bindings(
3495
+ uri_method: :post,
3496
+ uri_template: "/v1/{name}:cancel",
3497
+ matches: [
3498
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
3499
+ ]
3500
+ )
3452
3501
  .with_bindings(
3453
3502
  uri_method: :post,
3454
3503
  uri_template: "/v1/{name}:cancel",
@@ -4065,6 +4114,20 @@ module Google
4065
4114
  ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
4066
4115
  ]
4067
4116
  )
4117
+ .with_bindings(
4118
+ uri_method: :post,
4119
+ uri_template: "/v1/{name}:wait",
4120
+ matches: [
4121
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+/?$}, false]
4122
+ ]
4123
+ )
4124
+ .with_bindings(
4125
+ uri_method: :post,
4126
+ uri_template: "/v1/{name}:wait",
4127
+ matches: [
4128
+ ["name", %r{^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+/?$}, false]
4129
+ ]
4130
+ )
4068
4131
  .with_bindings(
4069
4132
  uri_method: :post,
4070
4133
  uri_template: "/v1/{name}:wait",
@@ -629,6 +629,102 @@ module Google
629
629
  raise ::Google::Cloud::Error.from_error(e)
630
630
  end
631
631
 
632
+ ##
633
+ # Updates an Endpoint with a long running operation.
634
+ #
635
+ # @overload update_endpoint_long_running(request, options = nil)
636
+ # Pass arguments to `update_endpoint_long_running` via a request object, either of type
637
+ # {::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest} or an equivalent Hash.
638
+ #
639
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest, ::Hash]
640
+ # A request object representing the call parameters. Required. To specify no
641
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
642
+ # @param options [::Gapic::CallOptions, ::Hash]
643
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
644
+ #
645
+ # @overload update_endpoint_long_running(endpoint: nil)
646
+ # Pass arguments to `update_endpoint_long_running` via keyword arguments. Note that at
647
+ # least one keyword argument is required. To specify no parameters, or to keep all
648
+ # the default parameter values, pass an empty Hash as a request object (see above).
649
+ #
650
+ # @param endpoint [::Google::Cloud::AIPlatform::V1::Endpoint, ::Hash]
651
+ # Required. The Endpoint which replaces the resource on the server. Currently
652
+ # we only support updating the `client_connection_config` field, all the
653
+ # other fields' update will be blocked.
654
+ #
655
+ # @yield [response, operation] Access the result along with the RPC operation
656
+ # @yieldparam response [::Gapic::Operation]
657
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
658
+ #
659
+ # @return [::Gapic::Operation]
660
+ #
661
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
662
+ #
663
+ # @example Basic example
664
+ # require "google/cloud/ai_platform/v1"
665
+ #
666
+ # # Create a client object. The client can be reused for multiple calls.
667
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
668
+ #
669
+ # # Create a request. To set request fields, pass in keyword arguments.
670
+ # request = Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest.new
671
+ #
672
+ # # Call the update_endpoint_long_running method.
673
+ # result = client.update_endpoint_long_running request
674
+ #
675
+ # # The returned object is of type Gapic::Operation. You can use it to
676
+ # # check the status of an operation, cancel it, or wait for results.
677
+ # # Here is how to wait for a response.
678
+ # result.wait_until_done! timeout: 60
679
+ # if result.response?
680
+ # p result.response
681
+ # else
682
+ # puts "No response received."
683
+ # end
684
+ #
685
+ def update_endpoint_long_running request, options = nil
686
+ raise ::ArgumentError, "request must be provided" if request.nil?
687
+
688
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest
689
+
690
+ # Converts hash and nil to an options object
691
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
692
+
693
+ # Customize the options with defaults
694
+ metadata = @config.rpcs.update_endpoint_long_running.metadata.to_h
695
+
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
697
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
698
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
699
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
700
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
701
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
702
+
703
+ header_params = {}
704
+ if request.endpoint&.name
705
+ header_params["endpoint.name"] = request.endpoint.name
706
+ end
707
+
708
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
709
+ metadata[:"x-goog-request-params"] ||= request_params_header
710
+
711
+ options.apply_defaults timeout: @config.rpcs.update_endpoint_long_running.timeout,
712
+ metadata: metadata,
713
+ retry_policy: @config.rpcs.update_endpoint_long_running.retry_policy
714
+
715
+ options.apply_defaults timeout: @config.timeout,
716
+ metadata: @config.metadata,
717
+ retry_policy: @config.retry_policy
718
+
719
+ @endpoint_service_stub.call_rpc :update_endpoint_long_running, request, options: options do |response, operation|
720
+ response = ::Gapic::Operation.new response, @operations_client, options: options
721
+ yield response, operation if block_given?
722
+ return response
723
+ end
724
+ rescue ::GRPC::BadStatus => e
725
+ raise ::Google::Cloud::Error.from_error(e)
726
+ end
727
+
632
728
  ##
633
729
  # Deletes an Endpoint.
634
730
  #
@@ -1237,6 +1333,11 @@ module Google
1237
1333
  #
1238
1334
  attr_reader :update_endpoint
1239
1335
  ##
1336
+ # RPC-specific configuration for `update_endpoint_long_running`
1337
+ # @return [::Gapic::Config::Method]
1338
+ #
1339
+ attr_reader :update_endpoint_long_running
1340
+ ##
1240
1341
  # RPC-specific configuration for `delete_endpoint`
1241
1342
  # @return [::Gapic::Config::Method]
1242
1343
  #
@@ -1267,6 +1368,8 @@ module Google
1267
1368
  @list_endpoints = ::Gapic::Config::Method.new list_endpoints_config
1268
1369
  update_endpoint_config = parent_rpcs.update_endpoint if parent_rpcs.respond_to? :update_endpoint
1269
1370
  @update_endpoint = ::Gapic::Config::Method.new update_endpoint_config
1371
+ update_endpoint_long_running_config = parent_rpcs.update_endpoint_long_running if parent_rpcs.respond_to? :update_endpoint_long_running
1372
+ @update_endpoint_long_running = ::Gapic::Config::Method.new update_endpoint_long_running_config
1270
1373
  delete_endpoint_config = parent_rpcs.delete_endpoint if parent_rpcs.respond_to? :delete_endpoint
1271
1374
  @delete_endpoint = ::Gapic::Config::Method.new delete_endpoint_config
1272
1375
  deploy_model_config = parent_rpcs.deploy_model if parent_rpcs.respond_to? :deploy_model
@@ -124,14 +124,6 @@ module Google
124
124
  # Lists operations that match the specified filter in the request. If the
125
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
126
126
  #
127
- # NOTE: the `name` binding allows API services to override the binding
128
- # to use different resource name schemes, such as `users/*/operations`. To
129
- # override the binding, API services can add a binding such as
130
- # `"/v1/{name=users/*}/operations"` to their service configuration.
131
- # For backwards compatibility, the default name includes the operations
132
- # collection id, however overriding users must ensure the name binding
133
- # is the parent resource, without the operations collection id.
134
- #
135
127
  # @overload list_operations(request, options = nil)
136
128
  # Pass arguments to `list_operations` via a request object, either of type
137
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -421,8 +413,9 @@ module Google
421
413
  # other methods to check whether the cancellation succeeded or whether the
422
414
  # operation completed despite cancellation. On successful cancellation,
423
415
  # the operation is not deleted; instead, it becomes an operation with
424
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
426
419
  #
427
420
  # @overload cancel_operation(request, options = nil)
428
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -596,6 +596,95 @@ module Google
596
596
  raise ::Google::Cloud::Error.from_error(e)
597
597
  end
598
598
 
599
+ ##
600
+ # Updates an Endpoint with a long running operation.
601
+ #
602
+ # @overload update_endpoint_long_running(request, options = nil)
603
+ # Pass arguments to `update_endpoint_long_running` via a request object, either of type
604
+ # {::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest} or an equivalent Hash.
605
+ #
606
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest, ::Hash]
607
+ # A request object representing the call parameters. Required. To specify no
608
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
609
+ # @param options [::Gapic::CallOptions, ::Hash]
610
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
611
+ #
612
+ # @overload update_endpoint_long_running(endpoint: nil)
613
+ # Pass arguments to `update_endpoint_long_running` via keyword arguments. Note that at
614
+ # least one keyword argument is required. To specify no parameters, or to keep all
615
+ # the default parameter values, pass an empty Hash as a request object (see above).
616
+ #
617
+ # @param endpoint [::Google::Cloud::AIPlatform::V1::Endpoint, ::Hash]
618
+ # Required. The Endpoint which replaces the resource on the server. Currently
619
+ # we only support updating the `client_connection_config` field, all the
620
+ # other fields' update will be blocked.
621
+ # @yield [result, operation] Access the result along with the TransportOperation object
622
+ # @yieldparam result [::Gapic::Operation]
623
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
624
+ #
625
+ # @return [::Gapic::Operation]
626
+ #
627
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
628
+ #
629
+ # @example Basic example
630
+ # require "google/cloud/ai_platform/v1"
631
+ #
632
+ # # Create a client object. The client can be reused for multiple calls.
633
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Rest::Client.new
634
+ #
635
+ # # Create a request. To set request fields, pass in keyword arguments.
636
+ # request = Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest.new
637
+ #
638
+ # # Call the update_endpoint_long_running method.
639
+ # result = client.update_endpoint_long_running request
640
+ #
641
+ # # The returned object is of type Gapic::Operation. You can use it to
642
+ # # check the status of an operation, cancel it, or wait for results.
643
+ # # Here is how to wait for a response.
644
+ # result.wait_until_done! timeout: 60
645
+ # if result.response?
646
+ # p result.response
647
+ # else
648
+ # puts "No response received."
649
+ # end
650
+ #
651
+ def update_endpoint_long_running request, options = nil
652
+ raise ::ArgumentError, "request must be provided" if request.nil?
653
+
654
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateEndpointLongRunningRequest
655
+
656
+ # Converts hash and nil to an options object
657
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
658
+
659
+ # Customize the options with defaults
660
+ call_metadata = @config.rpcs.update_endpoint_long_running.metadata.to_h
661
+
662
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
663
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
665
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
666
+ transports_version_send: [:rest]
667
+
668
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
669
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
670
+
671
+ options.apply_defaults timeout: @config.rpcs.update_endpoint_long_running.timeout,
672
+ metadata: call_metadata,
673
+ retry_policy: @config.rpcs.update_endpoint_long_running.retry_policy
674
+
675
+ options.apply_defaults timeout: @config.timeout,
676
+ metadata: @config.metadata,
677
+ retry_policy: @config.retry_policy
678
+
679
+ @endpoint_service_stub.update_endpoint_long_running request, options do |result, operation|
680
+ result = ::Gapic::Operation.new result, @operations_client, options: options
681
+ yield result, operation if block_given?
682
+ return result
683
+ end
684
+ rescue ::Gapic::Rest::Error => e
685
+ raise ::Google::Cloud::Error.from_error(e)
686
+ end
687
+
599
688
  ##
600
689
  # Deletes an Endpoint.
601
690
  #
@@ -1163,6 +1252,11 @@ module Google
1163
1252
  #
1164
1253
  attr_reader :update_endpoint
1165
1254
  ##
1255
+ # RPC-specific configuration for `update_endpoint_long_running`
1256
+ # @return [::Gapic::Config::Method]
1257
+ #
1258
+ attr_reader :update_endpoint_long_running
1259
+ ##
1166
1260
  # RPC-specific configuration for `delete_endpoint`
1167
1261
  # @return [::Gapic::Config::Method]
1168
1262
  #
@@ -1193,6 +1287,8 @@ module Google
1193
1287
  @list_endpoints = ::Gapic::Config::Method.new list_endpoints_config
1194
1288
  update_endpoint_config = parent_rpcs.update_endpoint if parent_rpcs.respond_to? :update_endpoint
1195
1289
  @update_endpoint = ::Gapic::Config::Method.new update_endpoint_config
1290
+ update_endpoint_long_running_config = parent_rpcs.update_endpoint_long_running if parent_rpcs.respond_to? :update_endpoint_long_running
1291
+ @update_endpoint_long_running = ::Gapic::Config::Method.new update_endpoint_long_running_config
1196
1292
  delete_endpoint_config = parent_rpcs.delete_endpoint if parent_rpcs.respond_to? :delete_endpoint
1197
1293
  @delete_endpoint = ::Gapic::Config::Method.new delete_endpoint_config
1198
1294
  deploy_model_config = parent_rpcs.deploy_model if parent_rpcs.respond_to? :deploy_model