Class: Google::Apis::ClouddeployV1::AutomationRun

Inherits:
Object
  • Object
show all
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 AutomationRun resource in the Cloud Deploy API. An AutomationRun represents an execution instance of an automation rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutomationRun

Returns a new instance of AutomationRun.



695
696
697
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 695

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advance_rollout_operationGoogle::Apis::ClouddeployV1::AdvanceRolloutOperation

Contains the information of an automated advance-rollout operation. Corresponds to the JSON property advanceRolloutOperation



603
604
605
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 603

def advance_rollout_operation
  @advance_rollout_operation
end

#automation_idString

Output only. The ID of the automation that initiated the operation. Corresponds to the JSON property automationId

Returns:

  • (String)


608
609
610
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 608

def automation_id
  @automation_id
end

#automation_snapshotGoogle::Apis::ClouddeployV1::Automation

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. Corresponds to the JSON property automationSnapshot



617
618
619
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 617

def automation_snapshot
  @automation_snapshot
end

#create_timeString

Output only. Time at which the AutomationRun was created. Corresponds to the JSON property createTime

Returns:

  • (String)


622
623
624
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 622

def create_time
  @create_time
end

#etagString

Output only. The weak etag of the AutomationRun 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

Returns:

  • (String)


630
631
632
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 630

def etag
  @etag
end

#expire_timeString

Output only. Time the AutomationRun expires. An AutomationRun expires after 14 days from its creation date. Corresponds to the JSON property expireTime

Returns:

  • (String)


636
637
638
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 636

def expire_time
  @expire_time
end

#nameString

Output only. Name of the AutomationRun. Format is projects/project/ locations/location/deliveryPipelines/delivery_pipeline/automationRuns/ automation_run`. Corresponds to the JSON propertyname`

Returns:

  • (String)


643
644
645
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 643

def name
  @name
end

#promote_release_operationGoogle::Apis::ClouddeployV1::PromoteReleaseOperation

Contains the information of an automated promote-release operation. Corresponds to the JSON property promoteReleaseOperation



648
649
650
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 648

def promote_release_operation
  @promote_release_operation
end

#repair_rollout_operationGoogle::Apis::ClouddeployV1::RepairRolloutOperation

Contains the information for an automated repair rollout operation. Corresponds to the JSON property repairRolloutOperation



653
654
655
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 653

def repair_rollout_operation
  @repair_rollout_operation
end

#rule_idString

Output only. The ID of the automation rule that initiated the operation. Corresponds to the JSON property ruleId

Returns:

  • (String)


658
659
660
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 658

def rule_id
  @rule_id
end

#service_accountString

Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


664
665
666
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 664

def 
  @service_account
end

#stateString

Output only. Current state of the AutomationRun. Corresponds to the JSON property state

Returns:

  • (String)


669
670
671
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 669

def state
  @state
end

#state_descriptionString

Output only. Explains the current state of the AutomationRun. Present only when an explanation is needed. Corresponds to the JSON property stateDescription

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 675

def state_description
  @state_description
end

#target_idString

Output only. The ID of the target that represents the promotion stage that initiates the AutomationRun. The value of this field is the last segment of a target name. Corresponds to the JSON property targetId

Returns:

  • (String)


682
683
684
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 682

def target_id
  @target_id
end

#update_timeString

Output only. Time at which the automationRun was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


687
688
689
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 687

def update_time
  @update_time
end

#wait_until_timeString

Output only. Earliest time the AutomationRun will attempt to resume. Wait- time is configured by wait in automation rule. Corresponds to the JSON property waitUntilTime

Returns:

  • (String)


693
694
695
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 693

def wait_until_time
  @wait_until_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 700

def update!(**args)
  @advance_rollout_operation = args[:advance_rollout_operation] if args.key?(:advance_rollout_operation)
  @automation_id = args[:automation_id] if args.key?(:automation_id)
  @automation_snapshot = args[:automation_snapshot] if args.key?(:automation_snapshot)
  @create_time = args[:create_time] if args.key?(:create_time)
  @etag = args[:etag] if args.key?(:etag)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @promote_release_operation = args[:promote_release_operation] if args.key?(:promote_release_operation)
  @repair_rollout_operation = args[:repair_rollout_operation] if args.key?(:repair_rollout_operation)
  @rule_id = args[:rule_id] if args.key?(:rule_id)
  @service_account = args[:service_account] if args.key?(:service_account)
  @state = args[:state] if args.key?(:state)
  @state_description = args[:state_description] if args.key?(:state_description)
  @target_id = args[:target_id] if args.key?(:target_id)
  @update_time = args[:update_time] if args.key?(:update_time)
  @wait_until_time = args[:wait_until_time] if args.key?(:wait_until_time)
end