Class: Google::Apis::LicensingV1::LicenseAssignment
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::LicensingV1::LicenseAssignment
 
 
- 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
- 
  
    
      #etags  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ETag of the resource.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Identifies the resource as a LicenseAssignment, which is
licensing# licenseAssignment. - 
  
    
      #product_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A product's unique identifier.
 - 
  
    
      #product_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Display Name of the product.
 - 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Link to this page.
 - 
  
    
      #sku_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A product SKU's unique identifier.
 - 
  
    
      #sku_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Display Name of the sku of the product.
 - 
  
    
      #user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The user's current primary email address.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LicenseAssignment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of LicenseAssignment.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ LicenseAssignment
Returns a new instance of LicenseAssignment.
      93 94 95  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 93 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#etags ⇒ String
ETag of the resource.
Corresponds to the JSON property etags
      49 50 51  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 49 def @etags end  | 
  
#kind ⇒ String
Identifies the resource as a LicenseAssignment, which is licensing#
licenseAssignment.
Corresponds to the JSON property kind
      55 56 57  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 55 def kind @kind end  | 
  
#product_id ⇒ String
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
      61 62 63  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 61 def product_id @product_id end  | 
  
#product_name ⇒ String
Display Name of the product.
Corresponds to the JSON property productName
      66 67 68  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 66 def product_name @product_name end  | 
  
#self_link ⇒ String
Link to this page.
Corresponds to the JSON property selfLink
      71 72 73  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 71 def self_link @self_link end  | 
  
#sku_id ⇒ String
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
      77 78 79  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 77 def sku_id @sku_id end  | 
  
#sku_name ⇒ String
Display Name of the sku of the product.
Corresponds to the JSON property skuName
      82 83 84  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 82 def sku_name @sku_name end  | 
  
#user_id ⇒ String
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
      91 92 93  | 
    
      # File 'generated/google/apis/licensing_v1/classes.rb', line 91 def user_id @user_id end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      98 99 100 101 102 103 104 105 106 107  | 
    
      # File 'generated/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  |