Class: Google::Apis::AndroidmanagementV1::PermissionGrant
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::PermissionGrant
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
Configuration for an Android permission and its grant state.
Instance Attribute Summary collapse
-
#permission ⇒ String
The Android permission or group, e.g.
-
#policy ⇒ String
The policy for granting the permission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PermissionGrant
constructor
A new instance of PermissionGrant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PermissionGrant
Returns a new instance of PermissionGrant.
2231 2232 2233 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#permission ⇒ String
The Android permission or group, e.g. android.permission.READ_CALENDAR or
android.permission_group.CALENDAR.
Corresponds to the JSON property permission
2224 2225 2226 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2224 def @permission end |
#policy ⇒ String
The policy for granting the permission.
Corresponds to the JSON property policy
2229 2230 2231 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2229 def policy @policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2236 2237 2238 2239 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2236 def update!(**args) @permission = args[:permission] if args.key?(:permission) @policy = args[:policy] if args.key?(:policy) end |