Class: Google::Apis::AndroidenterpriseV1::Permission
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Permission
- 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
-
#description ⇒ String
A longer description of the Permissions resource, giving more details of what it affects.
-
#name ⇒ String
The name of the permission.
-
#permission_id ⇒ String
An opaque string uniquely identifying the permission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Permission
constructor
A new instance of Permission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission.
1917 1918 1919 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
A longer description of the Permissions resource, giving more details of what
it affects.
Corresponds to the JSON property description
1905 1906 1907 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1905 def description @description end |
#name ⇒ String
The name of the permission.
Corresponds to the JSON property name
1910 1911 1912 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1910 def name @name end |
#permission_id ⇒ String
An opaque string uniquely identifying the permission.
Corresponds to the JSON property permissionId
1915 1916 1917 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1915 def @permission_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1922 1923 1924 1925 1926 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1922 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 |