Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1BuildApproval

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1BuildApproval

Returns a new instance of GoogleDevtoolsCloudbuildV1BuildApproval.



3421
3422
3423
# File 'lib/google/apis/run_v2/classes.rb', line 3421

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

Instance Attribute Details

#configGoogle::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalConfig

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



3408
3409
3410
# File 'lib/google/apis/run_v2/classes.rb', line 3408

def config
  @config
end

#resultGoogle::Apis::RunV2::GoogleDevtoolsCloudbuildV1ApprovalResult

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



3414
3415
3416
# File 'lib/google/apis/run_v2/classes.rb', line 3414

def result
  @result
end

#stateString

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

Returns:

  • (String)


3419
3420
3421
# File 'lib/google/apis/run_v2/classes.rb', line 3419

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3426
3427
3428
3429
3430
# File 'lib/google/apis/run_v2/classes.rb', line 3426

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