Class: Google::Apis::AndroidenterpriseV1::Entitlement
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Entitlement
- 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
-
#product_id ⇒ String
The ID of the product that the entitlement is for.
-
#reason ⇒ String
The reason for the entitlement.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entitlement
constructor
A new instance of Entitlement.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
The ID of the product that the entitlement is for. For example, "app:com.
google.android.gm".
Corresponds to the JSON property productId
1026 1027 1028 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1026 def product_id @product_id end |
#reason ⇒ String
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
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 |