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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PermissionGrant

Returns a new instance of PermissionGrant.


2176
2177
2178
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2176

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)

2169
2170
2171
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2169

def permission
  @permission
end

#policyString

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

Returns:

  • (String)

2174
2175
2176
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2174

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2181
2182
2183
2184
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2181

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