Class: Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse

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

Overview

The entitlement resources for the user.

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

Returns a new instance of ListEntitlementsResponse.



1036
1037
1038
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1036

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

Instance Attribute Details

#entitlementArray<Google::Apis::AndroidenterpriseV1::Entitlement>

An entitlement of a user to a product (e.g. an app). For example, a free app that they have installed, or a paid app that they have been allocated a license to. Corresponds to the JSON property entitlement



1028
1029
1030
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1028

def entitlement
  @entitlement
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#entitlementsListResponse". Corresponds to the JSON property kind

Returns:

  • (String)


1034
1035
1036
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1034

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1041
1042
1043
1044
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1041

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