import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Samsara from "../../../index.js"; export declare namespace GatewaysClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class GatewaysClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: GatewaysClient.Options); /** * List all gateways * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Gateways** under the Setup & Administration category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GetGatewaysRequest} request * @param {GatewaysClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.gateways.getGateways() */ getGateways(request?: Samsara.GetGatewaysRequest, requestOptions?: GatewaysClient.RequestOptions): core.HttpResponsePromise; private __getGateways; /** * Activate a new gateway. To activate a device and associate it with your organization, enter its serial number. Each device's serial number can also be found on its label or packaging, or from your order confirmation email. A Not Found error could mean that the serial was not found or it has already been activated * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GatewaysPostGatewayRequestBody} request * @param {GatewaysClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.gateways.postGateway({ * serial: "GFRV-43N-VGX" * }) */ postGateway(request: Samsara.GatewaysPostGatewayRequestBody, requestOptions?: GatewaysClient.RequestOptions): core.HttpResponsePromise; private __postGateway; /** * Deactivate a gateway * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.DeleteGatewayRequest} request * @param {GatewaysClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.gateways.deleteGateway({ * id: "id" * }) */ deleteGateway(request: Samsara.DeleteGatewayRequest, requestOptions?: GatewaysClient.RequestOptions): core.HttpResponsePromise; private __deleteGateway; }