Class: Google::Apis::CloudcommerceprocurementV1::RejectAccountRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudcommerceprocurementV1::RejectAccountRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudcommerceprocurement_v1/classes.rb,
lib/google/apis/cloudcommerceprocurement_v1/representations.rb,
lib/google/apis/cloudcommerceprocurement_v1/representations.rb
Overview
Request message for PartnerProcurementService.RejectAccount.
Instance Attribute Summary collapse
-
#approval_name ⇒ String
The name of the approval being rejected.
-
#reason ⇒ String
Free form text string explaining the rejection reason.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RejectAccountRequest
constructor
A new instance of RejectAccountRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RejectAccountRequest
Returns a new instance of RejectAccountRequest.
458 459 460 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#approval_name ⇒ String
The name of the approval being rejected. If absent and there is only one
approval possible, that approval will be rejected. If absent and there are
many approvals possible, the request will fail with a 400 Bad Request.
Optional.
Corresponds to the JSON property approvalName
450 451 452 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 450 def approval_name @approval_name end |
#reason ⇒ String
Free form text string explaining the rejection reason. Max allowed length: 256
bytes. Longer strings will be truncated.
Corresponds to the JSON property reason
456 457 458 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 456 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
463 464 465 466 |
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 463 def update!(**args) @approval_name = args[:approval_name] if args.key?(:approval_name) @reason = args[:reason] if args.key?(:reason) end |