Class: Google::Apis::AndroidmanagementV1::PermissionGrant

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb

Overview

Configuration for an Android permission and its grant state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PermissionGrant

Returns a new instance of PermissionGrant.



4124
4125
4126
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4124

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

Instance Attribute Details

#permissionString

The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. Corresponds to the JSON property permission

Returns:

  • (String)


4117
4118
4119
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4117

def permission
  @permission
end

#policyString

The policy for granting the permission. Corresponds to the JSON property policy

Returns:

  • (String)


4122
4123
4124
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4122

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4129
4130
4131
4132
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 4129

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