/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Solutions * __NOTE__: An instance of this class is automatically created for an * instance of the OperationsManagementClient. */ export interface Solutions { /** * @summary Create/Update Solution. * * Creates or updates the Solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.plan] Plan for solution object supported by the * OperationsManagement resource provider. * * @param {string} [parameters.plan.name] name of the solution to be created. * For Microsoft published solution it should be in the format of * solutionType(workspaceName). SolutionType part is case sensitive. For third * party solution, it can be anything. * * @param {string} [parameters.plan.publisher] Publisher name. For gallery * solution, it is Microsoft. * * @param {string} [parameters.plan.promotionCode] promotionCode, Not really * used now, can you left as empty * * @param {string} [parameters.plan.product] name of the solution to * enabled/add. For Microsoft published gallery solution it should be in the * format of OMSGallery/. This is case sensitive * * @param {object} [parameters.properties] Properties for solution object * supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.workspaceResourceId The azure * resourceId for the workspace where the solution will be deployed/enabled. * * @param {array} [parameters.properties.containedResources] The azure * resources that will be contained within the solutions. They will be locked * and gets deleted automatically when the solution is deleted. * * @param {array} [parameters.properties.referencedResources] The resources * that will be referenced from this solution. Deleting any of those solution * out of band will break the solution. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, solutionName: string, parameters: models.Solution, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create/Update Solution. * * Creates or updates the Solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.plan] Plan for solution object supported by the * OperationsManagement resource provider. * * @param {string} [parameters.plan.name] name of the solution to be created. * For Microsoft published solution it should be in the format of * solutionType(workspaceName). SolutionType part is case sensitive. For third * party solution, it can be anything. * * @param {string} [parameters.plan.publisher] Publisher name. For gallery * solution, it is Microsoft. * * @param {string} [parameters.plan.promotionCode] promotionCode, Not really * used now, can you left as empty * * @param {string} [parameters.plan.product] name of the solution to * enabled/add. For Microsoft published gallery solution it should be in the * format of OMSGallery/. This is case sensitive * * @param {object} [parameters.properties] Properties for solution object * supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.workspaceResourceId The azure * resourceId for the workspace where the solution will be deployed/enabled. * * @param {array} [parameters.properties.containedResources] The azure * resources that will be contained within the solutions. They will be locked * and gets deleted automatically when the solution is deleted. * * @param {array} [parameters.properties.referencedResources] The resources * that will be referenced from this solution. Deleting any of those solution * out of band will break the solution. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Solution} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Solution} [result] - The deserialized result object if an error did not occur. * See {@link Solution} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Deletes the solution * * Deletes the solution in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Deletes the solution * * Deletes the solution in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, solutionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, solutionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Retrieve solution. * * Retrieves the user solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieve solution. * * Retrieves the user solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Solution} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Solution} [result] - The deserialized result object if an error did not occur. * See {@link Solution} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, solutionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, solutionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Retrieves the solution list for the subscription * * Retrieves the solution list. It will retrieve both first party and third * party solutions * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieves the solution list for the subscription * * Retrieves the solution list. It will retrieve both first party and third * party solutions * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SolutionPropertiesList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SolutionPropertiesList} [result] - The deserialized result object if an error did not occur. * See {@link SolutionPropertiesList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Retrieves the solution list for the subscription * * Retrieves the solution list. It will retrieve both first party and third * party solutions * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieves the solution list for the subscription * * Retrieves the solution list. It will retrieve both first party and third * party solutions * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SolutionPropertiesList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SolutionPropertiesList} [result] - The deserialized result object if an error did not occur. * See {@link SolutionPropertiesList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscription(callback: ServiceCallback): void; listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Create/Update Solution. * * Creates or updates the Solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.plan] Plan for solution object supported by the * OperationsManagement resource provider. * * @param {string} [parameters.plan.name] name of the solution to be created. * For Microsoft published solution it should be in the format of * solutionType(workspaceName). SolutionType part is case sensitive. For third * party solution, it can be anything. * * @param {string} [parameters.plan.publisher] Publisher name. For gallery * solution, it is Microsoft. * * @param {string} [parameters.plan.promotionCode] promotionCode, Not really * used now, can you left as empty * * @param {string} [parameters.plan.product] name of the solution to * enabled/add. For Microsoft published gallery solution it should be in the * format of OMSGallery/. This is case sensitive * * @param {object} [parameters.properties] Properties for solution object * supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.workspaceResourceId The azure * resourceId for the workspace where the solution will be deployed/enabled. * * @param {array} [parameters.properties.containedResources] The azure * resources that will be contained within the solutions. They will be locked * and gets deleted automatically when the solution is deleted. * * @param {array} [parameters.properties.referencedResources] The resources * that will be referenced from this solution. Deleting any of those solution * out of band will break the solution. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, solutionName: string, parameters: models.Solution, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create/Update Solution. * * Creates or updates the Solution. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.plan] Plan for solution object supported by the * OperationsManagement resource provider. * * @param {string} [parameters.plan.name] name of the solution to be created. * For Microsoft published solution it should be in the format of * solutionType(workspaceName). SolutionType part is case sensitive. For third * party solution, it can be anything. * * @param {string} [parameters.plan.publisher] Publisher name. For gallery * solution, it is Microsoft. * * @param {string} [parameters.plan.promotionCode] promotionCode, Not really * used now, can you left as empty * * @param {string} [parameters.plan.product] name of the solution to * enabled/add. For Microsoft published gallery solution it should be in the * format of OMSGallery/. This is case sensitive * * @param {object} [parameters.properties] Properties for solution object * supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.workspaceResourceId The azure * resourceId for the workspace where the solution will be deployed/enabled. * * @param {array} [parameters.properties.containedResources] The azure * resources that will be contained within the solutions. They will be locked * and gets deleted automatically when the solution is deleted. * * @param {array} [parameters.properties.referencedResources] The resources * that will be referenced from this solution. Deleting any of those solution * out of band will break the solution. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Solution} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Solution} [result] - The deserialized result object if an error did not occur. * See {@link Solution} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, solutionName: string, parameters: models.Solution, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Deletes the solution * * Deletes the solution in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Deletes the solution * * Deletes the solution in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} solutionName User Solution Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, solutionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, solutionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, solutionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ManagementAssociations * __NOTE__: An instance of this class is automatically created for an * instance of the OperationsManagementClient. */ export interface ManagementAssociations { /** * @summary Retrieves the ManagementAssociatons list for the subscription * * Retrieves the ManagementAssociatons list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieves the ManagementAssociatons list for the subscription * * Retrieves the ManagementAssociatons list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementAssociationPropertiesList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementAssociationPropertiesList} [result] - The deserialized result object if an error did not occur. * See {@link ManagementAssociationPropertiesList} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscription(callback: ServiceCallback): void; listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Create/Update ManagementAssociation. * * Creates or updates the ManagementAssociation. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} parameters The parameters required to create * ManagementAssociation extension. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.properties] Properties for ManagementAssociation * object supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.applicationId The applicationId of the * appliance for this association. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managementAssociationName: string, parameters: models.ManagementAssociation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create/Update ManagementAssociation. * * Creates or updates the ManagementAssociation. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} parameters The parameters required to create * ManagementAssociation extension. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.properties] Properties for ManagementAssociation * object supported by the OperationsManagement resource provider. * * @param {string} parameters.properties.applicationId The applicationId of the * appliance for this association. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementAssociation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementAssociation} [result] - The deserialized result object if an error did not occur. * See {@link ManagementAssociation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, managementAssociationName: string, parameters: models.ManagementAssociation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, managementAssociationName: string, parameters: models.ManagementAssociation, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, managementAssociationName: string, parameters: models.ManagementAssociation, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Deletes the ManagementAssociation * * Deletes the ManagementAssociation in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, managementAssociationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Deletes the ManagementAssociation * * Deletes the ManagementAssociation in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, managementAssociationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, managementAssociationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, managementAssociationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Retrieve ManagementAssociation. * * Retrieves the user ManagementAssociation. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, managementAssociationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieve ManagementAssociation. * * Retrieves the user ManagementAssociation. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementAssociationName User ManagementAssociation Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementAssociation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementAssociation} [result] - The deserialized result object if an error did not occur. * See {@link ManagementAssociation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, managementAssociationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, managementAssociationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, managementAssociationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ManagementConfigurations * __NOTE__: An instance of this class is automatically created for an * instance of the OperationsManagementClient. */ export interface ManagementConfigurations { /** * @summary Retrieves the ManagementConfigurations list for the subscription * * Retrieves the ManagementConfigurations list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieves the ManagementConfigurations list for the subscription * * Retrieves the ManagementConfigurations list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementConfigurationPropertiesList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementConfigurationPropertiesList} [result] - The deserialized result object if an error did not occur. * See {@link ManagementConfigurationPropertiesList} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscription(callback: ServiceCallback): void; listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Create/Update ManagementConfiguration. * * Creates or updates the ManagementConfiguration. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.properties] Properties for * ManagementConfiguration object supported by the OperationsManagement * resource provider. * * @param {string} [parameters.properties.applicationId] The applicationId of * the appliance for this Management. * * @param {string} parameters.properties.parentResourceType The type of the * parent resource. * * @param {array} parameters.properties.parameters Parameters to run the ARM * template * * @param {object} parameters.properties.template The Json object containing * the ARM template to deploy * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, managementConfigurationName: string, parameters: models.ManagementConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Create/Update ManagementConfiguration. * * Creates or updates the ManagementConfiguration. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} parameters The parameters required to create OMS Solution. * * @param {string} [parameters.location] Resource location * * @param {object} [parameters.properties] Properties for * ManagementConfiguration object supported by the OperationsManagement * resource provider. * * @param {string} [parameters.properties.applicationId] The applicationId of * the appliance for this Management. * * @param {string} parameters.properties.parentResourceType The type of the * parent resource. * * @param {array} parameters.properties.parameters Parameters to run the ARM * template * * @param {object} parameters.properties.template The Json object containing * the ARM template to deploy * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link ManagementConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, managementConfigurationName: string, parameters: models.ManagementConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, managementConfigurationName: string, parameters: models.ManagementConfiguration, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, managementConfigurationName: string, parameters: models.ManagementConfiguration, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Deletes the ManagementConfiguration * * Deletes the ManagementConfiguration in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, managementConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Deletes the ManagementConfiguration * * Deletes the ManagementConfiguration in the subscription. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, managementConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, managementConfigurationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, managementConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * @summary Retrieve ManagementConfiguration. * * Retrieves the user ManagementConfiguration. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, managementConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Retrieve ManagementConfiguration. * * Retrieves the user ManagementConfiguration. * * @param {string} resourceGroupName The name of the resource group to get. The * name is case insensitive. * * @param {string} managementConfigurationName User Management Configuration * Name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ManagementConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ManagementConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link ManagementConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, managementConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, managementConfigurationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, managementConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the OperationsManagementClient. */ export interface Operations { /** * Lists all of the available OperationsManagement Rest API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the available OperationsManagement Rest API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; }