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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Seats

Returns a new instance of Seats.



350
351
352
# File 'lib/google/apis/reseller_v1/classes.rb', line 350

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)


318
319
320
# File 'lib/google/apis/reseller_v1/classes.rb', line 318

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)


327
328
329
# File 'lib/google/apis/reseller_v1/classes.rb', line 327

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)


337
338
339
# File 'lib/google/apis/reseller_v1/classes.rb', line 337

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)


348
349
350
# File 'lib/google/apis/reseller_v1/classes.rb', line 348

def number_of_seats
  @number_of_seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



355
356
357
358
359
360
# File 'lib/google/apis/reseller_v1/classes.rb', line 355

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