Class: Google::Apis::ClouddeployV1::ApproveRolloutRequest

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

Overview

The request object used by ApproveRollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApproveRolloutRequest

Returns a new instance of ApproveRolloutRequest.



235
236
237
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 235

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

Instance Attribute Details

#approvedBoolean Also known as: approved?

Required. True = approve; false = reject Corresponds to the JSON property approved

Returns:

  • (Boolean)


232
233
234
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 232

def approved
  @approved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



240
241
242
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 240

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