Class: Google::Apis::AndroidenterpriseV1::ProductPermissions

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

Information about the permissions required by a specific app and whether they have been accepted by the enterprise.

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

Returns a new instance of ProductPermissions



1636
1637
1638
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1636

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


1623
1624
1625
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1623

def kind
  @kind
end

#permissionArray<Google::Apis::AndroidenterpriseV1::ProductPermission>

The permissions required by the app. Corresponds to the JSON property permission



1628
1629
1630
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1628

def permission
  @permission
end

#product_idString

The ID of the app that the permissions relate to, e.g. "app:com.google.android. gm". Corresponds to the JSON property productId

Returns:

  • (String)


1634
1635
1636
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1634

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1641
1642
1643
1644
1645
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1641

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