Class: Google::Apis::AndroidmanagementV1::ApplicationPermission

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

A permission required by the app.

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

Returns a new instance of ApplicationPermission



132
133
134
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 132

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

Instance Attribute Details

#descriptionString

A longer description of the permission, providing more detail on what it affects. Localized. Corresponds to the JSON property description

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 120

def description
  @description
end

#nameString

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

Returns:

  • (String)


125
126
127
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 125

def name
  @name
end

#permission_idString

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

Returns:

  • (String)


130
131
132
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 130

def permission_id
  @permission_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



137
138
139
140
141
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 137

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
end