google-cloud-deploy-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -137,6 +137,22 @@ module Google
137
137
 
138
138
  default_config.rpcs.abandon_release.timeout = 60.0
139
139
 
140
+ default_config.rpcs.create_deploy_policy.timeout = 60.0
141
+
142
+ default_config.rpcs.update_deploy_policy.timeout = 60.0
143
+
144
+ default_config.rpcs.delete_deploy_policy.timeout = 60.0
145
+
146
+ default_config.rpcs.list_deploy_policies.timeout = 60.0
147
+ default_config.rpcs.list_deploy_policies.retry_policy = {
148
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
149
+ }
150
+
151
+ default_config.rpcs.get_deploy_policy.timeout = 60.0
152
+ default_config.rpcs.get_deploy_policy.retry_policy = {
153
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
154
+ }
155
+
140
156
  default_config.rpcs.approve_rollout.timeout = 60.0
141
157
 
142
158
  default_config.rpcs.advance_rollout.timeout = 60.0
@@ -531,9 +547,8 @@ module Google
531
547
  # the default parameter values, pass an empty Hash as a request object (see above).
532
548
  #
533
549
  # @param parent [::String]
534
- # Required. The parent collection in which the `DeliveryPipeline` should be
535
- # created. Format should be
536
- # `projects/{project_id}/locations/{location_name}`.
550
+ # Required. The parent collection in which the `DeliveryPipeline` must be
551
+ # created. The format is `projects/{project_id}/locations/{location_name}`.
537
552
  # @param delivery_pipeline_id [::String]
538
553
  # Required. ID of the `DeliveryPipeline`.
539
554
  # @param delivery_pipeline [::Google::Cloud::Deploy::V1::DeliveryPipeline, ::Hash]
@@ -641,11 +656,11 @@ module Google
641
656
  # the default parameter values, pass an empty Hash as a request object (see above).
642
657
  #
643
658
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
644
- # Required. Field mask is used to specify the fields to be overwritten in the
645
- # `DeliveryPipeline` resource by the update.
646
- # The fields specified in the update_mask are relative to the resource, not
647
- # the full request. A field will be overwritten if it's in the mask. If the
648
- # user doesn't provide a mask then all fields are overwritten.
659
+ # Required. Field mask is used to specify the fields to be overwritten by the
660
+ # update in the `DeliveryPipeline` resource. The fields specified in the
661
+ # update_mask are relative to the resource, not the full request. A field
662
+ # will be overwritten if it's in the mask. If the user doesn't provide a mask
663
+ # then all fields are overwritten.
649
664
  # @param delivery_pipeline [::Google::Cloud::Deploy::V1::DeliveryPipeline, ::Hash]
650
665
  # Required. The `DeliveryPipeline` to update.
651
666
  # @param request_id [::String]
@@ -754,7 +769,7 @@ module Google
754
769
  # the default parameter values, pass an empty Hash as a request object (see above).
755
770
  #
756
771
  # @param name [::String]
757
- # Required. The name of the `DeliveryPipeline` to delete. Format should be
772
+ # Required. The name of the `DeliveryPipeline` to delete. The format is
758
773
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
759
774
  # @param request_id [::String]
760
775
  # Optional. A request ID to identify requests. Specify a unique request ID
@@ -965,14 +980,14 @@ module Google
965
980
  # @param options [::Gapic::CallOptions, ::Hash]
966
981
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
967
982
  #
968
- # @overload rollback_target(name: nil, target_id: nil, rollout_id: nil, release_id: nil, rollout_to_roll_back: nil, rollback_config: nil, validate_only: nil)
983
+ # @overload rollback_target(name: nil, target_id: nil, rollout_id: nil, release_id: nil, rollout_to_roll_back: nil, rollback_config: nil, validate_only: nil, override_deploy_policy: nil)
969
984
  # Pass arguments to `rollback_target` via keyword arguments. Note that at
970
985
  # least one keyword argument is required. To specify no parameters, or to keep all
971
986
  # the default parameter values, pass an empty Hash as a request object (see above).
972
987
  #
973
988
  # @param name [::String]
974
- # Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
975
- # created. Format should be
989
+ # Required. The `DeliveryPipeline` for which the rollback `Rollout` must be
990
+ # created. The format is
976
991
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
977
992
  # @param target_id [::String]
978
993
  # Required. ID of the `Target` that is being rolled back.
@@ -990,6 +1005,9 @@ module Google
990
1005
  # @param validate_only [::Boolean]
991
1006
  # Optional. If set to true, the request is validated and the user is provided
992
1007
  # with a `RollbackTargetResponse`.
1008
+ # @param override_deploy_policy [::Array<::String>]
1009
+ # Optional. Deploy policies to override. Format is
1010
+ # `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
993
1011
  # @yield [result, operation] Access the result along with the TransportOperation object
994
1012
  # @yieldparam result [::Google::Cloud::Deploy::V1::RollbackTargetResponse]
995
1013
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1148,8 +1166,8 @@ module Google
1148
1166
  # the default parameter values, pass an empty Hash as a request object (see above).
1149
1167
  #
1150
1168
  # @param parent [::String]
1151
- # Required. The parent collection in which the `Target` should be created.
1152
- # Format should be
1169
+ # Required. The parent collection in which the `Target` must be created.
1170
+ # The format is
1153
1171
  # `projects/{project_id}/locations/{location_name}`.
1154
1172
  # @param target_id [::String]
1155
1173
  # Required. ID of the `Target`.
@@ -1258,11 +1276,11 @@ module Google
1258
1276
  # the default parameter values, pass an empty Hash as a request object (see above).
1259
1277
  #
1260
1278
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1261
- # Required. Field mask is used to specify the fields to be overwritten in the
1262
- # Target resource by the update.
1263
- # The fields specified in the update_mask are relative to the resource, not
1264
- # the full request. A field will be overwritten if it's in the mask. If the
1265
- # user doesn't provide a mask then all fields are overwritten.
1279
+ # Required. Field mask is used to specify the fields to be overwritten by the
1280
+ # update in the `Target` resource. The fields specified in the update_mask
1281
+ # are relative to the resource, not the full request. A field will be
1282
+ # overwritten if it's in the mask. If the user doesn't provide a mask then
1283
+ # all fields are overwritten.
1266
1284
  # @param target [::Google::Cloud::Deploy::V1::Target, ::Hash]
1267
1285
  # Required. The `Target` to update.
1268
1286
  # @param request_id [::String]
@@ -1371,7 +1389,7 @@ module Google
1371
1389
  # the default parameter values, pass an empty Hash as a request object (see above).
1372
1390
  #
1373
1391
  # @param name [::String]
1374
- # Required. The name of the `Target` to delete. Format should be
1392
+ # Required. The name of the `Target` to delete. The format is
1375
1393
  # `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
1376
1394
  # @param request_id [::String]
1377
1395
  # Optional. A request ID to identify requests. Specify a unique request ID
@@ -1664,9 +1682,8 @@ module Google
1664
1682
  # the default parameter values, pass an empty Hash as a request object (see above).
1665
1683
  #
1666
1684
  # @param parent [::String]
1667
- # Required. The parent collection in which the `CustomTargetType` should be
1668
- # created. Format should be
1669
- # `projects/{project_id}/locations/{location_name}`.
1685
+ # Required. The parent collection in which the `CustomTargetType` must be
1686
+ # created. The format is `projects/{project_id}/locations/{location_name}`.
1670
1687
  # @param custom_target_type_id [::String]
1671
1688
  # Required. ID of the `CustomTargetType`.
1672
1689
  # @param custom_target_type [::Google::Cloud::Deploy::V1::CustomTargetType, ::Hash]
@@ -1774,11 +1791,11 @@ module Google
1774
1791
  # the default parameter values, pass an empty Hash as a request object (see above).
1775
1792
  #
1776
1793
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1777
- # Required. Field mask is used to specify the fields to be overwritten in the
1778
- # `CustomTargetType` resource by the update.
1779
- # The fields specified in the update_mask are relative to the resource, not
1780
- # the full request. A field will be overwritten if it's in the mask. If the
1781
- # user doesn't provide a mask then all fields are overwritten.
1794
+ # Required. Field mask is used to specify the fields to be overwritten by the
1795
+ # update in the `CustomTargetType` resource. The fields specified in the
1796
+ # update_mask are relative to the resource, not the full request. A field
1797
+ # will be overwritten if it's in the mask. If the user doesn't provide a mask
1798
+ # then all fields are overwritten.
1782
1799
  # @param custom_target_type [::Google::Cloud::Deploy::V1::CustomTargetType, ::Hash]
1783
1800
  # Required. The `CustomTargetType` to update.
1784
1801
  # @param request_id [::String]
@@ -2174,14 +2191,14 @@ module Google
2174
2191
  # @param options [::Gapic::CallOptions, ::Hash]
2175
2192
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2176
2193
  #
2177
- # @overload create_release(parent: nil, release_id: nil, release: nil, request_id: nil, validate_only: nil)
2194
+ # @overload create_release(parent: nil, release_id: nil, release: nil, request_id: nil, validate_only: nil, override_deploy_policy: nil)
2178
2195
  # Pass arguments to `create_release` via keyword arguments. Note that at
2179
2196
  # least one keyword argument is required. To specify no parameters, or to keep all
2180
2197
  # the default parameter values, pass an empty Hash as a request object (see above).
2181
2198
  #
2182
2199
  # @param parent [::String]
2183
- # Required. The parent collection in which the `Release` should be created.
2184
- # Format should be
2200
+ # Required. The parent collection in which the `Release` is created.
2201
+ # The format is
2185
2202
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
2186
2203
  # @param release_id [::String]
2187
2204
  # Required. ID of the `Release`.
@@ -2204,6 +2221,9 @@ module Google
2204
2221
  # @param validate_only [::Boolean]
2205
2222
  # Optional. If set to true, the request is validated and the user is provided
2206
2223
  # with an expected result, but no actual change is made.
2224
+ # @param override_deploy_policy [::Array<::String>]
2225
+ # Optional. Deploy policies to override. Format is
2226
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2207
2227
  # @yield [result, operation] Access the result along with the TransportOperation object
2208
2228
  # @yieldparam result [::Gapic::Operation]
2209
2229
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2351,6 +2371,520 @@ module Google
2351
2371
  raise ::Google::Cloud::Error.from_error(e)
2352
2372
  end
2353
2373
 
2374
+ ##
2375
+ # Creates a new DeployPolicy in a given project and location.
2376
+ #
2377
+ # @overload create_deploy_policy(request, options = nil)
2378
+ # Pass arguments to `create_deploy_policy` via a request object, either of type
2379
+ # {::Google::Cloud::Deploy::V1::CreateDeployPolicyRequest} or an equivalent Hash.
2380
+ #
2381
+ # @param request [::Google::Cloud::Deploy::V1::CreateDeployPolicyRequest, ::Hash]
2382
+ # A request object representing the call parameters. Required. To specify no
2383
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2384
+ # @param options [::Gapic::CallOptions, ::Hash]
2385
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2386
+ #
2387
+ # @overload create_deploy_policy(parent: nil, deploy_policy_id: nil, deploy_policy: nil, request_id: nil, validate_only: nil)
2388
+ # Pass arguments to `create_deploy_policy` via keyword arguments. Note that at
2389
+ # least one keyword argument is required. To specify no parameters, or to keep all
2390
+ # the default parameter values, pass an empty Hash as a request object (see above).
2391
+ #
2392
+ # @param parent [::String]
2393
+ # Required. The parent collection in which the `DeployPolicy` must be
2394
+ # created. The format is `projects/{project_id}/locations/{location_name}`.
2395
+ # @param deploy_policy_id [::String]
2396
+ # Required. ID of the `DeployPolicy`.
2397
+ # @param deploy_policy [::Google::Cloud::Deploy::V1::DeployPolicy, ::Hash]
2398
+ # Required. The `DeployPolicy` to create.
2399
+ # @param request_id [::String]
2400
+ # Optional. A request ID to identify requests. Specify a unique request ID
2401
+ # so that if you must retry your request, the server knows to ignore the
2402
+ # request if it has already been completed. The server guarantees that for
2403
+ # at least 60 minutes after the first request.
2404
+ #
2405
+ # For example, consider a situation where you make an initial request and the
2406
+ # request times out. If you make the request again with the same request ID,
2407
+ # the server can check if original operation with the same request ID was
2408
+ # received, and if so, will ignore the second request. This prevents clients
2409
+ # from accidentally creating duplicate commitments.
2410
+ #
2411
+ # The request ID must be a valid UUID with the exception that zero UUID is
2412
+ # not supported (00000000-0000-0000-0000-000000000000).
2413
+ # @param validate_only [::Boolean]
2414
+ # Optional. If set to true, the request is validated and the user is provided
2415
+ # with an expected result, but no actual change is made.
2416
+ # @yield [result, operation] Access the result along with the TransportOperation object
2417
+ # @yieldparam result [::Gapic::Operation]
2418
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2419
+ #
2420
+ # @return [::Gapic::Operation]
2421
+ #
2422
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2423
+ #
2424
+ # @example Basic example
2425
+ # require "google/cloud/deploy/v1"
2426
+ #
2427
+ # # Create a client object. The client can be reused for multiple calls.
2428
+ # client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
2429
+ #
2430
+ # # Create a request. To set request fields, pass in keyword arguments.
2431
+ # request = Google::Cloud::Deploy::V1::CreateDeployPolicyRequest.new
2432
+ #
2433
+ # # Call the create_deploy_policy method.
2434
+ # result = client.create_deploy_policy request
2435
+ #
2436
+ # # The returned object is of type Gapic::Operation. You can use it to
2437
+ # # check the status of an operation, cancel it, or wait for results.
2438
+ # # Here is how to wait for a response.
2439
+ # result.wait_until_done! timeout: 60
2440
+ # if result.response?
2441
+ # p result.response
2442
+ # else
2443
+ # puts "No response received."
2444
+ # end
2445
+ #
2446
+ def create_deploy_policy request, options = nil
2447
+ raise ::ArgumentError, "request must be provided" if request.nil?
2448
+
2449
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Deploy::V1::CreateDeployPolicyRequest
2450
+
2451
+ # Converts hash and nil to an options object
2452
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2453
+
2454
+ # Customize the options with defaults
2455
+ call_metadata = @config.rpcs.create_deploy_policy.metadata.to_h
2456
+
2457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2458
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2459
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2460
+ gapic_version: ::Google::Cloud::Deploy::V1::VERSION,
2461
+ transports_version_send: [:rest]
2462
+
2463
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2464
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2465
+
2466
+ options.apply_defaults timeout: @config.rpcs.create_deploy_policy.timeout,
2467
+ metadata: call_metadata,
2468
+ retry_policy: @config.rpcs.create_deploy_policy.retry_policy
2469
+
2470
+ options.apply_defaults timeout: @config.timeout,
2471
+ metadata: @config.metadata,
2472
+ retry_policy: @config.retry_policy
2473
+
2474
+ @cloud_deploy_stub.create_deploy_policy request, options do |result, operation|
2475
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2476
+ yield result, operation if block_given?
2477
+ return result
2478
+ end
2479
+ rescue ::Gapic::Rest::Error => e
2480
+ raise ::Google::Cloud::Error.from_error(e)
2481
+ end
2482
+
2483
+ ##
2484
+ # Updates the parameters of a single DeployPolicy.
2485
+ #
2486
+ # @overload update_deploy_policy(request, options = nil)
2487
+ # Pass arguments to `update_deploy_policy` via a request object, either of type
2488
+ # {::Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest} or an equivalent Hash.
2489
+ #
2490
+ # @param request [::Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest, ::Hash]
2491
+ # A request object representing the call parameters. Required. To specify no
2492
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2493
+ # @param options [::Gapic::CallOptions, ::Hash]
2494
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2495
+ #
2496
+ # @overload update_deploy_policy(update_mask: nil, deploy_policy: nil, request_id: nil, allow_missing: nil, validate_only: nil)
2497
+ # Pass arguments to `update_deploy_policy` via keyword arguments. Note that at
2498
+ # least one keyword argument is required. To specify no parameters, or to keep all
2499
+ # the default parameter values, pass an empty Hash as a request object (see above).
2500
+ #
2501
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2502
+ # Required. Field mask is used to specify the fields to be overwritten by the
2503
+ # update in the `DeployPolicy` resource. The fields specified in the
2504
+ # update_mask are relative to the resource, not the full request. A field
2505
+ # will be overwritten if it's in the mask. If the user doesn't provide a mask
2506
+ # then all fields are overwritten.
2507
+ # @param deploy_policy [::Google::Cloud::Deploy::V1::DeployPolicy, ::Hash]
2508
+ # Required. The `DeployPolicy` to update.
2509
+ # @param request_id [::String]
2510
+ # Optional. A request ID to identify requests. Specify a unique request ID
2511
+ # so that if you must retry your request, the server knows to ignore the
2512
+ # request if it has already been completed. The server guarantees that for
2513
+ # at least 60 minutes after the first request.
2514
+ #
2515
+ # For example, consider a situation where you make an initial request and the
2516
+ # request times out. If you make the request again with the same request ID,
2517
+ # the server can check if original operation with the same request ID was
2518
+ # received, and if so, will ignore the second request. This prevents clients
2519
+ # from accidentally creating duplicate commitments.
2520
+ #
2521
+ # The request ID must be a valid UUID with the exception that zero UUID is
2522
+ # not supported (00000000-0000-0000-0000-000000000000).
2523
+ # @param allow_missing [::Boolean]
2524
+ # Optional. If set to true, updating a `DeployPolicy` that does not exist
2525
+ # will result in the creation of a new `DeployPolicy`.
2526
+ # @param validate_only [::Boolean]
2527
+ # Optional. If set to true, the request is validated and the user is provided
2528
+ # with an expected result, but no actual change is made.
2529
+ # @yield [result, operation] Access the result along with the TransportOperation object
2530
+ # @yieldparam result [::Gapic::Operation]
2531
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2532
+ #
2533
+ # @return [::Gapic::Operation]
2534
+ #
2535
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2536
+ #
2537
+ # @example Basic example
2538
+ # require "google/cloud/deploy/v1"
2539
+ #
2540
+ # # Create a client object. The client can be reused for multiple calls.
2541
+ # client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
2542
+ #
2543
+ # # Create a request. To set request fields, pass in keyword arguments.
2544
+ # request = Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest.new
2545
+ #
2546
+ # # Call the update_deploy_policy method.
2547
+ # result = client.update_deploy_policy request
2548
+ #
2549
+ # # The returned object is of type Gapic::Operation. You can use it to
2550
+ # # check the status of an operation, cancel it, or wait for results.
2551
+ # # Here is how to wait for a response.
2552
+ # result.wait_until_done! timeout: 60
2553
+ # if result.response?
2554
+ # p result.response
2555
+ # else
2556
+ # puts "No response received."
2557
+ # end
2558
+ #
2559
+ def update_deploy_policy request, options = nil
2560
+ raise ::ArgumentError, "request must be provided" if request.nil?
2561
+
2562
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest
2563
+
2564
+ # Converts hash and nil to an options object
2565
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2566
+
2567
+ # Customize the options with defaults
2568
+ call_metadata = @config.rpcs.update_deploy_policy.metadata.to_h
2569
+
2570
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2571
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2572
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2573
+ gapic_version: ::Google::Cloud::Deploy::V1::VERSION,
2574
+ transports_version_send: [:rest]
2575
+
2576
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2577
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2578
+
2579
+ options.apply_defaults timeout: @config.rpcs.update_deploy_policy.timeout,
2580
+ metadata: call_metadata,
2581
+ retry_policy: @config.rpcs.update_deploy_policy.retry_policy
2582
+
2583
+ options.apply_defaults timeout: @config.timeout,
2584
+ metadata: @config.metadata,
2585
+ retry_policy: @config.retry_policy
2586
+
2587
+ @cloud_deploy_stub.update_deploy_policy request, options do |result, operation|
2588
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2589
+ yield result, operation if block_given?
2590
+ return result
2591
+ end
2592
+ rescue ::Gapic::Rest::Error => e
2593
+ raise ::Google::Cloud::Error.from_error(e)
2594
+ end
2595
+
2596
+ ##
2597
+ # Deletes a single DeployPolicy.
2598
+ #
2599
+ # @overload delete_deploy_policy(request, options = nil)
2600
+ # Pass arguments to `delete_deploy_policy` via a request object, either of type
2601
+ # {::Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest} or an equivalent Hash.
2602
+ #
2603
+ # @param request [::Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest, ::Hash]
2604
+ # A request object representing the call parameters. Required. To specify no
2605
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2606
+ # @param options [::Gapic::CallOptions, ::Hash]
2607
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2608
+ #
2609
+ # @overload delete_deploy_policy(name: nil, request_id: nil, allow_missing: nil, validate_only: nil, etag: nil)
2610
+ # Pass arguments to `delete_deploy_policy` via keyword arguments. Note that at
2611
+ # least one keyword argument is required. To specify no parameters, or to keep all
2612
+ # the default parameter values, pass an empty Hash as a request object (see above).
2613
+ #
2614
+ # @param name [::String]
2615
+ # Required. The name of the `DeployPolicy` to delete. The format is
2616
+ # `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.
2617
+ # @param request_id [::String]
2618
+ # Optional. A request ID to identify requests. Specify a unique request ID
2619
+ # so that if you must retry your request, the server knows to ignore the
2620
+ # request if it has already been completed. The server guarantees that for
2621
+ # at least 60 minutes after the first request.
2622
+ #
2623
+ # For example, consider a situation where you make an initial request and the
2624
+ # request times out. If you make the request again with the same request ID,
2625
+ # the server can check if original operation with the same request ID was
2626
+ # received, and if so, will ignore the second request. This prevents clients
2627
+ # from accidentally creating duplicate commitments.
2628
+ #
2629
+ # The request ID must be a valid UUID with the exception that zero UUID is
2630
+ # not supported (00000000-0000-0000-0000-000000000000).
2631
+ # @param allow_missing [::Boolean]
2632
+ # Optional. If set to true, then deleting an already deleted or non-existing
2633
+ # `DeployPolicy` will succeed.
2634
+ # @param validate_only [::Boolean]
2635
+ # Optional. If set, validate the request and preview the review, but do not
2636
+ # actually post it.
2637
+ # @param etag [::String]
2638
+ # Optional. This checksum is computed by the server based on the value of
2639
+ # other fields, and may be sent on update and delete requests to ensure the
2640
+ # client has an up-to-date value before proceeding.
2641
+ # @yield [result, operation] Access the result along with the TransportOperation object
2642
+ # @yieldparam result [::Gapic::Operation]
2643
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2644
+ #
2645
+ # @return [::Gapic::Operation]
2646
+ #
2647
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2648
+ #
2649
+ # @example Basic example
2650
+ # require "google/cloud/deploy/v1"
2651
+ #
2652
+ # # Create a client object. The client can be reused for multiple calls.
2653
+ # client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
2654
+ #
2655
+ # # Create a request. To set request fields, pass in keyword arguments.
2656
+ # request = Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest.new
2657
+ #
2658
+ # # Call the delete_deploy_policy method.
2659
+ # result = client.delete_deploy_policy request
2660
+ #
2661
+ # # The returned object is of type Gapic::Operation. You can use it to
2662
+ # # check the status of an operation, cancel it, or wait for results.
2663
+ # # Here is how to wait for a response.
2664
+ # result.wait_until_done! timeout: 60
2665
+ # if result.response?
2666
+ # p result.response
2667
+ # else
2668
+ # puts "No response received."
2669
+ # end
2670
+ #
2671
+ def delete_deploy_policy request, options = nil
2672
+ raise ::ArgumentError, "request must be provided" if request.nil?
2673
+
2674
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest
2675
+
2676
+ # Converts hash and nil to an options object
2677
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2678
+
2679
+ # Customize the options with defaults
2680
+ call_metadata = @config.rpcs.delete_deploy_policy.metadata.to_h
2681
+
2682
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2683
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2684
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2685
+ gapic_version: ::Google::Cloud::Deploy::V1::VERSION,
2686
+ transports_version_send: [:rest]
2687
+
2688
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2689
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2690
+
2691
+ options.apply_defaults timeout: @config.rpcs.delete_deploy_policy.timeout,
2692
+ metadata: call_metadata,
2693
+ retry_policy: @config.rpcs.delete_deploy_policy.retry_policy
2694
+
2695
+ options.apply_defaults timeout: @config.timeout,
2696
+ metadata: @config.metadata,
2697
+ retry_policy: @config.retry_policy
2698
+
2699
+ @cloud_deploy_stub.delete_deploy_policy request, options do |result, operation|
2700
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2701
+ yield result, operation if block_given?
2702
+ return result
2703
+ end
2704
+ rescue ::Gapic::Rest::Error => e
2705
+ raise ::Google::Cloud::Error.from_error(e)
2706
+ end
2707
+
2708
+ ##
2709
+ # Lists DeployPolicies in a given project and location.
2710
+ #
2711
+ # @overload list_deploy_policies(request, options = nil)
2712
+ # Pass arguments to `list_deploy_policies` via a request object, either of type
2713
+ # {::Google::Cloud::Deploy::V1::ListDeployPoliciesRequest} or an equivalent Hash.
2714
+ #
2715
+ # @param request [::Google::Cloud::Deploy::V1::ListDeployPoliciesRequest, ::Hash]
2716
+ # A request object representing the call parameters. Required. To specify no
2717
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2718
+ # @param options [::Gapic::CallOptions, ::Hash]
2719
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2720
+ #
2721
+ # @overload list_deploy_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
2722
+ # Pass arguments to `list_deploy_policies` via keyword arguments. Note that at
2723
+ # least one keyword argument is required. To specify no parameters, or to keep all
2724
+ # the default parameter values, pass an empty Hash as a request object (see above).
2725
+ #
2726
+ # @param parent [::String]
2727
+ # Required. The parent, which owns this collection of deploy policies. Format
2728
+ # must be `projects/{project_id}/locations/{location_name}`.
2729
+ # @param page_size [::Integer]
2730
+ # The maximum number of deploy policies to return. The service may return
2731
+ # fewer than this value. If unspecified, at most 50 deploy policies will
2732
+ # be returned. The maximum value is 1000; values above 1000 will be set
2733
+ # to 1000.
2734
+ # @param page_token [::String]
2735
+ # A page token, received from a previous `ListDeployPolicies` call.
2736
+ # Provide this to retrieve the subsequent page.
2737
+ #
2738
+ # When paginating, all other provided parameters match
2739
+ # the call that provided the page token.
2740
+ # @param filter [::String]
2741
+ # Filter deploy policies to be returned. See https://google.aip.dev/160 for
2742
+ # more details. All fields can be used in the filter.
2743
+ # @param order_by [::String]
2744
+ # Field to sort by. See https://google.aip.dev/132#ordering for more details.
2745
+ # @yield [result, operation] Access the result along with the TransportOperation object
2746
+ # @yieldparam result [::Google::Cloud::Deploy::V1::ListDeployPoliciesResponse]
2747
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2748
+ #
2749
+ # @return [::Google::Cloud::Deploy::V1::ListDeployPoliciesResponse]
2750
+ #
2751
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2752
+ #
2753
+ # @example Basic example
2754
+ # require "google/cloud/deploy/v1"
2755
+ #
2756
+ # # Create a client object. The client can be reused for multiple calls.
2757
+ # client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
2758
+ #
2759
+ # # Create a request. To set request fields, pass in keyword arguments.
2760
+ # request = Google::Cloud::Deploy::V1::ListDeployPoliciesRequest.new
2761
+ #
2762
+ # # Call the list_deploy_policies method.
2763
+ # result = client.list_deploy_policies request
2764
+ #
2765
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2766
+ # # over elements, and API calls will be issued to fetch pages as needed.
2767
+ # result.each do |item|
2768
+ # # Each element is of type ::Google::Cloud::Deploy::V1::DeployPolicy.
2769
+ # p item
2770
+ # end
2771
+ #
2772
+ def list_deploy_policies request, options = nil
2773
+ raise ::ArgumentError, "request must be provided" if request.nil?
2774
+
2775
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Deploy::V1::ListDeployPoliciesRequest
2776
+
2777
+ # Converts hash and nil to an options object
2778
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2779
+
2780
+ # Customize the options with defaults
2781
+ call_metadata = @config.rpcs.list_deploy_policies.metadata.to_h
2782
+
2783
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2784
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2785
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2786
+ gapic_version: ::Google::Cloud::Deploy::V1::VERSION,
2787
+ transports_version_send: [:rest]
2788
+
2789
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2790
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2791
+
2792
+ options.apply_defaults timeout: @config.rpcs.list_deploy_policies.timeout,
2793
+ metadata: call_metadata,
2794
+ retry_policy: @config.rpcs.list_deploy_policies.retry_policy
2795
+
2796
+ options.apply_defaults timeout: @config.timeout,
2797
+ metadata: @config.metadata,
2798
+ retry_policy: @config.retry_policy
2799
+
2800
+ @cloud_deploy_stub.list_deploy_policies request, options do |result, operation|
2801
+ yield result, operation if block_given?
2802
+ return result
2803
+ end
2804
+ rescue ::Gapic::Rest::Error => e
2805
+ raise ::Google::Cloud::Error.from_error(e)
2806
+ end
2807
+
2808
+ ##
2809
+ # Gets details of a single DeployPolicy.
2810
+ #
2811
+ # @overload get_deploy_policy(request, options = nil)
2812
+ # Pass arguments to `get_deploy_policy` via a request object, either of type
2813
+ # {::Google::Cloud::Deploy::V1::GetDeployPolicyRequest} or an equivalent Hash.
2814
+ #
2815
+ # @param request [::Google::Cloud::Deploy::V1::GetDeployPolicyRequest, ::Hash]
2816
+ # A request object representing the call parameters. Required. To specify no
2817
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2818
+ # @param options [::Gapic::CallOptions, ::Hash]
2819
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2820
+ #
2821
+ # @overload get_deploy_policy(name: nil)
2822
+ # Pass arguments to `get_deploy_policy` via keyword arguments. Note that at
2823
+ # least one keyword argument is required. To specify no parameters, or to keep all
2824
+ # the default parameter values, pass an empty Hash as a request object (see above).
2825
+ #
2826
+ # @param name [::String]
2827
+ # Required. Name of the `DeployPolicy`. Format must be
2828
+ # `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.
2829
+ # @yield [result, operation] Access the result along with the TransportOperation object
2830
+ # @yieldparam result [::Google::Cloud::Deploy::V1::DeployPolicy]
2831
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2832
+ #
2833
+ # @return [::Google::Cloud::Deploy::V1::DeployPolicy]
2834
+ #
2835
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2836
+ #
2837
+ # @example Basic example
2838
+ # require "google/cloud/deploy/v1"
2839
+ #
2840
+ # # Create a client object. The client can be reused for multiple calls.
2841
+ # client = Google::Cloud::Deploy::V1::CloudDeploy::Rest::Client.new
2842
+ #
2843
+ # # Create a request. To set request fields, pass in keyword arguments.
2844
+ # request = Google::Cloud::Deploy::V1::GetDeployPolicyRequest.new
2845
+ #
2846
+ # # Call the get_deploy_policy method.
2847
+ # result = client.get_deploy_policy request
2848
+ #
2849
+ # # The returned object is of type Google::Cloud::Deploy::V1::DeployPolicy.
2850
+ # p result
2851
+ #
2852
+ def get_deploy_policy request, options = nil
2853
+ raise ::ArgumentError, "request must be provided" if request.nil?
2854
+
2855
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Deploy::V1::GetDeployPolicyRequest
2856
+
2857
+ # Converts hash and nil to an options object
2858
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2859
+
2860
+ # Customize the options with defaults
2861
+ call_metadata = @config.rpcs.get_deploy_policy.metadata.to_h
2862
+
2863
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2864
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2865
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2866
+ gapic_version: ::Google::Cloud::Deploy::V1::VERSION,
2867
+ transports_version_send: [:rest]
2868
+
2869
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2870
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2871
+
2872
+ options.apply_defaults timeout: @config.rpcs.get_deploy_policy.timeout,
2873
+ metadata: call_metadata,
2874
+ retry_policy: @config.rpcs.get_deploy_policy.retry_policy
2875
+
2876
+ options.apply_defaults timeout: @config.timeout,
2877
+ metadata: @config.metadata,
2878
+ retry_policy: @config.retry_policy
2879
+
2880
+ @cloud_deploy_stub.get_deploy_policy request, options do |result, operation|
2881
+ yield result, operation if block_given?
2882
+ return result
2883
+ end
2884
+ rescue ::Gapic::Rest::Error => e
2885
+ raise ::Google::Cloud::Error.from_error(e)
2886
+ end
2887
+
2354
2888
  ##
2355
2889
  # Approves a Rollout.
2356
2890
  #
@@ -2364,7 +2898,7 @@ module Google
2364
2898
  # @param options [::Gapic::CallOptions, ::Hash]
2365
2899
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2366
2900
  #
2367
- # @overload approve_rollout(name: nil, approved: nil)
2901
+ # @overload approve_rollout(name: nil, approved: nil, override_deploy_policy: nil)
2368
2902
  # Pass arguments to `approve_rollout` via keyword arguments. Note that at
2369
2903
  # least one keyword argument is required. To specify no parameters, or to keep all
2370
2904
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2374,6 +2908,9 @@ module Google
2374
2908
  # `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
2375
2909
  # @param approved [::Boolean]
2376
2910
  # Required. True = approve; false = reject
2911
+ # @param override_deploy_policy [::Array<::String>]
2912
+ # Optional. Deploy policies to override. Format is
2913
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2377
2914
  # @yield [result, operation] Access the result along with the TransportOperation object
2378
2915
  # @yieldparam result [::Google::Cloud::Deploy::V1::ApproveRolloutResponse]
2379
2916
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2446,7 +2983,7 @@ module Google
2446
2983
  # @param options [::Gapic::CallOptions, ::Hash]
2447
2984
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2448
2985
  #
2449
- # @overload advance_rollout(name: nil, phase_id: nil)
2986
+ # @overload advance_rollout(name: nil, phase_id: nil, override_deploy_policy: nil)
2450
2987
  # Pass arguments to `advance_rollout` via keyword arguments. Note that at
2451
2988
  # least one keyword argument is required. To specify no parameters, or to keep all
2452
2989
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2456,6 +2993,9 @@ module Google
2456
2993
  # `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
2457
2994
  # @param phase_id [::String]
2458
2995
  # Required. The phase ID to advance the `Rollout` to.
2996
+ # @param override_deploy_policy [::Array<::String>]
2997
+ # Optional. Deploy policies to override. Format is
2998
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2459
2999
  # @yield [result, operation] Access the result along with the TransportOperation object
2460
3000
  # @yieldparam result [::Google::Cloud::Deploy::V1::AdvanceRolloutResponse]
2461
3001
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2528,7 +3068,7 @@ module Google
2528
3068
  # @param options [::Gapic::CallOptions, ::Hash]
2529
3069
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2530
3070
  #
2531
- # @overload cancel_rollout(name: nil)
3071
+ # @overload cancel_rollout(name: nil, override_deploy_policy: nil)
2532
3072
  # Pass arguments to `cancel_rollout` via keyword arguments. Note that at
2533
3073
  # least one keyword argument is required. To specify no parameters, or to keep all
2534
3074
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2536,6 +3076,9 @@ module Google
2536
3076
  # @param name [::String]
2537
3077
  # Required. Name of the Rollout. Format is
2538
3078
  # `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
3079
+ # @param override_deploy_policy [::Array<::String>]
3080
+ # Optional. Deploy policies to override. Format is
3081
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2539
3082
  # @yield [result, operation] Access the result along with the TransportOperation object
2540
3083
  # @yieldparam result [::Google::Cloud::Deploy::V1::CancelRolloutResponse]
2541
3084
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2788,14 +3331,14 @@ module Google
2788
3331
  # @param options [::Gapic::CallOptions, ::Hash]
2789
3332
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2790
3333
  #
2791
- # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, request_id: nil, validate_only: nil, starting_phase_id: nil)
3334
+ # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, request_id: nil, validate_only: nil, override_deploy_policy: nil, starting_phase_id: nil)
2792
3335
  # Pass arguments to `create_rollout` via keyword arguments. Note that at
2793
3336
  # least one keyword argument is required. To specify no parameters, or to keep all
2794
3337
  # the default parameter values, pass an empty Hash as a request object (see above).
2795
3338
  #
2796
3339
  # @param parent [::String]
2797
- # Required. The parent collection in which the `Rollout` should be created.
2798
- # Format should be
3340
+ # Required. The parent collection in which the `Rollout` must be created.
3341
+ # The format is
2799
3342
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
2800
3343
  # @param rollout_id [::String]
2801
3344
  # Required. ID of the `Rollout`.
@@ -2818,6 +3361,9 @@ module Google
2818
3361
  # @param validate_only [::Boolean]
2819
3362
  # Optional. If set to true, the request is validated and the user is provided
2820
3363
  # with an expected result, but no actual change is made.
3364
+ # @param override_deploy_policy [::Array<::String>]
3365
+ # Optional. Deploy policies to override. Format is
3366
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2821
3367
  # @param starting_phase_id [::String]
2822
3368
  # Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
2823
3369
  # will start at the first phase.
@@ -2901,7 +3447,7 @@ module Google
2901
3447
  # @param options [::Gapic::CallOptions, ::Hash]
2902
3448
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2903
3449
  #
2904
- # @overload ignore_job(rollout: nil, phase_id: nil, job_id: nil)
3450
+ # @overload ignore_job(rollout: nil, phase_id: nil, job_id: nil, override_deploy_policy: nil)
2905
3451
  # Pass arguments to `ignore_job` via keyword arguments. Note that at
2906
3452
  # least one keyword argument is required. To specify no parameters, or to keep all
2907
3453
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2913,6 +3459,9 @@ module Google
2913
3459
  # Required. The phase ID the Job to ignore belongs to.
2914
3460
  # @param job_id [::String]
2915
3461
  # Required. The job ID for the Job to ignore.
3462
+ # @param override_deploy_policy [::Array<::String>]
3463
+ # Optional. Deploy policies to override. Format is
3464
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
2916
3465
  # @yield [result, operation] Access the result along with the TransportOperation object
2917
3466
  # @yieldparam result [::Google::Cloud::Deploy::V1::IgnoreJobResponse]
2918
3467
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2985,7 +3534,7 @@ module Google
2985
3534
  # @param options [::Gapic::CallOptions, ::Hash]
2986
3535
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2987
3536
  #
2988
- # @overload retry_job(rollout: nil, phase_id: nil, job_id: nil)
3537
+ # @overload retry_job(rollout: nil, phase_id: nil, job_id: nil, override_deploy_policy: nil)
2989
3538
  # Pass arguments to `retry_job` via keyword arguments. Note that at
2990
3539
  # least one keyword argument is required. To specify no parameters, or to keep all
2991
3540
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2997,6 +3546,9 @@ module Google
2997
3546
  # Required. The phase ID the Job to retry belongs to.
2998
3547
  # @param job_id [::String]
2999
3548
  # Required. The job ID for the Job to retry.
3549
+ # @param override_deploy_policy [::Array<::String>]
3550
+ # Optional. Deploy policies to override. Format is
3551
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
3000
3552
  # @yield [result, operation] Access the result along with the TransportOperation object
3001
3553
  # @yieldparam result [::Google::Cloud::Deploy::V1::RetryJobResponse]
3002
3554
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3249,7 +3801,7 @@ module Google
3249
3801
  # @param options [::Gapic::CallOptions, ::Hash]
3250
3802
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3251
3803
  #
3252
- # @overload terminate_job_run(name: nil)
3804
+ # @overload terminate_job_run(name: nil, override_deploy_policy: nil)
3253
3805
  # Pass arguments to `terminate_job_run` via keyword arguments. Note that at
3254
3806
  # least one keyword argument is required. To specify no parameters, or to keep all
3255
3807
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -3257,6 +3809,9 @@ module Google
3257
3809
  # @param name [::String]
3258
3810
  # Required. Name of the `JobRun`. Format must be
3259
3811
  # `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
3812
+ # @param override_deploy_policy [::Array<::String>]
3813
+ # Optional. Deploy policies to override. Format is
3814
+ # `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
3260
3815
  # @yield [result, operation] Access the result along with the TransportOperation object
3261
3816
  # @yieldparam result [::Google::Cloud::Deploy::V1::TerminateJobRunResponse]
3262
3817
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3414,8 +3969,8 @@ module Google
3414
3969
  # the default parameter values, pass an empty Hash as a request object (see above).
3415
3970
  #
3416
3971
  # @param parent [::String]
3417
- # Required. The parent collection in which the `Automation` should be
3418
- # created. Format should be
3972
+ # Required. The parent collection in which the `Automation` must be created.
3973
+ # The format is
3419
3974
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
3420
3975
  # @param automation_id [::String]
3421
3976
  # Required. ID of the `Automation`.
@@ -3524,11 +4079,11 @@ module Google
3524
4079
  # the default parameter values, pass an empty Hash as a request object (see above).
3525
4080
  #
3526
4081
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3527
- # Required. Field mask is used to specify the fields to be overwritten in the
3528
- # `Automation` resource by the update.
3529
- # The fields specified in the update_mask are relative to the resource, not
3530
- # the full request. A field will be overwritten if it's in the mask. If the
3531
- # user doesn't provide a mask then all fields are overwritten.
4082
+ # Required. Field mask is used to specify the fields to be overwritten by the
4083
+ # update in the `Automation` resource. The fields specified in the
4084
+ # update_mask are relative to the resource, not the full request. A field
4085
+ # will be overwritten if it's in the mask. If the user doesn't provide a mask
4086
+ # then all fields are overwritten.
3532
4087
  # @param automation [::Google::Cloud::Deploy::V1::Automation, ::Hash]
3533
4088
  # Required. The `Automation` to update.
3534
4089
  # @param request_id [::String]
@@ -3637,7 +4192,7 @@ module Google
3637
4192
  # the default parameter values, pass an empty Hash as a request object (see above).
3638
4193
  #
3639
4194
  # @param name [::String]
3640
- # Required. The name of the `Automation` to delete. Format should be
4195
+ # Required. The name of the `Automation` to delete. The format is
3641
4196
  # `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
3642
4197
  # @param request_id [::String]
3643
4198
  # Optional. A request ID to identify requests. Specify a unique request ID
@@ -4417,6 +4972,31 @@ module Google
4417
4972
  #
4418
4973
  attr_reader :abandon_release
4419
4974
  ##
4975
+ # RPC-specific configuration for `create_deploy_policy`
4976
+ # @return [::Gapic::Config::Method]
4977
+ #
4978
+ attr_reader :create_deploy_policy
4979
+ ##
4980
+ # RPC-specific configuration for `update_deploy_policy`
4981
+ # @return [::Gapic::Config::Method]
4982
+ #
4983
+ attr_reader :update_deploy_policy
4984
+ ##
4985
+ # RPC-specific configuration for `delete_deploy_policy`
4986
+ # @return [::Gapic::Config::Method]
4987
+ #
4988
+ attr_reader :delete_deploy_policy
4989
+ ##
4990
+ # RPC-specific configuration for `list_deploy_policies`
4991
+ # @return [::Gapic::Config::Method]
4992
+ #
4993
+ attr_reader :list_deploy_policies
4994
+ ##
4995
+ # RPC-specific configuration for `get_deploy_policy`
4996
+ # @return [::Gapic::Config::Method]
4997
+ #
4998
+ attr_reader :get_deploy_policy
4999
+ ##
4420
5000
  # RPC-specific configuration for `approve_rollout`
4421
5001
  # @return [::Gapic::Config::Method]
4422
5002
  #
@@ -4559,6 +5139,16 @@ module Google
4559
5139
  @create_release = ::Gapic::Config::Method.new create_release_config
4560
5140
  abandon_release_config = parent_rpcs.abandon_release if parent_rpcs.respond_to? :abandon_release
4561
5141
  @abandon_release = ::Gapic::Config::Method.new abandon_release_config
5142
+ create_deploy_policy_config = parent_rpcs.create_deploy_policy if parent_rpcs.respond_to? :create_deploy_policy
5143
+ @create_deploy_policy = ::Gapic::Config::Method.new create_deploy_policy_config
5144
+ update_deploy_policy_config = parent_rpcs.update_deploy_policy if parent_rpcs.respond_to? :update_deploy_policy
5145
+ @update_deploy_policy = ::Gapic::Config::Method.new update_deploy_policy_config
5146
+ delete_deploy_policy_config = parent_rpcs.delete_deploy_policy if parent_rpcs.respond_to? :delete_deploy_policy
5147
+ @delete_deploy_policy = ::Gapic::Config::Method.new delete_deploy_policy_config
5148
+ list_deploy_policies_config = parent_rpcs.list_deploy_policies if parent_rpcs.respond_to? :list_deploy_policies
5149
+ @list_deploy_policies = ::Gapic::Config::Method.new list_deploy_policies_config
5150
+ get_deploy_policy_config = parent_rpcs.get_deploy_policy if parent_rpcs.respond_to? :get_deploy_policy
5151
+ @get_deploy_policy = ::Gapic::Config::Method.new get_deploy_policy_config
4562
5152
  approve_rollout_config = parent_rpcs.approve_rollout if parent_rpcs.respond_to? :approve_rollout
4563
5153
  @approve_rollout = ::Gapic::Config::Method.new approve_rollout_config
4564
5154
  advance_rollout_config = parent_rpcs.advance_rollout if parent_rpcs.respond_to? :advance_rollout