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

Template for LiscenseAssignment Resource

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.



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

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

Name of the product. Corresponds to the JSON property productId

Returns:

  • (String)


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

def product_id
  @product_id
end

Link to this page. Corresponds to the JSON property selfLink

Returns:

  • (String)


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

def self_link
  @self_link
end

#sku_idString

Name of the sku of the product. Corresponds to the JSON property skuId

Returns:

  • (String)


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

def sku_id
  @sku_id
end

#user_idString

Email id of the user. Corresponds to the JSON property userId

Returns:

  • (String)


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

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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)
  @self_link = args[:self_link] if args.key?(:self_link)
  @sku_id = args[:sku_id] if args.key?(:sku_id)
  @user_id = args[:user_id] if args.key?(:user_id)
end