Class: Google::Apis::CloudcommerceprocurementV1::RejectEntitlementPlanChangeRequest

Inherits:
Object
  • Object
show all
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.RejectEntitlementPlanChange.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RejectEntitlementPlanChangeRequest

Returns a new instance of RejectEntitlementPlanChangeRequest.



484
485
486
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 484

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

Instance Attribute Details

#pending_plan_nameString

Name of the pending plan that is being rejected. Required. Corresponds to the JSON property pendingPlanName

Returns:

  • (String)


476
477
478
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 476

def pending_plan_name
  @pending_plan_name
end

#reasonString

Free form text string explaining the rejection reason. Max allowed length: 256 bytes. Longer strings will be truncated. Corresponds to the JSON property reason

Returns:

  • (String)


482
483
484
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 482

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



489
490
491
492
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 489

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