openstack.accelerator.v2.device_profile

The DeviceProfile Class

The DeviceProfile class inherits from Resource.

class openstack.accelerator.v2.device_profile.DeviceProfile(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized – This is not intended to be used directly. See new() and existing().

  • connection – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key = 'device_profile'

Singular form of key for resource.

resources_key = 'device_profiles'

Plural form of key for resource.

base_path = '/device_profiles'

The base part of the URI for this resource.

allow_create = True

Allow create operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_commit = False

Allow update operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_list = True

Allow list operation for this resource.

created_at

The timestamp when this device_profile was created.

description

The description of the device profile

groups

The groups of the device profile

name

The name of the device profile

updated_at

The timestamp when this device_profile was updated.

uuid

The uuid of the device profile

create_opts = CreateOpts(request_key=None, response_key=<Unset.UNSET: 'UNSET'>, method=<Unset.UNSET: 'UNSET'>, requires_id=<Unset.UNSET: 'UNSET'>, has_body=<Unset.UNSET: 'UNSET'>)

Class-level configuration for the create operation. Subclasses can override this to set per-resource defaults without overriding create().