Class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1AndroidAttributes

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

Overview

Resource representing the Android specific attributes of a Device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCloudidentityDevicesV1AndroidAttributes

Returns a new instance of GoogleAppsCloudidentityDevicesV1AndroidAttributes.



141
142
143
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 141

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

Instance Attribute Details

#enabled_unknown_sourcesBoolean Also known as: enabled_unknown_sources?

Whether applications from unknown sources can be installed on device. Corresponds to the JSON property enabledUnknownSources

Returns:

  • (Boolean)


117
118
119
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 117

def enabled_unknown_sources
  @enabled_unknown_sources
end

#owner_profile_accountBoolean 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

Returns:

  • (Boolean)


125
126
127
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 125

def 
  @owner_profile_account
end

#ownership_privilegeString

Ownership privileges on device. Corresponds to the JSON property ownershipPrivilege

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 131

def ownership_privilege
  @ownership_privilege
end

#supports_work_profileBoolean 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

Returns:

  • (Boolean)


138
139
140
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 138

def supports_work_profile
  @supports_work_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



146
147
148
149
150
151
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 146

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