Class: Google::Apis::AppsmarketV2::CustomerLicense

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerLicense

Returns a new instance of CustomerLicense.



61
62
63
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 61

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

Instance Attribute Details

#application_idString

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

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 32

def application_id
  @application_id
end

#customer_idString

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

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 37

def customer_id
  @customer_id
end

#editionsArray<Google::Apis::AppsmarketV2::Editions>

(Deprecated) Corresponds to the JSON property editions



42
43
44
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 42

def editions
  @editions
end

#idString

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

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 47

def id
  @id
end

#kindString

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

Returns:

  • (String)


52
53
54
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 52

def kind
  @kind
end

#stateString

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

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/appsmarket_v2/classes.rb', line 59

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66
67
68
69
70
71
72
73
# 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