class Google::Apis::AppsmarketV2::CustomerLicense

Attributes

application_id[RW]

The ID of the application corresponding to this license query. Corresponds to the JSON property `applicationId` @return [String]

customer_id[RW]

The domain name of the customer. Corresponds to the JSON property `customerId` @return [String]

editions[RW]

(Deprecated) Corresponds to the JSON property `editions` @return [Array<Google::Apis::AppsmarketV2::Editions>]

id[RW]

The ID of the customer license. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of API resource. This is always appsmarket#customerLicense. Corresponds to the JSON property `kind` @return [String]

state[RW]

The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license: either this customer has never installed your application, or else has deleted it. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/appsmarket_v2/classes.rb, line 61
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/appsmarket_v2/classes.rb, line 66
def update!(**args)
  @application_id = args[:application_id] if args.key?(:application_id)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @editions = args[:editions] if args.key?(:editions)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @state = args[:state] if args.key?(:state)
end