Class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig

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

Overview

ApprovalConfig describes configuration for manual approval of a build.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig

Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig.



1358
1359
1360
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1358

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

Instance Attribute Details

#approval_requiredBoolean Also known as: approval_required?

Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start. Corresponds to the JSON property approvalRequired

Returns:

  • (Boolean)


1355
1356
1357
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1355

def approval_required
  @approval_required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1363
1364
1365
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1363

def update!(**args)
  @approval_required = args[:approval_required] if args.key?(:approval_required)
end