Class: Google::Apis::CloudidentityV1beta1::AndroidAttributes
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::AndroidAttributes
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudidentity_v1beta1/classes.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb
Overview
Resource representing the Android specific attributes of a Device.
Instance Attribute Summary collapse
-
#enabled_unknown_sources ⇒ Boolean
(also: #enabled_unknown_sources?)
Whether applications from unknown sources can be installed on device.
-
#owner_profile_account ⇒ Boolean
(also: #owner_profile_account?)
Whether this account is on an owner/primary profile.
-
#ownership_privilege ⇒ String
Ownership privileges on device.
-
#supports_work_profile ⇒ Boolean
(also: #supports_work_profile?)
Whether device supports Android work profiles.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AndroidAttributes
constructor
A new instance of AndroidAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AndroidAttributes
Returns a new instance of AndroidAttributes.
56 57 58 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 56 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled_unknown_sources ⇒ Boolean Also known as: enabled_unknown_sources?
Whether applications from unknown sources can be installed on device.
Corresponds to the JSON property enabledUnknownSources
32 33 34 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 32 def enabled_unknown_sources @enabled_unknown_sources end |
#owner_profile_account ⇒ Boolean Also known as: owner_profile_account?
Whether this account is on an owner/primary profile. For phones, only true for
owner profiles. Android 4+ devices can have secondary or restricted user
profiles.
Corresponds to the JSON property ownerProfileAccount
40 41 42 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 40 def owner_profile_account @owner_profile_account end |
#ownership_privilege ⇒ String
Ownership privileges on device.
Corresponds to the JSON property ownershipPrivilege
46 47 48 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 46 def ownership_privilege @ownership_privilege end |
#supports_work_profile ⇒ Boolean Also known as: supports_work_profile?
Whether device supports Android work profiles. If false, this service will not
block access to corp data even if an administrator turns on the "Enforce Work
Profile" policy.
Corresponds to the JSON property supportsWorkProfile
53 54 55 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 53 def supports_work_profile @supports_work_profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
61 62 63 64 65 66 |
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 61 def update!(**args) @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources) @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account) @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege) @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile) end |