Class: Google::Apis::ClouddeployV1::Automation
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Automation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
An Automation
resource in the Cloud Deploy API. An Automation
enables the
automation of manually driven actions for a Delivery Pipeline, which includes
Release promotion among Targets, Rollout repair and Rollout deployment
strategy advancement. The intention of Automation is to reduce manual
intervention in the continuous delivery process.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Optional.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#etag ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#rules ⇒ Array<Google::Apis::ClouddeployV1::AutomationRule>
Required.
-
#selector ⇒ Google::Apis::ClouddeployV1::AutomationResourceSelector
AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied.
-
#service_account ⇒ String
Required.
-
#suspended ⇒ Boolean
(also: #suspended?)
Optional.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Automation
constructor
A new instance of Automation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Automation
Returns a new instance of Automation.
461 462 463 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints:
- Annotations are key/value pairs. * Valid annotation keys have two segments:
an optional prefix and name, separated by a slash (
/
). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(.
), not longer than 253 characters in total, followed by a slash (/
). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/# syntax-and-character-set for more details. Corresponds to the JSON propertyannotations
389 390 391 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 389 def annotations @annotations end |
#create_time ⇒ String
Output only. Time at which the automation was created.
Corresponds to the JSON property createTime
394 395 396 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 394 def create_time @create_time end |
#description ⇒ String
Optional. Description of the Automation
. Max length is 255 characters.
Corresponds to the JSON property description
399 400 401 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 399 def description @description end |
#etag ⇒ String
Optional. The weak etag of the Automation
resource. This checksum is
computed by the server based on the value of other fields, and may be sent on
update and delete requests to ensure the client has an up-to-date value before
proceeding.
Corresponds to the JSON property etag
407 408 409 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 407 def etag @etag end |
#labels ⇒ Hash<String,String>
Optional. Labels are attributes that can be set and used by both the user and
by Cloud Deploy. Labels must meet the following constraints: * Keys and values
can contain only lowercase letters, numeric characters, underscores, and
dashes. * All characters must use UTF-8 encoding, and international characters
are allowed. * Keys must start with a lowercase letter or international
character. * Each resource is limited to a maximum of 64 labels. Both keys and
values are additionally constrained to be <= 63 characters.
Corresponds to the JSON property labels
418 419 420 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 418 def labels @labels end |
#name ⇒ String
Output only. Name of the Automation
. Format is projects/
project/locations/
location/deliveryPipelines/
delivery_pipeline/automations/
automation`.
Corresponds to the JSON property
name`
424 425 426 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 424 def name @name end |
#rules ⇒ Array<Google::Apis::ClouddeployV1::AutomationRule>
Required. List of Automation rules associated with the Automation resource.
Must have at least one rule and limited to 250 rules per Delivery Pipeline.
Note: the order of the rules here is not the same as the order of execution.
Corresponds to the JSON property rules
431 432 433 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 431 def rules @rules end |
#selector ⇒ Google::Apis::ClouddeployV1::AutomationResourceSelector
AutomationResourceSelector contains the information to select the resources to
which an Automation is going to be applied.
Corresponds to the JSON property selector
437 438 439 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 437 def selector @selector end |
#service_account ⇒ String
Required. Email address of the user-managed IAM service account that creates
Cloud Deploy release and rollout resources.
Corresponds to the JSON property serviceAccount
443 444 445 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 443 def service_account @service_account end |
#suspended ⇒ Boolean Also known as: suspended?
Optional. When Suspended, automation is deactivated from execution.
Corresponds to the JSON property suspended
448 449 450 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 448 def suspended @suspended end |
#uid ⇒ String
Output only. Unique identifier of the Automation
.
Corresponds to the JSON property uid
454 455 456 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 454 def uid @uid end |
#update_time ⇒ String
Output only. Time at which the automation was updated.
Corresponds to the JSON property updateTime
459 460 461 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 459 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 466 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @selector = args[:selector] if args.key?(:selector) @service_account = args[:service_account] if args.key?(:service_account) @suspended = args[:suspended] if args.key?(:suspended) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |