class Google::Apis::ResellerV1::ChangePlanRequest

JSON template for the ChangePlan rpc request.

Attributes

deal_code[RW]

External name of the deal code applicable for the subscription. This field is optional. If missing, the deal price plan won't be used. Corresponds to the JSON property `dealCode` @return [String]

kind[RW]

Identifies the resource as a subscription change plan request. Corresponds to the JSON property `kind` @return [String]

plan_name[RW]

Name of the plan to change to. Corresponds to the JSON property `planName` @return [String]

purchase_order_id[RW]

Purchase order id for your order tracking purposes. Corresponds to the JSON property `purchaseOrderId` @return [String]

seats[RW]

JSON template for subscription seats. Corresponds to the JSON property `seats` @return [Google::Apis::ResellerV1::Seats]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/reseller_v1/classes.rb, line 131
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/reseller_v1/classes.rb, line 136
def update!(**args)
  @deal_code = args[:deal_code] if args.key?(:deal_code)
  @kind = args[:kind] if args.key?(:kind)
  @plan_name = args[:plan_name] if args.key?(:plan_name)
  @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
  @seats = args[:seats] if args.key?(:seats)
end