Skip to content

get_appliance_sizing_recommendation async

get_appliance_sizing_recommendation(
    workloads: SizingWorkloadList,
    projection_years: int,
    node_type: SizingNodeType,
    *,
    config_overrides: Optional[AsyncBackupExternalClientConfig] = None,
    node_fault_tolerance: Optional[int] = None,
) -> GetApplianceSizingRecommendationOutput

Returns appliance sizing recommendations for the specified workloads and projection period.

Parameters:

  • workloads (SizingWorkloadList) –

    The workloads for which to calculate appliance sizing recommendations.

  • projection_years (int) –

    The number of years for which to calculate appliance sizing projections.

  • node_fault_tolerance (Optional[int], default: None ) –

    The number of node failures that the appliance can tolerate.

  • node_type (SizingNodeType) –

    The type of appliance node to use in the sizing calculation.

Raises:

Source code in docs_src/capo_backup_external/_services/async_backup_external.py
async def get_appliance_sizing_recommendation(
    self,
    workloads: "capo_backup_external.types.sizing_workload_list.SizingWorkloadList",
    projection_years: int,
    node_type: "capo_backup_external.types.sizing_node_type.SizingNodeType",
    *,
    config_overrides: Optional[AsyncBackupExternalClientConfig] = None,
    node_fault_tolerance: Optional[int] = None,
) -> "capo_backup_external.types.get_appliance_sizing_recommendation_output.GetApplianceSizingRecommendationOutput":
    """Returns appliance sizing recommendations for the specified workloads and projection period.

    Args:
        workloads: The workloads for which to calculate appliance sizing recommendations.
        projection_years: The number of years for which to calculate appliance sizing projections.
        node_fault_tolerance: The number of node failures that the appliance can tolerate.
        node_type: The type of appliance node to use in the sizing calculation.

    Raises:
        capo_backup_external.errors.access_denied_exception.AccessDeniedException: The request was denied because you do not have permission to perform the requested operation.
        capo_backup_external.errors.conflict_exception.ConflictException: The request conflicts with the current state of the specified resource.
        capo_backup_external.errors.internal_server_exception.InternalServerException: The request failed because of an internal server error.
        capo_backup_external.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource was not found.
        capo_backup_external.errors.throttling_exception.ThrottlingException: The request was denied because the request rate is too high.
        capo_backup_external.errors.validation_exception.ValidationException: The request contains invalid parameters.
        capo_backup_external.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_backup_external.types.get_appliance_sizing_recommendation_input.GetApplianceSizingRecommendationInput]",
    ) -> AsyncOperationResponse[
        "capo_backup_external.types.get_appliance_sizing_recommendation_output.GetApplianceSizingRecommendationOutput"
    ]:
        import capo_backup_external._operations.backup_external.get_appliance_sizing_recommendation

        (
            output,
            http_response,
        ) = await capo_backup_external._operations.backup_external.get_appliance_sizing_recommendation.async_get_appliance_sizing_recommendation(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetApplianceSizingRecommendation")
    )
    input_: capo_backup_external.types.get_appliance_sizing_recommendation_input.GetApplianceSizingRecommendationInput = {
        "workloads": workloads,
        "projection_years": projection_years,
        "node_type": node_type,
    }
    if node_fault_tolerance is not None:
        input_["node_fault_tolerance"] = node_fault_tolerance

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