Class: Google::Apis::LicensingV1::LicenseAssignment

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

Overview

Representation of a license assignment.

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

Returns a new instance of LicenseAssignment.



75
76
77
# File 'generated/google/apis/licensing_v1/classes.rb', line 75

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

Instance Attribute Details

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/licensing_v1/classes.rb', line 32

def etags
  @etags
end

#kindString

Identifies the resource as a LicenseAssignment. Corresponds to the JSON property kind

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/licensing_v1/classes.rb', line 37

def kind
  @kind
end

#product_idString

A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. Corresponds to the JSON property productId

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/licensing_v1/classes.rb', line 43

def product_id
  @product_id
end

#product_nameString

Display Name of the product. Corresponds to the JSON property productName

Returns:

  • (String)


48
49
50
# File 'generated/google/apis/licensing_v1/classes.rb', line 48

def product_name
  @product_name
end

Link to this page. Corresponds to the JSON property selfLink

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/licensing_v1/classes.rb', line 53

def self_link
  @self_link
end

#sku_idString

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. Corresponds to the JSON property skuId

Returns:

  • (String)


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

def sku_id
  @sku_id
end

#sku_nameString

Display Name of the sku of the product. Corresponds to the JSON property skuName

Returns:

  • (String)


64
65
66
# File 'generated/google/apis/licensing_v1/classes.rb', line 64

def sku_name
  @sku_name
end

#user_idString

The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes. Corresponds to the JSON property userId

Returns:

  • (String)


73
74
75
# File 'generated/google/apis/licensing_v1/classes.rb', line 73

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80
81
82
83
84
85
86
87
88
89
# File 'generated/google/apis/licensing_v1/classes.rb', line 80

def update!(**args)
  @etags = args[:etags] if args.key?(:etags)
  @kind = args[:kind] if args.key?(:kind)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_name = args[:product_name] if args.key?(:product_name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @sku_id = args[:sku_id] if args.key?(:sku_id)
  @sku_name = args[:sku_name] if args.key?(:sku_name)
  @user_id = args[:user_id] if args.key?(:user_id)
end