diff --git a/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js new file mode 100644 index 0000000000..a0fcd3d36d --- /dev/null +++ b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js @@ -0,0 +1,129 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters supplied to the create or update configuration operation. + * + */ +class DscConfigurationUpdateParameters { + /** + * Create a DscConfigurationUpdateParameters. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {object} source Gets or sets the source. + * @member {object} [source.hash] Gets or sets the hash. + * @member {string} [source.hash.algorithm] Gets or sets the content hash + * algorithm used to hash the content. + * @member {string} [source.hash.value] Gets or sets expected hash value of + * the content. + * @member {string} [source.type] Gets or sets the content source type. + * Possible values include: 'embeddedContent', 'uri' + * @member {string} [source.value] Gets or sets the value of the content. + * This is based on the content source type. + * @member {string} [source.version] Gets or sets the version of the content. + * @member {object} [parameters] Gets or sets the configuration parameters. + * @member {string} [description] Gets or sets the description of the + * configuration. + * @member {string} [name] Gets or sets name of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ + constructor() { + } + + /** + * Defines the metadata of DscConfigurationUpdateParameters + * + * @returns {object} metadata of DscConfigurationUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'DscConfigurationUpdateParameters', + type: { + name: 'Composite', + className: 'DscConfigurationUpdateParameters', + modelProperties: { + logVerbose: { + required: false, + serializedName: 'properties.logVerbose', + type: { + name: 'Boolean' + } + }, + logProgress: { + required: false, + serializedName: 'properties.logProgress', + type: { + name: 'Boolean' + } + }, + source: { + required: true, + serializedName: 'properties.source', + type: { + name: 'Composite', + className: 'ContentSource' + } + }, + parameters: { + required: false, + serializedName: 'properties.parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'DscConfigurationParameterElementType', + type: { + name: 'Composite', + className: 'DscConfigurationParameter' + } + } + } + }, + description: { + required: false, + serializedName: 'properties.description', + type: { + name: 'String' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = DscConfigurationUpdateParameters; diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 040e144b4d..7342540045 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -1170,6 +1170,41 @@ export interface DscConfigurationCreateOrUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the DscConfigurationUpdateParameters class. + * @constructor + * The parameters supplied to the create or update configuration operation. + * + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {object} source Gets or sets the source. + * @member {object} [source.hash] Gets or sets the hash. + * @member {string} [source.hash.algorithm] Gets or sets the content hash + * algorithm used to hash the content. + * @member {string} [source.hash.value] Gets or sets expected hash value of the + * content. + * @member {string} [source.type] Gets or sets the content source type. + * Possible values include: 'embeddedContent', 'uri' + * @member {string} [source.value] Gets or sets the value of the content. This + * is based on the content source type. + * @member {string} [source.version] Gets or sets the version of the content. + * @member {object} [parameters] Gets or sets the configuration parameters. + * @member {string} [description] Gets or sets the description of the + * configuration. + * @member {string} [name] Gets or sets name of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface DscConfigurationUpdateParameters { + logVerbose?: boolean; + logProgress?: boolean; + source: ContentSource; + parameters?: { [propertyName: string]: DscConfigurationParameter }; + description?: string; + name?: string; + tags?: { [propertyName: string]: string }; +} + /** * @class * Initializes a new instance of the DscMetaConfiguration class. diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 9f35001d96..81ef88af18 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -67,6 +67,7 @@ exports.JobProvisioningStateProperty = require('./jobProvisioningStateProperty') exports.ProxyResource = require('./proxyResource'); exports.DscCompilationJob = require('./dscCompilationJob'); exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters'); +exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters'); exports.DscMetaConfiguration = require('./dscMetaConfiguration'); exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters'); exports.DscNodeConfigurationAssociationProperty = require('./dscNodeConfigurationAssociationProperty'); diff --git a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index c80ee3ac53..f52098bed5 100644 --- a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js @@ -533,6 +533,215 @@ function _createOrUpdate(automationAccountName, configurationName, parameters, o }); } +/** + * Create the configuration identified by configuration name. + * + * @param {string} automationAccountName The automation account name. + * + * @param {string} configurationName The create or update parameters for + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] The create or update parameters for + * configuration. + * + * @param {boolean} [options.parameters.logVerbose] Gets or sets verbose log + * option. + * + * @param {boolean} [options.parameters.logProgress] Gets or sets progress log + * option. + * + * @param {object} options.parameters.source Gets or sets the source. + * + * @param {object} [options.parameters.source.hash] Gets or sets the hash. + * + * @param {string} options.parameters.source.hash.algorithm Gets or sets the + * content hash algorithm used to hash the content. + * + * @param {string} options.parameters.source.hash.value Gets or sets expected + * hash value of the content. + * + * @param {string} [options.parameters.source.type] Gets or sets the content + * source type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [options.parameters.source.value] Gets or sets the value of + * the content. This is based on the content source type. + * + * @param {string} [options.parameters.source.version] Gets or sets the version + * of the content. + * + * @param {object} [options.parameters.parameters] Gets or sets the + * configuration parameters. + * + * @param {string} [options.parameters.description] Gets or sets the + * description of the configuration. + * + * @param {string} [options.parameters.name] Gets or sets name of the resource. + * + * @param {object} [options.parameters.tags] Gets or sets the tags attached to + * the resource. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DscConfiguration} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _update(automationAccountName, configurationName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; + let apiVersion = '2015-10-31'; + // Validate + try { + if (this.client.resourceGroupName === null || this.client.resourceGroupName === undefined || typeof this.client.resourceGroupName.valueOf() !== 'string') { + throw new Error('this.client.resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (this.client.resourceGroupName !== null && this.client.resourceGroupName !== undefined) { + if (this.client.resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"this.client.resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); + } + } + if (automationAccountName === null || automationAccountName === undefined || typeof automationAccountName.valueOf() !== 'string') { + throw new Error('automationAccountName cannot be null or undefined and it must be of type string.'); + } + if (configurationName === null || configurationName === undefined || typeof configurationName.valueOf() !== 'string') { + throw new Error('configurationName cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(this.client.resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{configurationName}', encodeURIComponent(configurationName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PATCH'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['DscConfigurationUpdateParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['DscConfiguration']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Retrieve the configuration script identified by configuration name. * @@ -981,6 +1190,7 @@ class DscConfigurationOperations { this._deleteMethod = _deleteMethod; this._get = _get; this._createOrUpdate = _createOrUpdate; + this._update = _update; this._getContent = _getContent; this._listByAutomationAccount = _listByAutomationAccount; this._listByAutomationAccountNext = _listByAutomationAccountNext; @@ -1325,6 +1535,172 @@ class DscConfigurationOperations { } } + /** + * Create the configuration identified by configuration name. + * + * @param {string} automationAccountName The automation account name. + * + * @param {string} configurationName The create or update parameters for + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] The create or update parameters for + * configuration. + * + * @param {boolean} [options.parameters.logVerbose] Gets or sets verbose log + * option. + * + * @param {boolean} [options.parameters.logProgress] Gets or sets progress log + * option. + * + * @param {object} options.parameters.source Gets or sets the source. + * + * @param {object} [options.parameters.source.hash] Gets or sets the hash. + * + * @param {string} options.parameters.source.hash.algorithm Gets or sets the + * content hash algorithm used to hash the content. + * + * @param {string} options.parameters.source.hash.value Gets or sets expected + * hash value of the content. + * + * @param {string} [options.parameters.source.type] Gets or sets the content + * source type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [options.parameters.source.value] Gets or sets the value of + * the content. This is based on the content source type. + * + * @param {string} [options.parameters.source.version] Gets or sets the version + * of the content. + * + * @param {object} [options.parameters.parameters] Gets or sets the + * configuration parameters. + * + * @param {string} [options.parameters.description] Gets or sets the + * description of the configuration. + * + * @param {string} [options.parameters.name] Gets or sets name of the resource. + * + * @param {object} [options.parameters.tags] Gets or sets the tags attached to + * the resource. + * + * @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} - The error object. + */ + updateWithHttpOperationResponse(automationAccountName, configurationName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(automationAccountName, configurationName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Create the configuration identified by configuration name. + * + * @param {string} automationAccountName The automation account name. + * + * @param {string} configurationName The create or update parameters for + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] The create or update parameters for + * configuration. + * + * @param {boolean} [options.parameters.logVerbose] Gets or sets verbose log + * option. + * + * @param {boolean} [options.parameters.logProgress] Gets or sets progress log + * option. + * + * @param {object} options.parameters.source Gets or sets the source. + * + * @param {object} [options.parameters.source.hash] Gets or sets the hash. + * + * @param {string} options.parameters.source.hash.algorithm Gets or sets the + * content hash algorithm used to hash the content. + * + * @param {string} options.parameters.source.hash.value Gets or sets expected + * hash value of the content. + * + * @param {string} [options.parameters.source.type] Gets or sets the content + * source type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [options.parameters.source.value] Gets or sets the value of + * the content. This is based on the content source type. + * + * @param {string} [options.parameters.source.version] Gets or sets the version + * of the content. + * + * @param {object} [options.parameters.parameters] Gets or sets the + * configuration parameters. + * + * @param {string} [options.parameters.description] Gets or sets the + * description of the configuration. + * + * @param {string} [options.parameters.name] Gets or sets name of the resource. + * + * @param {object} [options.parameters.tags] Gets or sets the tags attached to + * the resource. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {DscConfiguration} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DscConfiguration} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + update(automationAccountName, configurationName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._update(automationAccountName, configurationName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(automationAccountName, configurationName, options, optionalCallback); + } + } + /** * Retrieve the configuration script identified by configuration name. * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 2041f688c2..a8a7ee50ae 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -3025,6 +3025,145 @@ export interface DscConfigurationOperations { createOrUpdate(automationAccountName: string, configurationName: string, parameters: models.DscConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Create the configuration identified by configuration name. + * + * @param {string} automationAccountName The automation account name. + * + * @param {string} configurationName The create or update parameters for + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] The create or update parameters for + * configuration. + * + * @param {boolean} [options.parameters.logVerbose] Gets or sets verbose log + * option. + * + * @param {boolean} [options.parameters.logProgress] Gets or sets progress log + * option. + * + * @param {object} options.parameters.source Gets or sets the source. + * + * @param {object} [options.parameters.source.hash] Gets or sets the hash. + * + * @param {string} options.parameters.source.hash.algorithm Gets or sets the + * content hash algorithm used to hash the content. + * + * @param {string} options.parameters.source.hash.value Gets or sets expected + * hash value of the content. + * + * @param {string} [options.parameters.source.type] Gets or sets the content + * source type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [options.parameters.source.value] Gets or sets the value of + * the content. This is based on the content source type. + * + * @param {string} [options.parameters.source.version] Gets or sets the version + * of the content. + * + * @param {object} [options.parameters.parameters] Gets or sets the + * configuration parameters. + * + * @param {string} [options.parameters.description] Gets or sets the + * description of the configuration. + * + * @param {string} [options.parameters.name] Gets or sets name of the resource. + * + * @param {object} [options.parameters.tags] Gets or sets the tags attached to + * the resource. + * + * @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. + */ + updateWithHttpOperationResponse(automationAccountName: string, configurationName: string, options?: { parameters? : models.DscConfigurationUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create the configuration identified by configuration name. + * + * @param {string} automationAccountName The automation account name. + * + * @param {string} configurationName The create or update parameters for + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.parameters] The create or update parameters for + * configuration. + * + * @param {boolean} [options.parameters.logVerbose] Gets or sets verbose log + * option. + * + * @param {boolean} [options.parameters.logProgress] Gets or sets progress log + * option. + * + * @param {object} options.parameters.source Gets or sets the source. + * + * @param {object} [options.parameters.source.hash] Gets or sets the hash. + * + * @param {string} options.parameters.source.hash.algorithm Gets or sets the + * content hash algorithm used to hash the content. + * + * @param {string} options.parameters.source.hash.value Gets or sets expected + * hash value of the content. + * + * @param {string} [options.parameters.source.type] Gets or sets the content + * source type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [options.parameters.source.value] Gets or sets the value of + * the content. This is based on the content source type. + * + * @param {string} [options.parameters.source.version] Gets or sets the version + * of the content. + * + * @param {object} [options.parameters.parameters] Gets or sets the + * configuration parameters. + * + * @param {string} [options.parameters.description] Gets or sets the + * description of the configuration. + * + * @param {string} [options.parameters.name] Gets or sets name of the resource. + * + * @param {object} [options.parameters.tags] Gets or sets the tags attached to + * the resource. + * + * @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 {DscConfiguration} - 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. + * + * {DscConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link DscConfiguration} 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. + */ + update(automationAccountName: string, configurationName: string, options?: { parameters? : models.DscConfigurationUpdateParameters, customHeaders? : { [headerName: string]: string; } }): Promise; + update(automationAccountName: string, configurationName: string, callback: ServiceCallback): void; + update(automationAccountName: string, configurationName: string, options: { parameters? : models.DscConfigurationUpdateParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Retrieve the configuration script identified by configuration name. *