AttributeType
Bases: TimeStampedModel
An attribute type indicates the data type of the attribute. Examples include Date, Float, Int, Text, and Yes/No.
| Attributes: |
|
|---|
Resource
Bases: TimeStampedModel
A resource is something a center maintains and provides access to for the community. Examples include Budgetstorage, Server, and Software License.
| Attributes: |
|
|---|
status
property
| Returns: |
|
|---|
get_attribute
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_attribute_list
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_missing_resource_attributes
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_ondemand_status
| Returns: |
|
|---|
ResourceAttribute
Bases: TimeStampedModel
A resource attribute class links a resource attribute type and a resource.
| Attributes: |
|
|---|
clean
Validates the resource and raises errors if the resource is invalid.
expanded_value
| Parameters: |
|
|---|
| Returns: |
|
|---|
For attributes with attribute type of 'Attribute Expanded Text' we look for an attribute with same name suffixed with '_attriblist' (this should be ResourceAttribute of the Resource associated with the attribute). If the attriblist attribute is found, we use it to generate a dictionary to use to expand the attribute value, and the expanded value is returned.
If the expansion fails, or if no attriblist attribute is found, or if the attribute type is not 'Attribute Expanded Text', we just return the raw value.
typed_value
| Returns: |
|
|---|
ResourceAttributeType
Bases: TimeStampedModel
A resource attribute type indicates the type of the attribute. Examples include slurm_specs and slurm_cluster.
| Attributes: |
|
|---|
Note: the is_unique_per_resource field is rarely used, hence documentation does not exist.
ResourceType
Bases: TimeStampedModel
A resource type class links a resource and its value.
| Attributes: |
|
|---|
active_count
property
| Returns: |
|
|---|
inactive_count
property
| Returns: |
|
|---|