Class: Google::Apis::CloudbuildV1alpha2::BuildApproval

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1alpha2/classes.rb,
lib/google/apis/cloudbuild_v1alpha2/representations.rb,
lib/google/apis/cloudbuild_v1alpha2/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) ⇒ BuildApproval

Returns a new instance of BuildApproval.



465
466
467
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 465

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

Instance Attribute Details

#configGoogle::Apis::CloudbuildV1alpha2::ApprovalConfig

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



452
453
454
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 452

def config
  @config
end

#resultGoogle::Apis::CloudbuildV1alpha2::ApprovalResult

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



458
459
460
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 458

def result
  @result
end

#stateString

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

Returns:

  • (String)


463
464
465
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 463

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



470
471
472
473
474
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 470

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