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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

Policy for an individual 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) ⇒ ApplicationPolicy

Returns a new instance of ApplicationPolicy



207
208
209
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 207

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

Instance Attribute Details

#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. Corresponds to the JSON property defaultPermissionPolicy

Returns:

  • (String)


153
154
155
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 153

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>)


158
159
160
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 158

def delegated_scopes
  @delegated_scopes
end

#install_typeString

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

Returns:

  • (String)


163
164
165
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 163

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. Corresponds to the JSON property lockTaskAllowed

Returns:

  • (Boolean)


168
169
170
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 168

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: < table> typeJSON value BOOL</ td>true or false STRINGstring INTEGERnumber CHOICEstring < td>MULTISELECTarray of strings HIDDEN string BUNDLE_ARRAYarray of objects </ table> Corresponds to the JSON property managedConfiguration

Returns:

  • (Hash<String,Object>)


183
184
185
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 183

def managed_configuration
  @managed_configuration
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)


193
194
195
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 193

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)


199
200
201
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 199

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. Corresponds to the JSON property permissionGrants



205
206
207
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 205

def permission_grants
  @permission_grants
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



212
213
214
215
216
217
218
219
220
221
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 212

def update!(**args)
  @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
  @delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
  @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)
  @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