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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Seats

Returns a new instance of Seats



363
364
365
# File 'generated/google/apis/reseller_v1/classes.rb', line 363

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

Instance Attribute Details

#kindString

Identifies the resource as a subscription change plan request. 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 licensed seats for FLEXIBLE Google-Apps subscriptions and secondary subscriptions such as Google-Vault and Drive-storage. Corresponds to the JSON property licensedNumberOfSeats

Returns:

  • (Fixnum)


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

def licensed_number_of_seats
  @licensed_number_of_seats
end

#maximum_number_of_seatsFixnum

The maximumNumberOfSeats property is the maximum number of licenses that the customer can purchase. This property applies to plans other than the annual commitment plan. How a user's licenses are managed depends on the subscription' s payment plan:

  • annual commitment plan (with monthly or yearly payments) — For this plan, a reseller is invoiced on the number of user licenses in the numberOfSeats property. The maximumNumberOfSeats property is a read-only property in the API' s response.
  • flexible plan — For this plan, a reseller is invoiced on the actual number of users which is capped by the maximumNumberOfSeats. This is the maximum number of user licenses a customer has for user license provisioning. This quantity can be increased up to the maximum limit defined in the reseller's contract. And the minimum quantity is the current number of users in the customer account.
  • 30-day free trial plan — A subscription in a 30-day free trial is restricted to maximum 10 seats. Corresponds to the JSON property maximumNumberOfSeats

Returns:

  • (Fixnum)


343
344
345
# File 'generated/google/apis/reseller_v1/classes.rb', line 343

def maximum_number_of_seats
  @maximum_number_of_seats
end

#number_of_seatsFixnum

The numberOfSeats property holds the customer's number of user licenses. How a user's licenses are managed depends on the subscription's plan:

  • annual commitment plan (with monthly or yearly pay) — For this plan, a reseller is invoiced on the number of user licenses in the numberOfSeats property. This is the maximum number of user licenses that a reseller's customer can create. The reseller can add more licenses, but once set, the numberOfSeats can not be reduced until renewal. The reseller is invoiced based on the numberOfSeats value regardless of how many of these user licenses are provisioned users.
  • flexible plan — For this plan, a reseller is invoiced on the actual number of users which is capped by the maximumNumberOfSeats. The numberOfSeats property is not used in the request or response for flexible plan customers.
  • 30-day free trial plan — The numberOfSeats property is not used in the request or response for an account in a 30-day trial. Corresponds to the JSON property numberOfSeats

Returns:

  • (Fixnum)


361
362
363
# File 'generated/google/apis/reseller_v1/classes.rb', line 361

def number_of_seats
  @number_of_seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
372
373
# File 'generated/google/apis/reseller_v1/classes.rb', line 368

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