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.
-
#install_type ⇒ String
The type of installation to perform.
-
#lock_task_allowed ⇒ Boolean
(also: #lock_task_allowed?)
Whether the application is allowed to lock itself in full-screen mode.
-
#managed_configuration ⇒ Hash<String,Object>
Managed configuration applied to the app.
-
#package_name ⇒ String
The package name of the app, e.g.
-
#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
167 168 169 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 167 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.
Corresponds to the JSON property defaultPermissionPolicy
128 129 130 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 128 def @default_permission_policy end |
#install_type ⇒ String
The type of installation to perform.
Corresponds to the JSON property installType
133 134 135 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 133 def install_type @install_type end |
#lock_task_allowed ⇒ Boolean Also known as: lock_task_allowed?
Whether the application is allowed to lock itself in full-screen mode.
Corresponds to the JSON property lockTaskAllowed
138 139 140 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 138 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
153 154 155 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 153 def managed_configuration @managed_configuration end |
#package_name ⇒ String
The package name of the app, e.g. com.google.android.youtube for the YouTube
app.
Corresponds to the JSON property packageName
159 160 161 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 159 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.
Corresponds to the JSON property permissionGrants
165 166 167 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 165 def @permission_grants end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
172 173 174 175 176 177 178 179 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 172 def update!(**args) @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy) @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) @package_name = args[:package_name] if args.key?(:package_name) @permission_grants = args[:permission_grants] if args.key?(:permission_grants) end |