Class: Google::Apis::ResellerV1::Seats
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Seats
- 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 subscription seats.
Instance Attribute Summary collapse
-
#kind ⇒ String
Identifies the resource as a subscription change plan request.
-
#licensed_number_of_seats ⇒ Fixnum
Read-only field containing the current number of licensed seats for FLEXIBLE Google-Apps subscriptions and secondary subscriptions such as Google-Vault and Drive-storage.
-
#maximum_number_of_seats ⇒ Fixnum
Maximum number of seats that can be purchased.
-
#number_of_seats ⇒ Fixnum
Number of seats to purchase.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Seats
constructor
A new instance of Seats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Seats
Returns a new instance of Seats.
259 260 261 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies the resource as a subscription change plan request.
Corresponds to the JSON property kind
239 240 241 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 239 def kind @kind end |
#licensed_number_of_seats ⇒ Fixnum
Read-only field containing the current number of licensed seats for FLEXIBLE
Google-Apps subscriptions and secondary subscriptions such as Google-Vault and
Drive-storage.
Corresponds to the JSON property licensedNumberOfSeats
246 247 248 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 246 def licensed_number_of_seats @licensed_number_of_seats end |
#maximum_number_of_seats ⇒ Fixnum
Maximum number of seats that can be purchased. This needs to be provided only
for a non-commitment plan. For a commitment plan it is decided by the contract.
Corresponds to the JSON property maximumNumberOfSeats
252 253 254 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 252 def maximum_number_of_seats @maximum_number_of_seats end |
#number_of_seats ⇒ Fixnum
Number of seats to purchase. This is applicable only for a commitment plan.
Corresponds to the JSON property numberOfSeats
257 258 259 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 257 def number_of_seats @number_of_seats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
264 265 266 267 268 269 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 264 def update!(**args) @kind = args[:kind] if args.key?(:kind) @licensed_number_of_seats = args[:licensed_number_of_seats] if args.key?(:licensed_number_of_seats) @maximum_number_of_seats = args[:maximum_number_of_seats] if args.key?(:maximum_number_of_seats) @number_of_seats = args[:number_of_seats] if args.key?(:number_of_seats) end |