Constructor for GatewayResource.
The API client instance.
GatewayResource
Protected
clientClient instance for API calls.
GatewayResource
The parameters to send to the service.
Resolves with the response from the server.
If validation fails or an error occurs during the request.
Delete Provider.
Deletes the specified provider.
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 available models' details.
Get all models available for the specified provider.
The parameters to send to the service.
Resolves with the list of available models' details.
If validation fails or an error occurs during the request.
Get Provider's details by id.
Retrieves the details of a specific provider.
The parameters to send to the service.
Resolves with the response from the server.
If validation fails or an error occurs during the request.
List all providers or a specific provider by ID.
Optional
params: ListProvidersParams = {}Parameters for listing providers or getting a specific provider.
Resolves with the list of providers or a single provider.
If validation fails or an error occurs during the request.
List available models for a provider.
Parameters for listing available models.
Resolves with the list of available models.
If validation fails or an error occurs during the request.
Update provider
Updates an existing provider.
The parameters to send to the service.
Resolves with the response from the server.
If validation fails or an error occurs during the request.
Class representing the Providers resource. This class provides methods to interact with ML Gateway providers.