Class: Google::Apis::ResellerV1::ChangePlanRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb

Overview

JSON template for the ChangePlan rpc request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChangePlanRequest

Returns a new instance of ChangePlanRequest.



131
132
133
# File 'generated/google/apis/reseller_v1/classes.rb', line 131

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

Instance Attribute Details

#deal_codeString

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

Returns:

  • (String)


109
110
111
# File 'generated/google/apis/reseller_v1/classes.rb', line 109

def deal_code
  @deal_code
end

#kindString

Identifies the resource as a subscription change plan request. Corresponds to the JSON property kind

Returns:

  • (String)


114
115
116
# File 'generated/google/apis/reseller_v1/classes.rb', line 114

def kind
  @kind
end

#plan_nameString

Name of the plan to change to. Corresponds to the JSON property planName

Returns:

  • (String)


119
120
121
# File 'generated/google/apis/reseller_v1/classes.rb', line 119

def plan_name
  @plan_name
end

#purchase_order_idString

Purchase order id for your order tracking purposes. Corresponds to the JSON property purchaseOrderId

Returns:

  • (String)


124
125
126
# File 'generated/google/apis/reseller_v1/classes.rb', line 124

def purchase_order_id
  @purchase_order_id
end

#seatsGoogle::Apis::ResellerV1::Seats

JSON template for subscription seats. Corresponds to the JSON property seats



129
130
131
# File 'generated/google/apis/reseller_v1/classes.rb', line 129

def seats
  @seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
140
141
142
# 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