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.


259
260
261
# File 'generated/google/apis/reseller_v1/classes.rb', line 259

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

Instance Attribute Details

#kindString

Identifies the resource as a subscription change plan request. Corresponds to the JSON property kind

Returns:

  • (String)

239
240
241
# File 'generated/google/apis/reseller_v1/classes.rb', line 239

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)

246
247
248
# File 'generated/google/apis/reseller_v1/classes.rb', line 246

def licensed_number_of_seats
  @licensed_number_of_seats
end

#maximum_number_of_seatsFixnum

Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract. Corresponds to the JSON property maximumNumberOfSeats

Returns:

  • (Fixnum)

252
253
254
# File 'generated/google/apis/reseller_v1/classes.rb', line 252

def maximum_number_of_seats
  @maximum_number_of_seats
end

#number_of_seatsFixnum

Number of seats to purchase. This is applicable only for a commitment plan. Corresponds to the JSON property numberOfSeats

Returns:

  • (Fixnum)

257
258
259
# File 'generated/google/apis/reseller_v1/classes.rb', line 257

def number_of_seats
  @number_of_seats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


264
265
266
267
268
269
# File 'generated/google/apis/reseller_v1/classes.rb', line 264

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