Class: Google::Apis::AndroidmanagementV1::ApplicationPermission
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::ApplicationPermission
- 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
A permission required by the app.
Instance Attribute Summary collapse
-
#description ⇒ String
A longer description of the permission, providing more detail on what it affects.
-
#name ⇒ String
The name of the permission.
-
#permission_id ⇒ String
An opaque string uniquely identifying the permission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplicationPermission
constructor
A new instance of ApplicationPermission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApplicationPermission
Returns a new instance of ApplicationPermission.
249 250 251 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
A longer description of the permission, providing more detail on what it
affects. Localized.
Corresponds to the JSON property description
237 238 239 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 237 def description @description end |
#name ⇒ String
The name of the permission. Localized.
Corresponds to the JSON property name
242 243 244 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 242 def name @name end |
#permission_id ⇒ String
An opaque string uniquely identifying the permission. Not localized.
Corresponds to the JSON property permissionId
247 248 249 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 247 def @permission_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
254 255 256 257 258 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 254 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 |