Class: Google::Apis::AndroidmanagementV1::ApplicationPolicy
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::ApplicationPolicy
- 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
-
#default_permission_policy ⇒ String
The default policy for all permissions requested by the app.
-
#delegated_scopes ⇒ Array<String>
The scopes delegated to the app from Android Device Policy.
-
#disabled ⇒ Boolean
(also: #disabled?)
Whether the app is disabled.
-
#install_type ⇒ String
The type of installation to perform.
-
#lock_task_allowed ⇒ Boolean
(also: #lock_task_allowed?)
Whether the app is allowed to lock itself in full-screen mode.
-
#managed_configuration ⇒ Hash<String,Object>
Managed configuration applied to the app.
-
#managed_configuration_template ⇒ Google::Apis::AndroidmanagementV1::ManagedConfigurationTemplate
The managed configurations template for the app, saved from the managed configurations iframe.
-
#minimum_version_code ⇒ Fixnum
The minimum version of the app that runs on the device.
-
#package_name ⇒ String
The package name of the app.
-
#permission_grants ⇒ Array<Google::Apis::AndroidmanagementV1::PermissionGrant>
Explicit permission grants or denials for the app.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplicationPolicy
constructor
A new instance of ApplicationPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ApplicationPolicy
Returns a new instance of ApplicationPolicy
244 245 246 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 244 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_permission_policy ⇒ String
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
178 179 180 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 178 def @default_permission_policy end |
#delegated_scopes ⇒ Array<String>
The scopes delegated to the app from Android Device Policy.
Corresponds to the JSON property delegatedScopes
183 184 185 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 183 def delegated_scopes @delegated_scopes end |
#disabled ⇒ Boolean Also known as: disabled?
Whether the app is disabled. When disabled, the app data is still preserved.
Corresponds to the JSON property disabled
188 189 190 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 188 def disabled @disabled end |
#install_type ⇒ String
The type of installation to perform.
Corresponds to the JSON property installType
194 195 196 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 194 def install_type @install_type end |
#lock_task_allowed ⇒ Boolean Also known as: lock_task_allowed?
Whether the app is allowed to lock itself in full-screen mode.
Corresponds to the JSON property lockTaskAllowed
199 200 201 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 199 def lock_task_allowed @lock_task_allowed end |
#managed_configuration ⇒ Hash<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>
managedConfiguration
214 215 216 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 214 def managed_configuration @managed_configuration end |
#managed_configuration_template ⇒ Google::Apis::AndroidmanagementV1::ManagedConfigurationTemplate
The managed configurations template for the app, saved from the managed
configurations iframe.
Corresponds to the JSON property managedConfigurationTemplate
220 221 222 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 220 def managed_configuration_template @managed_configuration_template end |
#minimum_version_code ⇒ Fixnum
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
230 231 232 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 230 def minimum_version_code @minimum_version_code end |
#package_name ⇒ String
The package name of the app. For example, com.google.android.youtube for the
YouTube app.
Corresponds to the JSON property packageName
236 237 238 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 236 def package_name @package_name end |
#permission_grants ⇒ Array<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
242 243 244 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 242 def @permission_grants end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 249 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) @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 |