Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1BuildApproval
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1BuildApproval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
BuildApproval describes a build's approval configuration, state, and result.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalConfig
ApprovalConfig describes configuration for manual approval of a build.
-
#result ⇒ Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalResult
ApprovalResult describes the decision and associated metadata of a manual approval of a build.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1BuildApproval
constructor
A new instance of GoogleDevtoolsCloudbuildV1BuildApproval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1BuildApproval
Returns a new instance of GoogleDevtoolsCloudbuildV1BuildApproval.
3664 3665 3666 |
# File 'lib/google/apis/run_v2/classes.rb', line 3664 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalConfig
ApprovalConfig describes configuration for manual approval of a build.
Corresponds to the JSON property config
3651 3652 3653 |
# File 'lib/google/apis/run_v2/classes.rb', line 3651 def config @config end |
#result ⇒ Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalResult
ApprovalResult describes the decision and associated metadata of a manual
approval of a build.
Corresponds to the JSON property result
3657 3658 3659 |
# File 'lib/google/apis/run_v2/classes.rb', line 3657 def result @result end |
#state ⇒ String
Output only. The state of this build's approval.
Corresponds to the JSON property state
3662 3663 3664 |
# File 'lib/google/apis/run_v2/classes.rb', line 3662 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3669 3670 3671 3672 3673 |
# File 'lib/google/apis/run_v2/classes.rb', line 3669 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 |