UNPKG

@azure/arm-automation

Version:

AutomationClient Library with typescript type definitions for node.js and browser.

188 lines 7.06 kB
/* * 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 { __assign } from "tslib"; import * as msRest from "@azure/ms-rest-js"; import * as Mappers from "../models/hybridRunbookWorkerGroupOperationsMappers"; import * as Parameters from "../models/parameters"; /** Class representing a HybridRunbookWorkerGroupOperations. */ var HybridRunbookWorkerGroupOperations = /** @class */ (function () { /** * Create a HybridRunbookWorkerGroupOperations. * @param {AutomationClientContext} client Reference to the service client. */ function HybridRunbookWorkerGroupOperations(client) { this.client = client; } HybridRunbookWorkerGroupOperations.prototype.deleteMethod = function (resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, options, callback) { return this.client.sendOperationRequest({ resourceGroupName: resourceGroupName, automationAccountName: automationAccountName, hybridRunbookWorkerGroupName: hybridRunbookWorkerGroupName, options: options }, deleteMethodOperationSpec, callback); }; HybridRunbookWorkerGroupOperations.prototype.get = function (resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, options, callback) { return this.client.sendOperationRequest({ resourceGroupName: resourceGroupName, automationAccountName: automationAccountName, hybridRunbookWorkerGroupName: hybridRunbookWorkerGroupName, options: options }, getOperationSpec, callback); }; HybridRunbookWorkerGroupOperations.prototype.update = function (resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters, options, callback) { return this.client.sendOperationRequest({ resourceGroupName: resourceGroupName, automationAccountName: automationAccountName, hybridRunbookWorkerGroupName: hybridRunbookWorkerGroupName, parameters: parameters, options: options }, updateOperationSpec, callback); }; HybridRunbookWorkerGroupOperations.prototype.listByAutomationAccount = function (resourceGroupName, automationAccountName, options, callback) { return this.client.sendOperationRequest({ resourceGroupName: resourceGroupName, automationAccountName: automationAccountName, options: options }, listByAutomationAccountOperationSpec, callback); }; HybridRunbookWorkerGroupOperations.prototype.listByAutomationAccountNext = function (nextPageLink, options, callback) { return this.client.sendOperationRequest({ nextPageLink: nextPageLink, options: options }, listByAutomationAccountNextOperationSpec, callback); }; return HybridRunbookWorkerGroupOperations; }()); export { HybridRunbookWorkerGroupOperations }; // Operation Specifications var serializer = new msRest.Serializer(Mappers); var deleteMethodOperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", urlParameters: [ Parameters.resourceGroupName, Parameters.automationAccountName, Parameters.hybridRunbookWorkerGroupName, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: {}, default: { bodyMapper: Mappers.ErrorResponse } }, serializer: serializer }; var getOperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", urlParameters: [ Parameters.resourceGroupName, Parameters.automationAccountName, Parameters.hybridRunbookWorkerGroupName, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { bodyMapper: Mappers.HybridRunbookWorkerGroup }, default: { bodyMapper: Mappers.ErrorResponse } }, serializer: serializer }; var updateOperationSpec = { httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", urlParameters: [ Parameters.resourceGroupName, Parameters.automationAccountName, Parameters.hybridRunbookWorkerGroupName, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], requestBody: { parameterPath: "parameters", mapper: __assign(__assign({}, Mappers.HybridRunbookWorkerGroupUpdateParameters), { required: true }) }, responses: { 200: { bodyMapper: Mappers.HybridRunbookWorkerGroup }, default: { bodyMapper: Mappers.ErrorResponse } }, serializer: serializer }; var listByAutomationAccountOperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", urlParameters: [ Parameters.resourceGroupName, Parameters.automationAccountName, Parameters.subscriptionId ], queryParameters: [ Parameters.filter, Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, serializer: serializer }; var listByAutomationAccountNextOperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, serializer: serializer }; //# sourceMappingURL=hybridRunbookWorkerGroupOperations.js.map