google-cloud-ai_platform-v1 0.41.0 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +210 -0
  3. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +108 -0
  4. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +101 -0
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +210 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +60 -0
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +210 -0
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +210 -0
  9. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +210 -0
  10. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +210 -0
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +210 -0
  12. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +210 -0
  13. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +210 -0
  14. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +210 -0
  15. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +210 -0
  16. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +210 -0
  17. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +210 -0
  18. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +210 -0
  19. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +210 -0
  20. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +0 -16
  21. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +210 -0
  22. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +210 -0
  23. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +210 -0
  24. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  25. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +210 -0
  26. data/lib/google/cloud/aiplatform/v1/content_pb.rb +1 -1
  27. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +4 -1
  28. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +2 -0
  29. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  30. data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -1
  31. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
  32. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  33. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +2 -1
  34. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
  35. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +3 -1
  36. data/proto_docs/google/cloud/aiplatform/v1/content.rb +3 -0
  37. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +17 -0
  38. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +12 -0
  39. data/proto_docs/google/cloud/aiplatform/v1/model.rb +6 -0
  40. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +8 -2
  41. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +3 -0
  42. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +23 -0
  43. data/proto_docs/google/cloud/aiplatform/v1/tensorboard.rb +6 -0
  44. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +5 -0
  45. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09fc60e0a52674b2c68bafb46ff621862ada9548c1598af5bbee666635d8a6a6'
4
- data.tar.gz: a42e7fdfc9bf1744e680b6b534b7f8172610bd5e5845861915d26164542c42a3
3
+ metadata.gz: cd3d6857272d2def6e204c5c24e6330d5b4e301be661cd59769242047eca873a
4
+ data.tar.gz: 22bdfaa734640a641e795348b97387f308518be9e8bbc18d06dd360615b8ce4f
5
5
  SHA512:
6
- metadata.gz: c08a593f9ddd7a3c5b3afa04ed541f68772f3329e33aede6be54cd8c959688753fe5e0db27c96edf74655e62dd55123ffa94ad037ee816948a9718f5ce87b65d
7
- data.tar.gz: 9ba387bff54a68845f421a1c32bb966ec2ef72f82a8ec61cbe3df76d7904f3538eea442aaaa1de94e88faaca6ea9520d5d64bcfb69c1205d3632204daef60f2c
6
+ metadata.gz: 45b421686312408bd49955d1b6b3df10eead6aabb986621f8925524c94a573fc34add89eaea583dd8d8824ab24543a53c7b51124bedd814ad81118552ade479a
7
+ data.tar.gz: 2b10f6561ef6913aea0c2cf5d1989ed7d2cebc82234e3b1bed2eda9b4e878024abad335e3e3a9b12ca00d42c4f1be0c9df0ca3acf6ae178f1fd17ad7b0533e5d
@@ -1181,6 +1181,27 @@ module Google
1181
1181
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/?$}, false]
1182
1182
  ]
1183
1183
  )
1184
+ .with_bindings(
1185
+ uri_method: :get,
1186
+ uri_template: "/ui/{name}/operations",
1187
+ matches: [
1188
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/?$}, false]
1189
+ ]
1190
+ )
1191
+ .with_bindings(
1192
+ uri_method: :get,
1193
+ uri_template: "/ui/{name}/operations",
1194
+ matches: [
1195
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/?$}, false]
1196
+ ]
1197
+ )
1198
+ .with_bindings(
1199
+ uri_method: :get,
1200
+ uri_template: "/ui/{name}/operations",
1201
+ matches: [
1202
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1203
+ ]
1204
+ )
1184
1205
  .with_bindings(
1185
1206
  uri_method: :get,
1186
1207
  uri_template: "/ui/{name}/operations",
@@ -1461,6 +1482,27 @@ module Google
1461
1482
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/?$}, false]
1462
1483
  ]
1463
1484
  )
1485
+ .with_bindings(
1486
+ uri_method: :get,
1487
+ uri_template: "/v1/{name}/operations",
1488
+ matches: [
1489
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/?$}, false]
1490
+ ]
1491
+ )
1492
+ .with_bindings(
1493
+ uri_method: :get,
1494
+ uri_template: "/v1/{name}/operations",
1495
+ matches: [
1496
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/?$}, false]
1497
+ ]
1498
+ )
1499
+ .with_bindings(
1500
+ uri_method: :get,
1501
+ uri_template: "/v1/{name}/operations",
1502
+ matches: [
1503
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1504
+ ]
1505
+ )
1464
1506
  .with_bindings(
1465
1507
  uri_method: :get,
1466
1508
  uri_template: "/v1/{name}/operations",
@@ -1804,6 +1846,27 @@ module Google
1804
1846
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
1805
1847
  ]
1806
1848
  )
1849
+ .with_bindings(
1850
+ uri_method: :get,
1851
+ uri_template: "/ui/{name}",
1852
+ matches: [
1853
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
1854
+ ]
1855
+ )
1856
+ .with_bindings(
1857
+ uri_method: :get,
1858
+ uri_template: "/ui/{name}",
1859
+ matches: [
1860
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
1861
+ ]
1862
+ )
1863
+ .with_bindings(
1864
+ uri_method: :get,
1865
+ uri_template: "/ui/{name}",
1866
+ matches: [
1867
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
1868
+ ]
1869
+ )
1807
1870
  .with_bindings(
1808
1871
  uri_method: :get,
1809
1872
  uri_template: "/ui/{name}",
@@ -2084,6 +2147,27 @@ module Google
2084
2147
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2085
2148
  ]
2086
2149
  )
2150
+ .with_bindings(
2151
+ uri_method: :get,
2152
+ uri_template: "/v1/{name}",
2153
+ matches: [
2154
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2155
+ ]
2156
+ )
2157
+ .with_bindings(
2158
+ uri_method: :get,
2159
+ uri_template: "/v1/{name}",
2160
+ matches: [
2161
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2162
+ ]
2163
+ )
2164
+ .with_bindings(
2165
+ uri_method: :get,
2166
+ uri_template: "/v1/{name}",
2167
+ matches: [
2168
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2169
+ ]
2170
+ )
2087
2171
  .with_bindings(
2088
2172
  uri_method: :get,
2089
2173
  uri_template: "/v1/{name}",
@@ -2413,6 +2497,27 @@ module Google
2413
2497
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2414
2498
  ]
2415
2499
  )
2500
+ .with_bindings(
2501
+ uri_method: :delete,
2502
+ uri_template: "/ui/{name}",
2503
+ matches: [
2504
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2505
+ ]
2506
+ )
2507
+ .with_bindings(
2508
+ uri_method: :delete,
2509
+ uri_template: "/ui/{name}",
2510
+ matches: [
2511
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2512
+ ]
2513
+ )
2514
+ .with_bindings(
2515
+ uri_method: :delete,
2516
+ uri_template: "/ui/{name}",
2517
+ matches: [
2518
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2519
+ ]
2520
+ )
2416
2521
  .with_bindings(
2417
2522
  uri_method: :delete,
2418
2523
  uri_template: "/ui/{name}",
@@ -2686,6 +2791,27 @@ module Google
2686
2791
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2687
2792
  ]
2688
2793
  )
2794
+ .with_bindings(
2795
+ uri_method: :delete,
2796
+ uri_template: "/v1/{name}",
2797
+ matches: [
2798
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2799
+ ]
2800
+ )
2801
+ .with_bindings(
2802
+ uri_method: :delete,
2803
+ uri_template: "/v1/{name}",
2804
+ matches: [
2805
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2806
+ ]
2807
+ )
2808
+ .with_bindings(
2809
+ uri_method: :delete,
2810
+ uri_template: "/v1/{name}",
2811
+ matches: [
2812
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2813
+ ]
2814
+ )
2689
2815
  .with_bindings(
2690
2816
  uri_method: :delete,
2691
2817
  uri_template: "/v1/{name}",
@@ -3022,6 +3148,27 @@ module Google
3022
3148
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3023
3149
  ]
3024
3150
  )
3151
+ .with_bindings(
3152
+ uri_method: :post,
3153
+ uri_template: "/ui/{name}:cancel",
3154
+ matches: [
3155
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3156
+ ]
3157
+ )
3158
+ .with_bindings(
3159
+ uri_method: :post,
3160
+ uri_template: "/ui/{name}:cancel",
3161
+ matches: [
3162
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3163
+ ]
3164
+ )
3165
+ .with_bindings(
3166
+ uri_method: :post,
3167
+ uri_template: "/ui/{name}:cancel",
3168
+ matches: [
3169
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3170
+ ]
3171
+ )
3025
3172
  .with_bindings(
3026
3173
  uri_method: :post,
3027
3174
  uri_template: "/ui/{name}:cancel",
@@ -3274,6 +3421,27 @@ module Google
3274
3421
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3275
3422
  ]
3276
3423
  )
3424
+ .with_bindings(
3425
+ uri_method: :post,
3426
+ uri_template: "/v1/{name}:cancel",
3427
+ matches: [
3428
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3429
+ ]
3430
+ )
3431
+ .with_bindings(
3432
+ uri_method: :post,
3433
+ uri_template: "/v1/{name}:cancel",
3434
+ matches: [
3435
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3436
+ ]
3437
+ )
3438
+ .with_bindings(
3439
+ uri_method: :post,
3440
+ uri_template: "/v1/{name}:cancel",
3441
+ matches: [
3442
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3443
+ ]
3444
+ )
3277
3445
  .with_bindings(
3278
3446
  uri_method: :post,
3279
3447
  uri_template: "/v1/{name}:cancel",
@@ -3582,6 +3750,27 @@ module Google
3582
3750
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3583
3751
  ]
3584
3752
  )
3753
+ .with_bindings(
3754
+ uri_method: :post,
3755
+ uri_template: "/ui/{name}:wait",
3756
+ matches: [
3757
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3758
+ ]
3759
+ )
3760
+ .with_bindings(
3761
+ uri_method: :post,
3762
+ uri_template: "/ui/{name}:wait",
3763
+ matches: [
3764
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3765
+ ]
3766
+ )
3767
+ .with_bindings(
3768
+ uri_method: :post,
3769
+ uri_template: "/ui/{name}:wait",
3770
+ matches: [
3771
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3772
+ ]
3773
+ )
3585
3774
  .with_bindings(
3586
3775
  uri_method: :post,
3587
3776
  uri_template: "/ui/{name}:wait",
@@ -3855,6 +4044,27 @@ module Google
3855
4044
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3856
4045
  ]
3857
4046
  )
4047
+ .with_bindings(
4048
+ uri_method: :post,
4049
+ uri_template: "/v1/{name}:wait",
4050
+ matches: [
4051
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
4052
+ ]
4053
+ )
4054
+ .with_bindings(
4055
+ uri_method: :post,
4056
+ uri_template: "/v1/{name}:wait",
4057
+ matches: [
4058
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
4059
+ ]
4060
+ )
4061
+ .with_bindings(
4062
+ uri_method: :post,
4063
+ uri_template: "/v1/{name}:wait",
4064
+ matches: [
4065
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
4066
+ ]
4067
+ )
3858
4068
  .with_bindings(
3859
4069
  uri_method: :post,
3860
4070
  uri_template: "/v1/{name}:wait",
@@ -501,6 +501,107 @@ module Google
501
501
  raise ::Google::Cloud::Error.from_error(e)
502
502
  end
503
503
 
504
+ ##
505
+ # Update a DeploymentResourcePool.
506
+ #
507
+ # @overload update_deployment_resource_pool(request, options = nil)
508
+ # Pass arguments to `update_deployment_resource_pool` via a request object, either of type
509
+ # {::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest} or an equivalent Hash.
510
+ #
511
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest, ::Hash]
512
+ # A request object representing the call parameters. Required. To specify no
513
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
514
+ # @param options [::Gapic::CallOptions, ::Hash]
515
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
516
+ #
517
+ # @overload update_deployment_resource_pool(deployment_resource_pool: nil, update_mask: nil)
518
+ # Pass arguments to `update_deployment_resource_pool` via keyword arguments. Note that at
519
+ # least one keyword argument is required. To specify no parameters, or to keep all
520
+ # the default parameter values, pass an empty Hash as a request object (see above).
521
+ #
522
+ # @param deployment_resource_pool [::Google::Cloud::AIPlatform::V1::DeploymentResourcePool, ::Hash]
523
+ # Required. The DeploymentResourcePool to update.
524
+ #
525
+ # The DeploymentResourcePool's `name` field is used to identify the
526
+ # DeploymentResourcePool to update.
527
+ # Format:
528
+ # `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
529
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
530
+ # Required. The list of fields to update.
531
+ #
532
+ # @yield [response, operation] Access the result along with the RPC operation
533
+ # @yieldparam response [::Gapic::Operation]
534
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
535
+ #
536
+ # @return [::Gapic::Operation]
537
+ #
538
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
539
+ #
540
+ # @example Basic example
541
+ # require "google/cloud/ai_platform/v1"
542
+ #
543
+ # # Create a client object. The client can be reused for multiple calls.
544
+ # client = Google::Cloud::AIPlatform::V1::DeploymentResourcePoolService::Client.new
545
+ #
546
+ # # Create a request. To set request fields, pass in keyword arguments.
547
+ # request = Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest.new
548
+ #
549
+ # # Call the update_deployment_resource_pool method.
550
+ # result = client.update_deployment_resource_pool request
551
+ #
552
+ # # The returned object is of type Gapic::Operation. You can use it to
553
+ # # check the status of an operation, cancel it, or wait for results.
554
+ # # Here is how to wait for a response.
555
+ # result.wait_until_done! timeout: 60
556
+ # if result.response?
557
+ # p result.response
558
+ # else
559
+ # puts "No response received."
560
+ # end
561
+ #
562
+ def update_deployment_resource_pool request, options = nil
563
+ raise ::ArgumentError, "request must be provided" if request.nil?
564
+
565
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest
566
+
567
+ # Converts hash and nil to an options object
568
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
569
+
570
+ # Customize the options with defaults
571
+ metadata = @config.rpcs.update_deployment_resource_pool.metadata.to_h
572
+
573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
574
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
576
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
+
580
+ header_params = {}
581
+ if request.deployment_resource_pool&.name
582
+ header_params["deployment_resource_pool.name"] = request.deployment_resource_pool.name
583
+ end
584
+
585
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
586
+ metadata[:"x-goog-request-params"] ||= request_params_header
587
+
588
+ options.apply_defaults timeout: @config.rpcs.update_deployment_resource_pool.timeout,
589
+ metadata: metadata,
590
+ retry_policy: @config.rpcs.update_deployment_resource_pool.retry_policy
591
+
592
+ options.apply_defaults timeout: @config.timeout,
593
+ metadata: @config.metadata,
594
+ retry_policy: @config.retry_policy
595
+
596
+ @deployment_resource_pool_service_stub.call_rpc :update_deployment_resource_pool, request, options: options do |response, operation|
597
+ response = ::Gapic::Operation.new response, @operations_client, options: options
598
+ yield response, operation if block_given?
599
+ return response
600
+ end
601
+ rescue ::GRPC::BadStatus => e
602
+ raise ::Google::Cloud::Error.from_error(e)
603
+ end
604
+
504
605
  ##
505
606
  # Delete a DeploymentResourcePool.
506
607
  #
@@ -869,6 +970,11 @@ module Google
869
970
  #
870
971
  attr_reader :list_deployment_resource_pools
871
972
  ##
973
+ # RPC-specific configuration for `update_deployment_resource_pool`
974
+ # @return [::Gapic::Config::Method]
975
+ #
976
+ attr_reader :update_deployment_resource_pool
977
+ ##
872
978
  # RPC-specific configuration for `delete_deployment_resource_pool`
873
979
  # @return [::Gapic::Config::Method]
874
980
  #
@@ -887,6 +993,8 @@ module Google
887
993
  @get_deployment_resource_pool = ::Gapic::Config::Method.new get_deployment_resource_pool_config
888
994
  list_deployment_resource_pools_config = parent_rpcs.list_deployment_resource_pools if parent_rpcs.respond_to? :list_deployment_resource_pools
889
995
  @list_deployment_resource_pools = ::Gapic::Config::Method.new list_deployment_resource_pools_config
996
+ update_deployment_resource_pool_config = parent_rpcs.update_deployment_resource_pool if parent_rpcs.respond_to? :update_deployment_resource_pool
997
+ @update_deployment_resource_pool = ::Gapic::Config::Method.new update_deployment_resource_pool_config
890
998
  delete_deployment_resource_pool_config = parent_rpcs.delete_deployment_resource_pool if parent_rpcs.respond_to? :delete_deployment_resource_pool
891
999
  @delete_deployment_resource_pool = ::Gapic::Config::Method.new delete_deployment_resource_pool_config
892
1000
  query_deployed_models_config = parent_rpcs.query_deployed_models if parent_rpcs.respond_to? :query_deployed_models
@@ -475,6 +475,100 @@ module Google
475
475
  raise ::Google::Cloud::Error.from_error(e)
476
476
  end
477
477
 
478
+ ##
479
+ # Update a DeploymentResourcePool.
480
+ #
481
+ # @overload update_deployment_resource_pool(request, options = nil)
482
+ # Pass arguments to `update_deployment_resource_pool` via a request object, either of type
483
+ # {::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest} or an equivalent Hash.
484
+ #
485
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest, ::Hash]
486
+ # A request object representing the call parameters. Required. To specify no
487
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
488
+ # @param options [::Gapic::CallOptions, ::Hash]
489
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
490
+ #
491
+ # @overload update_deployment_resource_pool(deployment_resource_pool: nil, update_mask: nil)
492
+ # Pass arguments to `update_deployment_resource_pool` via keyword arguments. Note that at
493
+ # least one keyword argument is required. To specify no parameters, or to keep all
494
+ # the default parameter values, pass an empty Hash as a request object (see above).
495
+ #
496
+ # @param deployment_resource_pool [::Google::Cloud::AIPlatform::V1::DeploymentResourcePool, ::Hash]
497
+ # Required. The DeploymentResourcePool to update.
498
+ #
499
+ # The DeploymentResourcePool's `name` field is used to identify the
500
+ # DeploymentResourcePool to update.
501
+ # Format:
502
+ # `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
503
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
504
+ # Required. The list of fields to update.
505
+ # @yield [result, operation] Access the result along with the TransportOperation object
506
+ # @yieldparam result [::Gapic::Operation]
507
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
508
+ #
509
+ # @return [::Gapic::Operation]
510
+ #
511
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
512
+ #
513
+ # @example Basic example
514
+ # require "google/cloud/ai_platform/v1"
515
+ #
516
+ # # Create a client object. The client can be reused for multiple calls.
517
+ # client = Google::Cloud::AIPlatform::V1::DeploymentResourcePoolService::Rest::Client.new
518
+ #
519
+ # # Create a request. To set request fields, pass in keyword arguments.
520
+ # request = Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest.new
521
+ #
522
+ # # Call the update_deployment_resource_pool method.
523
+ # result = client.update_deployment_resource_pool request
524
+ #
525
+ # # The returned object is of type Gapic::Operation. You can use it to
526
+ # # check the status of an operation, cancel it, or wait for results.
527
+ # # Here is how to wait for a response.
528
+ # result.wait_until_done! timeout: 60
529
+ # if result.response?
530
+ # p result.response
531
+ # else
532
+ # puts "No response received."
533
+ # end
534
+ #
535
+ def update_deployment_resource_pool request, options = nil
536
+ raise ::ArgumentError, "request must be provided" if request.nil?
537
+
538
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDeploymentResourcePoolRequest
539
+
540
+ # Converts hash and nil to an options object
541
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
542
+
543
+ # Customize the options with defaults
544
+ call_metadata = @config.rpcs.update_deployment_resource_pool.metadata.to_h
545
+
546
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
547
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
548
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
549
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
550
+ transports_version_send: [:rest]
551
+
552
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
553
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
554
+
555
+ options.apply_defaults timeout: @config.rpcs.update_deployment_resource_pool.timeout,
556
+ metadata: call_metadata,
557
+ retry_policy: @config.rpcs.update_deployment_resource_pool.retry_policy
558
+
559
+ options.apply_defaults timeout: @config.timeout,
560
+ metadata: @config.metadata,
561
+ retry_policy: @config.retry_policy
562
+
563
+ @deployment_resource_pool_service_stub.update_deployment_resource_pool request, options do |result, operation|
564
+ result = ::Gapic::Operation.new result, @operations_client, options: options
565
+ yield result, operation if block_given?
566
+ return result
567
+ end
568
+ rescue ::Gapic::Rest::Error => e
569
+ raise ::Google::Cloud::Error.from_error(e)
570
+ end
571
+
478
572
  ##
479
573
  # Delete a DeploymentResourcePool.
480
574
  #
@@ -815,6 +909,11 @@ module Google
815
909
  #
816
910
  attr_reader :list_deployment_resource_pools
817
911
  ##
912
+ # RPC-specific configuration for `update_deployment_resource_pool`
913
+ # @return [::Gapic::Config::Method]
914
+ #
915
+ attr_reader :update_deployment_resource_pool
916
+ ##
818
917
  # RPC-specific configuration for `delete_deployment_resource_pool`
819
918
  # @return [::Gapic::Config::Method]
820
919
  #
@@ -833,6 +932,8 @@ module Google
833
932
  @get_deployment_resource_pool = ::Gapic::Config::Method.new get_deployment_resource_pool_config
834
933
  list_deployment_resource_pools_config = parent_rpcs.list_deployment_resource_pools if parent_rpcs.respond_to? :list_deployment_resource_pools
835
934
  @list_deployment_resource_pools = ::Gapic::Config::Method.new list_deployment_resource_pools_config
935
+ update_deployment_resource_pool_config = parent_rpcs.update_deployment_resource_pool if parent_rpcs.respond_to? :update_deployment_resource_pool
936
+ @update_deployment_resource_pool = ::Gapic::Config::Method.new update_deployment_resource_pool_config
836
937
  delete_deployment_resource_pool_config = parent_rpcs.delete_deployment_resource_pool if parent_rpcs.respond_to? :delete_deployment_resource_pool
837
938
  @delete_deployment_resource_pool = ::Gapic::Config::Method.new delete_deployment_resource_pool_config
838
939
  query_deployed_models_config = parent_rpcs.query_deployed_models if parent_rpcs.respond_to? :query_deployed_models