Class: Google::Apis::AndroidenterpriseV1::Permission
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::Permission
 
- 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
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. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission
| 1603 1604 1605 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1603 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
| 1585 1586 1587 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1585 def description @description end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#permission".
Corresponds to the JSON property kind
| 1591 1592 1593 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1591 def kind @kind end | 
#name ⇒ String
The name of the permission.
Corresponds to the JSON property name
| 1596 1597 1598 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1596 def name @name end | 
#permission_id ⇒ String
An opaque string uniquely identifying the permission.
Corresponds to the JSON property permissionId
| 1601 1602 1603 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1601 def @permission_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1608 1609 1610 1611 1612 1613 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1608 def update!(**args) @description = args[:description] if args.key?(:description) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @permission_id = args[:permission_id] if args.key?(:permission_id) end |