Class: Google::Apis::AndroidmanagementV1::PersonalUsagePolicies

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

Policies controlling personal usage on a company-owned device with a work profile.

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

Returns a new instance of PersonalUsagePolicies.


2292
2293
2294
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2292

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

Instance Attribute Details

#account_types_with_management_disabledArray<String>

Account types that can't be managed by the user. Corresponds to the JSON property accountTypesWithManagementDisabled

Returns:

  • (Array<String>)

2263
2264
2265
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2263

def 
  @account_types_with_management_disabled
end

#camera_disabledBoolean Also known as: camera_disabled?

Whether camera is disabled. Corresponds to the JSON property cameraDisabled

Returns:

  • (Boolean)

2268
2269
2270
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2268

def camera_disabled
  @camera_disabled
end

#max_days_with_work_offFixnum

Controls how long the work profile can stay off. Corresponds to the JSON property maxDaysWithWorkOff

Returns:

  • (Fixnum)

2274
2275
2276
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2274

def max_days_with_work_off
  @max_days_with_work_off
end

#personal_applicationsArray<Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy>

Policy applied to applications on the personal profile. Corresponds to the JSON property personalApplications


2279
2280
2281
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2279

def personal_applications
  @personal_applications
end

#personal_play_store_modeString

Controls how apps on the personal profile are allowed or blocked. Corresponds to the JSON property personalPlayStoreMode

Returns:

  • (String)

2284
2285
2286
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2284

def personal_play_store_mode
  @personal_play_store_mode
end

#screen_capture_disabledBoolean Also known as: screen_capture_disabled?

Whether screen capture is disabled. Corresponds to the JSON property screenCaptureDisabled

Returns:

  • (Boolean)

2289
2290
2291
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2289

def screen_capture_disabled
  @screen_capture_disabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2297
2298
2299
2300
2301
2302
2303
2304
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2297

def update!(**args)
  @account_types_with_management_disabled = args[:account_types_with_management_disabled] if args.key?(:account_types_with_management_disabled)
  @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
  @max_days_with_work_off = args[:max_days_with_work_off] if args.key?(:max_days_with_work_off)
  @personal_applications = args[:personal_applications] if args.key?(:personal_applications)
  @personal_play_store_mode = args[:personal_play_store_mode] if args.key?(:personal_play_store_mode)
  @screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
end