Skip to content

list_sol_function_packages async

list_sol_function_packages(
    *,
    config_overrides: Optional[AsynctnbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListSolFunctionPackagesOutput

Lists information about function packages.

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

Parameters:

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

    The maximum number of results to include in the response.

  • next_token (Optional[PaginationToken], default: None ) –

    The token for the next page of results.

Raises:

Examples:

List information about multiple function packages without PaginationToken

>>> await client.list_sol_function_packages(max_results=25, next_token='')
List information about multiple function packages with PaginationToken
>>> await client.list_sol_function_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF99a8GNI6yAHxXIvgBkdiA2ixKvqdhYpNBLWHDl6vGnWt7Y4CB6m1Dkz86gSwcDouMO1pSrN%2BlGY2kbNtfTeMgnuB6bmwP/UU12r7MkHQyPCWMYG8OuCXkDBOYeX8qjRDTJ5vxAyrwtynaB6XDNDZA2DscCjcD7kpNzf3xlPRCwd6')
No more function packages to return
>>> await client.list_sol_function_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF98uvZTosFhZ1wyglENkc3UZ12UuRLmtGtojRynFjRR5zW%2FycBL6QX8AU%2B1IRWL%2BVjNNL7KBiaD87KM9WcUMQzryLtOazGHexujJncJJ0YGsxSLSrmPGx7dM1EoNKX8oxYA%3D%3D')
Source code in docs_src/capo_tnb/_services/async_tnb.py
async def list_sol_function_packages(
    self,
    *,
    config_overrides: Optional[AsynctnbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_tnb.types.pagination_token.PaginationToken"] = None,
) -> (
    "capo_tnb.types.list_sol_function_packages_output.ListSolFunctionPackagesOutput"
):
    """<p>Lists information about function packages.</p> <p>A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.</p>

    Args:
        max_results: <p>The maximum number of results to include in the response.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_tnb.errors.access_denied_exception.AccessDeniedException: <p>Insufficient permissions to make request.</p>
        capo_tnb.errors.internal_server_exception.InternalServerException: <p>Unexpected error occurred. Problem on the server.</p>
        capo_tnb.errors.throttling_exception.ThrottlingException: <p>Exception caused by throttling.</p>
        capo_tnb.errors.validation_exception.ValidationException: <p>Unable to process the request because the client provided input failed to satisfy request constraints.</p>
        capo_tnb.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        List information about multiple function packages without PaginationToken

        >>> await client.list_sol_function_packages(max_results=25, next_token='')
        List information about multiple function packages with PaginationToken

        >>> await client.list_sol_function_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF99a8GNI6yAHxXIvgBkdiA2ixKvqdhYpNBLWHDl6vGnWt7Y4CB6m1Dkz86gSwcDouMO1pSrN%2BlGY2kbNtfTeMgnuB6bmwP/UU12r7MkHQyPCWMYG8OuCXkDBOYeX8qjRDTJ5vxAyrwtynaB6XDNDZA2DscCjcD7kpNzf3xlPRCwd6')
        No more function packages to return

        >>> await client.list_sol_function_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF98uvZTosFhZ1wyglENkc3UZ12UuRLmtGtojRynFjRR5zW%2FycBL6QX8AU%2B1IRWL%2BVjNNL7KBiaD87KM9WcUMQzryLtOazGHexujJncJJ0YGsxSLSrmPGx7dM1EoNKX8oxYA%3D%3D')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_tnb.types.list_sol_function_packages_input.ListSolFunctionPackagesInput]",
    ) -> AsyncOperationResponse[
        "capo_tnb.types.list_sol_function_packages_output.ListSolFunctionPackagesOutput"
    ]:
        import capo_tnb._operations.tnb.list_sol_function_packages

        (
            output,
            http_response,
        ) = await capo_tnb._operations.tnb.list_sol_function_packages.async_list_sol_function_packages(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSolFunctionPackages")
    )
    input_: capo_tnb.types.list_sol_function_packages_input.ListSolFunctionPackagesInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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