Class: Google::Apis::ResellerV1::Seats
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Seats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/reseller_v1/classes.rb,
lib/google/apis/reseller_v1/representations.rb,
lib/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
FLEXIBLEorTRIALplans. -
#number_of_seats ⇒ Fixnum
This is a required property and is exclusive to subscriptions with
ANNUAL_MONTHLY_PAYandANNUAL_YEARLY_PAYplans.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Seats
constructor
A new instance of Seats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Seats
Returns a new instance of Seats.
382 383 384 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 382 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
350 351 352 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 350 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
359 360 361 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 359 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
369 370 371 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 369 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
380 381 382 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 380 def number_of_seats @number_of_seats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
387 388 389 390 391 392 |
# File 'lib/google/apis/reseller_v1/classes.rb', line 387 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 |