google-apis-clouddeploy_v1 0.53.0 → 0.54.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: c6c719bdc32b5b564be0ee5d7c830e4c83abeaa5ba71b2191225a589310e1a03
4
- data.tar.gz: 7c250c40792eedcba957c2ead0915343341c34cf66e617569e350fce41230274
3
+ metadata.gz: 7a4a13e6ae1b9a621af21ef9727386378b5d404c5a3aaab097a0ff10e44053ce
4
+ data.tar.gz: 59698bf2dce1f7a812f8a37ee95e985e41faa7a09bb152ea4c111d773fa55387
5
5
  SHA512:
6
- metadata.gz: a1609b8ed7c71fbcf262615b6209c0fc13447df366da0c92f65fac2d2e332f42aba1e7240533d14bc7e47ba64861954bf199a4440b585955e365e635b2aa18ff
7
- data.tar.gz: fb64f5f27d1f88d8a2de8968ad33aa77108199890ef3a508201717a8ddbd882085ecdf4ba4cc648f90fede0b8093a6ac9e5705fb2e9a5f54e3d0346339811885
6
+ metadata.gz: 23897801a7126964a1fb3e52521aa1b637cff4e1096f689520e7a37ffd3880e8f7bd6680b2e5c9f1948a6e1b7f7e9a26d75d1d84f1e299810d300c48a278fcba
7
+ data.tar.gz: b55d09869a8aae94501d6dc40bd10d0aa70bb6f3510ebb9d8616486e76b9ac074922a3a76a7ae92f82616653e62125018be87b9028c55963fcd1d0e71bd96e52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-clouddeploy_v1
2
2
 
3
+ ### v0.54.0 (2024-11-10)
4
+
5
+ * Regenerated from discovery document revision 20241029
6
+
3
7
  ### v0.53.0 (2024-10-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20241010
@@ -594,6 +594,12 @@ module Google
594
594
  # @return [Google::Apis::ClouddeployV1::RepairRolloutRule]
595
595
  attr_accessor :repair_rollout_rule
596
596
 
597
+ # The `TimedPromoteReleaseRule` will automatically promote a release from the
598
+ # current target(s) to the specified target(s) on a configured schedule.
599
+ # Corresponds to the JSON property `timedPromoteReleaseRule`
600
+ # @return [Google::Apis::ClouddeployV1::TimedPromoteReleaseRule]
601
+ attr_accessor :timed_promote_release_rule
602
+
597
603
  def initialize(**args)
598
604
  update!(**args)
599
605
  end
@@ -603,6 +609,7 @@ module Google
603
609
  @advance_rollout_rule = args[:advance_rollout_rule] if args.key?(:advance_rollout_rule)
604
610
  @promote_release_rule = args[:promote_release_rule] if args.key?(:promote_release_rule)
605
611
  @repair_rollout_rule = args[:repair_rollout_rule] if args.key?(:repair_rollout_rule)
612
+ @timed_promote_release_rule = args[:timed_promote_release_rule] if args.key?(:timed_promote_release_rule)
606
613
  end
607
614
  end
608
615
 
@@ -616,6 +623,12 @@ module Google
616
623
  # @return [Google::Apis::ClouddeployV1::TargetsPresentCondition]
617
624
  attr_accessor :targets_present_condition
618
625
 
626
+ # `TimedPromoteReleaseCondition` contains conditions specific to an Automation
627
+ # with a Timed Promote Release rule defined.
628
+ # Corresponds to the JSON property `timedPromoteReleaseCondition`
629
+ # @return [Google::Apis::ClouddeployV1::TimedPromoteReleaseCondition]
630
+ attr_accessor :timed_promote_release_condition
631
+
619
632
  def initialize(**args)
620
633
  update!(**args)
621
634
  end
@@ -623,6 +636,7 @@ module Google
623
636
  # Update properties of this object
624
637
  def update!(**args)
625
638
  @targets_present_condition = args[:targets_present_condition] if args.key?(:targets_present_condition)
639
+ @timed_promote_release_condition = args[:timed_promote_release_condition] if args.key?(:timed_promote_release_condition)
626
640
  end
627
641
  end
628
642
 
@@ -715,13 +729,17 @@ module Google
715
729
  # @return [String]
716
730
  attr_accessor :state_description
717
731
 
718
- # Output only. The ID of the target that represents the promotion stage that
719
- # initiates the `AutomationRun`. The value of this field is the last segment of
720
- # a target name.
732
+ # Output only. The ID of the source target that initiates the `AutomationRun`.
733
+ # The value of this field is the last segment of a target name.
721
734
  # Corresponds to the JSON property `targetId`
722
735
  # @return [String]
723
736
  attr_accessor :target_id
724
737
 
738
+ # Contains the information of an automated timed promote-release operation.
739
+ # Corresponds to the JSON property `timedPromoteReleaseOperation`
740
+ # @return [Google::Apis::ClouddeployV1::TimedPromoteReleaseOperation]
741
+ attr_accessor :timed_promote_release_operation
742
+
725
743
  # Output only. Time at which the automationRun was updated.
726
744
  # Corresponds to the JSON property `updateTime`
727
745
  # @return [String]
@@ -754,6 +772,7 @@ module Google
754
772
  @state = args[:state] if args.key?(:state)
755
773
  @state_description = args[:state_description] if args.key?(:state_description)
756
774
  @target_id = args[:target_id] if args.key?(:target_id)
775
+ @timed_promote_release_operation = args[:timed_promote_release_operation] if args.key?(:timed_promote_release_operation)
757
776
  @update_time = args[:update_time] if args.key?(:update_time)
758
777
  @wait_until_time = args[:wait_until_time] if args.key?(:wait_until_time)
759
778
  end
@@ -6017,6 +6036,31 @@ module Google
6017
6036
  end
6018
6037
  end
6019
6038
 
6039
+ # The targets involved in a single timed promotion.
6040
+ class Targets
6041
+ include Google::Apis::Core::Hashable
6042
+
6043
+ # Optional. The destination target ID.
6044
+ # Corresponds to the JSON property `destinationTargetId`
6045
+ # @return [String]
6046
+ attr_accessor :destination_target_id
6047
+
6048
+ # Optional. The source target ID.
6049
+ # Corresponds to the JSON property `sourceTargetId`
6050
+ # @return [String]
6051
+ attr_accessor :source_target_id
6052
+
6053
+ def initialize(**args)
6054
+ update!(**args)
6055
+ end
6056
+
6057
+ # Update properties of this object
6058
+ def update!(**args)
6059
+ @destination_target_id = args[:destination_target_id] if args.key?(:destination_target_id)
6060
+ @source_target_id = args[:source_target_id] if args.key?(:source_target_id)
6061
+ end
6062
+ end
6063
+
6020
6064
  # `TargetsPresentCondition` contains information on any Targets referenced in
6021
6065
  # the Delivery Pipeline that do not actually exist.
6022
6066
  class TargetsPresentCondition
@@ -6232,6 +6276,121 @@ module Google
6232
6276
  end
6233
6277
  end
6234
6278
 
6279
+ # `TimedPromoteReleaseCondition` contains conditions specific to an Automation
6280
+ # with a Timed Promote Release rule defined.
6281
+ class TimedPromoteReleaseCondition
6282
+ include Google::Apis::Core::Hashable
6283
+
6284
+ # Output only. When the next scheduled promotion(s) will occur.
6285
+ # Corresponds to the JSON property `nextPromotionTime`
6286
+ # @return [String]
6287
+ attr_accessor :next_promotion_time
6288
+
6289
+ # Output only. A list of targets involved in the upcoming timed promotion(s).
6290
+ # Corresponds to the JSON property `targetsList`
6291
+ # @return [Array<Google::Apis::ClouddeployV1::Targets>]
6292
+ attr_accessor :targets_list
6293
+
6294
+ def initialize(**args)
6295
+ update!(**args)
6296
+ end
6297
+
6298
+ # Update properties of this object
6299
+ def update!(**args)
6300
+ @next_promotion_time = args[:next_promotion_time] if args.key?(:next_promotion_time)
6301
+ @targets_list = args[:targets_list] if args.key?(:targets_list)
6302
+ end
6303
+ end
6304
+
6305
+ # Contains the information of an automated timed promote-release operation.
6306
+ class TimedPromoteReleaseOperation
6307
+ include Google::Apis::Core::Hashable
6308
+
6309
+ # Output only. The starting phase of the rollout created by this operation.
6310
+ # Corresponds to the JSON property `phase`
6311
+ # @return [String]
6312
+ attr_accessor :phase
6313
+
6314
+ # Output only. The name of the release to be promoted.
6315
+ # Corresponds to the JSON property `release`
6316
+ # @return [String]
6317
+ attr_accessor :release
6318
+
6319
+ # Output only. The ID of the target that represents the promotion stage to which
6320
+ # the release will be promoted. The value of this field is the last segment of a
6321
+ # target name.
6322
+ # Corresponds to the JSON property `targetId`
6323
+ # @return [String]
6324
+ attr_accessor :target_id
6325
+
6326
+ def initialize(**args)
6327
+ update!(**args)
6328
+ end
6329
+
6330
+ # Update properties of this object
6331
+ def update!(**args)
6332
+ @phase = args[:phase] if args.key?(:phase)
6333
+ @release = args[:release] if args.key?(:release)
6334
+ @target_id = args[:target_id] if args.key?(:target_id)
6335
+ end
6336
+ end
6337
+
6338
+ # The `TimedPromoteReleaseRule` will automatically promote a release from the
6339
+ # current target(s) to the specified target(s) on a configured schedule.
6340
+ class TimedPromoteReleaseRule
6341
+ include Google::Apis::Core::Hashable
6342
+
6343
+ # `AutomationRuleCondition` contains conditions relevant to an `Automation` rule.
6344
+ # Corresponds to the JSON property `condition`
6345
+ # @return [Google::Apis::ClouddeployV1::AutomationRuleCondition]
6346
+ attr_accessor :condition
6347
+
6348
+ # Optional. The starting phase of the rollout created by this rule. Default to
6349
+ # the first phase.
6350
+ # Corresponds to the JSON property `destinationPhase`
6351
+ # @return [String]
6352
+ attr_accessor :destination_phase
6353
+
6354
+ # Optional. The ID of the stage in the pipeline to which this `Release` is
6355
+ # deploying. If unspecified, default it to the next stage in the promotion flow.
6356
+ # The value of this field could be one of the following: * The last segment of a
6357
+ # target name * "@next", the next target in the promotion sequence
6358
+ # Corresponds to the JSON property `destinationTargetId`
6359
+ # @return [String]
6360
+ attr_accessor :destination_target_id
6361
+
6362
+ # Required. ID of the rule. This ID must be unique in the `Automation` resource
6363
+ # to which this rule belongs. The format is `[a-z]([a-z0-9-]`0,61`[a-z0-9])?`.
6364
+ # Corresponds to the JSON property `id`
6365
+ # @return [String]
6366
+ attr_accessor :id
6367
+
6368
+ # Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
6369
+ # Corresponds to the JSON property `schedule`
6370
+ # @return [String]
6371
+ attr_accessor :schedule
6372
+
6373
+ # Required. The time zone in IANA format [IANA Time Zone Database](https://www.
6374
+ # iana.org/time-zones) (e.g. America/New_York).
6375
+ # Corresponds to the JSON property `timeZone`
6376
+ # @return [String]
6377
+ attr_accessor :time_zone
6378
+
6379
+ def initialize(**args)
6380
+ update!(**args)
6381
+ end
6382
+
6383
+ # Update properties of this object
6384
+ def update!(**args)
6385
+ @condition = args[:condition] if args.key?(:condition)
6386
+ @destination_phase = args[:destination_phase] if args.key?(:destination_phase)
6387
+ @destination_target_id = args[:destination_target_id] if args.key?(:destination_target_id)
6388
+ @id = args[:id] if args.key?(:id)
6389
+ @schedule = args[:schedule] if args.key?(:schedule)
6390
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
6391
+ end
6392
+ end
6393
+
6235
6394
  # A verify Job.
6236
6395
  class VerifyJob
6237
6396
  include Google::Apis::Core::Hashable
@@ -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.53.0"
19
+ GEM_VERSION = "0.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241010"
25
+ REVISION = "20241029"
26
26
  end
27
27
  end
28
28
  end
@@ -928,6 +928,12 @@ module Google
928
928
  include Google::Apis::Core::JsonObjectSupport
929
929
  end
930
930
 
931
+ class Targets
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
931
937
  class TargetsPresentCondition
932
938
  class Representation < Google::Apis::Core::JsonRepresentation; end
933
939
 
@@ -976,6 +982,24 @@ module Google
976
982
  include Google::Apis::Core::JsonObjectSupport
977
983
  end
978
984
 
985
+ class TimedPromoteReleaseCondition
986
+ class Representation < Google::Apis::Core::JsonRepresentation; end
987
+
988
+ include Google::Apis::Core::JsonObjectSupport
989
+ end
990
+
991
+ class TimedPromoteReleaseOperation
992
+ class Representation < Google::Apis::Core::JsonRepresentation; end
993
+
994
+ include Google::Apis::Core::JsonObjectSupport
995
+ end
996
+
997
+ class TimedPromoteReleaseRule
998
+ class Representation < Google::Apis::Core::JsonRepresentation; end
999
+
1000
+ include Google::Apis::Core::JsonObjectSupport
1001
+ end
1002
+
979
1003
  class VerifyJob
980
1004
  class Representation < Google::Apis::Core::JsonRepresentation; end
981
1005
 
@@ -1159,6 +1183,8 @@ module Google
1159
1183
 
1160
1184
  property :repair_rollout_rule, as: 'repairRolloutRule', class: Google::Apis::ClouddeployV1::RepairRolloutRule, decorator: Google::Apis::ClouddeployV1::RepairRolloutRule::Representation
1161
1185
 
1186
+ property :timed_promote_release_rule, as: 'timedPromoteReleaseRule', class: Google::Apis::ClouddeployV1::TimedPromoteReleaseRule, decorator: Google::Apis::ClouddeployV1::TimedPromoteReleaseRule::Representation
1187
+
1162
1188
  end
1163
1189
  end
1164
1190
 
@@ -1167,6 +1193,8 @@ module Google
1167
1193
  class Representation < Google::Apis::Core::JsonRepresentation
1168
1194
  property :targets_present_condition, as: 'targetsPresentCondition', class: Google::Apis::ClouddeployV1::TargetsPresentCondition, decorator: Google::Apis::ClouddeployV1::TargetsPresentCondition::Representation
1169
1195
 
1196
+ property :timed_promote_release_condition, as: 'timedPromoteReleaseCondition', class: Google::Apis::ClouddeployV1::TimedPromoteReleaseCondition, decorator: Google::Apis::ClouddeployV1::TimedPromoteReleaseCondition::Representation
1197
+
1170
1198
  end
1171
1199
  end
1172
1200
 
@@ -1193,6 +1221,8 @@ module Google
1193
1221
  property :state, as: 'state'
1194
1222
  property :state_description, as: 'stateDescription'
1195
1223
  property :target_id, as: 'targetId'
1224
+ property :timed_promote_release_operation, as: 'timedPromoteReleaseOperation', class: Google::Apis::ClouddeployV1::TimedPromoteReleaseOperation, decorator: Google::Apis::ClouddeployV1::TimedPromoteReleaseOperation::Representation
1225
+
1196
1226
  property :update_time, as: 'updateTime'
1197
1227
  property :wait_until_time, as: 'waitUntilTime'
1198
1228
  end
@@ -2593,6 +2623,14 @@ module Google
2593
2623
  end
2594
2624
  end
2595
2625
 
2626
+ class Targets
2627
+ # @private
2628
+ class Representation < Google::Apis::Core::JsonRepresentation
2629
+ property :destination_target_id, as: 'destinationTargetId'
2630
+ property :source_target_id, as: 'sourceTargetId'
2631
+ end
2632
+ end
2633
+
2596
2634
  class TargetsPresentCondition
2597
2635
  # @private
2598
2636
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2658,6 +2696,37 @@ module Google
2658
2696
  end
2659
2697
  end
2660
2698
 
2699
+ class TimedPromoteReleaseCondition
2700
+ # @private
2701
+ class Representation < Google::Apis::Core::JsonRepresentation
2702
+ property :next_promotion_time, as: 'nextPromotionTime'
2703
+ collection :targets_list, as: 'targetsList', class: Google::Apis::ClouddeployV1::Targets, decorator: Google::Apis::ClouddeployV1::Targets::Representation
2704
+
2705
+ end
2706
+ end
2707
+
2708
+ class TimedPromoteReleaseOperation
2709
+ # @private
2710
+ class Representation < Google::Apis::Core::JsonRepresentation
2711
+ property :phase, as: 'phase'
2712
+ property :release, as: 'release'
2713
+ property :target_id, as: 'targetId'
2714
+ end
2715
+ end
2716
+
2717
+ class TimedPromoteReleaseRule
2718
+ # @private
2719
+ class Representation < Google::Apis::Core::JsonRepresentation
2720
+ property :condition, as: 'condition', class: Google::Apis::ClouddeployV1::AutomationRuleCondition, decorator: Google::Apis::ClouddeployV1::AutomationRuleCondition::Representation
2721
+
2722
+ property :destination_phase, as: 'destinationPhase'
2723
+ property :destination_target_id, as: 'destinationTargetId'
2724
+ property :id, as: 'id'
2725
+ property :schedule, as: 'schedule'
2726
+ property :time_zone, as: 'timeZone'
2727
+ end
2728
+ end
2729
+
2661
2730
  class VerifyJob
2662
2731
  # @private
2663
2732
  class Representation < Google::Apis::Core::JsonRepresentation
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.53.0
4
+ version: 0.54.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: 2024-10-27 00:00:00.000000000 Z
11
+ date: 2024-11-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.53.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-clouddeploy_v1/v0.54.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.5.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Deploy API V1