Class: Google::Apis::AndroidenterpriseV1::Entitlement

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

Overview

Deprecated: New integrations cannot use this method and can refer to our new recommendations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entitlement

Returns a new instance of Entitlement.



1035
1036
1037
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1035

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

Instance Attribute Details

#product_idString

The ID of the product that the entitlement is for. For example, "app:com. google.android.gm". Corresponds to the JSON property productId

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1026

def product_id
  @product_id
end

#reasonString

The reason for the entitlement. For example, "free" for free apps. This property is temporary: it will be replaced by the acquisition kind field of group licenses. Corresponds to the JSON property reason

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1033

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1040
1041
1042
1043
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1040

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