DeviceCustomPropertiesClient
armis_sdk.clients.device_custom_properties_client.DeviceCustomPropertiesClient
Bases: BaseEntityClient
A client for interacting with device custom properties.
The primary entity for this client is DeviceCustomProperty.
Methods:
| Name | Description |
|---|---|
create |
Create a |
delete |
Delete a |
get |
Get a |
list |
List all the tenant's |
update |
Update a |
create(property_)
async
Create a DeviceCustomProperty.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
property_
|
DeviceCustomProperty
|
The |
required |
Returns:
| Type | Description |
|---|---|
DeviceCustomProperty
|
The same property as the input with the addition of id. |
Example
Example:
delete(property_)
async
Delete a DeviceCustomProperty.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
property_
|
DeviceCustomProperty
|
The |
required |
Example
Example:
get(property_id)
async
Get a DeviceCustomProperty by its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
property_id
|
int
|
The ID of the |
required |
Returns:
| Type | Description |
|---|---|
DeviceCustomProperty
|
A |
Example
Example:
list()
async
List all the tenant's DeviceCustomPropertys.
This method takes care of pagination, so you don't have to deal with it.
Returns:
| Type | Description |
|---|---|
AsyncIterator[DeviceCustomProperty]
|
An (async) iterator of |
Example
update(property_)
async
Update a DeviceCustomProperty.
Only description and allowed_values are updatable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
property_
|
DeviceCustomProperty
|
The |
required |
Raises:
| Type | Description |
|---|---|
ResponseError
|
If an error occurs while communicating with the API. |