Class: Google::Apis::AndroidenterpriseV1::ProductPermissions
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ProductPermissions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
Information about the permissions required by a specific app and whether they have been accepted by the enterprise.
Instance Attribute Summary collapse
-
#permission ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductPermission>
The permissions required by the app.
-
#product_id ⇒ String
The ID of the app that the permissions relate to, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductPermissions
constructor
A new instance of ProductPermissions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductPermissions
Returns a new instance of ProductPermissions.
2249 2250 2251 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#permission ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductPermission>
The permissions required by the app.
Corresponds to the JSON property permission
2241 2242 2243 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2241 def @permission end |
#product_id ⇒ String
The ID of the app that the permissions relate to, e.g. "app:com.google.android.
gm".
Corresponds to the JSON property productId
2247 2248 2249 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2247 def product_id @product_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2254 2255 2256 2257 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2254 def update!(**args) @permission = args[:permission] if args.key?(:permission) @product_id = args[:product_id] if args.key?(:product_id) end |