google-apis-clouddeploy_v1 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f3a1ae0bc1b2d793963c007d93645f7439236a53d5a647e48fe717d7bb7aa3c
|
4
|
+
data.tar.gz: ecb5f9cc5b1dde182b6c2255120e7da7f941cfc17e99460ba78a4b9cfddee45b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4780a7170a6953d8b7a8a624b814ba056e71e1a1f15cb105cdcf8dde24ddd46d21f2c2cde81839ba3defbd353c5a31cfb5b53c69248fcfeb587bb195e95af9d5
|
7
|
+
data.tar.gz: dbce3d95711d052bbcd0a124422369f375d366002491f6827c0dc99d50eec80535395f624a38fde8120c18a82dcf8d7c09afe9563b58ba4d9870f95353db1050
|
data/CHANGELOG.md
CHANGED
@@ -2762,6 +2762,106 @@ module Google
|
|
2762
2762
|
end
|
2763
2763
|
end
|
2764
2764
|
|
2765
|
+
# Configs for the Rollback rollout.
|
2766
|
+
class RollbackTargetConfig
|
2767
|
+
include Google::Apis::Core::Hashable
|
2768
|
+
|
2769
|
+
# A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information
|
2770
|
+
# around a specific deployment to a `Target`.
|
2771
|
+
# Corresponds to the JSON property `rollout`
|
2772
|
+
# @return [Google::Apis::ClouddeployV1::Rollout]
|
2773
|
+
attr_accessor :rollout
|
2774
|
+
|
2775
|
+
# Optional. The starting phase ID for the `Rollout`. If unspecified, the `
|
2776
|
+
# Rollout` will start in the stable phase.
|
2777
|
+
# Corresponds to the JSON property `startingPhaseId`
|
2778
|
+
# @return [String]
|
2779
|
+
attr_accessor :starting_phase_id
|
2780
|
+
|
2781
|
+
def initialize(**args)
|
2782
|
+
update!(**args)
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
# Update properties of this object
|
2786
|
+
def update!(**args)
|
2787
|
+
@rollout = args[:rollout] if args.key?(:rollout)
|
2788
|
+
@starting_phase_id = args[:starting_phase_id] if args.key?(:starting_phase_id)
|
2789
|
+
end
|
2790
|
+
end
|
2791
|
+
|
2792
|
+
# The request object for `RollbackTarget`.
|
2793
|
+
class RollbackTargetRequest
|
2794
|
+
include Google::Apis::Core::Hashable
|
2795
|
+
|
2796
|
+
# Optional. ID of the `Release` to roll back to. If this isn't specified, the
|
2797
|
+
# previous successful `Rollout` to the specified target will be used to
|
2798
|
+
# determine the `Release`.
|
2799
|
+
# Corresponds to the JSON property `releaseId`
|
2800
|
+
# @return [String]
|
2801
|
+
attr_accessor :release_id
|
2802
|
+
|
2803
|
+
# Configs for the Rollback rollout.
|
2804
|
+
# Corresponds to the JSON property `rollbackConfig`
|
2805
|
+
# @return [Google::Apis::ClouddeployV1::RollbackTargetConfig]
|
2806
|
+
attr_accessor :rollback_config
|
2807
|
+
|
2808
|
+
# Required. ID of the rollback `Rollout` to create.
|
2809
|
+
# Corresponds to the JSON property `rolloutId`
|
2810
|
+
# @return [String]
|
2811
|
+
attr_accessor :rollout_id
|
2812
|
+
|
2813
|
+
# Optional. If provided, this must be the latest `Rollout` that is on the `
|
2814
|
+
# Target`.
|
2815
|
+
# Corresponds to the JSON property `rolloutToRollBack`
|
2816
|
+
# @return [String]
|
2817
|
+
attr_accessor :rollout_to_roll_back
|
2818
|
+
|
2819
|
+
# Required. ID of the `Target` that is being rolled back.
|
2820
|
+
# Corresponds to the JSON property `targetId`
|
2821
|
+
# @return [String]
|
2822
|
+
attr_accessor :target_id
|
2823
|
+
|
2824
|
+
# Optional. If set to true, the request is validated and the user is provided
|
2825
|
+
# with a `RollbackTargetResponse`.
|
2826
|
+
# Corresponds to the JSON property `validateOnly`
|
2827
|
+
# @return [Boolean]
|
2828
|
+
attr_accessor :validate_only
|
2829
|
+
alias_method :validate_only?, :validate_only
|
2830
|
+
|
2831
|
+
def initialize(**args)
|
2832
|
+
update!(**args)
|
2833
|
+
end
|
2834
|
+
|
2835
|
+
# Update properties of this object
|
2836
|
+
def update!(**args)
|
2837
|
+
@release_id = args[:release_id] if args.key?(:release_id)
|
2838
|
+
@rollback_config = args[:rollback_config] if args.key?(:rollback_config)
|
2839
|
+
@rollout_id = args[:rollout_id] if args.key?(:rollout_id)
|
2840
|
+
@rollout_to_roll_back = args[:rollout_to_roll_back] if args.key?(:rollout_to_roll_back)
|
2841
|
+
@target_id = args[:target_id] if args.key?(:target_id)
|
2842
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
2843
|
+
end
|
2844
|
+
end
|
2845
|
+
|
2846
|
+
# The response object from `RollbackTarget`.
|
2847
|
+
class RollbackTargetResponse
|
2848
|
+
include Google::Apis::Core::Hashable
|
2849
|
+
|
2850
|
+
# Configs for the Rollback rollout.
|
2851
|
+
# Corresponds to the JSON property `rollbackConfig`
|
2852
|
+
# @return [Google::Apis::ClouddeployV1::RollbackTargetConfig]
|
2853
|
+
attr_accessor :rollback_config
|
2854
|
+
|
2855
|
+
def initialize(**args)
|
2856
|
+
update!(**args)
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
# Update properties of this object
|
2860
|
+
def update!(**args)
|
2861
|
+
@rollback_config = args[:rollback_config] if args.key?(:rollback_config)
|
2862
|
+
end
|
2863
|
+
end
|
2864
|
+
|
2765
2865
|
# A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information
|
2766
2866
|
# around a specific deployment to a `Target`.
|
2767
2867
|
class Rollout
|
@@ -2869,6 +2969,17 @@ module Google
|
|
2869
2969
|
# @return [Array<Google::Apis::ClouddeployV1::Phase>]
|
2870
2970
|
attr_accessor :phases
|
2871
2971
|
|
2972
|
+
# Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
|
2973
|
+
# Empty if this `Rollout` wasn't created as a rollback.
|
2974
|
+
# Corresponds to the JSON property `rollbackOfRollout`
|
2975
|
+
# @return [String]
|
2976
|
+
attr_accessor :rollback_of_rollout
|
2977
|
+
|
2978
|
+
# Output only. Names of `Rollouts` that rolled back this `Rollout`.
|
2979
|
+
# Corresponds to the JSON property `rolledBackByRollouts`
|
2980
|
+
# @return [Array<String>]
|
2981
|
+
attr_accessor :rolled_back_by_rollouts
|
2982
|
+
|
2872
2983
|
# Output only. Current state of the `Rollout`.
|
2873
2984
|
# Corresponds to the JSON property `state`
|
2874
2985
|
# @return [String]
|
@@ -2907,6 +3018,8 @@ module Google
|
|
2907
3018
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2908
3019
|
@name = args[:name] if args.key?(:name)
|
2909
3020
|
@phases = args[:phases] if args.key?(:phases)
|
3021
|
+
@rollback_of_rollout = args[:rollback_of_rollout] if args.key?(:rollback_of_rollout)
|
3022
|
+
@rolled_back_by_rollouts = args[:rolled_back_by_rollouts] if args.key?(:rolled_back_by_rollouts)
|
2910
3023
|
@state = args[:state] if args.key?(:state)
|
2911
3024
|
@target_id = args[:target_id] if args.key?(:target_id)
|
2912
3025
|
@uid = args[:uid] if args.key?(:uid)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ClouddeployV1
|
18
18
|
# Version of the google-apis-clouddeploy_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230904"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -508,6 +508,24 @@ module Google
|
|
508
508
|
include Google::Apis::Core::JsonObjectSupport
|
509
509
|
end
|
510
510
|
|
511
|
+
class RollbackTargetConfig
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
517
|
+
class RollbackTargetRequest
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
523
|
+
class RollbackTargetResponse
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
+
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
527
|
+
end
|
528
|
+
|
511
529
|
class Rollout
|
512
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
531
|
|
@@ -1428,6 +1446,36 @@ module Google
|
|
1428
1446
|
end
|
1429
1447
|
end
|
1430
1448
|
|
1449
|
+
class RollbackTargetConfig
|
1450
|
+
# @private
|
1451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1452
|
+
property :rollout, as: 'rollout', class: Google::Apis::ClouddeployV1::Rollout, decorator: Google::Apis::ClouddeployV1::Rollout::Representation
|
1453
|
+
|
1454
|
+
property :starting_phase_id, as: 'startingPhaseId'
|
1455
|
+
end
|
1456
|
+
end
|
1457
|
+
|
1458
|
+
class RollbackTargetRequest
|
1459
|
+
# @private
|
1460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1461
|
+
property :release_id, as: 'releaseId'
|
1462
|
+
property :rollback_config, as: 'rollbackConfig', class: Google::Apis::ClouddeployV1::RollbackTargetConfig, decorator: Google::Apis::ClouddeployV1::RollbackTargetConfig::Representation
|
1463
|
+
|
1464
|
+
property :rollout_id, as: 'rolloutId'
|
1465
|
+
property :rollout_to_roll_back, as: 'rolloutToRollBack'
|
1466
|
+
property :target_id, as: 'targetId'
|
1467
|
+
property :validate_only, as: 'validateOnly'
|
1468
|
+
end
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
class RollbackTargetResponse
|
1472
|
+
# @private
|
1473
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1474
|
+
property :rollback_config, as: 'rollbackConfig', class: Google::Apis::ClouddeployV1::RollbackTargetConfig, decorator: Google::Apis::ClouddeployV1::RollbackTargetConfig::Representation
|
1475
|
+
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
|
1431
1479
|
class Rollout
|
1432
1480
|
# @private
|
1433
1481
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1450,6 +1498,8 @@ module Google
|
|
1450
1498
|
property :name, as: 'name'
|
1451
1499
|
collection :phases, as: 'phases', class: Google::Apis::ClouddeployV1::Phase, decorator: Google::Apis::ClouddeployV1::Phase::Representation
|
1452
1500
|
|
1501
|
+
property :rollback_of_rollout, as: 'rollbackOfRollout'
|
1502
|
+
collection :rolled_back_by_rollouts, as: 'rolledBackByRollouts'
|
1453
1503
|
property :state, as: 'state'
|
1454
1504
|
property :target_id, as: 'targetId'
|
1455
1505
|
property :uid, as: 'uid'
|
@@ -452,6 +452,41 @@ module Google
|
|
452
452
|
execute_or_queue_command(command, &block)
|
453
453
|
end
|
454
454
|
|
455
|
+
# Creates a `Rollout` to roll back the specified target.
|
456
|
+
# @param [String] name
|
457
|
+
# Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
|
458
|
+
# created. Format should be projects/`project_id`/locations/`location_name`/
|
459
|
+
# deliveryPipelines/`pipeline_name`.
|
460
|
+
# @param [Google::Apis::ClouddeployV1::RollbackTargetRequest] rollback_target_request_object
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::ClouddeployV1::RollbackTargetResponse] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::ClouddeployV1::RollbackTargetResponse]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def rollback_delivery_pipeline_target(name, rollback_target_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:post, 'v1/{+name}:rollbackTarget', options)
|
480
|
+
command.request_representation = Google::Apis::ClouddeployV1::RollbackTargetRequest::Representation
|
481
|
+
command.request_object = rollback_target_request_object
|
482
|
+
command.response_representation = Google::Apis::ClouddeployV1::RollbackTargetResponse::Representation
|
483
|
+
command.response_class = Google::Apis::ClouddeployV1::RollbackTargetResponse
|
484
|
+
command.params['name'] = name unless name.nil?
|
485
|
+
command.query['fields'] = fields unless fields.nil?
|
486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
487
|
+
execute_or_queue_command(command, &block)
|
488
|
+
end
|
489
|
+
|
455
490
|
# Sets the access control policy on the specified resource. Replaces any
|
456
491
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
457
492
|
# PERMISSION_DENIED` errors.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-clouddeploy_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-clouddeploy_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-clouddeploy_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Deploy API V1
|