@azure/arm-automation
Version:
AutomationClient Library with typescript type definitions for node.js and browser.
96 lines • 3.75 kB
JavaScript
/*
* 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 * as msRest from "@azure/ms-rest-js";
import * as Mappers from "../models/softwareUpdateConfigurationMachineRunsMappers";
import * as Parameters from "../models/parameters";
/** Class representing a SoftwareUpdateConfigurationMachineRuns. */
var SoftwareUpdateConfigurationMachineRuns = /** @class */ (function () {
/**
* Create a SoftwareUpdateConfigurationMachineRuns.
* @param {AutomationClientContext} client Reference to the service client.
*/
function SoftwareUpdateConfigurationMachineRuns(client) {
this.client = client;
}
SoftwareUpdateConfigurationMachineRuns.prototype.getById = function (resourceGroupName, automationAccountName, softwareUpdateConfigurationMachineRunId, options, callback) {
return this.client.sendOperationRequest({
resourceGroupName: resourceGroupName,
automationAccountName: automationAccountName,
softwareUpdateConfigurationMachineRunId: softwareUpdateConfigurationMachineRunId,
options: options
}, getByIdOperationSpec, callback);
};
SoftwareUpdateConfigurationMachineRuns.prototype.list = function (resourceGroupName, automationAccountName, options, callback) {
return this.client.sendOperationRequest({
resourceGroupName: resourceGroupName,
automationAccountName: automationAccountName,
options: options
}, listOperationSpec, callback);
};
return SoftwareUpdateConfigurationMachineRuns;
}());
export { SoftwareUpdateConfigurationMachineRuns };
// Operation Specifications
var serializer = new msRest.Serializer(Mappers);
var getByIdOperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.automationAccountName,
Parameters.softwareUpdateConfigurationMachineRunId
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.clientRequestId,
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRun
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer: serializer
};
var listOperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.automationAccountName
],
queryParameters: [
Parameters.apiVersion1,
Parameters.filter,
Parameters.skip1,
Parameters.top1
],
headerParameters: [
Parameters.clientRequestId,
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRunListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer: serializer
};
//# sourceMappingURL=softwareUpdateConfigurationMachineRuns.js.map