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

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

Defined Under Namespace

Classes: Edition

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

Returns a new instance of CustomerLicense.



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

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 'generated/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 'generated/google/apis/appsmarket_v2/classes.rb', line 37

def customer_id
  @customer_id
end

#editionsArray<Google::Apis::AppsmarketV2::CustomerLicense::Edition>

(Deprecated) Corresponds to the JSON property editions



42
43
44
# File 'generated/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 'generated/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 'generated/google/apis/appsmarket_v2/classes.rb', line 52

def kind
  @kind
end

#stateString

The customer's license status. Corresponds to the JSON property state

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 57

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64
65
66
67
68
69
70
71
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 64

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