Class: Google::Apis::AndroidenterpriseV1::Permission

Inherits:
Object
  • Object
show all
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 permission 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 EMM user interface when obtaining consent from the enterprise.

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) ⇒ Permission

Returns a new instance of Permission.


1469
1470
1471
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1469

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

Instance Attribute Details

#descriptionString

A longer description of the permissions giving more details of what it affects. Corresponds to the JSON property description

Returns:

  • (String)

1451
1452
1453
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1451

def description
  @description
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#permission". Corresponds to the JSON property kind

Returns:

  • (String)

1457
1458
1459
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1457

def kind
  @kind
end

#nameString

The name of the permission. Corresponds to the JSON property name

Returns:

  • (String)

1462
1463
1464
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1462

def name
  @name
end

#permission_idString

An opaque string uniquely identifying the permission. Corresponds to the JSON property permissionId

Returns:

  • (String)

1467
1468
1469
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1467

def permission_id
  @permission_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1474
1475
1476
1477
1478
1479
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1474

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