Class: Google::Apis::ResellerV1::ChangePlanRequest
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::ChangePlanRequest
- 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
-
#deal_code ⇒ String
External name of the deal code applicable for the subscription.
-
#kind ⇒ String
Identifies the resource as a subscription change plan request.
-
#plan_name ⇒ String
Name of the plan to change to.
-
#purchase_order_id ⇒ String
Purchase order id for your order tracking purposes.
-
#seats ⇒ Google::Apis::ResellerV1::Seats
JSON template for subscription seats.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChangePlanRequest
constructor
A new instance of ChangePlanRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_code ⇒ String
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
109 110 111 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 109 def deal_code @deal_code end |
#kind ⇒ String
Identifies the resource as a subscription change plan request.
Corresponds to the JSON property kind
114 115 116 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 114 def kind @kind end |
#plan_name ⇒ String
Name of the plan to change to.
Corresponds to the JSON property planName
119 120 121 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 119 def plan_name @plan_name end |
#purchase_order_id ⇒ String
Purchase order id for your order tracking purposes.
Corresponds to the JSON property purchaseOrderId
124 125 126 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 124 def purchase_order_id @purchase_order_id end |
#seats ⇒ Google::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 |