Constructor for GatewayResource.
The API client instance.
GatewayResource
Protected
clientClient instance for API calls.
GatewayResource
Create policy.
Creates policy with provided params.
The parameters to send to the service.
If validation fails or an error occurs during the request.
Delete Policy.
Deletes the specified policy.
The parameters to send to the service.
Resolves with an empty object on success.
If validation fails or an error occurs during the request.
Get Policy's details by id.
Retrieves the details of a specific policy.
The parameters to send to the service.
Resolves with the response from the server.
If validation fails, policy with provided id is not listed or an error occurs during the request.
List all policies.
Parameters for listing policies.
Resolves with the list of policies.
If validation fails or an error occurs during the request.
Class representing the Policies resource. This class provides methods to interact with ML Gateway policies.