Class representing the Policies resource. This class provides methods to interact with ML Gateway policies.

Hierarchy

  • GatewayResource
    • Policies

Constructors

Properties

Methods

Constructors

Properties

Client instance for API calls.

Memberof

GatewayResource

Methods

  • Get Policy's details by id.

    Retrieves the details of a specific policy.

    Parameters

    Returns Promise<TenantPolicy>

    Resolves with the response from the server.

    Throws

    If validation fails, policy with provided id is not listed or an error occurs during the request.

  • List all policies.

    Parameters

    Returns Promise<TenantPolicy[]>

    Resolves with the list of policies.

    Throws

    If validation fails or an error occurs during the request.