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 seat setting.
-
#licensed_number_of_seats ⇒ Fixnum
Read-only field containing the current number of users that are assigned a license for the product defined in skuId.
-
#maximum_number_of_seats ⇒ Fixnum
This is a required property and is exclusive to subscriptions with FLEXIBLE or TRIAL plans.
-
#number_of_seats ⇒ Fixnum
This is a required property and is exclusive to subscriptions with ANNUAL_MONTHLY_PAY and ANNUAL_YEARLY_PAY plans.
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.
349 350 351 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies the resource as a subscription seat setting. Value: subscriptions#
seats
Corresponds to the JSON property kind
318 319 320 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 318 def kind @kind end |
#licensed_number_of_seats ⇒ Fixnum
Read-only field containing the current number of users that are assigned a
license for the product defined in skuId. This field's value is equivalent to
the numerical count of users returned by the Enterprise License Manager API
method: listForProductAndSku
Corresponds to the JSON property licensedNumberOfSeats
326 327 328 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 326 def licensed_number_of_seats @licensed_number_of_seats end |
#maximum_number_of_seats ⇒ Fixnum
This is a required property and is exclusive to subscriptions with FLEXIBLE or
TRIAL plans. This property sets the maximum number of licensed users allowed
on a subscription. This quantity can be increased up to the maximum limit
defined in the reseller's contract. The minimum quantity is the current number
of users in the customer account. Note: G Suite subscriptions automatically
assign a license to every user.
Corresponds to the JSON property maximumNumberOfSeats
336 337 338 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 336 def maximum_number_of_seats @maximum_number_of_seats end |
#number_of_seats ⇒ Fixnum
This is a required property and is exclusive to subscriptions with
ANNUAL_MONTHLY_PAY and ANNUAL_YEARLY_PAY plans. This property sets the maximum
number of licenses assignable to users on a subscription. The reseller can add
more licenses, but once set, the numberOfSeats cannot be reduced until renewal.
The reseller is invoiced based on the numberOfSeats value regardless of how
many of these user licenses are assigned. Note: G Suite subscriptions
automatically assign a license to every user.
Corresponds to the JSON property numberOfSeats
347 348 349 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 347 def number_of_seats @number_of_seats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
354 355 356 357 358 359 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 354 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 |