Deletes a license endpoint.
Parameters:
-
license_endpoint_id
(LicenseEndpointId)
–
The license endpoint ID of the license endpoint to delete.
Raises:
Source code in docs_src/capo_deadline/_services/async_deadline.py
| async def delete_license_endpoint(
self,
license_endpoint_id: "capo_deadline.types.license_endpoint_id.LicenseEndpointId",
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> "capo_deadline.types.delete_license_endpoint_response.DeleteLicenseEndpointResponse":
"""Deletes a license endpoint.
Args:
license_endpoint_id: The license endpoint ID of the license endpoint to delete.
Raises:
capo_deadline.errors.access_denied_exception.AccessDeniedException: You don't have permission to perform the action.
capo_deadline.errors.conflict_exception.ConflictException: Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: Deadline Cloud can't process your request right now. Try again later.
capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: The requested resource can't be found.
capo_deadline.errors.throttling_exception.ThrottlingException: Your request exceeded a request rate quota.
capo_deadline.errors.validation_exception.ValidationException: The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_deadline.types.delete_license_endpoint_request.DeleteLicenseEndpointRequest]",
) -> AsyncOperationResponse[
"capo_deadline.types.delete_license_endpoint_response.DeleteLicenseEndpointResponse"
]:
import capo_deadline._operations.deadline.delete_license_endpoint
(
output,
http_response,
) = await capo_deadline._operations.deadline.delete_license_endpoint.async_delete_license_endpoint(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteLicenseEndpoint")
)
input_: capo_deadline.types.delete_license_endpoint_request.DeleteLicenseEndpointRequest = {
"license_endpoint_id": license_endpoint_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|