google-apis-clouddeploy_v1 0.30.0 → 0.32.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: 04c1763f17f5d9b92e85158f67db5f59558f90894f81b9db58ec12af98ff3d39
4
- data.tar.gz: d6321670fc15da8e30eaf024dfcc2e05a7c859e76c081b7b35dcf8a0463eaffb
3
+ metadata.gz: d7910f7c069f294da5acc3525e4c80a3cba103b05da41b4023e76bb0f4ff3d24
4
+ data.tar.gz: 56fb84808983970b89c8032eb2360ffba43263a71c14c612455958997965cb42
5
5
  SHA512:
6
- metadata.gz: 3ff311f360cb5c54ed5e1c08b57167df168707dfde916a94300b99a9bc8d62d98ae22f2a097cc38e6c7d1eef44bd8af2f67f257d3d3612654dfaf650e12388c3
7
- data.tar.gz: 350179d85451f0fcc7d096893e5fb0d4a15f2609d581ec69644de8b6fc39f4579a74e6932c9fe3350833e9456818d4f27dface0b87d1b32d6122286da256ead0
6
+ metadata.gz: 9837d0b5b4177f896e88ac2eddd64847812d94c946ef45a25087ebf85dabaf72058d4d2eaf8cb26edb4e87c08476c65a76620c913dea2a206d4fedd1f0fbb865
7
+ data.tar.gz: 46b9f2566ca2b709c037a008a200154341b81189ee9a83c23079f5db1c123a8b1ba0c652d7b3635ad1fcdc30043400a3760350123961acd7d750d3e745773627
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-clouddeploy_v1
2
2
 
3
+ ### v0.32.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230913
6
+
7
+ ### v0.31.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230904
10
+
3
11
  ### v0.30.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230802
@@ -246,6 +246,102 @@ module Google
246
246
  end
247
247
  end
248
248
 
249
+ # Payload proto for "clouddeploy.googleapis.com/automation" Platform Log event
250
+ # that describes the Automation related events.
251
+ class AutomationEvent
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # The name of the `AutomationRun`.
255
+ # Corresponds to the JSON property `automation`
256
+ # @return [String]
257
+ attr_accessor :automation
258
+
259
+ # Debug message for when there is an update on the AutomationRun. Provides
260
+ # further details about the resource creation or state change.
261
+ # Corresponds to the JSON property `message`
262
+ # @return [String]
263
+ attr_accessor :message
264
+
265
+ # Unique identifier of the `DeliveryPipeline`.
266
+ # Corresponds to the JSON property `pipelineUid`
267
+ # @return [String]
268
+ attr_accessor :pipeline_uid
269
+
270
+ # Type of this notification, e.g. for a Pub/Sub failure.
271
+ # Corresponds to the JSON property `type`
272
+ # @return [String]
273
+ attr_accessor :type
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @automation = args[:automation] if args.key?(:automation)
282
+ @message = args[:message] if args.key?(:message)
283
+ @pipeline_uid = args[:pipeline_uid] if args.key?(:pipeline_uid)
284
+ @type = args[:type] if args.key?(:type)
285
+ end
286
+ end
287
+
288
+ # Payload proto for "clouddeploy.googleapis.com/automation_run" Platform Log
289
+ # event that describes the AutomationRun related events.
290
+ class AutomationRunEvent
291
+ include Google::Apis::Core::Hashable
292
+
293
+ # Identifier of the `Automation`.
294
+ # Corresponds to the JSON property `automationId`
295
+ # @return [String]
296
+ attr_accessor :automation_id
297
+
298
+ # The name of the `AutomationRun`.
299
+ # Corresponds to the JSON property `automationRun`
300
+ # @return [String]
301
+ attr_accessor :automation_run
302
+
303
+ # ID of the `Target` to which the `AutomationRun` is created.
304
+ # Corresponds to the JSON property `destinationTargetId`
305
+ # @return [String]
306
+ attr_accessor :destination_target_id
307
+
308
+ # Debug message for when there is an update on the AutomationRun. Provides
309
+ # further details about the resource creation or state change.
310
+ # Corresponds to the JSON property `message`
311
+ # @return [String]
312
+ attr_accessor :message
313
+
314
+ # Unique identifier of the `DeliveryPipeline`.
315
+ # Corresponds to the JSON property `pipelineUid`
316
+ # @return [String]
317
+ attr_accessor :pipeline_uid
318
+
319
+ # Identifier of the `Automation` rule.
320
+ # Corresponds to the JSON property `ruleId`
321
+ # @return [String]
322
+ attr_accessor :rule_id
323
+
324
+ # Type of this notification, e.g. for a Pub/Sub failure.
325
+ # Corresponds to the JSON property `type`
326
+ # @return [String]
327
+ attr_accessor :type
328
+
329
+ def initialize(**args)
330
+ update!(**args)
331
+ end
332
+
333
+ # Update properties of this object
334
+ def update!(**args)
335
+ @automation_id = args[:automation_id] if args.key?(:automation_id)
336
+ @automation_run = args[:automation_run] if args.key?(:automation_run)
337
+ @destination_target_id = args[:destination_target_id] if args.key?(:destination_target_id)
338
+ @message = args[:message] if args.key?(:message)
339
+ @pipeline_uid = args[:pipeline_uid] if args.key?(:pipeline_uid)
340
+ @rule_id = args[:rule_id] if args.key?(:rule_id)
341
+ @type = args[:type] if args.key?(:type)
342
+ end
343
+ end
344
+
249
345
  # Associates `members`, or principals, with a `role`.
250
346
  class Binding
251
347
  include Google::Apis::Core::Hashable
@@ -2762,6 +2858,106 @@ module Google
2762
2858
  end
2763
2859
  end
2764
2860
 
2861
+ # Configs for the Rollback rollout.
2862
+ class RollbackTargetConfig
2863
+ include Google::Apis::Core::Hashable
2864
+
2865
+ # A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information
2866
+ # around a specific deployment to a `Target`.
2867
+ # Corresponds to the JSON property `rollout`
2868
+ # @return [Google::Apis::ClouddeployV1::Rollout]
2869
+ attr_accessor :rollout
2870
+
2871
+ # Optional. The starting phase ID for the `Rollout`. If unspecified, the `
2872
+ # Rollout` will start in the stable phase.
2873
+ # Corresponds to the JSON property `startingPhaseId`
2874
+ # @return [String]
2875
+ attr_accessor :starting_phase_id
2876
+
2877
+ def initialize(**args)
2878
+ update!(**args)
2879
+ end
2880
+
2881
+ # Update properties of this object
2882
+ def update!(**args)
2883
+ @rollout = args[:rollout] if args.key?(:rollout)
2884
+ @starting_phase_id = args[:starting_phase_id] if args.key?(:starting_phase_id)
2885
+ end
2886
+ end
2887
+
2888
+ # The request object for `RollbackTarget`.
2889
+ class RollbackTargetRequest
2890
+ include Google::Apis::Core::Hashable
2891
+
2892
+ # Optional. ID of the `Release` to roll back to. If this isn't specified, the
2893
+ # previous successful `Rollout` to the specified target will be used to
2894
+ # determine the `Release`.
2895
+ # Corresponds to the JSON property `releaseId`
2896
+ # @return [String]
2897
+ attr_accessor :release_id
2898
+
2899
+ # Configs for the Rollback rollout.
2900
+ # Corresponds to the JSON property `rollbackConfig`
2901
+ # @return [Google::Apis::ClouddeployV1::RollbackTargetConfig]
2902
+ attr_accessor :rollback_config
2903
+
2904
+ # Required. ID of the rollback `Rollout` to create.
2905
+ # Corresponds to the JSON property `rolloutId`
2906
+ # @return [String]
2907
+ attr_accessor :rollout_id
2908
+
2909
+ # Optional. If provided, this must be the latest `Rollout` that is on the `
2910
+ # Target`.
2911
+ # Corresponds to the JSON property `rolloutToRollBack`
2912
+ # @return [String]
2913
+ attr_accessor :rollout_to_roll_back
2914
+
2915
+ # Required. ID of the `Target` that is being rolled back.
2916
+ # Corresponds to the JSON property `targetId`
2917
+ # @return [String]
2918
+ attr_accessor :target_id
2919
+
2920
+ # Optional. If set to true, the request is validated and the user is provided
2921
+ # with a `RollbackTargetResponse`.
2922
+ # Corresponds to the JSON property `validateOnly`
2923
+ # @return [Boolean]
2924
+ attr_accessor :validate_only
2925
+ alias_method :validate_only?, :validate_only
2926
+
2927
+ def initialize(**args)
2928
+ update!(**args)
2929
+ end
2930
+
2931
+ # Update properties of this object
2932
+ def update!(**args)
2933
+ @release_id = args[:release_id] if args.key?(:release_id)
2934
+ @rollback_config = args[:rollback_config] if args.key?(:rollback_config)
2935
+ @rollout_id = args[:rollout_id] if args.key?(:rollout_id)
2936
+ @rollout_to_roll_back = args[:rollout_to_roll_back] if args.key?(:rollout_to_roll_back)
2937
+ @target_id = args[:target_id] if args.key?(:target_id)
2938
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
2939
+ end
2940
+ end
2941
+
2942
+ # The response object from `RollbackTarget`.
2943
+ class RollbackTargetResponse
2944
+ include Google::Apis::Core::Hashable
2945
+
2946
+ # Configs for the Rollback rollout.
2947
+ # Corresponds to the JSON property `rollbackConfig`
2948
+ # @return [Google::Apis::ClouddeployV1::RollbackTargetConfig]
2949
+ attr_accessor :rollback_config
2950
+
2951
+ def initialize(**args)
2952
+ update!(**args)
2953
+ end
2954
+
2955
+ # Update properties of this object
2956
+ def update!(**args)
2957
+ @rollback_config = args[:rollback_config] if args.key?(:rollback_config)
2958
+ end
2959
+ end
2960
+
2765
2961
  # A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information
2766
2962
  # around a specific deployment to a `Target`.
2767
2963
  class Rollout
@@ -2869,6 +3065,17 @@ module Google
2869
3065
  # @return [Array<Google::Apis::ClouddeployV1::Phase>]
2870
3066
  attr_accessor :phases
2871
3067
 
3068
+ # Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
3069
+ # Empty if this `Rollout` wasn't created as a rollback.
3070
+ # Corresponds to the JSON property `rollbackOfRollout`
3071
+ # @return [String]
3072
+ attr_accessor :rollback_of_rollout
3073
+
3074
+ # Output only. Names of `Rollouts` that rolled back this `Rollout`.
3075
+ # Corresponds to the JSON property `rolledBackByRollouts`
3076
+ # @return [Array<String>]
3077
+ attr_accessor :rolled_back_by_rollouts
3078
+
2872
3079
  # Output only. Current state of the `Rollout`.
2873
3080
  # Corresponds to the JSON property `state`
2874
3081
  # @return [String]
@@ -2907,6 +3114,8 @@ module Google
2907
3114
  @metadata = args[:metadata] if args.key?(:metadata)
2908
3115
  @name = args[:name] if args.key?(:name)
2909
3116
  @phases = args[:phases] if args.key?(:phases)
3117
+ @rollback_of_rollout = args[:rollback_of_rollout] if args.key?(:rollback_of_rollout)
3118
+ @rolled_back_by_rollouts = args[:rolled_back_by_rollouts] if args.key?(:rolled_back_by_rollouts)
2910
3119
  @state = args[:state] if args.key?(:state)
2911
3120
  @target_id = args[:target_id] if args.key?(:target_id)
2912
3121
  @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.30.0"
19
+ GEM_VERSION = "0.32.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 = "20230802"
25
+ REVISION = "20230913"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,18 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class AutomationEvent
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class AutomationRunEvent
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class Binding
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -508,6 +520,24 @@ module Google
508
520
  include Google::Apis::Core::JsonObjectSupport
509
521
  end
510
522
 
523
+ class RollbackTargetConfig
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class RollbackTargetRequest
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
535
+ class RollbackTargetResponse
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
511
541
  class Rollout
512
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
543
 
@@ -728,6 +758,29 @@ module Google
728
758
  end
729
759
  end
730
760
 
761
+ class AutomationEvent
762
+ # @private
763
+ class Representation < Google::Apis::Core::JsonRepresentation
764
+ property :automation, as: 'automation'
765
+ property :message, as: 'message'
766
+ property :pipeline_uid, as: 'pipelineUid'
767
+ property :type, as: 'type'
768
+ end
769
+ end
770
+
771
+ class AutomationRunEvent
772
+ # @private
773
+ class Representation < Google::Apis::Core::JsonRepresentation
774
+ property :automation_id, as: 'automationId'
775
+ property :automation_run, as: 'automationRun'
776
+ property :destination_target_id, as: 'destinationTargetId'
777
+ property :message, as: 'message'
778
+ property :pipeline_uid, as: 'pipelineUid'
779
+ property :rule_id, as: 'ruleId'
780
+ property :type, as: 'type'
781
+ end
782
+ end
783
+
731
784
  class Binding
732
785
  # @private
733
786
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1428,6 +1481,36 @@ module Google
1428
1481
  end
1429
1482
  end
1430
1483
 
1484
+ class RollbackTargetConfig
1485
+ # @private
1486
+ class Representation < Google::Apis::Core::JsonRepresentation
1487
+ property :rollout, as: 'rollout', class: Google::Apis::ClouddeployV1::Rollout, decorator: Google::Apis::ClouddeployV1::Rollout::Representation
1488
+
1489
+ property :starting_phase_id, as: 'startingPhaseId'
1490
+ end
1491
+ end
1492
+
1493
+ class RollbackTargetRequest
1494
+ # @private
1495
+ class Representation < Google::Apis::Core::JsonRepresentation
1496
+ property :release_id, as: 'releaseId'
1497
+ property :rollback_config, as: 'rollbackConfig', class: Google::Apis::ClouddeployV1::RollbackTargetConfig, decorator: Google::Apis::ClouddeployV1::RollbackTargetConfig::Representation
1498
+
1499
+ property :rollout_id, as: 'rolloutId'
1500
+ property :rollout_to_roll_back, as: 'rolloutToRollBack'
1501
+ property :target_id, as: 'targetId'
1502
+ property :validate_only, as: 'validateOnly'
1503
+ end
1504
+ end
1505
+
1506
+ class RollbackTargetResponse
1507
+ # @private
1508
+ class Representation < Google::Apis::Core::JsonRepresentation
1509
+ property :rollback_config, as: 'rollbackConfig', class: Google::Apis::ClouddeployV1::RollbackTargetConfig, decorator: Google::Apis::ClouddeployV1::RollbackTargetConfig::Representation
1510
+
1511
+ end
1512
+ end
1513
+
1431
1514
  class Rollout
1432
1515
  # @private
1433
1516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1450,6 +1533,8 @@ module Google
1450
1533
  property :name, as: 'name'
1451
1534
  collection :phases, as: 'phases', class: Google::Apis::ClouddeployV1::Phase, decorator: Google::Apis::ClouddeployV1::Phase::Representation
1452
1535
 
1536
+ property :rollback_of_rollout, as: 'rollbackOfRollout'
1537
+ collection :rolled_back_by_rollouts, as: 'rolledBackByRollouts'
1453
1538
  property :state, as: 'state'
1454
1539
  property :target_id, as: 'targetId'
1455
1540
  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.30.0
4
+ version: 0.32.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-20 00:00:00.000000000 Z
11
+ date: 2023-09-24 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.32.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