Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalConfig

Inherits:
Object
  • Object
show all
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

ApprovalConfig describes configuration for manual approval of a build.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1ApprovalConfig

Returns a new instance of GoogleDevtoolsCloudbuildV1ApprovalConfig.



3245
3246
3247
# File 'lib/google/apis/run_v2/classes.rb', line 3245

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)


3242
3243
3244
# File 'lib/google/apis/run_v2/classes.rb', line 3242

def approval_required
  @approval_required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3250
3251
3252
# File 'lib/google/apis/run_v2/classes.rb', line 3250

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