Class: Google::Apis::CloudbuildV1alpha1::BuildApproval
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha1::BuildApproval
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha1/classes.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb
Overview
BuildApproval describes a build's approval configuration, state, and result.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::CloudbuildV1alpha1::ApprovalConfig
ApprovalConfig describes configuration for manual approval of a build.
-
#result ⇒ Google::Apis::CloudbuildV1alpha1::ApprovalResult
ApprovalResult describes the decision and associated metadata of a manual approval of a build.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildApproval
constructor
A new instance of BuildApproval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BuildApproval
Returns a new instance of BuildApproval.
647 648 649 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 647 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::CloudbuildV1alpha1::ApprovalConfig
ApprovalConfig describes configuration for manual approval of a build.
Corresponds to the JSON property config
634 635 636 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 634 def config @config end |
#result ⇒ Google::Apis::CloudbuildV1alpha1::ApprovalResult
ApprovalResult describes the decision and associated metadata of a manual
approval of a build.
Corresponds to the JSON property result
640 641 642 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 640 def result @result end |
#state ⇒ String
Output only. The state of this build's approval.
Corresponds to the JSON property state
645 646 647 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 645 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
652 653 654 655 656 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 652 def update!(**args) @config = args[:config] if args.key?(:config) @result = args[:result] if args.key?(:result) @state = args[:state] if args.key?(:state) end |