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.



640
641
642
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 640

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

Instance Attribute Details

#pending_plan_nameString

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

Returns:

  • (String)


632
633
634
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 632

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)


638
639
640
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 638

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



645
646
647
648
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 645

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