Class: Google::Apis::AndroidenterpriseV1::Permission

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

A Permissions resource represents some extra capability, to be granted to an Android app, which requires explicit consent. An enterprise admin must consent to these permissions on behalf of their users before an entitlement for the app can be created. The permissions collection is read-only. The information provided for each permission (localized name and description) is intended to be used in the MDM user interface when obtaining consent from the enterprise.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Permission

Returns a new instance of Permission.



1885
1886
1887
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1885

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

Instance Attribute Details

#descriptionString

A longer description of the Permissions resource, giving more details of what it affects. Corresponds to the JSON property description

Returns:

  • (String)


1873
1874
1875
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1873

def description
  @description
end

#nameString

The name of the permission. Corresponds to the JSON property name

Returns:

  • (String)


1878
1879
1880
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1878

def name
  @name
end

#permission_idString

An opaque string uniquely identifying the permission. Corresponds to the JSON property permissionId

Returns:

  • (String)


1883
1884
1885
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1883

def permission_id
  @permission_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1890
1891
1892
1893
1894
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1890

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
end