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.



248
249
250
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 248

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)


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

def approved
  @approved
end

#override_deploy_policyArray<String>

Optional. Deploy policies to override. Format is projects/project/locations/ location/deployPolicies/deployPolicy`. Corresponds to the JSON propertyoverrideDeployPolicy`

Returns:

  • (Array<String>)


246
247
248
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 246

def override_deploy_policy
  @override_deploy_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



253
254
255
256
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 253

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