Class: Google::Apis::AndroidenterpriseV1::ProductPermissions

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductPermissions

Returns a new instance of ProductPermissions.



2267
2268
2269
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2267

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

Instance Attribute Details

#permissionArray<Google::Apis::AndroidenterpriseV1::ProductPermission>

The permissions required by the app. Corresponds to the JSON property permission



2259
2260
2261
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2259

def permission
  @permission
end

#product_idString

The ID of the app that the permissions relate to, e.g. "app:com.google.android. gm". Corresponds to the JSON property productId

Returns:

  • (String)


2265
2266
2267
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2265

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2272
2273
2274
2275
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2272

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