Class: Google::Apis::ResellerV1::Seats

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 subscription seats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Seats

Returns a new instance of Seats.



347
348
349
# File 'generated/google/apis/reseller_v1/classes.rb', line 347

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

Instance Attribute Details

#kindString

Identifies the resource as a subscription seat setting. Value: subscriptions# seats Corresponds to the JSON property kind

Returns:

  • (String)


316
317
318
# File 'generated/google/apis/reseller_v1/classes.rb', line 316

def kind
  @kind
end

#licensed_number_of_seatsFixnum

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

Returns:

  • (Fixnum)


324
325
326
# File 'generated/google/apis/reseller_v1/classes.rb', line 324

def licensed_number_of_seats
  @licensed_number_of_seats
end

#maximum_number_of_seatsFixnum

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

Returns:

  • (Fixnum)


334
335
336
# File 'generated/google/apis/reseller_v1/classes.rb', line 334

def maximum_number_of_seats
  @maximum_number_of_seats
end

#number_of_seatsFixnum

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

Returns:

  • (Fixnum)


345
346
347
# File 'generated/google/apis/reseller_v1/classes.rb', line 345

def number_of_seats
  @number_of_seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



352
353
354
355
356
357
# File 'generated/google/apis/reseller_v1/classes.rb', line 352

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