Class: Google::Apis::LicensingV1::LicenseAssignmentInsert

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 LicenseAssignment Insert request

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

Returns a new instance of LicenseAssignmentInsert.


83
84
85
# File 'generated/google/apis/licensing_v1/classes.rb', line 83

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

Instance Attribute Details

#user_idString

Email id of the user Corresponds to the JSON property userId

Returns:

  • (String)

81
82
83
# File 'generated/google/apis/licensing_v1/classes.rb', line 81

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


88
89
90
# File 'generated/google/apis/licensing_v1/classes.rb', line 88

def update!(**args)
  @user_id = args[:user_id] if args.key?(:user_id)
end