Skip to content

delete_profile_entry async

delete_profile_entry(
    identifier: Identifier,
    profile_identifier: Identifier,
    *,
    config_overrides: Optional[AsyncCloudExtensionsClientConfig] = None,
) -> None

Removes a profile entry, unbinding the extension from the profile.

Parameters:

  • identifier (Identifier) –

    The identifier of the profile entry.

  • profile_identifier (Identifier) –

    The identifier of the owning profile.

Raises:

  • AccessDeniedException –

    The caller does not have permission to perform the operation.

  • InternalServerException –

    The service couldn't process the request because of an internal error. Retry with capped exponential backoff and jitter.

  • ThrottlingException –

    The request rate exceeded a limit. Retry with capped exponential backoff and jitter.

  • ConflictException –

    The request conflicts with the current state of the resource.

  • ResourceNotFoundException –

    The specified resource does not exist or the caller does not have permission to access it.

  • ValidationException –

    The request was malformed or contained invalid parameter values.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_cloudextensions/_services/async_cloud_extensions.py
async def delete_profile_entry(
    self,
    identifier: "capo_cloudextensions.types.identifier.Identifier",
    profile_identifier: "capo_cloudextensions.types.identifier.Identifier",
    *,
    config_overrides: Optional[AsyncCloudExtensionsClientConfig] = None,
) -> None:
    """Removes a profile entry, unbinding the extension from the profile.

    Args:
        identifier: The identifier of the profile entry.
        profile_identifier: The identifier of the owning profile.

    Raises:
        capo_cloudextensions.errors.access_denied_exception.AccessDeniedException: The caller does not have permission to perform the operation.
        capo_cloudextensions.errors.internal_server_exception.InternalServerException: The service couldn't process the request because of an internal error. Retry with capped exponential backoff and jitter.
        capo_cloudextensions.errors.throttling_exception.ThrottlingException: The request rate exceeded a limit. Retry with capped exponential backoff and jitter.
        capo_cloudextensions.errors.conflict_exception.ConflictException: The request conflicts with the current state of the resource.
        capo_cloudextensions.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource does not exist or the caller does not have permission to access it.
        capo_cloudextensions.errors.validation_exception.ValidationException: The request was malformed or contained invalid parameter values.
        capo_cloudextensions.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudextensions.types.delete_profile_entry_input.DeleteProfileEntryInput]",
    ) -> AsyncOperationResponse[None]:
        import capo_cloudextensions._operations.control_plane.delete_profile_entry

        (
            output,
            http_response,
        ) = await capo_cloudextensions._operations.control_plane.delete_profile_entry.async_delete_profile_entry(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteProfileEntry")
    )
    input_: capo_cloudextensions.types.delete_profile_entry_input.DeleteProfileEntryInput = {
        "identifier": identifier,
        "profile_identifier": profile_identifier,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output