Allocation
Bases: TimeStampedModel
An allocation provides users access to a resource.
| Attributes: |
|
|---|
expires_in
property
| Returns: |
|
|---|
get_information
property
| Returns: |
|
|---|
get_parent_resource
property
| Returns: |
|
|---|
get_resources_as_list
property
| Returns: |
|
|---|
get_resources_as_string
property
| Returns: |
|
|---|
add_user
Adds a user to the allocation.
If EULAs are enabled and this allocation has an associated EULA, marks the user
as "PendingEULA" and sends the user an email asking them to agree to the EULA.
Otherwise, marks the user as "Active." Also sends the allocation_activate_user
signal if the allocation status is "Active."
| Parameters: |
|
|---|
clean
Validates the allocation and raises errors if the allocation is invalid.
expire
Sets the allocation status to "Expired" and expires all active allocations.
get_attribute
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_attribute_list
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_attribute_set
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_user_emails
Gets a set of user emails for notifications.
| Parameters: |
|
|---|
| Returns: |
|
|---|
has_perm
| Parameters: |
|
|---|
| Returns: |
|
|---|
remove_user
Marks an AllocationUser as 'Removed' and sends the allocation_remove_user signal.
| Parameters: |
|
|---|
save
Saves the project.
set_usage
| Parameters: |
|
|---|
user_permissions
| Parameters: |
|
|---|
| Returns: |
|
|---|
AllocationAccount
Bases: TimeStampedModel
An allocation account
come back to
| Attributes: |
|
|---|
AllocationAdminNote
Bases: TimeStampedModel
An allocation admin note is a note that an admin makes on an allocation.
| Attributes: |
|
|---|
AllocationAttribute
Bases: TimeStampedModel
An allocation attribute class links an allocation attribute type and an allocation.
| Attributes: |
|
|---|
clean
Validates the allocation attribute and raises errors if the allocation attribute 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.
save
Saves the allocation attribute.
typed_value
| Returns: |
|
|---|
AllocationAttributeChangeRequest
Bases: TimeStampedModel
An allocation attribute change request represents a request from a PI/ manager to change their allocation attribute.
| Attributes: |
|
|---|
AllocationAttributeType
Bases: TimeStampedModel
An allocation attribute type indicates the type of the attribute. Examples include Cloud Account Name and Core Usage (Hours).
| Attributes: |
|
|---|
AllocationAttributeUsage
Bases: TimeStampedModel
Allocation attribute usage indicates the usage of an allocation attribute.
| Attributes: |
|
|---|
AllocationChangeRequest
Bases: TimeStampedModel
An allocation change request represents a request from a PI or manager to change their allocation.
| Attributes: |
|
|---|
get_parent_resource
property
| Returns: |
|
|---|
AllocationChangeStatusChoice
Bases: TimeStampedModel
An allocation change status choice represents statuses displayed when a user changes their allocation status (for allocations that have their is_changeable attribute set to True). Examples include Expired and Payment Pending.
| Attributes: |
|
|---|
AllocationPermission
Bases: Enum
An allocation permission stores the user and manager fields of a project.
AllocationStatusChoice
Bases: TimeStampedModel
A project status choice indicates the status of the project. Examples include Active, Archived, and New.
| Attributes: |
|
|---|
AllocationUser
Bases: TimeStampedModel
An allocation user represents a user on the allocation.
| Attributes: |
|
|---|
is_active
Helper function returns True if allocation user status == Active and allocation status is one of the accepted active states where users should be considered active and have actions taken on them (i.e. groups added, accounts created in other systems, etc.)
AllocationUserNote
Bases: TimeStampedModel
An allocation user note is a note that an user makes on an allocation.
| Attributes: |
|
|---|
AllocationUserStatusChoice
Bases: TimeStampedModel
An allocation user status choice indicates the status of an allocation user. Examples include Active, Error, and Removed.
| Attributes: |
|
|---|
AttributeType
Bases: TimeStampedModel
An attribute type indicates the data type of the attribute. Examples include Date, Float, Int, Text, and Yes/No.
| Attributes: |
|
|---|