Device Settings

class pycpg.clients.settings.device_settings.DeviceSettings(device_dict)

Bases: DeviceSettingsDefaults

Class used to manage an individual device’s settings.

property available_destinations

Returns a dict of destinations available to be used by devices. Dict keys are destination guids and values are destination names.

backup_sets

List of BackupSet objects used to manage this device’s backup set configurations.

backup_status_email_enabled

Determines if the regularly scheduled backup status email is enabled.

backup_status_email_frequency_days

Determines the frequency of the regularly scheduled backup status email.

clear() None.  Remove all items from D.
property computer_id

Identifier of this device. Read-only.

critical_alert_days

The number of days a device can go without any backup activity before “warning” alert threshold is passed.

critical_email_enabled

Determines if backup “critical” threshold email alerts are configured for this device.

property device_id

Identifier of this device (alias of .computer_id). Read only.

external_reference

External reference field for this device.

property guid

Globally unique identifier of this device. Read-only.

items() a set-like object providing a view on D's items
property java_memory_heap_max

The maximum memory the client will use on its system

keys() a set-like object providing a view on D's keys
name

Name for this device.

notes

Notes field for this device.

property org_id

Identifier of the organization this device belongs to. Read-only.

pop(k[, d]) v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem() (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault(k[, d]) D.get(k,d), also set D[k]=d if k not in D
update([E, ]**F) None.  Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

property user_id

Identifier of the user this device belongs to. Read-only.

values() an object providing a view on D's values
property version

Latest reported CrashPlan client version number for this device. Read-only.

warning_alert_days

The number of days a device can go without any backup activity before “warning” alert threshold is passed.

warning_email_enabled

Determines if backup “warning” threshold email alerts are configured for this device.