import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import { IotHubGatewayServiceAPIsContext } from "../iotHubGatewayServiceAPIsContext"; /** Class representing a ConfigurationOperations. */ export declare class ConfigurationOperations { private readonly client; /** * Create a ConfigurationOperations. * @param {IotHubGatewayServiceAPIsContext} client Reference to the service client. */ constructor(client: IotHubGatewayServiceAPIsContext); /** * Gets a configuration on the IoT Hub for automatic device/module management. * @param id The unique identifier of the configuration. * @param [options] The optional parameters * @returns Promise */ get(id: string, options?: msRest.RequestOptionsBase): Promise; /** * @param id The unique identifier of the configuration. * @param callback The callback */ get(id: string, callback: msRest.ServiceCallback): void; /** * @param id The unique identifier of the configuration. * @param options The optional parameters * @param callback The callback */ get(id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Creates or updates a configuration on the IoT Hub for automatic device/module management. * Configuration identifier and Content cannot be updated. * @param id The unique identifier of the configuration. * @param configuration The configuration to be created or updated. * @param [options] The optional parameters * @returns Promise */ createOrUpdate(id: string, configuration: Models.Configuration, options?: Models.ConfigurationCreateOrUpdateOptionalParams): Promise; /** * @param id The unique identifier of the configuration. * @param configuration The configuration to be created or updated. * @param callback The callback */ createOrUpdate(id: string, configuration: Models.Configuration, callback: msRest.ServiceCallback): void; /** * @param id The unique identifier of the configuration. * @param configuration The configuration to be created or updated. * @param options The optional parameters * @param callback The callback */ createOrUpdate(id: string, configuration: Models.Configuration, options: Models.ConfigurationCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; /** * Deletes a configuration on the IoT Hub for automatic device/module management. * @param id The unique identifier of the configuration. * @param [options] The optional parameters * @returns Promise */ deleteMethod(id: string, options?: Models.ConfigurationDeleteMethodOptionalParams): Promise; /** * @param id The unique identifier of the configuration. * @param callback The callback */ deleteMethod(id: string, callback: msRest.ServiceCallback): void; /** * @param id The unique identifier of the configuration. * @param options The optional parameters * @param callback The callback */ deleteMethod(id: string, options: Models.ConfigurationDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; /** * Gets configurations on the IoT Hub for automatic device/module management. Pagination is not * supported. * @param [options] The optional parameters * @returns Promise */ getConfigurations(options?: Models.ConfigurationGetConfigurationsOptionalParams): Promise; /** * @param callback The callback */ getConfigurations(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ getConfigurations(options: Models.ConfigurationGetConfigurationsOptionalParams, callback: msRest.ServiceCallback): void; /** * Validates target condition and custom metric queries for a configuration on the IoT Hub. * @param input The configuration for target condition and custom metric queries. * @param [options] The optional parameters * @returns Promise */ testQueries(input: Models.ConfigurationQueriesTestInput, options?: msRest.RequestOptionsBase): Promise; /** * @param input The configuration for target condition and custom metric queries. * @param callback The callback */ testQueries(input: Models.ConfigurationQueriesTestInput, callback: msRest.ServiceCallback): void; /** * @param input The configuration for target condition and custom metric queries. * @param options The optional parameters * @param callback The callback */ testQueries(input: Models.ConfigurationQueriesTestInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Applies the configuration content to an edge device. * @param id The unique identifier of the edge device. * @param content The configuration content. * @param [options] The optional parameters * @returns Promise */ applyOnEdgeDevice(id: string, content: Models.ConfigurationContent, options?: msRest.RequestOptionsBase): Promise; /** * @param id The unique identifier of the edge device. * @param content The configuration content. * @param callback The callback */ applyOnEdgeDevice(id: string, content: Models.ConfigurationContent, callback: msRest.ServiceCallback): void; /** * @param id The unique identifier of the edge device. * @param content The configuration content. * @param options The optional parameters * @param callback The callback */ applyOnEdgeDevice(id: string, content: Models.ConfigurationContent, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; }