class Google::Apis::LicensingV1::LicenseAssignment

Representation of a license assignment.

Attributes

etags[RW]

ETag of the resource. Corresponds to the JSON property `etags` @return [String]

kind[RW]

Identifies the resource as a LicenseAssignment, which is `licensing# licenseAssignment`. Corresponds to the JSON property `kind` @return [String]

product_id[RW]

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` @return [String]

product_name[RW]

Display Name of the product. Corresponds to the JSON property `productName` @return [String]

sku_id[RW]

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` @return [String]

sku_name[RW]

Display Name of the sku of the product. Corresponds to the JSON property `skuName` @return [String]

user_id[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/licensing_v1/classes.rb, line 93
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/licensing_v1/classes.rb, line 98
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