PersistentVolumeClaim
Bases: DuploTenantResourceV3
apply
Apply a service.
create
Create a PersistentVolumeClaim resource.
CLI Usage
Contents of thepersistentvolumeclaim.yaml
file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
BODY
|
The resource to create. |
required |
wait
|
WAIT
|
Wait for the resource to be created. |
False
|
wait_check
|
callable
|
A callable function to check if the resource |
None
|
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
Success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the resource could not be created. |
delete
Delete a PersistentVolumeClaim resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the PersistentVolumeClaim resource to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
find
Find PersistentVolumeClaim resources by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the PersistentVolumeClaim resource to find. |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The PersistentVolumeClaim object. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} could not be found. |
list
Retrieve a List of PersistentVolumeClaim resources
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
A list of PersistentVolumeClaim. |
update
Update a V3 resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
str
|
The resource to update. |
required |
Returns: Success message. Raises: DuploError: If the resource could not be created.