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.



389
390
391
# File 'lib/google/apis/reseller_v1/classes.rb', line 389

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)


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

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)


366
367
368
# File 'lib/google/apis/reseller_v1/classes.rb', line 366

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)


376
377
378
# File 'lib/google/apis/reseller_v1/classes.rb', line 376

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: *Google Workspace subscriptions automatically assign a license to every user. Corresponds to the JSON property numberOfSeats

Returns:

  • (Fixnum)


387
388
389
# File 'lib/google/apis/reseller_v1/classes.rb', line 387

def number_of_seats
  @number_of_seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
398
399
# File 'lib/google/apis/reseller_v1/classes.rb', line 394

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