Class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb

Overview

BuildApproval describes a build's approval configuration, state, and result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval

Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval.



1699
1700
1701
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1699

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

Instance Attribute Details

#configGoogle::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig

ApprovalConfig describes configuration for manual approval of a build. Corresponds to the JSON property config



1686
1687
1688
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1686

def config
  @config
end

#resultGoogle::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult

ApprovalResult describes the decision and associated metadata of a manual approval of a build. Corresponds to the JSON property result



1692
1693
1694
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1692

def result
  @result
end

#stateString

Output only. The state of this build's approval. Corresponds to the JSON property state

Returns:

  • (String)


1697
1698
1699
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1697

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1704
1705
1706
1707
1708
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1704

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