Class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent

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

An event generated when new permissions are added to an 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) ⇒ NewPermissionsEvent

Returns a new instance of NewPermissionsEvent



1224
1225
1226
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1224

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

Instance Attribute Details

#approved_permissionsArray<String>

The set of permissions that the enterprise admin has already approved for this application. Use Permissions.Get on the EMM API to retrieve details about these permissions. Corresponds to the JSON property approvedPermissions

Returns:

  • (Array<String>)


1210
1211
1212
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1210

def approved_permissions
  @approved_permissions
end

#product_idString

The id of the product (e.g. "app:com.google.android.gm") for which new permissions were added. This field will always be present. Corresponds to the JSON property productId

Returns:

  • (String)


1216
1217
1218
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1216

def product_id
  @product_id
end

#requested_permissionsArray<String>

The set of permissions that the app is currently requesting. Use Permissions. Get on the EMM API to retrieve details about these permissions. Corresponds to the JSON property requestedPermissions

Returns:

  • (Array<String>)


1222
1223
1224
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1222

def requested_permissions
  @requested_permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1229
1230
1231
1232
1233
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1229

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