Class: Google::Apis::AndroidmanagementV1::ApplicationPolicy

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

Policy for an individual app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplicationPolicy

Returns a new instance of ApplicationPolicy.



355
356
357
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 355

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

Instance Attribute Details

#accessible_track_idsArray<String>

List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. Corresponds to the JSON property accessibleTrackIds

Returns:

  • (Array<String>)


273
274
275
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 273

def accessible_track_ids
  @accessible_track_ids
end

#auto_update_modeString

Controls the auto-update mode for the app. Corresponds to the JSON property autoUpdateMode

Returns:

  • (String)


278
279
280
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 278

def auto_update_mode
  @auto_update_mode
end

#connected_work_and_personal_appString

Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. Corresponds to the JSON property connectedWorkAndPersonalApp

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 284

def connected_work_and_personal_app
  @connected_work_and_personal_app
end

#default_permission_policyString

The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. Corresponds to the JSON property defaultPermissionPolicy

Returns:

  • (String)


291
292
293
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 291

def default_permission_policy
  @default_permission_policy
end

#delegated_scopesArray<String>

The scopes delegated to the app from Android Device Policy. Corresponds to the JSON property delegatedScopes

Returns:

  • (Array<String>)


296
297
298
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 296

def delegated_scopes
  @delegated_scopes
end

#disabledBoolean Also known as: disabled?

Whether the app is disabled. When disabled, the app data is still preserved. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


301
302
303
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 301

def disabled
  @disabled
end

#install_typeString

The type of installation to perform. Corresponds to the JSON property installType

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 307

def install_type
  @install_type
end

#lock_task_allowedBoolean Also known as: lock_task_allowed?

Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device. Corresponds to the JSON property lockTaskAllowed

Returns:

  • (Boolean)


314
315
316
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 314

def lock_task_allowed
  @lock_task_allowed
end

#managed_configurationHash<String,Object>

Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: type JSON value BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects Corresponds to the JSON property managedConfiguration

Returns:

  • (Hash<String,Object>)


325
326
327
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 325

def managed_configuration
  @managed_configuration
end

#managed_configuration_templateGoogle::Apis::AndroidmanagementV1::ManagedConfigurationTemplate

The managed configurations template for the app, saved from the managed configurations iframe. Corresponds to the JSON property managedConfigurationTemplate



331
332
333
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 331

def managed_configuration_template
  @managed_configuration_template
end

#minimum_version_codeFixnum

The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up- to-date, the device will contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy. Corresponds to the JSON property minimumVersionCode

Returns:

  • (Fixnum)


341
342
343
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 341

def minimum_version_code
  @minimum_version_code
end

#package_nameString

The package name of the app. For example, com.google.android.youtube for the YouTube app. Corresponds to the JSON property packageName

Returns:

  • (String)


347
348
349
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 347

def package_name
  @package_name
end

#permission_grantsArray<Google::Apis::AndroidmanagementV1::PermissionGrant>

Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. Corresponds to the JSON property permissionGrants



353
354
355
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 353

def permission_grants
  @permission_grants
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 360

def update!(**args)
  @accessible_track_ids = args[:accessible_track_ids] if args.key?(:accessible_track_ids)
  @auto_update_mode = args[:auto_update_mode] if args.key?(:auto_update_mode)
  @connected_work_and_personal_app = args[:connected_work_and_personal_app] if args.key?(:connected_work_and_personal_app)
  @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
  @delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
  @disabled = args[:disabled] if args.key?(:disabled)
  @install_type = args[:install_type] if args.key?(:install_type)
  @lock_task_allowed = args[:lock_task_allowed] if args.key?(:lock_task_allowed)
  @managed_configuration = args[:managed_configuration] if args.key?(:managed_configuration)
  @managed_configuration_template = args[:managed_configuration_template] if args.key?(:managed_configuration_template)
  @minimum_version_code = args[:minimum_version_code] if args.key?(:minimum_version_code)
  @package_name = args[:package_name] if args.key?(:package_name)
  @permission_grants = args[:permission_grants] if args.key?(:permission_grants)
end