google-apis-clouddeploy_v1 0.50.0 → 0.51.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cffa68ae38ae68a243e43012ab8a5c7f81a5d1367f42d5134f10139fe1c549e
|
4
|
+
data.tar.gz: c1d0fd99df3f329fb271e148f8f661c3a6e0551f5a712cb65c9ebcb3644b8e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82fa5b2fa0d932f72949ced1dca57fc4b3997e8bc17e2d30e9e3a2d5f84ba8f9896d1c3676a7b79234dfa5495817650c1a44b17602f9dd9a4ce8e321fa5e3ac
|
7
|
+
data.tar.gz: 99e730c4b46b847441b6b03eba5061e712a80ca9334b36d5b7dd298865384e8260603c1c809c69d331df797a141240b910ed7cf158336c3394716963774afca2
|
data/CHANGELOG.md
CHANGED
@@ -1903,7 +1903,7 @@ module Google
|
|
1903
1903
|
end
|
1904
1904
|
|
1905
1905
|
# A `DeployPolicy` resource in the Cloud Deploy API. A `DeployPolicy` inhibits
|
1906
|
-
# manual or automation
|
1906
|
+
# manual or automation-driven actions within a Delivery Pipeline or Target.
|
1907
1907
|
class DeployPolicy
|
1908
1908
|
include Google::Apis::Core::Hashable
|
1909
1909
|
|
@@ -2158,7 +2158,8 @@ module Google
|
|
2158
2158
|
# @return [Google::Apis::ClouddeployV1::DeliveryPipelineAttribute]
|
2159
2159
|
attr_accessor :delivery_pipeline
|
2160
2160
|
|
2161
|
-
# Contains criteria for selecting Targets.
|
2161
|
+
# Contains criteria for selecting Targets. This could be used to select targets
|
2162
|
+
# for a Deploy Policy or for an Automation.
|
2162
2163
|
# Corresponds to the JSON property `target`
|
2163
2164
|
# @return [Google::Apis::ClouddeployV1::TargetAttribute]
|
2164
2165
|
attr_accessor :target
|
@@ -4379,10 +4380,40 @@ module Google
|
|
4379
4380
|
end
|
4380
4381
|
end
|
4381
4382
|
|
4383
|
+
# Configuration of the repair phase.
|
4384
|
+
class RepairPhaseConfig
|
4385
|
+
include Google::Apis::Core::Hashable
|
4386
|
+
|
4387
|
+
# Retries the failed job.
|
4388
|
+
# Corresponds to the JSON property `retry`
|
4389
|
+
# @return [Google::Apis::ClouddeployV1::Retry]
|
4390
|
+
attr_accessor :retry
|
4391
|
+
|
4392
|
+
# Rolls back a `Rollout`.
|
4393
|
+
# Corresponds to the JSON property `rollback`
|
4394
|
+
# @return [Google::Apis::ClouddeployV1::Rollback]
|
4395
|
+
attr_accessor :rollback
|
4396
|
+
|
4397
|
+
def initialize(**args)
|
4398
|
+
update!(**args)
|
4399
|
+
end
|
4400
|
+
|
4401
|
+
# Update properties of this object
|
4402
|
+
def update!(**args)
|
4403
|
+
@retry = args[:retry] if args.key?(:retry)
|
4404
|
+
@rollback = args[:rollback] if args.key?(:rollback)
|
4405
|
+
end
|
4406
|
+
end
|
4407
|
+
|
4382
4408
|
# Contains the information for an automated `repair rollout` operation.
|
4383
4409
|
class RepairRolloutOperation
|
4384
4410
|
include Google::Apis::Core::Hashable
|
4385
4411
|
|
4412
|
+
# Output only. The index of the current repair action in the repair sequence.
|
4413
|
+
# Corresponds to the JSON property `currentRepairPhaseIndex`
|
4414
|
+
# @return [Fixnum]
|
4415
|
+
attr_accessor :current_repair_phase_index
|
4416
|
+
|
4386
4417
|
# Output only. The job ID for the Job to repair.
|
4387
4418
|
# Corresponds to the JSON property `jobId`
|
4388
4419
|
# @return [String]
|
@@ -4410,6 +4441,7 @@ module Google
|
|
4410
4441
|
|
4411
4442
|
# Update properties of this object
|
4412
4443
|
def update!(**args)
|
4444
|
+
@current_repair_phase_index = args[:current_repair_phase_index] if args.key?(:current_repair_phase_index)
|
4413
4445
|
@job_id = args[:job_id] if args.key?(:job_id)
|
4414
4446
|
@phase_id = args[:phase_id] if args.key?(:phase_id)
|
4415
4447
|
@repair_phases = args[:repair_phases] if args.key?(:repair_phases)
|
@@ -4443,6 +4475,21 @@ module Google
|
|
4443
4475
|
# @return [Array<String>]
|
4444
4476
|
attr_accessor :jobs
|
4445
4477
|
|
4478
|
+
# Optional. Phases within which jobs are subject to automatic repair actions on
|
4479
|
+
# failure. Proceeds only after phase name matched any one in the list, or for
|
4480
|
+
# all phases if unspecified. This value must consist of lower-case letters,
|
4481
|
+
# numbers, and hyphens, start with a letter and end with a letter or a number,
|
4482
|
+
# and have a max length of 63 characters. In other words, it must match the
|
4483
|
+
# following regex: `^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$`.
|
4484
|
+
# Corresponds to the JSON property `phases`
|
4485
|
+
# @return [Array<String>]
|
4486
|
+
attr_accessor :phases
|
4487
|
+
|
4488
|
+
# Required. Defines the types of automatic repair phases for failed jobs.
|
4489
|
+
# Corresponds to the JSON property `repairPhases`
|
4490
|
+
# @return [Array<Google::Apis::ClouddeployV1::RepairPhaseConfig>]
|
4491
|
+
attr_accessor :repair_phases
|
4492
|
+
|
4446
4493
|
def initialize(**args)
|
4447
4494
|
update!(**args)
|
4448
4495
|
end
|
@@ -4452,6 +4499,42 @@ module Google
|
|
4452
4499
|
@condition = args[:condition] if args.key?(:condition)
|
4453
4500
|
@id = args[:id] if args.key?(:id)
|
4454
4501
|
@jobs = args[:jobs] if args.key?(:jobs)
|
4502
|
+
@phases = args[:phases] if args.key?(:phases)
|
4503
|
+
@repair_phases = args[:repair_phases] if args.key?(:repair_phases)
|
4504
|
+
end
|
4505
|
+
end
|
4506
|
+
|
4507
|
+
# Retries the failed job.
|
4508
|
+
class Retry
|
4509
|
+
include Google::Apis::Core::Hashable
|
4510
|
+
|
4511
|
+
# Required. Total number of retries. Retry is skipped if set to 0; The minimum
|
4512
|
+
# value is 1, and the maximum value is 10.
|
4513
|
+
# Corresponds to the JSON property `attempts`
|
4514
|
+
# @return [Fixnum]
|
4515
|
+
attr_accessor :attempts
|
4516
|
+
|
4517
|
+
# Optional. The pattern of how wait time will be increased. Default is linear.
|
4518
|
+
# Backoff mode will be ignored if `wait` is 0.
|
4519
|
+
# Corresponds to the JSON property `backoffMode`
|
4520
|
+
# @return [String]
|
4521
|
+
attr_accessor :backoff_mode
|
4522
|
+
|
4523
|
+
# Optional. How long to wait for the first retry. Default is 0, and the maximum
|
4524
|
+
# value is 14d.
|
4525
|
+
# Corresponds to the JSON property `wait`
|
4526
|
+
# @return [String]
|
4527
|
+
attr_accessor :wait
|
4528
|
+
|
4529
|
+
def initialize(**args)
|
4530
|
+
update!(**args)
|
4531
|
+
end
|
4532
|
+
|
4533
|
+
# Update properties of this object
|
4534
|
+
def update!(**args)
|
4535
|
+
@attempts = args[:attempts] if args.key?(:attempts)
|
4536
|
+
@backoff_mode = args[:backoff_mode] if args.key?(:backoff_mode)
|
4537
|
+
@wait = args[:wait] if args.key?(:wait)
|
4455
4538
|
end
|
4456
4539
|
end
|
4457
4540
|
|
@@ -4570,6 +4653,34 @@ module Google
|
|
4570
4653
|
end
|
4571
4654
|
end
|
4572
4655
|
|
4656
|
+
# Rolls back a `Rollout`.
|
4657
|
+
class Rollback
|
4658
|
+
include Google::Apis::Core::Hashable
|
4659
|
+
|
4660
|
+
# Optional. The starting phase ID for the `Rollout`. If unspecified, the `
|
4661
|
+
# Rollout` will start in the stable phase.
|
4662
|
+
# Corresponds to the JSON property `destinationPhase`
|
4663
|
+
# @return [String]
|
4664
|
+
attr_accessor :destination_phase
|
4665
|
+
|
4666
|
+
# Optional. If pending rollout exists on the target, the rollback operation will
|
4667
|
+
# be aborted.
|
4668
|
+
# Corresponds to the JSON property `disableRollbackIfRolloutPending`
|
4669
|
+
# @return [Boolean]
|
4670
|
+
attr_accessor :disable_rollback_if_rollout_pending
|
4671
|
+
alias_method :disable_rollback_if_rollout_pending?, :disable_rollback_if_rollout_pending
|
4672
|
+
|
4673
|
+
def initialize(**args)
|
4674
|
+
update!(**args)
|
4675
|
+
end
|
4676
|
+
|
4677
|
+
# Update properties of this object
|
4678
|
+
def update!(**args)
|
4679
|
+
@destination_phase = args[:destination_phase] if args.key?(:destination_phase)
|
4680
|
+
@disable_rollback_if_rollout_pending = args[:disable_rollback_if_rollout_pending] if args.key?(:disable_rollback_if_rollout_pending)
|
4681
|
+
end
|
4682
|
+
end
|
4683
|
+
|
4573
4684
|
# RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.
|
4574
4685
|
class RollbackAttempt
|
4575
4686
|
include Google::Apis::Core::Hashable
|
@@ -4579,6 +4690,12 @@ module Google
|
|
4579
4690
|
# @return [String]
|
4580
4691
|
attr_accessor :destination_phase
|
4581
4692
|
|
4693
|
+
# Output only. If active rollout exists on the target, abort this rollback.
|
4694
|
+
# Corresponds to the JSON property `disableRollbackIfRolloutPending`
|
4695
|
+
# @return [Boolean]
|
4696
|
+
attr_accessor :disable_rollback_if_rollout_pending
|
4697
|
+
alias_method :disable_rollback_if_rollout_pending?, :disable_rollback_if_rollout_pending
|
4698
|
+
|
4582
4699
|
# Output only. ID of the rollback `Rollout` to create.
|
4583
4700
|
# Corresponds to the JSON property `rolloutId`
|
4584
4701
|
# @return [String]
|
@@ -4601,6 +4718,7 @@ module Google
|
|
4601
4718
|
# Update properties of this object
|
4602
4719
|
def update!(**args)
|
4603
4720
|
@destination_phase = args[:destination_phase] if args.key?(:destination_phase)
|
4721
|
+
@disable_rollback_if_rollout_pending = args[:disable_rollback_if_rollout_pending] if args.key?(:disable_rollback_if_rollout_pending)
|
4604
4722
|
@rollout_id = args[:rollout_id] if args.key?(:rollout_id)
|
4605
4723
|
@state = args[:state] if args.key?(:state)
|
4606
4724
|
@state_desc = args[:state_desc] if args.key?(:state_desc)
|
@@ -4719,6 +4837,11 @@ module Google
|
|
4719
4837
|
class Rollout
|
4720
4838
|
include Google::Apis::Core::Hashable
|
4721
4839
|
|
4840
|
+
# Output only. The AutomationRun actively repairing the rollout.
|
4841
|
+
# Corresponds to the JSON property `activeRepairAutomationRun`
|
4842
|
+
# @return [String]
|
4843
|
+
attr_accessor :active_repair_automation_run
|
4844
|
+
|
4722
4845
|
# User annotations. These attributes can only be set and used by the user, and
|
4723
4846
|
# not by Cloud Deploy. See https://google.aip.dev/128#annotations for more
|
4724
4847
|
# details such as format and size limitations.
|
@@ -4853,6 +4976,7 @@ module Google
|
|
4853
4976
|
|
4854
4977
|
# Update properties of this object
|
4855
4978
|
def update!(**args)
|
4979
|
+
@active_repair_automation_run = args[:active_repair_automation_run] if args.key?(:active_repair_automation_run)
|
4856
4980
|
@annotations = args[:annotations] if args.key?(:annotations)
|
4857
4981
|
@approval_state = args[:approval_state] if args.key?(:approval_state)
|
4858
4982
|
@approve_time = args[:approve_time] if args.key?(:approve_time)
|
@@ -4963,7 +5087,9 @@ module Google
|
|
4963
5087
|
# @return [Array<String>]
|
4964
5088
|
attr_accessor :invokers
|
4965
5089
|
|
4966
|
-
# Time windows within which actions are restricted.
|
5090
|
+
# Time windows within which actions are restricted. See the [documentation](
|
5091
|
+
# https://cloud.google.com/deploy/docs/deploy-policy#dates_times) for more
|
5092
|
+
# information on how to configure dates/times.
|
4967
5093
|
# Corresponds to the JSON property `timeWindows`
|
4968
5094
|
# @return [Google::Apis::ClouddeployV1::TimeWindows]
|
4969
5095
|
attr_accessor :time_windows
|
@@ -5709,7 +5835,8 @@ module Google
|
|
5709
5835
|
end
|
5710
5836
|
end
|
5711
5837
|
|
5712
|
-
# Contains criteria for selecting Targets.
|
5838
|
+
# Contains criteria for selecting Targets. This could be used to select targets
|
5839
|
+
# for a Deploy Policy or for an Automation.
|
5713
5840
|
class TargetAttribute
|
5714
5841
|
include Google::Apis::Core::Hashable
|
5715
5842
|
|
@@ -5991,7 +6118,9 @@ module Google
|
|
5991
6118
|
end
|
5992
6119
|
end
|
5993
6120
|
|
5994
|
-
# Time windows within which actions are restricted.
|
6121
|
+
# Time windows within which actions are restricted. See the [documentation](
|
6122
|
+
# https://cloud.google.com/deploy/docs/deploy-policy#dates_times) for more
|
6123
|
+
# information on how to configure dates/times.
|
5995
6124
|
class TimeWindows
|
5996
6125
|
include Google::Apis::Core::Hashable
|
5997
6126
|
|
@@ -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.51.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 = "
|
25
|
+
REVISION = "20240929"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -700,6 +700,12 @@ module Google
|
|
700
700
|
include Google::Apis::Core::JsonObjectSupport
|
701
701
|
end
|
702
702
|
|
703
|
+
class RepairPhaseConfig
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
703
709
|
class RepairRolloutOperation
|
704
710
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
711
|
|
@@ -712,6 +718,12 @@ module Google
|
|
712
718
|
include Google::Apis::Core::JsonObjectSupport
|
713
719
|
end
|
714
720
|
|
721
|
+
class Retry
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
723
|
+
|
724
|
+
include Google::Apis::Core::JsonObjectSupport
|
725
|
+
end
|
726
|
+
|
715
727
|
class RetryAttempt
|
716
728
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
729
|
|
@@ -736,6 +748,12 @@ module Google
|
|
736
748
|
include Google::Apis::Core::JsonObjectSupport
|
737
749
|
end
|
738
750
|
|
751
|
+
class Rollback
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
739
757
|
class RollbackAttempt
|
740
758
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
759
|
|
@@ -2134,9 +2152,20 @@ module Google
|
|
2134
2152
|
end
|
2135
2153
|
end
|
2136
2154
|
|
2155
|
+
class RepairPhaseConfig
|
2156
|
+
# @private
|
2157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2158
|
+
property :retry, as: 'retry', class: Google::Apis::ClouddeployV1::Retry, decorator: Google::Apis::ClouddeployV1::Retry::Representation
|
2159
|
+
|
2160
|
+
property :rollback, as: 'rollback', class: Google::Apis::ClouddeployV1::Rollback, decorator: Google::Apis::ClouddeployV1::Rollback::Representation
|
2161
|
+
|
2162
|
+
end
|
2163
|
+
end
|
2164
|
+
|
2137
2165
|
class RepairRolloutOperation
|
2138
2166
|
# @private
|
2139
2167
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2168
|
+
property :current_repair_phase_index, :numeric_string => true, as: 'currentRepairPhaseIndex'
|
2140
2169
|
property :job_id, as: 'jobId'
|
2141
2170
|
property :phase_id, as: 'phaseId'
|
2142
2171
|
collection :repair_phases, as: 'repairPhases', class: Google::Apis::ClouddeployV1::RepairPhase, decorator: Google::Apis::ClouddeployV1::RepairPhase::Representation
|
@@ -2152,6 +2181,18 @@ module Google
|
|
2152
2181
|
|
2153
2182
|
property :id, as: 'id'
|
2154
2183
|
collection :jobs, as: 'jobs'
|
2184
|
+
collection :phases, as: 'phases'
|
2185
|
+
collection :repair_phases, as: 'repairPhases', class: Google::Apis::ClouddeployV1::RepairPhaseConfig, decorator: Google::Apis::ClouddeployV1::RepairPhaseConfig::Representation
|
2186
|
+
|
2187
|
+
end
|
2188
|
+
end
|
2189
|
+
|
2190
|
+
class Retry
|
2191
|
+
# @private
|
2192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2193
|
+
property :attempts, :numeric_string => true, as: 'attempts'
|
2194
|
+
property :backoff_mode, as: 'backoffMode'
|
2195
|
+
property :wait, as: 'wait'
|
2155
2196
|
end
|
2156
2197
|
end
|
2157
2198
|
|
@@ -2190,10 +2231,19 @@ module Google
|
|
2190
2231
|
end
|
2191
2232
|
end
|
2192
2233
|
|
2234
|
+
class Rollback
|
2235
|
+
# @private
|
2236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2237
|
+
property :destination_phase, as: 'destinationPhase'
|
2238
|
+
property :disable_rollback_if_rollout_pending, as: 'disableRollbackIfRolloutPending'
|
2239
|
+
end
|
2240
|
+
end
|
2241
|
+
|
2193
2242
|
class RollbackAttempt
|
2194
2243
|
# @private
|
2195
2244
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2196
2245
|
property :destination_phase, as: 'destinationPhase'
|
2246
|
+
property :disable_rollback_if_rollout_pending, as: 'disableRollbackIfRolloutPending'
|
2197
2247
|
property :rollout_id, as: 'rolloutId'
|
2198
2248
|
property :state, as: 'state'
|
2199
2249
|
property :state_desc, as: 'stateDesc'
|
@@ -2234,6 +2284,7 @@ module Google
|
|
2234
2284
|
class Rollout
|
2235
2285
|
# @private
|
2236
2286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2287
|
+
property :active_repair_automation_run, as: 'activeRepairAutomationRun'
|
2237
2288
|
hash :annotations, as: 'annotations'
|
2238
2289
|
property :approval_state, as: 'approvalState'
|
2239
2290
|
property :approve_time, as: 'approveTime'
|
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.51.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-
|
11
|
+
date: 2024-10-06 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.51.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: []
|