Class: Google::Apis::AppsmarketV2::UserLicense

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appsmarket_v2/classes.rb,
generated/google/apis/appsmarket_v2/representations.rb,
generated/google/apis/appsmarket_v2/representations.rb

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) ⇒ UserLicense

Returns a new instance of UserLicense.


377
378
379
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 377

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

Instance Attribute Details

#application_idString

The ID of the application corresponding to the license query. Corresponds to the JSON property applicationId

Returns:

  • (String)

335
336
337
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 335

def application_id
  @application_id
end

#customer_idString

The domain name of the user. Corresponds to the JSON property customerId

Returns:

  • (String)

340
341
342
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 340

def customer_id
  @customer_id
end

#edition_idString

(Deprecated) Corresponds to the JSON property editionId

Returns:

  • (String)

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

def edition_id
  @edition_id
end

#enabledBoolean Also known as: enabled?

The domain administrator has activated the application for this domain. Corresponds to the JSON property enabled

Returns:

  • (Boolean)

350
351
352
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 350

def enabled
  @enabled
end

#idString

The ID of user license. Corresponds to the JSON property id

Returns:

  • (String)

356
357
358
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 356

def id
  @id
end

#kindString

The type of API resource. This is always appsmarket#userLicense. Corresponds to the JSON property kind

Returns:

  • (String)

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

def kind
  @kind
end

#stateString

The user's licensing status. One of: - ACTIVE: The user has a valid license and should be permitted to use the application. - UNLICENSED: The administrator of this user's domain never assigned a seat for the application to this user. - EXPIRED: The administrator assigned a seat to this user, but the license is expired. Corresponds to the JSON property state

Returns:

  • (String)

370
371
372
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 370

def state
  @state
end

#user_idString

The email address of the user. Corresponds to the JSON property userId

Returns:

  • (String)

375
376
377
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 375

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


382
383
384
385
386
387
388
389
390
391
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 382

def update!(**args)
  @application_id = args[:application_id] if args.key?(:application_id)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @edition_id = args[:edition_id] if args.key?(:edition_id)
  @enabled = args[:enabled] if args.key?(:enabled)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @state = args[:state] if args.key?(:state)
  @user_id = args[:user_id] if args.key?(:user_id)
end