google-cloud-ai_platform-v1 0.40.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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +99 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +92 -0
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +70 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +60 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +70 -0
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +70 -0
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +70 -0
  9. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +70 -0
  10. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +70 -0
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +70 -0
  12. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +70 -0
  13. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +70 -0
  14. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +70 -0
  15. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +70 -0
  16. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +70 -0
  17. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +100 -0
  18. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +93 -0
  19. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +70 -0
  20. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +60 -0
  21. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +70 -0
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +70 -0
  23. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +8 -2
  24. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  25. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +8 -2
  26. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +16 -0
  27. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +70 -0
  28. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +70 -0
  29. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +70 -0
  30. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  31. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +70 -0
  32. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -4
  33. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  34. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  35. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  36. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  37. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  38. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  39. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  40. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  41. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  42. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  43. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  44. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  45. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  46. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  47. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  48. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  49. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  50. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  51. data/proto_docs/google/cloud/aiplatform/v1/content.rb +9 -48
  52. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  53. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  54. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  56. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  58. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  59. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  61. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +17 -2
  62. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  63. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  64. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  65. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +15 -0
  66. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  67. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  69. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  70. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa6709c46f2e9c7cd3fad41093715590edf4e37fc3f078369c16a215a6ffef48
4
- data.tar.gz: c8b04b99f942564b1b61994acc7cb34cfc168cff2013d75f7f25f84af3a34a24
3
+ metadata.gz: '09fc60e0a52674b2c68bafb46ff621862ada9548c1598af5bbee666635d8a6a6'
4
+ data.tar.gz: a42e7fdfc9bf1744e680b6b534b7f8172610bd5e5845861915d26164542c42a3
5
5
  SHA512:
6
- metadata.gz: 14877439c01f1aae78eb3c14036919bd9c17e1aff61f79ce49ac5ee94b0988278a9a59718f52fb56b3b7b847d0cac9376becec363a63d3808661d1e6a8665f17
7
- data.tar.gz: acc62338601a3caaaf51248aea892f0c4a89b28b5785e94eb82a10833263cf977e3bf54bb39558faf79b62872db85573d060529a08b9adbbb70364143a84191c
6
+ metadata.gz: c08a593f9ddd7a3c5b3afa04ed541f68772f3329e33aede6be54cd8c959688753fe5e0db27c96edf74655e62dd55123ffa94ad037ee816948a9718f5ce87b65d
7
+ data.tar.gz: 9ba387bff54a68845f421a1c32bb966ec2ef72f82a8ec61cbe3df76d7904f3538eea442aaaa1de94e88faaca6ea9520d5d64bcfb69c1205d3632204daef60f2c
@@ -1000,6 +1000,98 @@ module Google
1000
1000
  raise ::Google::Cloud::Error.from_error(e)
1001
1001
  end
1002
1002
 
1003
+ ##
1004
+ # Updates a DatasetVersion.
1005
+ #
1006
+ # @overload update_dataset_version(request, options = nil)
1007
+ # Pass arguments to `update_dataset_version` via a request object, either of type
1008
+ # {::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest} or an equivalent Hash.
1009
+ #
1010
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Hash]
1011
+ # A request object representing the call parameters. Required. To specify no
1012
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1013
+ # @param options [::Gapic::CallOptions, ::Hash]
1014
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1015
+ #
1016
+ # @overload update_dataset_version(dataset_version: nil, update_mask: nil)
1017
+ # Pass arguments to `update_dataset_version` via keyword arguments. Note that at
1018
+ # least one keyword argument is required. To specify no parameters, or to keep all
1019
+ # the default parameter values, pass an empty Hash as a request object (see above).
1020
+ #
1021
+ # @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash]
1022
+ # Required. The DatasetVersion which replaces the resource on the server.
1023
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1024
+ # Required. The update mask applies to the resource.
1025
+ # For the `FieldMask` definition, see
1026
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields:
1027
+ #
1028
+ # * `display_name`
1029
+ #
1030
+ # @yield [response, operation] Access the result along with the RPC operation
1031
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::DatasetVersion]
1032
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1033
+ #
1034
+ # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion]
1035
+ #
1036
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1037
+ #
1038
+ # @example Basic example
1039
+ # require "google/cloud/ai_platform/v1"
1040
+ #
1041
+ # # Create a client object. The client can be reused for multiple calls.
1042
+ # client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
1043
+ #
1044
+ # # Create a request. To set request fields, pass in keyword arguments.
1045
+ # request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new
1046
+ #
1047
+ # # Call the update_dataset_version method.
1048
+ # result = client.update_dataset_version request
1049
+ #
1050
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion.
1051
+ # p result
1052
+ #
1053
+ def update_dataset_version request, options = nil
1054
+ raise ::ArgumentError, "request must be provided" if request.nil?
1055
+
1056
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest
1057
+
1058
+ # Converts hash and nil to an options object
1059
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1060
+
1061
+ # Customize the options with defaults
1062
+ metadata = @config.rpcs.update_dataset_version.metadata.to_h
1063
+
1064
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1065
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1066
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1067
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1068
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1069
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
+
1071
+ header_params = {}
1072
+ if request.dataset_version&.name
1073
+ header_params["dataset_version.name"] = request.dataset_version.name
1074
+ end
1075
+
1076
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1077
+ metadata[:"x-goog-request-params"] ||= request_params_header
1078
+
1079
+ options.apply_defaults timeout: @config.rpcs.update_dataset_version.timeout,
1080
+ metadata: metadata,
1081
+ retry_policy: @config.rpcs.update_dataset_version.retry_policy
1082
+
1083
+ options.apply_defaults timeout: @config.timeout,
1084
+ metadata: @config.metadata,
1085
+ retry_policy: @config.retry_policy
1086
+
1087
+ @dataset_service_stub.call_rpc :update_dataset_version, request, options: options do |response, operation|
1088
+ yield response, operation if block_given?
1089
+ return response
1090
+ end
1091
+ rescue ::GRPC::BadStatus => e
1092
+ raise ::Google::Cloud::Error.from_error(e)
1093
+ end
1094
+
1003
1095
  ##
1004
1096
  # Deletes a Dataset version.
1005
1097
  #
@@ -2230,6 +2322,11 @@ module Google
2230
2322
  #
2231
2323
  attr_reader :create_dataset_version
2232
2324
  ##
2325
+ # RPC-specific configuration for `update_dataset_version`
2326
+ # @return [::Gapic::Config::Method]
2327
+ #
2328
+ attr_reader :update_dataset_version
2329
+ ##
2233
2330
  # RPC-specific configuration for `delete_dataset_version`
2234
2331
  # @return [::Gapic::Config::Method]
2235
2332
  #
@@ -2298,6 +2395,8 @@ module Google
2298
2395
  @export_data = ::Gapic::Config::Method.new export_data_config
2299
2396
  create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version
2300
2397
  @create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config
2398
+ update_dataset_version_config = parent_rpcs.update_dataset_version if parent_rpcs.respond_to? :update_dataset_version
2399
+ @update_dataset_version = ::Gapic::Config::Method.new update_dataset_version_config
2301
2400
  delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version
2302
2401
  @delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config
2303
2402
  get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version
@@ -939,6 +939,91 @@ module Google
939
939
  raise ::Google::Cloud::Error.from_error(e)
940
940
  end
941
941
 
942
+ ##
943
+ # Updates a DatasetVersion.
944
+ #
945
+ # @overload update_dataset_version(request, options = nil)
946
+ # Pass arguments to `update_dataset_version` via a request object, either of type
947
+ # {::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest} or an equivalent Hash.
948
+ #
949
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Hash]
950
+ # A request object representing the call parameters. Required. To specify no
951
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
952
+ # @param options [::Gapic::CallOptions, ::Hash]
953
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
954
+ #
955
+ # @overload update_dataset_version(dataset_version: nil, update_mask: nil)
956
+ # Pass arguments to `update_dataset_version` via keyword arguments. Note that at
957
+ # least one keyword argument is required. To specify no parameters, or to keep all
958
+ # the default parameter values, pass an empty Hash as a request object (see above).
959
+ #
960
+ # @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash]
961
+ # Required. The DatasetVersion which replaces the resource on the server.
962
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
963
+ # Required. The update mask applies to the resource.
964
+ # For the `FieldMask` definition, see
965
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields:
966
+ #
967
+ # * `display_name`
968
+ # @yield [result, operation] Access the result along with the TransportOperation object
969
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::DatasetVersion]
970
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
971
+ #
972
+ # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion]
973
+ #
974
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
975
+ #
976
+ # @example Basic example
977
+ # require "google/cloud/ai_platform/v1"
978
+ #
979
+ # # Create a client object. The client can be reused for multiple calls.
980
+ # client = Google::Cloud::AIPlatform::V1::DatasetService::Rest::Client.new
981
+ #
982
+ # # Create a request. To set request fields, pass in keyword arguments.
983
+ # request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new
984
+ #
985
+ # # Call the update_dataset_version method.
986
+ # result = client.update_dataset_version request
987
+ #
988
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion.
989
+ # p result
990
+ #
991
+ def update_dataset_version request, options = nil
992
+ raise ::ArgumentError, "request must be provided" if request.nil?
993
+
994
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest
995
+
996
+ # Converts hash and nil to an options object
997
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
998
+
999
+ # Customize the options with defaults
1000
+ call_metadata = @config.rpcs.update_dataset_version.metadata.to_h
1001
+
1002
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1003
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1004
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1005
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
1006
+ transports_version_send: [:rest]
1007
+
1008
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1009
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1010
+
1011
+ options.apply_defaults timeout: @config.rpcs.update_dataset_version.timeout,
1012
+ metadata: call_metadata,
1013
+ retry_policy: @config.rpcs.update_dataset_version.retry_policy
1014
+
1015
+ options.apply_defaults timeout: @config.timeout,
1016
+ metadata: @config.metadata,
1017
+ retry_policy: @config.retry_policy
1018
+
1019
+ @dataset_service_stub.update_dataset_version request, options do |result, operation|
1020
+ yield result, operation if block_given?
1021
+ return result
1022
+ end
1023
+ rescue ::Gapic::Rest::Error => e
1024
+ raise ::Google::Cloud::Error.from_error(e)
1025
+ end
1026
+
942
1027
  ##
943
1028
  # Deletes a Dataset version.
944
1029
  #
@@ -2086,6 +2171,11 @@ module Google
2086
2171
  #
2087
2172
  attr_reader :create_dataset_version
2088
2173
  ##
2174
+ # RPC-specific configuration for `update_dataset_version`
2175
+ # @return [::Gapic::Config::Method]
2176
+ #
2177
+ attr_reader :update_dataset_version
2178
+ ##
2089
2179
  # RPC-specific configuration for `delete_dataset_version`
2090
2180
  # @return [::Gapic::Config::Method]
2091
2181
  #
@@ -2154,6 +2244,8 @@ module Google
2154
2244
  @export_data = ::Gapic::Config::Method.new export_data_config
2155
2245
  create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version
2156
2246
  @create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config
2247
+ update_dataset_version_config = parent_rpcs.update_dataset_version if parent_rpcs.respond_to? :update_dataset_version
2248
+ @update_dataset_version = ::Gapic::Config::Method.new update_dataset_version_config
2157
2249
  delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version
2158
2250
  @delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config
2159
2251
  get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",
@@ -365,6 +365,44 @@ module Google
365
365
  result
366
366
  end
367
367
 
368
+ ##
369
+ # Baseline implementation for the update_dataset_version REST call
370
+ #
371
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest]
372
+ # A request object representing the call parameters. Required.
373
+ # @param options [::Gapic::CallOptions]
374
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
375
+ #
376
+ # @yield [result, operation] Access the result along with the TransportOperation object
377
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::DatasetVersion]
378
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
379
+ #
380
+ # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion]
381
+ # A result object deserialized from the server's reply
382
+ def update_dataset_version request_pb, options = nil
383
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
384
+
385
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_dataset_version_request request_pb
386
+ query_string_params = if query_string_params.any?
387
+ query_string_params.to_h { |p| p.split "=", 2 }
388
+ else
389
+ {}
390
+ end
391
+
392
+ response = @client_stub.make_http_request(
393
+ verb,
394
+ uri: uri,
395
+ body: body || "",
396
+ params: query_string_params,
397
+ options: options
398
+ )
399
+ operation = ::Gapic::Rest::TransportOperation.new response
400
+ result = ::Google::Cloud::AIPlatform::V1::DatasetVersion.decode_json response.body, ignore_unknown_fields: true
401
+
402
+ yield result, operation if block_given?
403
+ result
404
+ end
405
+
368
406
  ##
369
407
  # Baseline implementation for the delete_dataset_version REST call
370
408
  #
@@ -918,6 +956,28 @@ module Google
918
956
  transcoder.transcode request_pb
919
957
  end
920
958
 
959
+ ##
960
+ # @private
961
+ #
962
+ # GRPC transcoding helper method for the update_dataset_version REST call
963
+ #
964
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest]
965
+ # A request object representing the call parameters. Required.
966
+ # @return [Array(String, [String, nil], Hash{String => String})]
967
+ # Uri, Body, Query string parameters
968
+ def self.transcode_update_dataset_version_request request_pb
969
+ transcoder = Gapic::Rest::GrpcTranscoder.new
970
+ .with_bindings(
971
+ uri_method: :patch,
972
+ uri_template: "/v1/{dataset_version.name}",
973
+ body: "dataset_version",
974
+ matches: [
975
+ ["dataset_version.name", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+/?$}, false]
976
+ ]
977
+ )
978
+ transcoder.transcode request_pb
979
+ end
980
+
921
981
  ##
922
982
  # @private
923
983
  #
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",