google-apis-clouddeploy_v1 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 531c43dc573b850abc4381dca0f032f9ccf4213ca785104d2c39618a0d7de1f6
4
- data.tar.gz: a5c3737666b690194e3e51b04a80b3a8b31e2542e3eeeff4f7cf562154d8d755
3
+ metadata.gz: 5f3a1ae0bc1b2d793963c007d93645f7439236a53d5a647e48fe717d7bb7aa3c
4
+ data.tar.gz: ecb5f9cc5b1dde182b6c2255120e7da7f941cfc17e99460ba78a4b9cfddee45b
5
5
  SHA512:
6
- metadata.gz: 6c64f91f03f20b2cf06a3bda818556e36e02dafeb5eb47ec1206df6142244c1ed1bf36ef03c26738df1a8d94c9614008d7b2be14927ac8db0a0452463bb5ecb1
7
- data.tar.gz: 60e640a6a8fbf1a0d51f7f397cf10eddcb4deaef8e646ad328d718f0580c30ff646ac57753d0c83799fa23ef493f69ddab61c32124af03537369e30777bf03d5
6
+ metadata.gz: 4780a7170a6953d8b7a8a624b814ba056e71e1a1f15cb105cdcf8dde24ddd46d21f2c2cde81839ba3defbd353c5a31cfb5b53c69248fcfeb587bb195e95af9d5
7
+ data.tar.gz: dbce3d95711d052bbcd0a124422369f375d366002491f6827c0dc99d50eec80535395f624a38fde8120c18a82dcf8d7c09afe9563b58ba4d9870f95353db1050
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-clouddeploy_v1
2
2
 
3
+ ### v0.31.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230904
6
+
7
+ ### v0.30.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230802
10
+
3
11
  ### v0.29.0 (2023-08-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20230727
@@ -1880,13 +1880,13 @@ module Google
1880
1880
  # @return [String]
1881
1881
  attr_accessor :name
1882
1882
 
1883
- # The normal response of the operation in case of success. If the original
1884
- # method returns no data on success, such as `Delete`, the response is `google.
1885
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1886
- # the response should be the resource. For other methods, the response should
1887
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1888
- # example, if the original method name is `TakeSnapshot()`, the inferred
1889
- # response type is `TakeSnapshotResponse`.
1883
+ # The normal, successful response of the operation. If the original method
1884
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1885
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1886
+ # response should be the resource. For other methods, the response should have
1887
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1888
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1889
+ # `TakeSnapshotResponse`.
1890
1890
  # Corresponds to the JSON property `response`
1891
1891
  # @return [Hash<String,Object>]
1892
1892
  attr_accessor :response
@@ -2169,22 +2169,22 @@ module Google
2169
2169
  # evaluates to `true`. A condition can add constraints based on attributes of
2170
2170
  # the request, the resource, or both. To learn which resources support
2171
2171
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2172
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2172
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
2173
2173
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2174
2174
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2175
2175
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2176
2176
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2177
2177
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
2178
2178
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2179
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2180
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
2181
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2182
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2183
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2184
- # access description: Does not grant access after Sep 2020 expression: request.
2185
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2186
- # a description of IAM and its features, see the [IAM documentation](https://
2187
- # cloud.google.com/iam/docs/).
2179
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2180
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2181
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2182
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2183
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2184
+ # title: expirable access description: Does not grant access after Sep 2020
2185
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2186
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2187
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2188
2188
  class Policy
2189
2189
  include Google::Apis::Core::Hashable
2190
2190
 
@@ -2257,7 +2257,7 @@ module Google
2257
2257
  class Postdeploy
2258
2258
  include Google::Apis::Core::Hashable
2259
2259
 
2260
- # Optional. A sequence of skaffold custom actions to invoke during execution of
2260
+ # Optional. A sequence of Skaffold custom actions to invoke during execution of
2261
2261
  # the postdeploy job.
2262
2262
  # Corresponds to the JSON property `actions`
2263
2263
  # @return [Array<String>]
@@ -2330,7 +2330,7 @@ module Google
2330
2330
  class Predeploy
2331
2331
  include Google::Apis::Core::Hashable
2332
2332
 
2333
- # Optional. A sequence of skaffold custom actions to invoke during execution of
2333
+ # Optional. A sequence of Skaffold custom actions to invoke during execution of
2334
2334
  # the predeploy job.
2335
2335
  # Corresponds to the JSON property `actions`
2336
2336
  # @return [Array<String>]
@@ -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)
@@ -3060,22 +3173,22 @@ module Google
3060
3173
  # evaluates to `true`. A condition can add constraints based on attributes of
3061
3174
  # the request, the resource, or both. To learn which resources support
3062
3175
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3063
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3176
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
3064
3177
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3065
3178
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3066
3179
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3067
3180
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3068
3181
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
3069
3182
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3070
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3071
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
3072
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3073
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3074
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3075
- # access description: Does not grant access after Sep 2020 expression: request.
3076
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3077
- # a description of IAM and its features, see the [IAM documentation](https://
3078
- # cloud.google.com/iam/docs/).
3183
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
3184
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
3185
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
3186
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
3187
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
3188
+ # title: expirable access description: Does not grant access after Sep 2020
3189
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
3190
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
3191
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
3079
3192
  # Corresponds to the JSON property `policy`
3080
3193
  # @return [Google::Apis::ClouddeployV1::Policy]
3081
3194
  attr_accessor :policy
@@ -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.29.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 = "20230727"
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.29.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-08-06 00:00:00.000000000 Z
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.29.0
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.2
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