Deletes a storage profile.
Parameters:
-
farm_id
(FarmId)
–
The farm ID of the farm from which to remove the storage profile.
-
storage_profile_id
(StorageProfileId)
–
The storage profile ID of the storage profile to delete.
Raises:
Source code in docs_src/capo_deadline/_services/deadline.py
| def delete_storage_profile(
self,
farm_id: "capo_deadline.types.farm_id.FarmId",
storage_profile_id: "capo_deadline.types.storage_profile_id.StorageProfileId",
*,
config_overrides: Optional[deadlineClientConfig] = None,
) -> "capo_deadline.types.delete_storage_profile_response.DeleteStorageProfileResponse":
"""<p>Deletes a storage profile.</p>
Args:
farm_id: <p>The farm ID of the farm from which to remove the storage profile.</p>
storage_profile_id: <p>The storage profile ID of the storage profile to delete.</p>
Raises:
capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_deadline.types.delete_storage_profile_request.DeleteStorageProfileRequest]",
) -> OperationResponse[
"capo_deadline.types.delete_storage_profile_response.DeleteStorageProfileResponse"
]:
import capo_deadline._operations.deadline.delete_storage_profile
output, http_response = (
capo_deadline._operations.deadline.delete_storage_profile.delete_storage_profile(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteStorageProfile")
)
input_: capo_deadline.types.delete_storage_profile_request.DeleteStorageProfileRequest = {
"farm_id": farm_id,
"storage_profile_id": storage_profile_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|