diff --git a/lib/services/automationManagement/LICENSE.txt b/lib/services/automationManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/automationManagement/LICENSE.txt +++ b/lib/services/automationManagement/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/services/automationManagement/README.md b/lib/services/automationManagement/README.md index c4ea79ad4c..46e72c3338 100644 --- a/lib/services/automationManagement/README.md +++ b/lib/services/automationManagement/README.md @@ -1,42 +1,42 @@ ---- -uid: azure-arm-automation -summary: *content - ---- -# Microsoft Azure SDK for Node.js - AutomationClient -This project provides a Node.js package for accessing Azure. Right now it supports: -- **Node.js version 6.x.x or higher** - -## Features - - -## How to Install - -```bash -npm install azure-arm-automation -``` - -## How to use - -### Authentication, client creation and get automationAccount as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const AutomationClient = require("azure-arm-automation"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new AutomationClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const automationAccountName = "testautomationAccountName"; - return client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error ocurred:'); - console.dir(err, {depth: null, colors: true}); -}); - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) +--- +uid: azure-arm-automation +summary: *content + +--- +# Microsoft Azure SDK for Node.js - AutomationClient +This project provides a Node.js package for accessing Azure. Right now it supports: +- **Node.js version 6.x.x or higher** + +## Features + + +## How to Install + +```bash +npm install azure-arm-automation +``` + +## How to use + +### Authentication, client creation and get automationAccount as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const AutomationClient = require("azure-arm-automation"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new AutomationClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const automationAccountName = "testautomationAccountName"; + return client.automationAccount.get(resourceGroupName, automationAccountName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.log('An error occurred:'); + console.dir(err, {depth: null, colors: true}); +}); + +## Related projects + +- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/automationManagement/lib/automationClient.d.ts b/lib/services/automationManagement/lib/automationClient.d.ts index 27ddad23f6..3265f771ee 100644 --- a/lib/services/automationManagement/lib/automationClient.d.ts +++ b/lib/services/automationManagement/lib/automationClient.d.ts @@ -23,6 +23,8 @@ export default class AutomationClient extends AzureServiceClient { * * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * + * @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration' + * * @param {string} [baseUri] - The base URI of the service. * * @param {object} [options] - The parameter options @@ -34,19 +36,21 @@ export default class AutomationClient extends AzureServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {string} [options.acceptLanguage] - The preferred language for the response. * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, countType1: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; subscriptionId: string; + countType1: string; + acceptLanguage: string; longRunningOperationRetryTimeout: number; @@ -78,11 +82,13 @@ export default class AutomationClient extends AzureServiceClient { scheduleOperations: operations.ScheduleOperations; variableOperations: operations.VariableOperations; webhookOperations: operations.WebhookOperations; + watcherOperations: operations.WatcherOperations; softwareUpdateConfigurations: operations.SoftwareUpdateConfigurations; softwareUpdateConfigurationRuns: operations.SoftwareUpdateConfigurationRuns; softwareUpdateConfigurationMachineRuns: operations.SoftwareUpdateConfigurationMachineRuns; sourceControlOperations: operations.SourceControlOperations; sourceControlSyncJobOperations: operations.SourceControlSyncJobOperations; + sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams; jobOperations: operations.JobOperations; jobStreamOperations: operations.JobStreamOperations; agentRegistrationInformation: operations.AgentRegistrationInformation; @@ -91,6 +97,7 @@ export default class AutomationClient extends AzureServiceClient { dscCompilationJobOperations: operations.DscCompilationJobOperations; dscCompilationJobStream: operations.DscCompilationJobStream; dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations; + nodeCountInformation: operations.NodeCountInformation; } export { AutomationClient, models as AutomationModels }; diff --git a/lib/services/automationManagement/lib/automationClient.js b/lib/services/automationManagement/lib/automationClient.js index 569bd56c6e..153d9356d3 100644 --- a/lib/services/automationManagement/lib/automationClient.js +++ b/lib/services/automationManagement/lib/automationClient.js @@ -28,23 +28,27 @@ class AutomationClient extends ServiceClient { * Create a AutomationClient. * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration' * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ - constructor(credentials, subscriptionId, baseUri, options) { + constructor(credentials, subscriptionId, countType1, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId === null || subscriptionId === undefined) { throw new Error('\'subscriptionId\' cannot be null.'); } + if (countType1 === null || countType1 === undefined) { + throw new Error('\'countType1\' cannot be null.'); + } if (!options) options = {}; @@ -59,6 +63,7 @@ class AutomationClient extends ServiceClient { } this.credentials = credentials; this.subscriptionId = subscriptionId; + this.countType1 = countType1; let packageInfo = this.getPackageJsonInfo(__dirname); this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); @@ -95,11 +100,13 @@ class AutomationClient extends ServiceClient { this.scheduleOperations = new operations.ScheduleOperations(this); this.variableOperations = new operations.VariableOperations(this); this.webhookOperations = new operations.WebhookOperations(this); + this.watcherOperations = new operations.WatcherOperations(this); this.softwareUpdateConfigurations = new operations.SoftwareUpdateConfigurations(this); this.softwareUpdateConfigurationRuns = new operations.SoftwareUpdateConfigurationRuns(this); this.softwareUpdateConfigurationMachineRuns = new operations.SoftwareUpdateConfigurationMachineRuns(this); this.sourceControlOperations = new operations.SourceControlOperations(this); this.sourceControlSyncJobOperations = new operations.SourceControlSyncJobOperations(this); + this.sourceControlSyncJobStreams = new operations.SourceControlSyncJobStreams(this); this.jobOperations = new operations.JobOperations(this); this.jobStreamOperations = new operations.JobStreamOperations(this); this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this); @@ -108,6 +115,7 @@ class AutomationClient extends ServiceClient { this.dscCompilationJobOperations = new operations.DscCompilationJobOperations(this); this.dscCompilationJobStream = new operations.DscCompilationJobStream(this); this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this); + this.nodeCountInformation = new operations.NodeCountInformation(this); this.models = models; msRest.addSerializationMixin(this); } diff --git a/lib/services/automationManagement/lib/models/activity.js b/lib/services/automationManagement/lib/models/activity.js index 414141b051..22d085cead 100644 --- a/lib/services/automationManagement/lib/models/activity.js +++ b/lib/services/automationManagement/lib/models/activity.js @@ -101,6 +101,7 @@ class Activity { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -108,6 +109,7 @@ class Activity { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/activityParameter.js b/lib/services/automationManagement/lib/models/activityParameter.js index 9938816f29..59a28437a5 100644 --- a/lib/services/automationManagement/lib/models/activityParameter.js +++ b/lib/services/automationManagement/lib/models/activityParameter.js @@ -10,6 +10,8 @@ 'use strict'; +const models = require('./index'); + /** * Definition of the activity parameter. * @@ -24,7 +26,7 @@ class ActivityParameter { * parameter is optional. * @member {boolean} [isDynamic] Gets or sets a Boolean value that indicates * true if the parameter is dynamic. - * @member {boolean} [position] Gets or sets the position of the activity + * @member {number} [position] Gets or sets the position of the activity * parameter. * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that * indicates true if the parameter can take values from the incoming pipeline @@ -41,6 +43,10 @@ class ActivityParameter { * remaining command-line arguments that are associated with this parameter * in the form of an array. false if the cmdlet parameter does not accept all * the remaining argument values. + * @member {string} [description] Gets or sets the description of the + * activity parameter. + * @member {array} [validationSet] Gets or sets the validation set of + * activity parameter. */ constructor() { } @@ -91,7 +97,7 @@ class ActivityParameter { required: false, serializedName: 'position', type: { - name: 'Boolean' + name: 'Number' } }, valueFromPipeline: { @@ -114,6 +120,28 @@ class ActivityParameter { type: { name: 'Boolean' } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + validationSet: { + required: false, + serializedName: 'validationSet', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityParameterValidationSetElementType', + type: { + name: 'Composite', + className: 'ActivityParameterValidationSet' + } + } + } } } } diff --git a/lib/services/automationManagement/lib/models/activityParameterValidationSet.js b/lib/services/automationManagement/lib/models/activityParameterValidationSet.js new file mode 100644 index 0000000000..d2a33fcf58 --- /dev/null +++ b/lib/services/automationManagement/lib/models/activityParameterValidationSet.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * Definition of the activity parameter validation set. + * + */ +class ActivityParameterValidationSet { + /** + * Create a ActivityParameterValidationSet. + * @member {string} [memberValue] Gets or sets the name of the activity + * parameter validation set member. + */ + constructor() { + } + + /** + * Defines the metadata of ActivityParameterValidationSet + * + * @returns {object} metadata of ActivityParameterValidationSet + * + */ + mapper() { + return { + required: false, + serializedName: 'ActivityParameterValidationSet', + type: { + name: 'Composite', + className: 'ActivityParameterValidationSet', + modelProperties: { + memberValue: { + required: false, + serializedName: 'memberValue', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ActivityParameterValidationSet; diff --git a/lib/services/automationManagement/lib/models/agentRegistrationRegenerateKeyParameter.js b/lib/services/automationManagement/lib/models/agentRegistrationRegenerateKeyParameter.js index 4c7e0e4f9c..d02751a8d0 100644 --- a/lib/services/automationManagement/lib/models/agentRegistrationRegenerateKeyParameter.js +++ b/lib/services/automationManagement/lib/models/agentRegistrationRegenerateKeyParameter.js @@ -19,9 +19,6 @@ class AgentRegistrationRegenerateKeyParameter { * Create a AgentRegistrationRegenerateKeyParameter. * @member {string} keyName Gets or sets the agent registration key name - * primary or secondary. Possible values include: 'primary', 'secondary' - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. */ constructor() { } @@ -46,34 +43,6 @@ class AgentRegistrationRegenerateKeyParameter { type: { name: 'String' } - }, - name: { - required: false, - serializedName: 'name', - type: { - name: 'String' - } - }, - location: { - required: false, - serializedName: 'location', - type: { - name: 'String' - } - }, - tags: { - required: false, - serializedName: 'tags', - type: { - name: 'Dictionary', - value: { - required: false, - serializedName: 'StringElementType', - type: { - name: 'String' - } - } - } } } } diff --git a/lib/services/automationManagement/lib/models/automationAccount.js b/lib/services/automationManagement/lib/models/automationAccount.js index 41d7d1ecf3..313d9375a5 100644 --- a/lib/services/automationManagement/lib/models/automationAccount.js +++ b/lib/services/automationManagement/lib/models/automationAccount.js @@ -121,6 +121,7 @@ class AutomationAccount extends models['TrackedResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -129,6 +130,7 @@ class AutomationAccount extends models['TrackedResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/certificate.js b/lib/services/automationManagement/lib/models/certificate.js index 040fb31a01..7f9a8e4b35 100644 --- a/lib/services/automationManagement/lib/models/certificate.js +++ b/lib/services/automationManagement/lib/models/certificate.js @@ -80,6 +80,7 @@ class Certificate extends models['ProxyResource'] { }, expiryTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.expiryTime', type: { @@ -88,6 +89,7 @@ class Certificate extends models['ProxyResource'] { }, isExportable: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.isExportable', type: { @@ -96,6 +98,7 @@ class Certificate extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -104,6 +107,7 @@ class Certificate extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/certificateCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/certificateCreateOrUpdateParameters.js index e3106d82f4..6a3253661e 100644 --- a/lib/services/automationManagement/lib/models/certificateCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/certificateCreateOrUpdateParameters.js @@ -75,6 +75,7 @@ class CertificateCreateOrUpdateParameters { }, isExportable: { required: false, + nullable: false, serializedName: 'properties.isExportable', type: { name: 'Boolean' diff --git a/lib/services/automationManagement/lib/models/connection.js b/lib/services/automationManagement/lib/models/connection.js index 3a41e356d4..2c9b489543 100644 --- a/lib/services/automationManagement/lib/models/connection.js +++ b/lib/services/automationManagement/lib/models/connection.js @@ -97,6 +97,7 @@ class Connection extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -105,6 +106,7 @@ class Connection extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/connectionType.js b/lib/services/automationManagement/lib/models/connectionType.js index d5d7e8848d..c0b4da0a84 100644 --- a/lib/services/automationManagement/lib/models/connectionType.js +++ b/lib/services/automationManagement/lib/models/connectionType.js @@ -96,6 +96,7 @@ class ConnectionType { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -104,6 +105,7 @@ class ConnectionType { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/credential.js b/lib/services/automationManagement/lib/models/credential.js index a84920edca..be3ce5d08f 100644 --- a/lib/services/automationManagement/lib/models/credential.js +++ b/lib/services/automationManagement/lib/models/credential.js @@ -77,6 +77,7 @@ class Credential extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -85,6 +86,7 @@ class Credential extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/dscCompilationJob.js b/lib/services/automationManagement/lib/models/dscCompilationJob.js index e33fe69c1f..901163d47c 100644 --- a/lib/services/automationManagement/lib/models/dscCompilationJob.js +++ b/lib/services/automationManagement/lib/models/dscCompilationJob.js @@ -26,11 +26,9 @@ class DscCompilationJob extends models['ProxyResource'] { * @member {string} [startedBy] Gets the compilation job started by. * @member {uuid} [jobId] Gets the id of the job. * @member {date} [creationTime] Gets the creation time of the job. - * @member {object} [provisioningState] The current provisioning state of the - * job. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' * @member {string} [runOn] Gets or sets the runOn which specifies the group * name where the job is to be executed. * @member {string} [status] Gets or sets the status of the job. Possible @@ -107,6 +105,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, jobId: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.jobId', type: { @@ -115,6 +114,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -125,8 +125,7 @@ class DscCompilationJob extends models['ProxyResource'] { required: false, serializedName: 'properties.provisioningState', type: { - name: 'Composite', - className: 'JobProvisioningStateProperty' + name: 'String' } }, runOn: { @@ -152,6 +151,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, startTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.startTime', type: { @@ -160,6 +160,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { @@ -176,6 +177,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { @@ -184,6 +186,7 @@ class DscCompilationJob extends models['ProxyResource'] { }, lastStatusModifiedTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.lastStatusModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js index 364f2c99a6..7a0bc57812 100644 --- a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js @@ -23,8 +23,8 @@ class DscCompilationJobCreateParameters { * @member {string} [configuration.name] Gets or sets the name of the Dsc * configuration. * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new - * build version of NodeConfiguration is required. + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. * @member {string} [name] Gets or sets name of the resource. * @member {string} [location] Gets or sets the location of the resource. * @member {object} [tags] Gets or sets the tags attached to the resource. @@ -68,9 +68,9 @@ class DscCompilationJobCreateParameters { } } }, - newNodeConfigurationBuildVersionRequired: { + incrementNodeConfigurationBuild: { required: false, - serializedName: 'properties.newNodeConfigurationBuildVersionRequired', + serializedName: 'properties.incrementNodeConfigurationBuild', type: { name: 'Boolean' } diff --git a/lib/services/automationManagement/lib/models/dscConfiguration.js b/lib/services/automationManagement/lib/models/dscConfiguration.js index 99f3b9ceef..d901c0b33e 100644 --- a/lib/services/automationManagement/lib/models/dscConfiguration.js +++ b/lib/services/automationManagement/lib/models/dscConfiguration.js @@ -41,6 +41,8 @@ class DscConfiguration extends models['TrackedResource'] { * @member {boolean} [logVerbose] Gets or sets verbose log option. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {number} [nodeConfigurationCount] Gets the number of compiled node + * configurations. * @member {string} [description] Gets or sets the description. * @member {string} [etag] Gets or sets the etag of the resource. */ @@ -161,6 +163,7 @@ class DscConfiguration extends models['TrackedResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -168,11 +171,20 @@ class DscConfiguration extends models['TrackedResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' } }, + nodeConfigurationCount: { + required: false, + nullable: false, + serializedName: 'properties.nodeConfigurationCount', + type: { + name: 'Number' + } + }, description: { required: false, serializedName: 'properties.description', diff --git a/lib/services/automationManagement/lib/models/dscConfigurationListResult.js b/lib/services/automationManagement/lib/models/dscConfigurationListResult.js index 38653beb4a..0b3bded35b 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationListResult.js @@ -17,6 +17,8 @@ class DscConfigurationListResult extends Array { /** * Create a DscConfigurationListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of configurations + * matching filter criteria. */ constructor() { super(); @@ -57,6 +59,13 @@ class DscConfigurationListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNode.js b/lib/services/automationManagement/lib/models/dscNode.js index 94a9a48fee..0f9e4e5f52 100644 --- a/lib/services/automationManagement/lib/models/dscNode.js +++ b/lib/services/automationManagement/lib/models/dscNode.js @@ -30,6 +30,8 @@ class DscNode extends models['ProxyResource'] { * @member {string} [status] Gets or sets the status of the node. * @member {string} [nodeId] Gets or sets the node id. * @member {string} [etag] Gets or sets the etag of the resource. + * @member {number} [totalCount] Gets the total number of records matching + * filter criteria. * @member {array} [extensionHandler] Gets or sets the list of * extensionHandler properties for a Node. */ @@ -77,6 +79,7 @@ class DscNode extends models['ProxyResource'] { }, lastSeen: { required: false, + nullable: false, serializedName: 'properties.lastSeen', type: { name: 'DateTime' @@ -84,6 +87,7 @@ class DscNode extends models['ProxyResource'] { }, registrationTime: { required: false, + nullable: false, serializedName: 'properties.registrationTime', type: { name: 'DateTime' @@ -131,6 +135,13 @@ class DscNode extends models['ProxyResource'] { name: 'String' } }, + totalCount: { + required: false, + serializedName: 'properties.totalCount', + type: { + name: 'Number' + } + }, extensionHandler: { required: false, serializedName: 'properties.extensionHandler', diff --git a/lib/services/automationManagement/lib/models/dscNodeConfiguration.js b/lib/services/automationManagement/lib/models/dscNodeConfiguration.js index 82ce02c8ec..282c4c88fd 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfiguration.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfiguration.js @@ -76,6 +76,7 @@ class DscNodeConfiguration extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' @@ -83,6 +84,7 @@ class DscNodeConfiguration extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js index 35c2d9a93e..385da63714 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js @@ -31,12 +31,13 @@ class DscNodeConfigurationCreateOrUpdateParameters { * @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 {string} name Gets or sets the type of the parameter. * @member {object} configuration Gets or sets the configuration of the node. * @member {string} [configuration.name] Gets or sets the name of the Dsc * configuration. - * @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new - * build version of NodeConfiguration is required. + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + * @member {string} [name] Name of the node configuration. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ constructor() { } @@ -57,33 +58,47 @@ class DscNodeConfigurationCreateOrUpdateParameters { modelProperties: { source: { required: true, - serializedName: 'source', + serializedName: 'properties.source', type: { name: 'Composite', className: 'ContentSource' } }, - name: { - required: true, - serializedName: 'name', - type: { - name: 'String' - } - }, configuration: { required: true, - serializedName: 'configuration', + serializedName: 'properties.configuration', type: { name: 'Composite', className: 'DscConfigurationAssociationProperty' } }, - newNodeConfigurationBuildVersionRequired: { + incrementNodeConfigurationBuild: { required: false, - serializedName: 'newNodeConfigurationBuildVersionRequired', + serializedName: 'properties.incrementNodeConfigurationBuild', type: { name: 'Boolean' } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js index 8cdad3ff3d..81811897c3 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js @@ -17,6 +17,7 @@ class DscNodeConfigurationListResult extends Array { /** * Create a DscNodeConfigurationListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets or sets the total rows in query. */ constructor() { super(); @@ -57,6 +58,13 @@ class DscNodeConfigurationListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNodeListResult.js b/lib/services/automationManagement/lib/models/dscNodeListResult.js index 800ae685e9..d53026beb1 100644 --- a/lib/services/automationManagement/lib/models/dscNodeListResult.js +++ b/lib/services/automationManagement/lib/models/dscNodeListResult.js @@ -17,6 +17,8 @@ class DscNodeListResult extends Array { /** * Create a DscNodeListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of nodes matching + * filter criteria. */ constructor() { super(); @@ -57,6 +59,13 @@ class DscNodeListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNodeReport.js b/lib/services/automationManagement/lib/models/dscNodeReport.js index b60522bf39..f4243dd9a2 100644 --- a/lib/services/automationManagement/lib/models/dscNodeReport.js +++ b/lib/services/automationManagement/lib/models/dscNodeReport.js @@ -84,6 +84,7 @@ class DscNodeReport { modelProperties: { endTime: { required: false, + nullable: true, serializedName: 'endTime', type: { name: 'DateTime' @@ -91,6 +92,7 @@ class DscNodeReport { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'lastModifiedTime', type: { name: 'DateTime' @@ -98,6 +100,7 @@ class DscNodeReport { }, startTime: { required: false, + nullable: true, serializedName: 'startTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js index b5bb93583d..b7cf090e73 100644 --- a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js @@ -20,10 +20,6 @@ class DscNodeUpdateParameters { /** * Create a DscNodeUpdateParameters. * @member {string} [nodeId] Gets or sets the id of the dsc node. - * @member {object} [nodeConfiguration] Gets or sets the configuration of the - * node. - * @member {string} [nodeConfiguration.name] Gets or sets the name of the dsc - * nodeconfiguration. * @member {object} [properties] * @member {string} [properties.name] Gets or sets the name of the dsc * nodeconfiguration. @@ -52,14 +48,6 @@ class DscNodeUpdateParameters { name: 'String' } }, - nodeConfiguration: { - required: false, - serializedName: 'nodeConfiguration', - type: { - name: 'Composite', - className: 'DscNodeConfigurationAssociationProperty' - } - }, properties: { required: false, serializedName: 'properties', diff --git a/lib/services/automationManagement/lib/models/dscReportResource.js b/lib/services/automationManagement/lib/models/dscReportResource.js index 8d2c7b7f14..bebb6c2111 100644 --- a/lib/services/automationManagement/lib/models/dscReportResource.js +++ b/lib/services/automationManagement/lib/models/dscReportResource.js @@ -125,6 +125,7 @@ class DscReportResource { }, startDate: { required: false, + nullable: false, serializedName: 'startDate', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorker.js b/lib/services/automationManagement/lib/models/hybridRunbookWorker.js index b5d30a8689..b7a683d36b 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorker.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorker.js @@ -21,6 +21,7 @@ class HybridRunbookWorker { * @member {string} [ip] Gets or sets the assigned machine IP address. * @member {date} [registrationTime] Gets or sets the registration time of * the worker machine. + * @member {date} [lastSeenDateTime] Last Heartbeat from the Worker */ constructor() { } @@ -55,10 +56,19 @@ class HybridRunbookWorker { }, registrationTime: { required: false, + nullable: false, serializedName: 'registrationTime', type: { name: 'DateTime' } + }, + lastSeenDateTime: { + required: false, + nullable: false, + serializedName: 'lastSeenDateTime', + type: { + name: 'DateTime' + } } } } diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js index e9637e1e56..a2208e0532 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js @@ -26,6 +26,8 @@ class HybridRunbookWorkerGroup { * @member {object} [credential] Sets the credential of a worker group. * @member {string} [credential.name] Gets or sets the name of the * credential. + * @member {string} [groupType] Type of the HybridWorkerGroup. Possible + * values include: 'User', 'System' */ constructor() { } @@ -80,6 +82,13 @@ class HybridRunbookWorkerGroup { name: 'Composite', className: 'RunAsCredentialAssociationProperty' } + }, + groupType: { + required: false, + serializedName: 'groupType', + type: { + name: 'String' + } } } } diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 6c24f4b0f5..636ac5d545 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -18,35 +18,157 @@ export { CloudError } from 'ms-rest-azure'; /** * @class - * Initializes a new instance of the ErrorResponse class. + * Initializes a new instance of the Sku class. * @constructor - * Error response of an operation failure + * The account SKU. * - * @member {string} [code] Error code - * @member {string} [message] Error message indicating why the operation - * failed. + * @member {string} name Gets or sets the SKU name of the account. Possible + * values include: 'Free', 'Basic' + * @member {string} [family] Gets or sets the SKU family. + * @member {number} [capacity] Gets or sets the SKU capacity. */ -export interface ErrorResponse { - code?: string; - message?: string; +export interface Sku { + name: string; + family?: string; + capacity?: number; } /** * @class - * Initializes a new instance of the Key class. + * Initializes a new instance of the Resource class. * @constructor - * Automation key which is used to register a DSC Node + * The core properties of ARM resources * - * @member {string} [keyName] Automation key name. Possible values include: - * 'primary', 'secondary' - * @member {string} [permissions] Automation key permissions. Possible values - * include: 'Full' - * @member {string} [value] Value of the Automation Key used for registration. + * @member {string} [id] Fully qualified resource Id for the resource + * @member {string} [name] The name of the resource + * @member {string} [type] The type of the resource. */ -export interface Key { - keyName?: string; - permissions?: string; - value?: string; +export interface Resource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +/** + * @class + * Initializes a new instance of the TrackedResource class. + * @constructor + * The resource model definition for a ARM tracked top level resource + * + * @member {object} [tags] Resource tags. + * @member {string} [location] The Azure Region where the resource lives + */ +export interface TrackedResource extends Resource { + tags?: { [propertyName: string]: string }; + location?: string; +} + +/** + * @class + * Initializes a new instance of the AutomationAccount class. + * @constructor + * Definition of the automation account type. + * + * @member {object} [sku] Gets or sets the SKU of account. + * @member {string} [sku.name] Gets or sets the SKU name of the account. + * Possible values include: 'Free', 'Basic' + * @member {string} [sku.family] Gets or sets the SKU family. + * @member {number} [sku.capacity] Gets or sets the SKU capacity. + * @member {string} [lastModifiedBy] Gets or sets the last modified by. + * @member {string} [state] Gets status of account. Possible values include: + * 'Ok', 'Unavailable', 'Suspended' + * @member {date} [creationTime] Gets the creation time. + * @member {date} [lastModifiedTime] Gets the last modified time. + * @member {string} [description] Gets or sets the description. + * @member {string} [etag] Gets or sets the etag of the resource. + */ +export interface AutomationAccount extends TrackedResource { + sku?: Sku; + lastModifiedBy?: string; + readonly state?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + description?: string; + etag?: string; +} + +/** + * @class + * Initializes a new instance of the AutomationAccountCreateOrUpdateParameters class. + * @constructor + * The parameters supplied to the create or update automation account + * operation. + * + * @member {object} [sku] Gets or sets account SKU. + * @member {string} [sku.name] Gets or sets the SKU name of the account. + * Possible values include: 'Free', 'Basic' + * @member {string} [sku.family] Gets or sets the SKU family. + * @member {number} [sku.capacity] Gets or sets the SKU capacity. + * @member {string} [name] Gets or sets name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface AutomationAccountCreateOrUpdateParameters { + sku?: Sku; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the OperationDisplay class. + * @constructor + * Provider, Resource and Operation values + * + * @member {string} [provider] Service provider: Microsoft.Automation + * @member {string} [resource] Resource on which the operation is performed: + * Runbooks, Jobs etc. + * @member {string} [operation] Operation type: Read, write, delete, etc. + */ +export interface OperationDisplay { + provider?: string; + resource?: string; + operation?: string; +} + +/** + * @class + * Initializes a new instance of the Operation class. + * @constructor + * Automation REST API operation + * + * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {object} [display] Provider, Resource and Operation values + * @member {string} [display.provider] Service provider: Microsoft.Automation + * @member {string} [display.resource] Resource on which the operation is + * performed: Runbooks, Jobs etc. + * @member {string} [display.operation] Operation type: Read, write, delete, + * etc. + */ +export interface Operation { + name?: string; + display?: OperationDisplay; +} + +/** + * @class + * Initializes a new instance of the Statistics class. + * @constructor + * Definition of the statistic. + * + * @member {string} [counterProperty] Gets the property value of the statistic. + * @member {number} [counterValue] Gets the value of the statistic. + * @member {date} [startTime] Gets the startTime of the statistic. + * @member {date} [endTime] Gets the endTime of the statistic. + * @member {string} [id] Gets the id. + */ +export interface Statistics { + readonly counterProperty?: string; + readonly counterValue?: number; + readonly startTime?: Date; + readonly endTime?: Date; + readonly id?: string; } /** @@ -91,58 +213,59 @@ export interface Usage { /** * @class - * Initializes a new instance of the Statistics class. + * Initializes a new instance of the Key class. * @constructor - * Definition of the statistic. + * Automation key which is used to register a DSC Node * - * @member {string} [counterProperty] Gets the property value of the statistic. - * @member {number} [counterValue] Gets the value of the statistic. - * @member {date} [startTime] Gets the startTime of the statistic. - * @member {date} [endTime] Gets the endTime of the statistic. - * @member {string} [id] Gets the id. + * @member {string} [keyName] Automation key name. Possible values include: + * 'Primary', 'Secondary' + * @member {string} [permissions] Automation key permissions. Possible values + * include: 'Read', 'Full' + * @member {string} [value] Value of the Automation Key used for registration. */ -export interface Statistics { - readonly counterProperty?: string; - readonly counterValue?: number; - readonly startTime?: Date; - readonly endTime?: Date; - readonly id?: string; +export interface Key { + readonly keyName?: string; + readonly permissions?: string; + readonly value?: string; } /** * @class - * Initializes a new instance of the RunbookAssociationProperty class. + * Initializes a new instance of the KeyListResult class. * @constructor - * The runbook property associated with the entity. - * - * @member {string} [name] Gets or sets the name of the runbook. + * @member {array} [keys] Lists the automation keys. */ -export interface RunbookAssociationProperty { - name?: string; +export interface KeyListResult { + keys?: Key[]; } /** * @class - * Initializes a new instance of the Resource class. + * Initializes a new instance of the AutomationAccountUpdateParameters class. * @constructor - * The core properties of ARM resources + * The parameters supplied to the update automation account operation. * - * @member {string} [id] Fully qualified resource Id for the resource - * @member {string} [name] The name of the resource - * @member {string} [type] The type of the resource. + * @member {object} [sku] Gets or sets account SKU. + * @member {string} [sku.name] Gets or sets the SKU name of the account. + * Possible values include: 'Free', 'Basic' + * @member {string} [sku.family] Gets or sets the SKU family. + * @member {number} [sku.capacity] Gets or sets the SKU capacity. + * @member {string} [name] Gets or sets the name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface Resource extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; +export interface AutomationAccountUpdateParameters { + sku?: Sku; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class * Initializes a new instance of the ProxyResource class. * @constructor - * The resource model definition for a ARM proxy resource. It will have - * everything other than required location and tags + * ARM proxy resource. * */ export interface ProxyResource extends Resource { @@ -150,162 +273,115 @@ export interface ProxyResource extends Resource { /** * @class - * Initializes a new instance of the Webhook class. + * Initializes a new instance of the ErrorResponse class. * @constructor - * Definition of the webhook type. + * Error response of an operation failure * - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * the webhook. Default value: false . - * @member {string} [uri] Gets or sets the webhook uri. - * @member {date} [expiryTime] Gets or sets the expiry time. - * @member {date} [lastInvokedTime] Gets or sets the last invoked time. - * @member {object} [parameters] Gets or sets the parameters of the job that is - * created when the webhook calls the runbook it is associated with. - * @member {object} [runbook] Gets or sets the runbook the webhook is - * associated with. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {string} [code] Error code + * @member {string} [message] Error message indicating why the operation + * failed. */ -export interface Webhook extends ProxyResource { - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - lastInvokedTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; +export interface ErrorResponse { + code?: string; + message?: string; } /** * @class - * Initializes a new instance of the Variable class. + * Initializes a new instance of the CertificateCreateOrUpdateParameters class. * @constructor - * Definition of the varible. + * The parameters supplied to the create or update or replace certificate + * operation. * - * @member {string} [value] Gets or sets the value of the variable. - * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the - * variable. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. - */ -export interface Variable extends ProxyResource { - value?: string; - isEncrypted?: boolean; - creationTime?: Date; - lastModifiedTime?: Date; + * @member {string} name Gets or sets the name of the certificate. + * @member {string} base64Value Gets or sets the base64 encoded value of the + * certificate. + * @member {string} [description] Gets or sets the description of the + * certificate. + * @member {string} [thumbprint] Gets or sets the thumbprint of the + * certificate. + * @member {boolean} [isExportable] Gets or sets the is exportable flag of the + * certificate. + */ +export interface CertificateCreateOrUpdateParameters { + name: string; + base64Value: string; description?: string; + thumbprint?: string; + isExportable?: boolean; } /** * @class - * Initializes a new instance of the JobProvisioningStateProperty class. + * Initializes a new instance of the Certificate class. * @constructor - * The provisioning state property. + * Definition of the certificate. * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values include: 'Failed', 'Succeeded', 'Suspended', 'Processing' + * @member {string} [thumbprint] Gets the thumbprint of the certificate. + * @member {date} [expiryTime] Gets the expiry time of the certificate. + * @member {boolean} [isExportable] Gets the is exportable flag of the + * certificate. + * @member {date} [creationTime] Gets the creation time. + * @member {date} [lastModifiedTime] Gets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface JobProvisioningStateProperty { - readonly provisioningState?: string; +export interface Certificate extends ProxyResource { + readonly thumbprint?: string; + readonly expiryTime?: Date; + readonly isExportable?: boolean; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the DscConfigurationAssociationProperty class. + * Initializes a new instance of the CertificateUpdateParameters class. * @constructor - * The Dsc configuration property associated with the entity. + * The parameters supplied to the update certificate operation. * - * @member {string} [name] Gets or sets the name of the Dsc configuration. + * @member {string} [name] Gets or sets the name of the certificate. + * @member {string} [description] Gets or sets the description of the + * certificate. */ -export interface DscConfigurationAssociationProperty { +export interface CertificateUpdateParameters { name?: string; + description?: string; } /** * @class - * Initializes a new instance of the DscCompilationJob class. + * Initializes a new instance of the ConnectionTypeAssociationProperty class. * @constructor - * Definition of the Dsc Compilation job. + * The connection type property associated with the entity. * - * @member {object} [configuration] Gets or sets the configuration. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {string} [startedBy] Gets the compilation job started by. - * @member {uuid} [jobId] Gets the id of the job. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {object} [provisioningState] The current provisioning state of the - * job. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - * @member {string} [status] Gets or sets the status of the job. Possible - * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', - * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', - * 'Resuming', 'Removing' - * @member {string} [statusDetails] Gets or sets the status details of the job. - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [exception] Gets the exception of the job. - * @member {date} [lastModifiedTime] Gets the last modified time of the job. - * @member {date} [lastStatusModifiedTime] Gets the last status modified time - * of the job. - * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {string} [name] Gets or sets the name of the connection type. */ -export interface DscCompilationJob extends ProxyResource { - configuration?: DscConfigurationAssociationProperty; - readonly startedBy?: string; - readonly jobId?: string; - readonly creationTime?: Date; - provisioningState?: JobProvisioningStateProperty; - runOn?: string; - status?: string; - statusDetails?: string; - readonly startTime?: Date; - readonly endTime?: Date; - readonly exception?: string; - readonly lastModifiedTime?: Date; - readonly lastStatusModifiedTime?: Date; - parameters?: { [propertyName: string]: string }; +export interface ConnectionTypeAssociationProperty { + name?: string; } /** * @class - * Initializes a new instance of the Credential class. + * Initializes a new instance of the ConnectionCreateOrUpdateParameters class. * @constructor - * Definition of the credential. + * The parameters supplied to the create or update connection operation. * - * @member {string} [userName] Gets the user name of the credential. - * @member {date} [creationTime] Gets the creation time. - * @member {date} [lastModifiedTime] Gets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {string} name Gets or sets the name of the connection. + * @member {string} [description] Gets or sets the description of the + * connection. + * @member {object} connectionType Gets or sets the connectionType of the + * connection. + * @member {string} [connectionType.name] Gets or sets the name of the + * connection type. + * @member {object} [fieldDefinitionValues] Gets or sets the field definition + * properties of the connection. */ -export interface Credential extends ProxyResource { - readonly userName?: string; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; +export interface ConnectionCreateOrUpdateParameters { + name: string; description?: string; -} - -/** - * @class - * Initializes a new instance of the ConnectionTypeAssociationProperty class. - * @constructor - * The connection type property associated with the entity. - * - * @member {string} [name] Gets or sets the name of the connection type. - */ -export interface ConnectionTypeAssociationProperty { - name?: string; + connectionType: ConnectionTypeAssociationProperty; + fieldDefinitionValues?: { [propertyName: string]: string }; } /** @@ -334,268 +410,156 @@ export interface Connection extends ProxyResource { /** * @class - * Initializes a new instance of the Certificate class. + * Initializes a new instance of the ConnectionUpdateParameters class. * @constructor - * Definition of the certificate. + * The parameters supplied to the update connection operation. * - * @member {string} [thumbprint] Gets the thumbprint of the certificate. - * @member {date} [expiryTime] Gets the expiry time of the certificate. - * @member {boolean} [isExportable] Gets the is exportable flag of the - * certificate. - * @member {date} [creationTime] Gets the creation time. - * @member {date} [lastModifiedTime] Gets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {string} [name] Gets or sets the name of the connection. + * @member {string} [description] Gets or sets the description of the + * connection. + * @member {object} [fieldDefinitionValues] Gets or sets the field definition + * values of the connection. */ -export interface Certificate extends ProxyResource { - readonly thumbprint?: string; - readonly expiryTime?: Date; - readonly isExportable?: boolean; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; +export interface ConnectionUpdateParameters { + name?: string; description?: string; + fieldDefinitionValues?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the RunbookParameter class. + * Initializes a new instance of the FieldDefinition class. * @constructor - * Definition of the runbook parameter type. + * Definition of the connection fields. * - * @member {string} [type] Gets or sets the type of the parameter. - * @member {boolean} [isMandatory] Gets or sets a Boolean value to indicate - * whether the parameter is madatory or not. - * @member {number} [position] Get or sets the position of the parameter. - * @member {string} [defaultValue] Gets or sets the default value of parameter. + * @member {boolean} [isEncrypted] Gets or sets the isEncrypted flag of the + * connection field definition. + * @member {boolean} [isOptional] Gets or sets the isOptional flag of the + * connection field definition. + * @member {string} type Gets or sets the type of the connection field + * definition. */ -export interface RunbookParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: string; +export interface FieldDefinition { + isEncrypted?: boolean; + isOptional?: boolean; + type: string; } /** * @class - * Initializes a new instance of the ContentHash class. + * Initializes a new instance of the ConnectionType class. * @constructor - * Definition of the runbook property type. + * Definition of the connection type. * - * @member {string} algorithm Gets or sets the content hash algorithm used to - * hash the content. - * @member {string} value Gets or sets expected hash value of the content. + * @member {string} [id] Gets the id of the resource. + * @member {string} [name] Gets the name of the connection type. + * @member {string} [type] Resource type + * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if the + * connection type is global. + * @member {object} [fieldDefinitions] Gets the field definitions of the + * connection type. + * @member {date} [creationTime] Gets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface ContentHash { - algorithm: string; - value: string; +export interface ConnectionType { + readonly id?: string; + readonly name?: string; + readonly type?: string; + isGlobal?: boolean; + readonly fieldDefinitions?: { [propertyName: string]: FieldDefinition }; + readonly creationTime?: Date; + lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the ContentLink class. + * Initializes a new instance of the ConnectionTypeCreateOrUpdateParameters class. * @constructor - * Definition of the content link. + * The parameters supplied to the create or update connection type operation. * - * @member {string} [uri] Gets or sets the uri of the runbook content. - * @member {object} [contentHash] Gets or sets the hash. - * @member {string} [contentHash.algorithm] Gets or sets the content hash - * algorithm used to hash the content. - * @member {string} [contentHash.value] Gets or sets expected hash value of the - * content. - * @member {string} [version] Gets or sets the version of the content. + * @member {string} name Gets or sets the name of the connection type. + * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if the + * connection type is global. + * @member {object} fieldDefinitions Gets or sets the field definitions of the + * connection type. */ -export interface ContentLink { - uri?: string; - contentHash?: ContentHash; - version?: string; +export interface ConnectionTypeCreateOrUpdateParameters { + name: string; + isGlobal?: boolean; + fieldDefinitions: { [propertyName: string]: FieldDefinition }; } /** * @class - * Initializes a new instance of the RunbookDraft class. + * Initializes a new instance of the CredentialCreateOrUpdateParameters class. * @constructor - * Definition of the runbook type. + * The parameters supplied to the create or update credential operation. * - * @member {boolean} [inEdit] Gets or sets whether runbook is in edit mode. - * @member {object} [draftContentLink] Gets or sets the draft runbook content - * link. - * @member {string} [draftContentLink.uri] Gets or sets the uri of the runbook - * content. - * @member {object} [draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draftContentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [draftContentLink.contentHash.value] Gets or sets expected - * hash value of the content. - * @member {string} [draftContentLink.version] Gets or sets the version of the - * content. - * @member {date} [creationTime] Gets or sets the creation time of the runbook - * draft. - * @member {date} [lastModifiedTime] Gets or sets the last modified time of the - * runbook draft. - * @member {object} [parameters] Gets or sets the runbook draft parameters. - * @member {array} [outputTypes] Gets or sets the runbook output types. + * @member {string} name Gets or sets the name of the credential. + * @member {string} userName Gets or sets the user name of the credential. + * @member {string} password Gets or sets the password of the credential. + * @member {string} [description] Gets or sets the description of the + * credential. */ -export interface RunbookDraft { - inEdit?: boolean; - draftContentLink?: ContentLink; - creationTime?: Date; - lastModifiedTime?: Date; - parameters?: { [propertyName: string]: RunbookParameter }; - outputTypes?: string[]; -} - -/** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor - * The resource model definition for a ARM tracked top level resource - * - * @member {object} [tags] Resource tags. - * @member {string} [location] The Azure Region where the resource lives - */ -export interface TrackedResource extends Resource { - tags?: { [propertyName: string]: string }; - location?: string; +export interface CredentialCreateOrUpdateParameters { + name: string; + userName: string; + password: string; + description?: string; } /** * @class - * Initializes a new instance of the Runbook class. + * Initializes a new instance of the Credential class. * @constructor - * Definition of the runbook type. + * Definition of the credential. * - * @member {string} [runbookType] Gets or sets the type of the runbook. - * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', - * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' - * @member {object} [publishContentLink] Gets or sets the published runbook - * content link. - * @member {string} [publishContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [publishContentLink.contentHash] Gets or sets the hash. - * @member {string} [publishContentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [publishContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [publishContentLink.version] Gets or sets the version of - * the content. - * @member {string} [state] Gets or sets the state of the runbook. Possible - * values include: 'New', 'Edit', 'Published' - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {number} [logActivityTrace] Gets or sets the option to log activity - * trace of the runbook. - * @member {number} [jobCount] Gets or sets the job count of the runbook. - * @member {object} [parameters] Gets or sets the runbook parameters. - * @member {array} [outputTypes] Gets or sets the runbook output types. - * @member {object} [draft] Gets or sets the draft runbook properties. - * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit - * mode. - * @member {object} [draft.draftContentLink] Gets or sets the draft runbook - * content link. - * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets - * the content hash algorithm used to hash the content. - * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [draft.draftContentLink.version] Gets or sets the version - * of the content. - * @member {date} [draft.creationTime] Gets or sets the creation time of the - * runbook draft. - * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time - * of the runbook draft. - * @member {object} [draft.parameters] Gets or sets the runbook draft - * parameters. - * @member {array} [draft.outputTypes] Gets or sets the runbook output types. - * @member {string} [provisioningState] Gets or sets the provisioning state of - * the runbook. Possible values include: 'Succeeded' - * @member {string} [lastModifiedBy] Gets or sets the last modified by. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [userName] Gets the user name of the credential. + * @member {date} [creationTime] Gets the creation time. + * @member {date} [lastModifiedTime] Gets the last modified time. * @member {string} [description] Gets or sets the description. - * @member {string} [etag] Gets or sets the etag of the resource. */ -export interface Runbook extends TrackedResource { - runbookType?: string; - publishContentLink?: ContentLink; - state?: string; - logVerbose?: boolean; - logProgress?: boolean; - logActivityTrace?: number; - jobCount?: number; - parameters?: { [propertyName: string]: RunbookParameter }; - outputTypes?: string[]; - draft?: RunbookDraft; - provisioningState?: string; - lastModifiedBy?: string; - creationTime?: Date; - lastModifiedTime?: Date; +export interface Credential extends ProxyResource { + readonly userName?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; description?: string; - etag?: string; } /** * @class - * Initializes a new instance of the ModuleErrorInfo class. + * Initializes a new instance of the CredentialUpdateParameters class. * @constructor - * Definition of the module error info type. + * The parameters supplied to the Update credential operation. * - * @member {string} [code] Gets or sets the error code. - * @member {string} [message] Gets or sets the error message. + * @member {string} [name] Gets or sets the name of the credential. + * @member {string} [userName] Gets or sets the user name of the credential. + * @member {string} [password] Gets or sets the password of the credential. + * @member {string} [description] Gets or sets the description of the + * credential. */ -export interface ModuleErrorInfo { - code?: string; - message?: string; +export interface CredentialUpdateParameters { + name?: string; + userName?: string; + password?: string; + description?: string; } /** * @class - * Initializes a new instance of the Module class. + * Initializes a new instance of the ContentHash class. * @constructor - * Definition of the module type. + * Definition of the runbook property type. * - * @member {boolean} [isGlobal] Gets or sets the isGlobal flag of the module. - * @member {string} [version] Gets or sets the version of the module. - * @member {number} [sizeInBytes] Gets or sets the size in bytes of the module. - * @member {number} [activityCount] Gets or sets the activity count of the - * module. - * @member {string} [provisioningState] Gets or sets the provisioning state of - * the module. Possible values include: 'Created', 'Creating', - * 'StartingImportModuleRunbook', 'RunningImportModuleRunbook', - * 'ContentRetrieved', 'ContentDownloaded', 'ContentValidated', - * 'ConnectionTypeImported', 'ContentStored', 'ModuleDataStored', - * 'ActivitiesStored', 'ModuleImportRunbookComplete', 'Succeeded', 'Failed', - * 'Cancelled', 'Updating' - * @member {object} [contentLink] Gets or sets the contentLink of the module. - * @member {string} [contentLink.uri] Gets or sets the uri of the runbook - * content. - * @member {object} [contentLink.contentHash] Gets or sets the hash. - * @member {string} [contentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [contentLink.contentHash.value] Gets or sets expected hash - * value of the content. - * @member {string} [contentLink.version] Gets or sets the version of the - * content. - * @member {object} [error] Gets or sets the error info of the module. - * @member {string} [error.code] Gets or sets the error code. - * @member {string} [error.message] Gets or sets the error message. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. - * @member {string} [etag] Gets or sets the etag of the resource. + * @member {string} algorithm Gets or sets the content hash algorithm used to + * hash the content. + * @member {string} value Gets or sets expected hash value of the content. */ -export interface Module extends TrackedResource { - isGlobal?: boolean; - version?: string; - sizeInBytes?: number; - activityCount?: number; - provisioningState?: string; - contentLink?: ContentLink; - error?: ModuleErrorInfo; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; - etag?: string; +export interface ContentHash { + algorithm: string; + value: string; } /** @@ -641,6 +605,43 @@ export interface DscConfigurationParameter { defaultValue?: string; } +/** + * @class + * Initializes a new instance of the DscConfigurationCreateOrUpdateParameters 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 {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface DscConfigurationCreateOrUpdateParameters { + logVerbose?: boolean; + logProgress?: boolean; + source: ContentSource; + parameters?: { [propertyName: string]: DscConfigurationParameter }; + description?: string; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + /** * @class * Initializes a new instance of the DscConfiguration class. @@ -667,6 +668,8 @@ export interface DscConfigurationParameter { * @member {boolean} [logVerbose] Gets or sets verbose log option. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {number} [nodeConfigurationCount] Gets the number of compiled node + * configurations. * @member {string} [description] Gets or sets the description. * @member {string} [etag] Gets or sets the etag of the resource. */ @@ -679,326 +682,218 @@ export interface DscConfiguration extends TrackedResource { logVerbose?: boolean; creationTime?: Date; lastModifiedTime?: Date; + nodeConfigurationCount?: number; description?: string; etag?: string; } /** * @class - * Initializes a new instance of the Sku class. + * Initializes a new instance of the DscConfigurationUpdateParameters class. * @constructor - * The account SKU. + * The parameters supplied to the create or update configuration operation. * - * @member {string} name Gets or sets the SKU name of the account. Possible - * values include: 'Free', 'Basic' - * @member {string} [family] Gets or sets the SKU family. - * @member {number} [capacity] Gets or sets the SKU capacity. + * @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 Sku { - name: string; - family?: string; - capacity?: number; +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 AutomationAccount class. + * Initializes a new instance of the RunAsCredentialAssociationProperty class. * @constructor - * Definition of the automation account type. + * Definition of runas credential to use for hybrid worker. * - * @member {object} [sku] Gets or sets the SKU of account. - * @member {string} [sku.name] Gets or sets the SKU name of the account. - * Possible values include: 'Free', 'Basic' - * @member {string} [sku.family] Gets or sets the SKU family. - * @member {number} [sku.capacity] Gets or sets the SKU capacity. - * @member {string} [lastModifiedBy] Gets or sets the last modified by. - * @member {string} [state] Gets status of account. Possible values include: - * 'Ok', 'Unavailable', 'Suspended' - * @member {date} [creationTime] Gets the creation time. - * @member {date} [lastModifiedTime] Gets the last modified time. - * @member {string} [description] Gets or sets the description. - * @member {string} [etag] Gets or sets the etag of the resource. - */ -export interface AutomationAccount extends TrackedResource { - sku?: Sku; - lastModifiedBy?: string; - readonly state?: string; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - description?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the OperationDisplay class. - * @constructor - * Provider, Resource and Operation values - * - * @member {string} [provider] Service provider: Microsoft.Automation - * @member {string} [resource] Resource on which the operation is performed: - * Runbooks, Jobs etc. - * @member {string} [operation] Operation type: Read, write, delete, etc. - */ -export interface OperationDisplay { - provider?: string; - resource?: string; - operation?: string; -} - -/** - * @class - * Initializes a new instance of the Operation class. - * @constructor - * Automation REST API operation - * - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - * @member {object} [display] Provider, Resource and Operation values - * @member {string} [display.provider] Service provider: Microsoft.Automation - * @member {string} [display.resource] Resource on which the operation is - * performed: Runbooks, Jobs etc. - * @member {string} [display.operation] Operation type: Read, write, delete, - * etc. + * @member {string} [name] Gets or sets the name of the credential. */ -export interface Operation { +export interface RunAsCredentialAssociationProperty { name?: string; - display?: OperationDisplay; } /** * @class - * Initializes a new instance of the AutomationAccountCreateOrUpdateParameters class. + * Initializes a new instance of the HybridRunbookWorker class. * @constructor - * The parameters supplied to the create or update automation account - * operation. + * Definition of hybrid runbook worker. * - * @member {object} [sku] Gets or sets account SKU. - * @member {string} [sku.name] Gets or sets the SKU name of the account. - * Possible values include: 'Free', 'Basic' - * @member {string} [sku.family] Gets or sets the SKU family. - * @member {number} [sku.capacity] Gets or sets the SKU capacity. - * @member {string} [name] Gets or sets name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} [name] Gets or sets the worker machine name. + * @member {string} [ip] Gets or sets the assigned machine IP address. + * @member {date} [registrationTime] Gets or sets the registration time of the + * worker machine. + * @member {date} [lastSeenDateTime] Last Heartbeat from the Worker */ -export interface AutomationAccountCreateOrUpdateParameters { - sku?: Sku; +export interface HybridRunbookWorker { name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + ip?: string; + registrationTime?: Date; + lastSeenDateTime?: Date; } /** * @class - * Initializes a new instance of the AutomationAccountUpdateParameters class. + * Initializes a new instance of the HybridRunbookWorkerGroup class. * @constructor - * The parameters supplied to the update automation account operation. + * Definition of hybrid runbook worker group. * - * @member {object} [sku] Gets or sets account SKU. - * @member {string} [sku.name] Gets or sets the SKU name of the account. - * Possible values include: 'Free', 'Basic' - * @member {string} [sku.family] Gets or sets the SKU family. - * @member {number} [sku.capacity] Gets or sets the SKU capacity. - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} [id] Gets or sets the id of the resource. + * @member {string} [name] Gets or sets the name of the group. + * @member {array} [hybridRunbookWorkers] Gets or sets the list of hybrid + * runbook workers. + * @member {object} [credential] Sets the credential of a worker group. + * @member {string} [credential.name] Gets or sets the name of the credential. + * @member {string} [groupType] Type of the HybridWorkerGroup. Possible values + * include: 'User', 'System' */ -export interface AutomationAccountUpdateParameters { - sku?: Sku; +export interface HybridRunbookWorkerGroup { + id?: string; name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + hybridRunbookWorkers?: HybridRunbookWorker[]; + credential?: RunAsCredentialAssociationProperty; + groupType?: string; } /** * @class - * Initializes a new instance of the CertificateUpdateParameters class. + * Initializes a new instance of the HybridRunbookWorkerGroupUpdateParameters class. * @constructor - * The parameters supplied to the update certificate operation. + * Parameters supplied to the update operation. * - * @member {string} [name] Gets or sets the name of the certificate. - * @member {string} [description] Gets or sets the description of the - * certificate. + * @member {object} [credential] Sets the credential of a worker group. + * @member {string} [credential.name] Gets or sets the name of the credential. */ -export interface CertificateUpdateParameters { - name?: string; - description?: string; +export interface HybridRunbookWorkerGroupUpdateParameters { + credential?: RunAsCredentialAssociationProperty; } /** * @class - * Initializes a new instance of the CertificateCreateOrUpdateParameters class. + * Initializes a new instance of the ScheduleAssociationProperty class. * @constructor - * The parameters supplied to the create or update or replace certificate - * operation. + * The schedule property associated with the entity. * - * @member {string} name Gets or sets the name of the certificate. - * @member {string} base64Value Gets or sets the base64 encoded value of the - * certificate. - * @member {string} [description] Gets or sets the description of the - * certificate. - * @member {string} [thumbprint] Gets or sets the thumbprint of the - * certificate. - * @member {boolean} [isExportable] Gets or sets the is exportable flag of the - * certificate. + * @member {string} [name] Gets or sets the name of the Schedule. */ -export interface CertificateCreateOrUpdateParameters { - name: string; - base64Value: string; - description?: string; - thumbprint?: string; - isExportable?: boolean; +export interface ScheduleAssociationProperty { + name?: string; } /** * @class - * Initializes a new instance of the ConnectionUpdateParameters class. + * Initializes a new instance of the RunbookAssociationProperty class. * @constructor - * The parameters supplied to the update connection operation. + * The runbook property associated with the entity. * - * @member {string} [name] Gets or sets the name of the connection. - * @member {string} [description] Gets or sets the description of the - * connection. - * @member {object} [fieldDefinitionValues] Gets or sets the field definition - * values of the connection. + * @member {string} [name] Gets or sets the name of the runbook. */ -export interface ConnectionUpdateParameters { +export interface RunbookAssociationProperty { name?: string; - description?: string; - fieldDefinitionValues?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the ConnectionCreateOrUpdateParameters class. + * Initializes a new instance of the JobSchedule class. * @constructor - * The parameters supplied to the create or update connection operation. + * Definition of the job schedule. * - * @member {string} name Gets or sets the name of the connection. - * @member {string} [description] Gets or sets the description of the - * connection. - * @member {object} connectionType Gets or sets the connectionType of the - * connection. - * @member {string} [connectionType.name] Gets or sets the name of the - * connection type. - * @member {object} [fieldDefinitionValues] Gets or sets the field definition - * properties of the connection. + * @member {string} [id] Gets the id of the resource. + * @member {string} [name] Gets the name of the variable. + * @member {string} [type] Resource type + * @member {string} [jobScheduleId] Gets or sets the id of job schedule. + * @member {object} [schedule] Gets or sets the schedule. + * @member {string} [schedule.name] Gets or sets the name of the Schedule. + * @member {object} [runbook] Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the hybrid worker group that the + * scheduled job should run on. + * @member {object} [parameters] Gets or sets the parameters of the job + * schedule. */ -export interface ConnectionCreateOrUpdateParameters { - name: string; - description?: string; - connectionType: ConnectionTypeAssociationProperty; - fieldDefinitionValues?: { [propertyName: string]: string }; +export interface JobSchedule { + readonly id?: string; + readonly name?: string; + readonly type?: string; + jobScheduleId?: string; + schedule?: ScheduleAssociationProperty; + runbook?: RunbookAssociationProperty; + runOn?: string; + parameters?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the FieldDefinition class. + * Initializes a new instance of the JobScheduleCreateParameters class. * @constructor - * Definition of the connection fields. + * The parameters supplied to the create job schedule operation. * - * @member {boolean} [isEncrypted] Gets or sets the isEncrypted flag of the - * connection field definition. - * @member {boolean} [isOptional] Gets or sets the isOptional flag of the - * connection field definition. - * @member {string} type Gets or sets the type of the connection field - * definition. + * @member {object} schedule Gets or sets the schedule. + * @member {string} [schedule.name] Gets or sets the name of the Schedule. + * @member {object} runbook Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the hybrid worker group that the + * scheduled job should run on. + * @member {object} [parameters] Gets or sets a list of job properties. */ -export interface FieldDefinition { - isEncrypted?: boolean; - isOptional?: boolean; - type: string; +export interface JobScheduleCreateParameters { + schedule: ScheduleAssociationProperty; + runbook: RunbookAssociationProperty; + runOn?: string; + parameters?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the ConnectionType class. + * Initializes a new instance of the LinkedWorkspace class. * @constructor - * Definition of the connection type. + * Definition of the linked workspace. * - * @member {string} [id] Gets the id of the resource. - * @member {string} [name] Gets the name of the connection type. - * @member {string} [type] Resource type - * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if the - * connection type is global. - * @member {object} [fieldDefinitions] Gets the field definitions of the - * connection type. - * @member {date} [creationTime] Gets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {string} [id] Gets the id of the linked workspace. */ -export interface ConnectionType { +export interface LinkedWorkspace { readonly id?: string; - readonly name?: string; - readonly type?: string; - isGlobal?: boolean; - readonly fieldDefinitions?: { [propertyName: string]: FieldDefinition }; - readonly creationTime?: Date; - lastModifiedTime?: Date; - description?: string; } /** * @class - * Initializes a new instance of the ConnectionTypeCreateOrUpdateParameters class. + * Initializes a new instance of the ActivityParameterValidationSet class. * @constructor - * The parameters supplied to the create or update connection type operation. + * Definition of the activity parameter validation set. * - * @member {string} name Gets or sets the name of the connection type. - * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if the - * connection type is global. - * @member {object} fieldDefinitions Gets or sets the field definitions of the - * connection type. + * @member {string} [memberValue] Gets or sets the name of the activity + * parameter validation set member. */ -export interface ConnectionTypeCreateOrUpdateParameters { - name: string; - isGlobal?: boolean; - fieldDefinitions: { [propertyName: string]: FieldDefinition }; +export interface ActivityParameterValidationSet { + memberValue?: string; } /** * @class - * Initializes a new instance of the CredentialUpdateParameters class. + * Initializes a new instance of the ActivityParameter class. * @constructor - * The parameters supplied to the Update credential operation. - * - * @member {string} [name] Gets or sets the name of the credential. - * @member {string} [userName] Gets or sets the user name of the credential. - * @member {string} [password] Gets or sets the password of the credential. - * @member {string} [description] Gets or sets the description of the - * credential. - */ -export interface CredentialUpdateParameters { - name?: string; - userName?: string; - password?: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the CredentialCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update credential operation. - * - * @member {string} name Gets or sets the name of the credential. - * @member {string} userName Gets or sets the user name of the credential. - * @member {string} password Gets or sets the password of the credential. - * @member {string} [description] Gets or sets the description of the - * credential. - */ -export interface CredentialCreateOrUpdateParameters { - name: string; - userName: string; - password: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the ActivityParameter class. - * @constructor - * Definition of the activity parameter. + * Definition of the activity parameter. * * @member {string} [name] Gets or sets the name of the activity parameter. * @member {string} [type] Gets or sets the type of the activity parameter. @@ -1007,7 +902,7 @@ export interface CredentialCreateOrUpdateParameters { * optional. * @member {boolean} [isDynamic] Gets or sets a Boolean value that indicates * true if the parameter is dynamic. - * @member {boolean} [position] Gets or sets the position of the activity + * @member {number} [position] Gets or sets the position of the activity * parameter. * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that * indicates true if the parameter can take values from the incoming pipeline @@ -1024,16 +919,22 @@ export interface CredentialCreateOrUpdateParameters { * command-line arguments that are associated with this parameter in the form * of an array. false if the cmdlet parameter does not accept all the remaining * argument values. + * @member {string} [description] Gets or sets the description of the activity + * parameter. + * @member {array} [validationSet] Gets or sets the validation set of activity + * parameter. */ export interface ActivityParameter { name?: string; type?: string; isMandatory?: boolean; isDynamic?: boolean; - position?: boolean; + position?: number; valueFromPipeline?: boolean; valueFromPipelineByPropertyName?: boolean; valueFromRemainingArguments?: boolean; + description?: string; + validationSet?: ActivityParameterValidationSet[]; } /** @@ -1094,88 +995,113 @@ export interface Activity { /** * @class - * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. - * @constructor - * The properties of the create advanced schedule monthly occurrence. - * - * @member {number} [occurrence] Occurrence of the week within the month. Must - * be between 1 and 5 - * @member {string} [day] Day of the occurrence. Must be one of monday, - * tuesday, wednesday, thursday, friday, saturday, sunday. Possible values - * include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', - * 'Sunday' - */ -export interface AdvancedScheduleMonthlyOccurrence { - occurrence?: number; - day?: string; -} - -/** - * @class - * Initializes a new instance of the AdvancedSchedule class. + * Initializes a new instance of the ModuleErrorInfo class. * @constructor - * The properties of the create Advanced Schedule. + * Definition of the module error info type. * - * @member {array} [weekDays] Days of the week that the job should execute on. - * @member {array} [monthDays] Days of the month that the job should execute - * on. Must be between 1 and 31. - * @member {array} [monthlyOccurrences] Occurrences of days within a month. + * @member {string} [code] Gets or sets the error code. + * @member {string} [message] Gets or sets the error message. */ -export interface AdvancedSchedule { - weekDays?: string[]; - monthDays?: number[]; - monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; +export interface ModuleErrorInfo { + code?: string; + message?: string; } /** * @class - * Initializes a new instance of the AgentRegistrationKeys class. + * Initializes a new instance of the ContentLink class. * @constructor - * Definition of the agent registration keys. + * Definition of the content link. * - * @member {string} [primary] Gets or sets the primary key. - * @member {string} [secondary] Gets or sets the secondary key. + * @member {string} [uri] Gets or sets the uri of the runbook content. + * @member {object} [contentHash] Gets or sets the hash. + * @member {string} [contentHash.algorithm] Gets or sets the content hash + * algorithm used to hash the content. + * @member {string} [contentHash.value] Gets or sets expected hash value of the + * content. + * @member {string} [version] Gets or sets the version of the content. */ -export interface AgentRegistrationKeys { - primary?: string; - secondary?: string; +export interface ContentLink { + uri?: string; + contentHash?: ContentHash; + version?: string; } /** * @class - * Initializes a new instance of the AgentRegistration class. + * Initializes a new instance of the Module class. * @constructor - * Definition of the agent registration infomration type. + * Definition of the module type. * - * @member {string} [dscMetaConfiguration] Gets or sets the dsc meta - * configuration. - * @member {string} [endpoint] Gets or sets the dsc server endpoint. - * @member {object} [keys] Gets or sets the agent registration keys. - * @member {string} [keys.primary] Gets or sets the primary key. - * @member {string} [keys.secondary] Gets or sets the secondary key. - * @member {string} [id] Gets or sets the id. + * @member {boolean} [isGlobal] Gets or sets the isGlobal flag of the module. + * @member {string} [version] Gets or sets the version of the module. + * @member {number} [sizeInBytes] Gets or sets the size in bytes of the module. + * @member {number} [activityCount] Gets or sets the activity count of the + * module. + * @member {string} [provisioningState] Gets or sets the provisioning state of + * the module. Possible values include: 'Created', 'Creating', + * 'StartingImportModuleRunbook', 'RunningImportModuleRunbook', + * 'ContentRetrieved', 'ContentDownloaded', 'ContentValidated', + * 'ConnectionTypeImported', 'ContentStored', 'ModuleDataStored', + * 'ActivitiesStored', 'ModuleImportRunbookComplete', 'Succeeded', 'Failed', + * 'Cancelled', 'Updating' + * @member {object} [contentLink] Gets or sets the contentLink of the module. + * @member {string} [contentLink.uri] Gets or sets the uri of the runbook + * content. + * @member {object} [contentLink.contentHash] Gets or sets the hash. + * @member {string} [contentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [contentLink.contentHash.value] Gets or sets expected hash + * value of the content. + * @member {string} [contentLink.version] Gets or sets the version of the + * content. + * @member {object} [error] Gets or sets the error info of the module. + * @member {string} [error.code] Gets or sets the error code. + * @member {string} [error.message] Gets or sets the error message. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. + * @member {boolean} [isComposite] Gets or sets type of module, if its + * composite or not. + * @member {string} [etag] Gets or sets the etag of the resource. */ -export interface AgentRegistration { - dscMetaConfiguration?: string; - endpoint?: string; - keys?: AgentRegistrationKeys; - id?: string; +export interface Module extends TrackedResource { + isGlobal?: boolean; + version?: string; + sizeInBytes?: number; + activityCount?: number; + provisioningState?: string; + contentLink?: ContentLink; + error?: ModuleErrorInfo; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; + isComposite?: boolean; + etag?: string; } /** * @class - * Initializes a new instance of the AgentRegistrationRegenerateKeyParameter class. + * Initializes a new instance of the ModuleCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the regenerate keys operation. + * The parameters supplied to the create or update module operation. * - * @member {string} keyName Gets or sets the agent registration key name - - * primary or secondary. Possible values include: 'primary', 'secondary' - * @member {string} [name] Gets or sets the name of the resource. + * @member {object} contentLink Gets or sets the module content link. + * @member {string} [contentLink.uri] Gets or sets the uri of the runbook + * content. + * @member {object} [contentLink.contentHash] Gets or sets the hash. + * @member {string} [contentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [contentLink.contentHash.value] Gets or sets expected hash + * value of the content. + * @member {string} [contentLink.version] Gets or sets the version of the + * content. + * @member {string} [name] Gets or sets name of the resource. * @member {string} [location] Gets or sets the location of the resource. * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface AgentRegistrationRegenerateKeyParameter { - keyName: string; +export interface ModuleCreateOrUpdateParameters { + contentLink: ContentLink; name?: string; location?: string; tags?: { [propertyName: string]: string }; @@ -1183,24 +1109,26 @@ export interface AgentRegistrationRegenerateKeyParameter { /** * @class - * Initializes a new instance of the DscCompilationJobCreateParameters class. + * Initializes a new instance of the ModuleUpdateParameters class. * @constructor - * The parameters supplied to the create compilation job operation. + * The parameters supplied to the update module operation. * - * @member {object} configuration Gets or sets the configuration. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new build - * version of NodeConfiguration is required. + * @member {object} [contentLink] Gets or sets the module content link. + * @member {string} [contentLink.uri] Gets or sets the uri of the runbook + * content. + * @member {object} [contentLink.contentHash] Gets or sets the hash. + * @member {string} [contentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [contentLink.contentHash.value] Gets or sets expected hash + * value of the content. + * @member {string} [contentLink.version] Gets or sets the version of the + * content. * @member {string} [name] Gets or sets name of the resource. * @member {string} [location] Gets or sets the location of the resource. * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface DscCompilationJobCreateParameters { - configuration: DscConfigurationAssociationProperty; - parameters?: { [propertyName: string]: string }; - newNodeConfigurationBuildVersionRequired?: boolean; +export interface ModuleUpdateParameters { + contentLink?: ContentLink; name?: string; location?: string; tags?: { [propertyName: string]: string }; @@ -1208,1309 +1136,1167 @@ export interface DscCompilationJobCreateParameters { /** * @class - * Initializes a new instance of the DscConfigurationCreateOrUpdateParameters class. + * Initializes a new instance of the TypeField class. * @constructor - * The parameters supplied to the create or update configuration operation. + * Information about a field of a type. * - * @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 {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} [name] Gets or sets the name of the field. + * @member {string} [type] Gets or sets the type of the field. */ -export interface DscConfigurationCreateOrUpdateParameters { - logVerbose?: boolean; - logProgress?: boolean; - source: ContentSource; - parameters?: { [propertyName: string]: DscConfigurationParameter }; - description?: string; +export interface TypeField { name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + type?: string; } /** * @class - * Initializes a new instance of the DscConfigurationUpdateParameters class. + * Initializes a new instance of the RunbookParameter class. * @constructor - * The parameters supplied to the create or update configuration operation. + * Definition of the runbook parameter type. * - * @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. - * @constructor - * Definition of the DSC Meta Configuration. - * - * @member {number} [configurationModeFrequencyMins] Gets or sets the - * ConfigurationModeFrequencyMins value of the meta configuration. - * @member {boolean} [rebootNodeIfNeeded] Gets or sets the RebootNodeIfNeeded - * value of the meta configuration. - * @member {string} [configurationMode] Gets or sets the ConfigurationMode - * value of the meta configuration. - * @member {string} [actionAfterReboot] Gets or sets the ActionAfterReboot - * value of the meta configuration. - * @member {string} [certificateId] Gets or sets the CertificateId value of the - * meta configuration. - * @member {number} [refreshFrequencyMins] Gets or sets the - * RefreshFrequencyMins value of the meta configuration. - * @member {boolean} [allowModuleOverwrite] Gets or sets the - * AllowModuleOverwrite value of the meta configuration. + * @member {string} [type] Gets or sets the type of the parameter. + * @member {boolean} [isMandatory] Gets or sets a Boolean value to indicate + * whether the parameter is madatory or not. + * @member {number} [position] Get or sets the position of the parameter. + * @member {string} [defaultValue] Gets or sets the default value of parameter. */ -export interface DscMetaConfiguration { - configurationModeFrequencyMins?: number; - rebootNodeIfNeeded?: boolean; - configurationMode?: string; - actionAfterReboot?: string; - certificateId?: string; - refreshFrequencyMins?: number; - allowModuleOverwrite?: boolean; +export interface RunbookParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; } /** * @class - * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class. + * Initializes a new instance of the RunbookDraft class. * @constructor - * The parameters supplied to the create or update node configuration - * operation. - * - * @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 + * @member {boolean} [inEdit] Gets or sets whether runbook is in edit mode. + * @member {object} [draftContentLink] Gets or sets the draft runbook content + * link. + * @member {string} [draftContentLink.uri] Gets or sets the uri of the runbook * 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 {string} name Gets or sets the type of the parameter. - * @member {object} configuration Gets or sets the configuration of the node. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {boolean} [newNodeConfigurationBuildVersionRequired] If a new build - * version of NodeConfiguration is required. + * @member {object} [draftContentLink.contentHash] Gets or sets the hash. + * @member {string} [draftContentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [draftContentLink.contentHash.value] Gets or sets expected + * hash value of the content. + * @member {string} [draftContentLink.version] Gets or sets the version of the + * content. + * @member {date} [creationTime] Gets or sets the creation time of the runbook + * draft. + * @member {date} [lastModifiedTime] Gets or sets the last modified time of the + * runbook draft. + * @member {object} [parameters] Gets or sets the runbook draft parameters. + * @member {array} [outputTypes] Gets or sets the runbook output types. */ -export interface DscNodeConfigurationCreateOrUpdateParameters { - source: ContentSource; - name: string; - configuration: DscConfigurationAssociationProperty; - newNodeConfigurationBuildVersionRequired?: boolean; +export interface RunbookDraft { + inEdit?: boolean; + draftContentLink?: ContentLink; + creationTime?: Date; + lastModifiedTime?: Date; + parameters?: { [propertyName: string]: RunbookParameter }; + outputTypes?: string[]; } /** * @class - * Initializes a new instance of the DscNodeConfigurationAssociationProperty class. + * Initializes a new instance of the Runbook class. * @constructor - * The dsc nodeconfiguration property associated with the entity. + * Definition of the runbook type. * - * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + * @member {string} [runbookType] Gets or sets the type of the runbook. + * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @member {object} [publishContentLink] Gets or sets the published runbook + * content link. + * @member {string} [publishContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [publishContentLink.contentHash] Gets or sets the hash. + * @member {string} [publishContentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [publishContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [publishContentLink.version] Gets or sets the version of + * the content. + * @member {string} [state] Gets or sets the state of the runbook. Possible + * values include: 'New', 'Edit', 'Published' + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {number} [logActivityTrace] Gets or sets the option to log activity + * trace of the runbook. + * @member {number} [jobCount] Gets or sets the job count of the runbook. + * @member {object} [parameters] Gets or sets the runbook parameters. + * @member {array} [outputTypes] Gets or sets the runbook output types. + * @member {object} [draft] Gets or sets the draft runbook properties. + * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit + * mode. + * @member {object} [draft.draftContentLink] Gets or sets the draft runbook + * content link. + * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. + * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets + * the content hash algorithm used to hash the content. + * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [draft.draftContentLink.version] Gets or sets the version + * of the content. + * @member {date} [draft.creationTime] Gets or sets the creation time of the + * runbook draft. + * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time + * of the runbook draft. + * @member {object} [draft.parameters] Gets or sets the runbook draft + * parameters. + * @member {array} [draft.outputTypes] Gets or sets the runbook output types. + * @member {string} [provisioningState] Gets or sets the provisioning state of + * the runbook. Possible values include: 'Succeeded' + * @member {string} [lastModifiedBy] Gets or sets the last modified by. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. + * @member {string} [etag] Gets or sets the etag of the resource. */ -export interface DscNodeConfigurationAssociationProperty { - name?: string; +export interface Runbook extends TrackedResource { + runbookType?: string; + publishContentLink?: ContentLink; + state?: string; + logVerbose?: boolean; + logProgress?: boolean; + logActivityTrace?: number; + jobCount?: number; + parameters?: { [propertyName: string]: RunbookParameter }; + outputTypes?: string[]; + draft?: RunbookDraft; + provisioningState?: string; + lastModifiedBy?: string; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; + etag?: string; } /** * @class - * Initializes a new instance of the DscNodeExtensionHandlerAssociationProperty class. + * Initializes a new instance of the RunbookCreateOrUpdateParameters class. * @constructor - * The dsc extensionHandler property associated with the node + * The parameters supplied to the create or update runbook operation. * - * @member {string} [name] Gets or sets the name of the extension handler. - * @member {string} [version] Gets or sets the version of the extension - * handler. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {string} runbookType Gets or sets the type of the runbook. Possible + * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', + * 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @member {object} [draft] Gets or sets the draft runbook properties. + * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit + * mode. + * @member {object} [draft.draftContentLink] Gets or sets the draft runbook + * content link. + * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. + * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets + * the content hash algorithm used to hash the content. + * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [draft.draftContentLink.version] Gets or sets the version + * of the content. + * @member {date} [draft.creationTime] Gets or sets the creation time of the + * runbook draft. + * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time + * of the runbook draft. + * @member {object} [draft.parameters] Gets or sets the runbook draft + * parameters. + * @member {array} [draft.outputTypes] Gets or sets the runbook output types. + * @member {object} [publishContentLink] Gets or sets the published runbook + * content link. + * @member {string} [publishContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [publishContentLink.contentHash] Gets or sets the hash. + * @member {string} [publishContentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [publishContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [publishContentLink.version] Gets or sets the version of + * the content. + * @member {string} [description] Gets or sets the description of the runbook. + * @member {number} [logActivityTrace] Gets or sets the activity-level tracing + * options of the runbook. + * @member {string} [name] Gets or sets the name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface DscNodeExtensionHandlerAssociationProperty { +export interface RunbookCreateOrUpdateParameters { + logVerbose?: boolean; + logProgress?: boolean; + runbookType: string; + draft?: RunbookDraft; + publishContentLink?: ContentLink; + description?: string; + logActivityTrace?: number; name?: string; - version?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the DscNodeUpdateParametersProperties class. + * Initializes a new instance of the RunbookUpdateParameters class. * @constructor - * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + * The parameters supplied to the update runbook operation. + * + * @member {string} [description] Gets or sets the description of the runbook. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {number} [logActivityTrace] Gets or sets the activity-level tracing + * options of the runbook. + * @member {string} [name] Gets or sets the name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface DscNodeUpdateParametersProperties { +export interface RunbookUpdateParameters { + description?: string; + logVerbose?: boolean; + logProgress?: boolean; + logActivityTrace?: number; name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the DscNodeUpdateParameters class. + * Initializes a new instance of the RunbookDraftUndoEditResult class. * @constructor - * The parameters supplied to the update dsc node operation. + * The response model for the undoedit runbook operation. * - * @member {string} [nodeId] Gets or sets the id of the dsc node. - * @member {object} [nodeConfiguration] Gets or sets the configuration of the - * node. - * @member {string} [nodeConfiguration.name] Gets or sets the name of the dsc - * nodeconfiguration. - * @member {object} [properties] - * @member {string} [properties.name] Gets or sets the name of the dsc - * nodeconfiguration. + * @member {string} [statusCode] Possible values include: 'Continue', + * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', + * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', + * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * @member {string} [requestId] */ -export interface DscNodeUpdateParameters { - nodeId?: string; - nodeConfiguration?: DscNodeConfigurationAssociationProperty; - properties?: DscNodeUpdateParametersProperties; +export interface RunbookDraftUndoEditResult { + statusCode?: string; + requestId?: string; } /** * @class - * Initializes a new instance of the DscReportError class. + * Initializes a new instance of the TestJobCreateParameters class. * @constructor - * Definition of the dsc node report error type. + * The parameters supplied to the create test job operation. * - * @member {string} [errorSource] Gets or sets the source of the error. - * @member {string} [resourceId] Gets or sets the resource ID which generated - * the error. - * @member {string} [errorCode] Gets or sets the error code. - * @member {string} [errorMessage] Gets or sets the error message. - * @member {string} [locale] Gets or sets the locale of the error. - * @member {string} [errorDetails] Gets or sets the error details. + * @member {object} [parameters] Gets or sets the parameters of the test job. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. */ -export interface DscReportError { - errorSource?: string; - resourceId?: string; - errorCode?: string; - errorMessage?: string; - locale?: string; - errorDetails?: string; +export interface TestJobCreateParameters { + parameters?: { [propertyName: string]: string }; + runOn?: string; } /** * @class - * Initializes a new instance of the DscReportResourceNavigation class. + * Initializes a new instance of the TestJob class. * @constructor - * Navigation for DSC Report Resource. + * Definition of the test job. * - * @member {string} [resourceId] Gets or sets the ID of the resource to - * navigate to. + * @member {date} [creationTime] Gets or sets the creation time of the test + * job. + * @member {string} [status] Gets or sets the status of the test job. + * @member {string} [statusDetails] Gets or sets the status details of the test + * job. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + * @member {date} [startTime] Gets or sets the start time of the test job. + * @member {date} [endTime] Gets or sets the end time of the test job. + * @member {string} [exception] Gets or sets the exception of the test job. + * @member {date} [lastModifiedTime] Gets or sets the last modified time of the + * test job. + * @member {date} [lastStatusModifiedTime] Gets or sets the last status + * modified time of the test job. + * @member {object} [parameters] Gets or sets the parameters of the test job. + * @member {number} [logActivityTrace] The activity-level tracing options of + * the runbook. */ -export interface DscReportResourceNavigation { - resourceId?: string; +export interface TestJob { + creationTime?: Date; + status?: string; + statusDetails?: string; + runOn?: string; + startTime?: Date; + endTime?: Date; + exception?: string; + lastModifiedTime?: Date; + lastStatusModifiedTime?: Date; + parameters?: { [propertyName: string]: string }; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the DscReportResource class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. * @constructor - * Definition of the DSC Report Resource. + * The parameters supplied to the create or update dratft runbook properties. * - * @member {string} [resourceId] Gets or sets the ID of the resource. - * @member {string} [sourceInfo] Gets or sets the source info of the resource. - * @member {array} [dependsOn] Gets or sets the Resource Navigation values for - * resources the resource depends on. - * @member {string} [moduleName] Gets or sets the module name of the resource. - * @member {string} [moduleVersion] Gets or sets the module version of the - * resource. - * @member {string} [resourceName] Gets or sets the name of the resource. - * @member {string} [error] Gets or sets the error of the resource. - * @member {string} [status] Gets or sets the status of the resource. - * @member {number} [durationInSeconds] Gets or sets the duration in seconds - * for the resource. - * @member {date} [startDate] Gets or sets the start date of the resource. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {string} runbookType Gets or sets the type of the runbook. Possible + * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', + * 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @member {object} draft Gets or sets the draft runbook properties. + * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit + * mode. + * @member {object} [draft.draftContentLink] Gets or sets the draft runbook + * content link. + * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. + * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets + * the content hash algorithm used to hash the content. + * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [draft.draftContentLink.version] Gets or sets the version + * of the content. + * @member {date} [draft.creationTime] Gets or sets the creation time of the + * runbook draft. + * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time + * of the runbook draft. + * @member {object} [draft.parameters] Gets or sets the runbook draft + * parameters. + * @member {array} [draft.outputTypes] Gets or sets the runbook output types. + * @member {string} [description] Gets or sets the description of the runbook. + * @member {number} [logActivityTrace] Gets or sets the activity-level tracing + * options of the runbook. */ -export interface DscReportResource { - resourceId?: string; - sourceInfo?: string; - dependsOn?: DscReportResourceNavigation[]; - moduleName?: string; - moduleVersion?: string; - resourceName?: string; - error?: string; - status?: string; - durationInSeconds?: number; - startDate?: Date; +export interface RunbookCreateOrUpdateDraftProperties { + logVerbose?: boolean; + logProgress?: boolean; + runbookType: string; + draft: RunbookDraft; + description?: string; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the DscNodeReport class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. * @constructor - * Definition of the dsc node report type. + * The parameters supplied to the create or update runbook operation. * - * @member {date} [endTime] Gets or sets the end time of the node report. - * @member {date} [lastModifiedTime] Gets or sets the lastModifiedTime of the - * node report. - * @member {date} [startTime] Gets or sets the start time of the node report. - * @member {string} [type] Gets or sets the type of the node report. - * @member {string} [reportId] Gets or sets the id of the node report. - * @member {string} [status] Gets or sets the status of the node report. - * @member {string} [refreshMode] Gets or sets the refreshMode of the node - * report. - * @member {string} [rebootRequested] Gets or sets the rebootRequested of the - * node report. - * @member {string} [reportFormatVersion] Gets or sets the reportFormatVersion - * of the node report. - * @member {string} [configurationVersion] Gets or sets the - * configurationVersion of the node report. - * @member {string} [id] Gets or sets the id. - * @member {array} [errors] Gets or sets the errors for the node report. - * @member {array} [resources] Gets or sets the resource for the node report. - * @member {object} [metaConfiguration] Gets or sets the metaConfiguration of - * the node at the time of the report. - * @member {number} [metaConfiguration.configurationModeFrequencyMins] Gets or - * sets the ConfigurationModeFrequencyMins value of the meta configuration. - * @member {boolean} [metaConfiguration.rebootNodeIfNeeded] Gets or sets the - * RebootNodeIfNeeded value of the meta configuration. - * @member {string} [metaConfiguration.configurationMode] Gets or sets the - * ConfigurationMode value of the meta configuration. - * @member {string} [metaConfiguration.actionAfterReboot] Gets or sets the - * ActionAfterReboot value of the meta configuration. - * @member {string} [metaConfiguration.certificateId] Gets or sets the - * CertificateId value of the meta configuration. - * @member {number} [metaConfiguration.refreshFrequencyMins] Gets or sets the - * RefreshFrequencyMins value of the meta configuration. - * @member {boolean} [metaConfiguration.allowModuleOverwrite] Gets or sets the - * AllowModuleOverwrite value of the meta configuration. - * @member {string} [hostName] Gets or sets the hostname of the node that sent - * the report. - * @member {array} [iPV4Addresses] Gets or sets the IPv4 address of the node - * that sent the report. - * @member {array} [iPV6Addresses] Gets or sets the IPv6 address of the node - * that sent the report. - * @member {number} [numberOfResources] Gets or sets the number of resource in - * the node report. - * @member {string} [rawErrors] Gets or sets the unparsed errors for the node - * report. + * @member {string} runbookContent Content of the Runbook. */ -export interface DscNodeReport { - endTime?: Date; - lastModifiedTime?: Date; - startTime?: Date; - type?: string; - reportId?: string; - status?: string; - refreshMode?: string; - rebootRequested?: string; - reportFormatVersion?: string; - configurationVersion?: string; - id?: string; - errors?: DscReportError[]; - resources?: DscReportResource[]; - metaConfiguration?: DscMetaConfiguration; - hostName?: string; - iPV4Addresses?: string[]; - iPV6Addresses?: string[]; - numberOfResources?: number; - rawErrors?: string; +export interface RunbookCreateOrUpdateDraftParameters { + runbookContent: string; } /** * @class - * Initializes a new instance of the HybridRunbookWorker class. + * Initializes a new instance of the JobStream class. * @constructor - * Definition of hybrid runbook worker. + * Definition of the job stream. * - * @member {string} [name] Gets or sets the worker machine name. - * @member {string} [ip] Gets or sets the assigned machine IP address. - * @member {date} [registrationTime] Gets or sets the registration time of the - * worker machine. + * @member {string} [id] Gets or sets the id of the resource. + * @member {string} [jobStreamId] Gets or sets the id of the job stream. + * @member {date} [time] Gets or sets the creation time of the job. + * @member {string} [streamType] Gets or sets the stream type. Possible values + * include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any' + * @member {string} [streamText] Gets or sets the stream text. + * @member {string} [summary] Gets or sets the summary. + * @member {object} [value] Gets or sets the values of the job stream. */ -export interface HybridRunbookWorker { - name?: string; - ip?: string; - registrationTime?: Date; +export interface JobStream { + id?: string; + jobStreamId?: string; + time?: Date; + streamType?: string; + streamText?: string; + summary?: string; + value?: { [propertyName: string]: any }; } /** * @class - * Initializes a new instance of the RunAsCredentialAssociationProperty class. + * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. * @constructor - * Definition of runas credential to use for hybrid worker. + * The properties of the create advanced schedule monthly occurrence. * - * @member {string} [name] Gets or sets the name of the credential. + * @member {number} [occurrence] Occurrence of the week within the month. Must + * be between 1 and 5 + * @member {string} [day] Day of the occurrence. Must be one of monday, + * tuesday, wednesday, thursday, friday, saturday, sunday. Possible values + * include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', + * 'Sunday' */ -export interface RunAsCredentialAssociationProperty { - name?: string; +export interface AdvancedScheduleMonthlyOccurrence { + occurrence?: number; + day?: string; } /** * @class - * Initializes a new instance of the HybridRunbookWorkerGroup class. + * Initializes a new instance of the AdvancedSchedule class. * @constructor - * Definition of hybrid runbook worker group. + * The properties of the create Advanced Schedule. * - * @member {string} [id] Gets or sets the id of the resource. - * @member {string} [name] Gets or sets the name of the group. - * @member {array} [hybridRunbookWorkers] Gets or sets the list of hybrid - * runbook workers. - * @member {object} [credential] Sets the credential of a worker group. - * @member {string} [credential.name] Gets or sets the name of the credential. + * @member {array} [weekDays] Days of the week that the job should execute on. + * @member {array} [monthDays] Days of the month that the job should execute + * on. Must be between 1 and 31. + * @member {array} [monthlyOccurrences] Occurrences of days within a month. */ -export interface HybridRunbookWorkerGroup { - id?: string; - name?: string; - hybridRunbookWorkers?: HybridRunbookWorker[]; - credential?: RunAsCredentialAssociationProperty; +export interface AdvancedSchedule { + weekDays?: string[]; + monthDays?: number[]; + monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; } /** * @class - * Initializes a new instance of the HybridRunbookWorkerGroupUpdateParameters class. + * Initializes a new instance of the ScheduleCreateOrUpdateParameters class. * @constructor - * Parameters supplied to the update operation. + * The parameters supplied to the create or update schedule operation. * - * @member {object} [credential] Sets the credential of a worker group. - * @member {string} [credential.name] Gets or sets the name of the credential. + * @member {string} name Gets or sets the name of the Schedule. + * @member {string} [description] Gets or sets the description of the schedule. + * @member {date} startTime Gets or sets the start time of the schedule. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {object} [interval] Gets or sets the interval of the schedule. + * @member {string} frequency Possible values include: 'OneTime', 'Day', + * 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the AdvancedSchedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. */ -export interface HybridRunbookWorkerGroupUpdateParameters { - credential?: RunAsCredentialAssociationProperty; +export interface ScheduleCreateOrUpdateParameters { + name: string; + description?: string; + startTime: Date; + expiryTime?: Date; + interval?: any; + frequency: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; } /** * @class - * Initializes a new instance of the Job class. + * Initializes a new instance of the ScheduleProperties class. * @constructor - * Definition of the job. + * Definition of schedule parameters. * - * @member {object} [runbook] Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [startedBy] Gets or sets the job started by. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - * @member {uuid} [jobId] Gets or sets the id of the job. - * @member {date} [creationTime] Gets or sets the creation time of the job. - * @member {string} [status] Gets or sets the status of the job. Possible - * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', - * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', - * 'Resuming', 'Removing' - * @member {string} [statusDetails] Gets or sets the status details of the job. - * @member {date} [startTime] Gets or sets the start time of the job. - * @member {date} [endTime] Gets or sets the end time of the job. - * @member {string} [exception] Gets or sets the exception of the job. - * @member {date} [lastModifiedTime] Gets or sets the last modified time of the - * job. - * @member {date} [lastStatusModifiedTime] Gets or sets the last status - * modified time of the job. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {object} [provisioningState] The provisioning state of a resource. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' + * @member {date} [startTime] Gets or sets the start time of the schedule. + * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in + * minutes. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + * @member {date} [nextRun] Gets or sets the next run time of the schedule. + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + * @member {number} [interval] Gets or sets the interval of the schedule. + * @member {string} [frequency] Gets or sets the frequency of the schedule. + * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the advanced schedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface Job extends ProxyResource { - runbook?: RunbookAssociationProperty; - startedBy?: string; - runOn?: string; - jobId?: string; - creationTime?: Date; - status?: string; - statusDetails?: string; +export interface ScheduleProperties { startTime?: Date; - endTime?: Date; - exception?: string; + readonly startTimeOffsetMinutes?: number; + expiryTime?: Date; + expiryTimeOffsetMinutes?: number; + isEnabled?: boolean; + nextRun?: Date; + nextRunOffsetMinutes?: number; + interval?: number; + frequency?: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; + creationTime?: Date; lastModifiedTime?: Date; - lastStatusModifiedTime?: Date; - parameters?: { [propertyName: string]: string }; - provisioningState?: JobProvisioningStateProperty; + description?: string; } /** * @class - * Initializes a new instance of the JobCreateParameters class. + * Initializes a new instance of the Schedule class. * @constructor - * The parameters supplied to the create job operation. + * Definition of the schedule. * - * @member {object} runbook Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. + * @member {date} [startTime] Gets or sets the start time of the schedule. + * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in + * minutes. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + * @member {date} [nextRun] Gets or sets the next run time of the schedule. + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + * @member {number} [interval] Gets or sets the interval of the schedule. + * @member {string} [frequency] Gets or sets the frequency of the schedule. + * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the advanced schedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface JobCreateParameters { - runbook: RunbookAssociationProperty; - parameters?: { [propertyName: string]: string }; - runOn?: string; +export interface Schedule extends ProxyResource { + startTime?: Date; + readonly startTimeOffsetMinutes?: number; + expiryTime?: Date; + expiryTimeOffsetMinutes?: number; + isEnabled?: boolean; + nextRun?: Date; + nextRunOffsetMinutes?: number; + interval?: number; + frequency?: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the JobListResult class. + * Initializes a new instance of the ScheduleUpdateParameters class. * @constructor - * The response model for the list job operation. + * The parameters supplied to the update schedule operation. * - * @member {array} [value] Gets or sets a list of jobs. - * @member {string} [nextLink] Gets or sets the next link. + * @member {string} [name] Gets or sets the name of the Schedule. + * @member {string} [description] Gets or sets the description of the schedule. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. */ -export interface JobListResult { - value?: Job[]; - nextLink?: string; +export interface ScheduleUpdateParameters { + name?: string; + description?: string; + isEnabled?: boolean; } /** * @class - * Initializes a new instance of the ScheduleAssociationProperty class. + * Initializes a new instance of the VariableCreateOrUpdateParameters class. * @constructor - * The schedule property associated with the entity. + * The parameters supplied to the create or update variable operation. * - * @member {string} [name] Gets or sets the name of the schedule. + * @member {string} name Gets or sets the name of the variable. + * @member {string} [value] Gets or sets the value of the variable. + * @member {string} [description] Gets or sets the description of the variable. + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. */ -export interface ScheduleAssociationProperty { - name?: string; +export interface VariableCreateOrUpdateParameters { + name: string; + value?: string; + description?: string; + isEncrypted?: boolean; } /** * @class - * Initializes a new instance of the JobScheduleCreateParameters class. + * Initializes a new instance of the Variable class. * @constructor - * The parameters supplied to the create job schedule operation. + * Definition of the varible. * - * @member {object} schedule Gets or sets the schedule. - * @member {string} [schedule.name] Gets or sets the name of the schedule. - * @member {object} runbook Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the hybrid worker group that the - * scheduled job should run on. - * @member {object} [parameters] Gets or sets a list of job properties. + * @member {string} [value] Gets or sets the value of the variable. + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface JobScheduleCreateParameters { - schedule: ScheduleAssociationProperty; - runbook: RunbookAssociationProperty; - runOn?: string; - parameters?: { [propertyName: string]: string }; +export interface Variable extends ProxyResource { + value?: string; + isEncrypted?: boolean; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the JobSchedule class. + * Initializes a new instance of the VariableUpdateParameters class. * @constructor - * Definition of the job schedule. + * The parameters supplied to the update variable operation. * - * @member {string} [id] Gets the id of the resource. - * @member {string} [name] Gets the name of the variable. - * @member {string} [type] Resource type - * @member {string} [jobScheduleId] Gets or sets the id of job schedule. - * @member {object} [schedule] Gets or sets the schedule. - * @member {string} [schedule.name] Gets or sets the name of the schedule. - * @member {object} [runbook] Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the hybrid worker group that the - * scheduled job should run on. - * @member {object} [parameters] Gets or sets the parameters of the job - * schedule. - */ -export interface JobSchedule { - readonly id?: string; - readonly name?: string; - readonly type?: string; - jobScheduleId?: string; - schedule?: ScheduleAssociationProperty; - runbook?: RunbookAssociationProperty; - runOn?: string; - parameters?: { [propertyName: string]: string }; + * @member {string} [name] Gets or sets the name of the variable. + * @member {string} [value] Gets or sets the value of the variable. + * @member {string} [description] Gets or sets the description of the variable. + */ +export interface VariableUpdateParameters { + name?: string; + value?: string; + description?: string; } /** * @class - * Initializes a new instance of the JobStream class. + * Initializes a new instance of the Webhook class. * @constructor - * Definition of the job stream. + * Definition of the webhook type. * - * @member {string} [id] Gets or sets the id of the resource. - * @member {string} [jobStreamId] Gets or sets the id of the job stream. - * @member {date} [time] Gets or sets the creation time of the job. - * @member {string} [streamType] Gets or sets the stream type. Possible values - * include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any' - * @member {string} [streamText] Gets or sets the stream text. - * @member {string} [summary] Gets or sets the summary. - * @member {object} [value] Gets or sets the values of the job stream. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * the webhook. Default value: false . + * @member {string} [uri] Gets or sets the webhook uri. + * @member {date} [expiryTime] Gets or sets the expiry time. + * @member {date} [lastInvokedTime] Gets or sets the last invoked time. + * @member {object} [parameters] Gets or sets the parameters of the job that is + * created when the webhook calls the runbook it is associated with. + * @member {object} [runbook] Gets or sets the runbook the webhook is + * associated with. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified the + * Webhook + * @member {string} [description] Gets or sets the description. */ -export interface JobStream { - id?: string; - jobStreamId?: string; - time?: Date; - streamType?: string; - streamText?: string; - summary?: string; - value?: { [propertyName: string]: any }; +export interface Webhook extends ProxyResource { + isEnabled?: boolean; + uri?: string; + expiryTime?: Date; + lastInvokedTime?: Date; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; + runOn?: string; + creationTime?: Date; + lastModifiedTime?: Date; + lastModifiedBy?: string; + description?: string; } /** * @class - * Initializes a new instance of the LinkedWorkspace class. + * Initializes a new instance of the WebhookUpdateParameters class. * @constructor - * Definition of the linked workspace. + * The parameters supplied to the update webhook operation. * - * @member {string} [id] Gets the id of the linked workspace. + * @member {string} [name] Gets or sets the name of the webhook. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * webhook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {string} [description] Gets or sets the description of the webhook. */ -export interface LinkedWorkspace { - readonly id?: string; +export interface WebhookUpdateParameters { + name?: string; + isEnabled?: boolean; + runOn?: string; + parameters?: { [propertyName: string]: string }; + description?: string; } /** * @class - * Initializes a new instance of the ModuleCreateOrUpdateParameters class. + * Initializes a new instance of the WebhookCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the create or update module operation. + * The parameters supplied to the create or update webhook operation. * - * @member {object} contentLink Gets or sets the module content link. - * @member {string} [contentLink.uri] Gets or sets the uri of the runbook - * content. - * @member {object} [contentLink.contentHash] Gets or sets the hash. - * @member {string} [contentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [contentLink.contentHash.value] Gets or sets expected hash - * value of the content. - * @member {string} [contentLink.version] Gets or sets the version of the - * content. - * @member {string} [name] Gets or sets name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} name Gets or sets the name of the webhook. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * webhook. + * @member {string} [uri] Gets or sets the uri. + * @member {date} [expiryTime] Gets or sets the expiry time. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {object} [runbook] Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. */ -export interface ModuleCreateOrUpdateParameters { - contentLink: ContentLink; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface WebhookCreateOrUpdateParameters { + name: string; + isEnabled?: boolean; + uri?: string; + expiryTime?: Date; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; + runOn?: string; } /** * @class - * Initializes a new instance of the ModuleUpdateParameters class. + * Initializes a new instance of the Watcher class. * @constructor - * The parameters supplied to the update module operation. + * Definition of the watcher type. * - * @member {object} [contentLink] Gets or sets the module content link. - * @member {string} [contentLink.uri] Gets or sets the uri of the runbook - * content. - * @member {object} [contentLink.contentHash] Gets or sets the hash. - * @member {string} [contentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [contentLink.contentHash.value] Gets or sets expected hash - * value of the content. - * @member {string} [contentLink.version] Gets or sets the version of the - * content. - * @member {string} [name] Gets or sets name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at + * which the watcher is invoked. + * @member {string} [scriptName] Gets or sets the name of the script the + * watcher is attached to, i.e. the name of an existing runbook. + * @member {object} [scriptParameters] Gets or sets the parameters of the + * script. + * @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker + * group the watcher will run on. + * @member {string} [status] Gets the current status of the watcher. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified the + * watcher. + * @member {string} [description] Gets or sets the description. + * @member {string} [etag] Gets or sets the etag of the resource. */ -export interface ModuleUpdateParameters { - contentLink?: ContentLink; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface Watcher extends TrackedResource { + executionFrequencyInSeconds?: number; + scriptName?: string; + scriptParameters?: { [propertyName: string]: string }; + scriptRunOn?: string; + readonly status?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly lastModifiedBy?: string; + description?: string; + etag?: string; } /** * @class - * Initializes a new instance of the RunbookDraftUndoEditResult class. + * Initializes a new instance of the WatcherUpdateParameters class. * @constructor - * The response model for the undoedit runbook operation. - * - * @member {string} [statusCode] Possible values include: 'Continue', - * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', - * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', - * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' - * @member {string} [requestId] + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at + * which the watcher is invoked. + * @member {string} [name] Gets or sets the name of the resource. */ -export interface RunbookDraftUndoEditResult { - statusCode?: string; - requestId?: string; +export interface WatcherUpdateParameters { + executionFrequencyInSeconds?: number; + name?: string; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateParameters class. + * Initializes a new instance of the WindowsProperties class. * @constructor - * The parameters supplied to the create or update runbook operation. + * Windows specific update configuration. * - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {string} runbookType Gets or sets the type of the runbook. Possible - * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', - * 'GraphPowerShellWorkflow', 'GraphPowerShell' - * @member {object} [draft] Gets or sets the draft runbook properties. - * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit - * mode. - * @member {object} [draft.draftContentLink] Gets or sets the draft runbook - * content link. - * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets - * the content hash algorithm used to hash the content. - * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [draft.draftContentLink.version] Gets or sets the version - * of the content. - * @member {date} [draft.creationTime] Gets or sets the creation time of the - * runbook draft. - * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time - * of the runbook draft. - * @member {object} [draft.parameters] Gets or sets the runbook draft - * parameters. - * @member {array} [draft.outputTypes] Gets or sets the runbook output types. - * @member {object} [publishContentLink] Gets or sets the published runbook - * content link. - * @member {string} [publishContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [publishContentLink.contentHash] Gets or sets the hash. - * @member {string} [publishContentLink.contentHash.algorithm] Gets or sets the - * content hash algorithm used to hash the content. - * @member {string} [publishContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [publishContentLink.version] Gets or sets the version of - * the content. - * @member {string} [description] Gets or sets the description of the runbook. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} [includedUpdateClassifications] Update classification + * included in the software update configuration. A comma separated string with + * required values. Possible values include: 'Unclassified', 'Critical', + * 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', + * 'Tools', 'Updates' + * @member {array} [excludedKbNumbers] KB numbers excluded from the software + * update configuration. + * @member {array} [includedKbNumbers] KB numbers included from the software + * update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ -export interface RunbookCreateOrUpdateParameters { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft?: RunbookDraft; - publishContentLink?: ContentLink; - description?: string; - logActivityTrace?: number; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface WindowsProperties { + includedUpdateClassifications?: string; + excludedKbNumbers?: string[]; + includedKbNumbers?: string[]; + rebootSetting?: string; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. + * Initializes a new instance of the LinuxProperties class. * @constructor - * The parameters supplied to the create or update dratft runbook properties. + * Linux specific update configuration. * - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {string} runbookType Gets or sets the type of the runbook. Possible - * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', - * 'GraphPowerShellWorkflow', 'GraphPowerShell' - * @member {object} draft Gets or sets the draft runbook properties. - * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit - * mode. - * @member {object} [draft.draftContentLink] Gets or sets the draft runbook - * content link. - * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets - * the content hash algorithm used to hash the content. - * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [draft.draftContentLink.version] Gets or sets the version - * of the content. - * @member {date} [draft.creationTime] Gets or sets the creation time of the - * runbook draft. - * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time - * of the runbook draft. - * @member {object} [draft.parameters] Gets or sets the runbook draft - * parameters. - * @member {array} [draft.outputTypes] Gets or sets the runbook output types. - * @member {string} [description] Gets or sets the description of the runbook. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - */ -export interface RunbookCreateOrUpdateDraftProperties { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft: RunbookDraft; - description?: string; - logActivityTrace?: number; -} - -/** - * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. - * @constructor - * The parameters supplied to the create or update runbook operation. - * - * @member {string} runbookContent Content of the Runbook. - */ -export interface RunbookCreateOrUpdateDraftParameters { - runbookContent: string; -} - -/** - * @class - * Initializes a new instance of the RunbookUpdateParameters class. - * @constructor - * The parameters supplied to the update runbook operation. - * - * @member {string} [description] Gets or sets the description of the runbook. - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. - */ -export interface RunbookUpdateParameters { - description?: string; - logVerbose?: boolean; - logProgress?: boolean; - logActivityTrace?: number; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the ScheduleCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update schedule operation. - * - * @member {string} name Gets or sets the name of the schedule. - * @member {string} [description] Gets or sets the description of the schedule. - * @member {date} startTime Gets or sets the start time of the schedule. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {object} [interval] Gets or sets the interval of the schedule. - * @member {string} frequency Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the AdvancedSchedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. + * @member {string} [includedPackageClassifications] Update classifications + * included in the software update configuration. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'Other' + * @member {array} [excludedPackageNameMasks] packages excluded from the + * software update configuration. + * @member {array} [includedPackageNameMasks] packages included from the + * software update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ -export interface ScheduleCreateOrUpdateParameters { - name: string; - description?: string; - startTime: Date; - expiryTime?: Date; - interval?: any; - frequency: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; +export interface LinuxProperties { + includedPackageClassifications?: string; + excludedPackageNameMasks?: string[]; + includedPackageNameMasks?: string[]; + rebootSetting?: string; } /** * @class - * Initializes a new instance of the ScheduleProperties class. + * Initializes a new instance of the UpdateConfiguration class. * @constructor - * Definition of schedule parameters. + * Update specifc properties of the software update configuration. * - * @member {date} [startTime] Gets or sets the start time of the schedule. - * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in - * minutes. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's - * offset in minutes. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. Default value: false . - * @member {date} [nextRun] Gets or sets the next run time of the schedule. - * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's - * offset in minutes. - * @member {number} [interval] Gets or sets the interval of the schedule. - * @member {string} [frequency] Gets or sets the frequency of the schedule. - * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the advanced schedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {string} operatingSystem operating system of target machines. + * Possible values include: 'Windows', 'Linux' + * @member {object} [windows] Windows specific update configuration. + * @member {string} [windows.includedUpdateClassifications] Update + * classification included in the software update configuration. A comma + * separated string with required values. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + * @member {array} [windows.excludedKbNumbers] KB numbers excluded from the + * software update configuration. + * @member {array} [windows.includedKbNumbers] KB numbers included from the + * software update configuration. + * @member {string} [windows.rebootSetting] Reboot setting for the software + * update configuration. + * @member {object} [linux] Linux specific update configuration. + * @member {string} [linux.includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' + * @member {array} [linux.excludedPackageNameMasks] packages excluded from the + * software update configuration. + * @member {array} [linux.includedPackageNameMasks] packages included from the + * software update configuration. + * @member {string} [linux.rebootSetting] Reboot setting for the software + * update configuration. + * @member {moment.duration} [duration] Maximum time allowed for the software + * update configuration run. Duration needs to be specified using the format + * PT[n]H[n]M[n]S as per ISO8601 + * @member {array} [azureVirtualMachines] List of azure resource Ids for azure + * virtual machines targeted by the software update configuration. + * @member {array} [nonAzureComputerNames] List of names of non-azure machines + * targeted by the software update configuration. */ -export interface ScheduleProperties { - startTime?: Date; - readonly startTimeOffsetMinutes?: number; - expiryTime?: Date; - expiryTimeOffsetMinutes?: number; - isEnabled?: boolean; - nextRun?: Date; - nextRunOffsetMinutes?: number; - interval?: number; - frequency?: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; +export interface UpdateConfiguration { + operatingSystem: string; + windows?: WindowsProperties; + linux?: LinuxProperties; + duration?: moment.Duration; + azureVirtualMachines?: string[]; + nonAzureComputerNames?: string[]; } /** * @class - * Initializes a new instance of the Schedule class. + * Initializes a new instance of the SoftwareUpdateConfiguration class. * @constructor - * Definition of the schedule. + * Software update configuration properties. * - * @member {string} [id] Gets the id of the resource. - * @member {string} [name] Gets name of the schedule. + * @member {string} [name] Resource name. + * @member {string} [id] Resource Id. * @member {string} [type] Resource type - * @member {date} [startTime] Gets or sets the start time of the schedule. - * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in - * minutes. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's - * offset in minutes. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. Default value: false . - * @member {date} [nextRun] Gets or sets the next run time of the schedule. - * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's - * offset in minutes. - * @member {number} [interval] Gets or sets the interval of the schedule. - * @member {string} [frequency] Gets or sets the frequency of the schedule. - * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the advanced schedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. - */ -export interface Schedule { - readonly id?: string; - readonly name?: string; - readonly type?: string; - startTime?: Date; - readonly startTimeOffsetMinutes?: number; - expiryTime?: Date; - expiryTimeOffsetMinutes?: number; - isEnabled?: boolean; - nextRun?: Date; - nextRunOffsetMinutes?: number; - interval?: number; - frequency?: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; -} - -/** - * @class - * Initializes a new instance of the ScheduleUpdateParameters class. - * @constructor - * The parameters supplied to the update schedule operation. - * - * @member {string} [name] Gets or sets the name of the schedule. - * @member {string} [description] Gets or sets the description of the schedule. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. - */ -export interface ScheduleUpdateParameters { - name?: string; - description?: string; - isEnabled?: boolean; -} - -/** - * @class - * Initializes a new instance of the SubResource class. - * @constructor - * The Sub Resource definition. - * - * @member {string} [id] Resource Id - */ -export interface SubResource extends BaseResource { - id?: string; -} - -/** - * @class - * Initializes a new instance of the TestJobCreateParameters class. - * @constructor - * The parameters supplied to the create test job operation. - * - * @member {object} [parameters] Gets or sets the parameters of the test job. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - */ -export interface TestJobCreateParameters { - parameters?: { [propertyName: string]: string }; - runOn?: string; -} - -/** - * @class - * Initializes a new instance of the TestJob class. - * @constructor - * Definition of the test job. - * - * @member {date} [creationTime] Gets or sets the creation time of the test - * job. - * @member {string} [status] Gets or sets the status of the test job. - * @member {string} [statusDetails] Gets or sets the status details of the test - * job. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - * @member {date} [startTime] Gets or sets the start time of the test job. - * @member {date} [endTime] Gets or sets the end time of the test job. - * @member {string} [exception] Gets or sets the exception of the test job. - * @member {date} [lastModifiedTime] Gets or sets the last modified time of the - * test job. - * @member {date} [lastStatusModifiedTime] Gets or sets the last status - * modified time of the test job. - * @member {object} [parameters] Gets or sets the parameters of the test job. - * @member {number} [logActivityTrace] The activity-level tracing options of - * the runbook. - */ -export interface TestJob { - creationTime?: Date; - status?: string; - statusDetails?: string; - runOn?: string; - startTime?: Date; - endTime?: Date; - exception?: string; - lastModifiedTime?: Date; - lastStatusModifiedTime?: Date; - parameters?: { [propertyName: string]: string }; - logActivityTrace?: number; -} - -/** - * @class - * Initializes a new instance of the TypeField class. - * @constructor - * Information about a field of a type. - * - * @member {string} [name] Gets or sets the name of the field. - * @member {string} [type] Gets or sets the type of the field. + * @member {object} updateConfiguration update specific properties for the + * Software update configuration + * @member {string} [updateConfiguration.operatingSystem] operating system of + * target machines. Possible values include: 'Windows', 'Linux' + * @member {object} [updateConfiguration.windows] Windows specific update + * configuration. + * @member {string} [updateConfiguration.windows.includedUpdateClassifications] + * Update classification included in the software update configuration. A comma + * separated string with required values. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + * @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers + * excluded from the software update configuration. + * @member {array} [updateConfiguration.windows.includedKbNumbers] KB numbers + * included from the software update configuration. + * @member {string} [updateConfiguration.windows.rebootSetting] Reboot setting + * for the software update configuration. + * @member {object} [updateConfiguration.linux] Linux specific update + * configuration. + * @member {string} [updateConfiguration.linux.includedPackageClassifications] + * Update classifications included in the software update configuration. + * Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' + * @member {array} [updateConfiguration.linux.excludedPackageNameMasks] + * packages excluded from the software update configuration. + * @member {array} [updateConfiguration.linux.includedPackageNameMasks] + * packages included from the software update configuration. + * @member {string} [updateConfiguration.linux.rebootSetting] Reboot setting + * for the software update configuration. + * @member {moment.duration} [updateConfiguration.duration] Maximum time + * allowed for the software update configuration run. Duration needs to be + * specified using the format PT[n]H[n]M[n]S as per ISO8601 + * @member {array} [updateConfiguration.azureVirtualMachines] List of azure + * resource Ids for azure virtual machines targeted by the software update + * configuration. + * @member {array} [updateConfiguration.nonAzureComputerNames] List of names of + * non-azure machines targeted by the software update configuration. + * @member {object} scheduleInfo Schedule information for the Software update + * configuration + * @member {date} [scheduleInfo.startTime] Gets or sets the start time of the + * schedule. + * @member {number} [scheduleInfo.startTimeOffsetMinutes] Gets the start time's + * offset in minutes. + * @member {date} [scheduleInfo.expiryTime] Gets or sets the end time of the + * schedule. + * @member {number} [scheduleInfo.expiryTimeOffsetMinutes] Gets or sets the + * expiry time's offset in minutes. + * @member {boolean} [scheduleInfo.isEnabled] Gets or sets a value indicating + * whether this schedule is enabled. + * @member {date} [scheduleInfo.nextRun] Gets or sets the next run time of the + * schedule. + * @member {number} [scheduleInfo.nextRunOffsetMinutes] Gets or sets the next + * run time's offset in minutes. + * @member {number} [scheduleInfo.interval] Gets or sets the interval of the + * schedule. + * @member {string} [scheduleInfo.frequency] Gets or sets the frequency of the + * schedule. Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @member {string} [scheduleInfo.timeZone] Gets or sets the time zone of the + * schedule. + * @member {object} [scheduleInfo.advancedSchedule] Gets or sets the advanced + * schedule. + * @member {array} [scheduleInfo.advancedSchedule.weekDays] Days of the week + * that the job should execute on. + * @member {array} [scheduleInfo.advancedSchedule.monthDays] Days of the month + * that the job should execute on. Must be between 1 and 31. + * @member {array} [scheduleInfo.advancedSchedule.monthlyOccurrences] + * Occurrences of days within a month. + * @member {date} [scheduleInfo.creationTime] Gets or sets the creation time. + * @member {date} [scheduleInfo.lastModifiedTime] Gets or sets the last + * modified time. + * @member {string} [scheduleInfo.description] Gets or sets the description. + * @member {string} [provisioningState] Provisioning state for the software + * update configuration, which only appears in the response. + * @member {object} [error] detailes of provisioning error + * @member {string} [error.code] Error code + * @member {string} [error.message] Error message indicating why the operation + * failed. + * @member {date} [creationTime] Creation time of theresource, which only + * appears in the response. + * @member {string} [createdBy] createdBy property, which only appears in the + * response. + * @member {date} [lastModifiedTime] Last time resource was modified, which + * only appears in the response. + * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * appears in the response. */ -export interface TypeField { - name?: string; - type?: string; +export interface SoftwareUpdateConfiguration extends BaseResource { + readonly name?: string; + readonly id?: string; + readonly type?: string; + updateConfiguration: UpdateConfiguration; + scheduleInfo: ScheduleProperties; + readonly provisioningState?: string; + error?: ErrorResponse; + readonly creationTime?: Date; + readonly createdBy?: string; + readonly lastModifiedTime?: Date; + readonly lastModifiedBy?: string; } /** * @class - * Initializes a new instance of the VariableCreateOrUpdateParameters class. + * Initializes a new instance of the CollectionItemUpdateConfiguration class. * @constructor - * The parameters supplied to the create or update variable operation. + * object returned when requesting a collection of software update + * configuration * - * @member {string} name Gets or sets the name of the variable. - * @member {string} [value] Gets or sets the value of the variable. - * @member {string} [description] Gets or sets the description of the variable. - * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the - * variable. + * @member {array} [azureVirtualMachines] List of azure resource Ids for azure + * virtual machines targeted by the software update configuration. + * @member {moment.duration} [duration] Maximum time allowed for the software + * update configuration run. Duration needs to be specified using the format + * PT[n]H[n]M[n]S as per ISO8601 */ -export interface VariableCreateOrUpdateParameters { - name: string; - value?: string; - description?: string; - isEncrypted?: boolean; +export interface CollectionItemUpdateConfiguration { + azureVirtualMachines?: string[]; + duration?: moment.Duration; } /** * @class - * Initializes a new instance of the VariableUpdateParameters class. + * Initializes a new instance of the SoftwareUpdateConfigurationCollectionItem class. * @constructor - * The parameters supplied to the update variable operation. + * Software update configuration collection item properties. * - * @member {string} [name] Gets or sets the name of the variable. - * @member {string} [value] Gets or sets the value of the variable. - * @member {string} [description] Gets or sets the description of the variable. + * @member {string} [name] Name of the software update configuration. + * @member {string} [id] Resource Id of the software update configuration + * @member {object} [updateConfiguration] Update specific properties of the + * software update configuration. + * @member {array} [updateConfiguration.azureVirtualMachines] List of azure + * resource Ids for azure virtual machines targeted by the software update + * configuration. + * @member {moment.duration} [updateConfiguration.duration] Maximum time + * allowed for the software update configuration run. Duration needs to be + * specified using the format PT[n]H[n]M[n]S as per ISO8601 + * @member {string} [frequency] execution frequency of the schedule associated + * with the software update configuration. Possible values include: 'OneTime', + * 'Day', 'Hour', 'Week', 'Month' + * @member {date} [startTime] the start time of the update. + * @member {date} [creationTime] Creation time of the software update + * configuration, which only appears in the response. + * @member {date} [lastModifiedTime] Last time software update configuration + * was modified, which only appears in the response. + * @member {string} [provisioningState] Provisioning state for the software + * update configuration, which only appears in the response. + * @member {date} [nextRun] ext run time of the update. */ -export interface VariableUpdateParameters { - name?: string; - value?: string; - description?: string; +export interface SoftwareUpdateConfigurationCollectionItem { + readonly name?: string; + readonly id?: string; + updateConfiguration?: CollectionItemUpdateConfiguration; + frequency?: string; + startTime?: Date; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly provisioningState?: string; + nextRun?: Date; } /** * @class - * Initializes a new instance of the WebhookCreateOrUpdateParameters class. + * Initializes a new instance of the SoftwareUpdateConfigurationListResult class. * @constructor - * The parameters supplied to the create or update webhook operation. + * result of listing all software update configuration * - * @member {string} name Gets or sets the name of the webhook. - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * webhook. - * @member {string} [uri] Gets or sets the uri. - * @member {date} [expiryTime] Gets or sets the expiry time. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {object} [runbook] Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. + * @member {array} [value] outer object returned when listing all software + * update configurations */ -export interface WebhookCreateOrUpdateParameters { - name: string; - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; +export interface SoftwareUpdateConfigurationListResult { + value?: SoftwareUpdateConfigurationCollectionItem[]; } /** * @class - * Initializes a new instance of the WebhookUpdateParameters class. + * Initializes a new instance of the UpdateConfigurationNavigation class. * @constructor - * The parameters supplied to the update webhook operation. + * Software update configuration Run Navigation model. * - * @member {string} [name] Gets or sets the name of the webhook. - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * webhook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {string} [description] Gets or sets the description of the webhook. + * @member {string} [name] Name of the software update configuration triggered + * the software update configuration run */ -export interface WebhookUpdateParameters { - name?: string; - isEnabled?: boolean; - runOn?: string; - parameters?: { [propertyName: string]: string }; - description?: string; +export interface UpdateConfigurationNavigation { + readonly name?: string; } /** * @class - * Initializes a new instance of the JobCollectionItem class. + * Initializes a new instance of the SoftwareUpdateConfigurationRun class. * @constructor - * Job collection item properties. + * Software update configuration Run properties. * - * @member {object} [runbook] The runbook association. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {uuid} [jobId] The id of the job. - * @member {date} [creationTime] The creation time of the job. - * @member {string} [status] The status of the job. Possible values include: - * 'New', 'Activating', 'Running', 'Completed', 'Failed', 'Stopped', 'Blocked', - * 'Suspended', 'Disconnected', 'Suspending', 'Stopping', 'Resuming', - * 'Removing' - * @member {date} [startTime] The start time of the job. - * @member {date} [endTime] The end time of the job. - * @member {date} [lastModifiedTime] The last modified time of the job. - * @member {object} [provisioningState] The current provisioning state of the - * job. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' + * @member {string} [name] Name of the software update configuration run. + * @member {string} [id] Resource Id of the software update configuration run + * @member {object} [softwareUpdateConfiguration] software update configuration + * triggered this run + * @member {string} [softwareUpdateConfiguration.name] Name of the software + * update configuration triggered the software update configuration run + * @member {string} [status] Status of the software update configuration run. + * @member {string} [configuredDuration] configured duration for the software + * update configuration run. + * @member {string} [osType] Operating system target of the software update + * configuration triggered this run + * @member {date} [startTime] Etart time of the software update configuration + * run. + * @member {date} [endTime] End time of the software update configuration run. + * @member {number} [computerCount] Number of computers in the software update + * configuration run. + * @member {number} [failedCount] Number of computers with failed status. + * @member {date} [creationTime] Creation time of theresource, which only + * appears in the response. + * @member {string} [createdBy] createdBy property, which only appears in the + * response. + * @member {date} [lastModifiedTime] Last time resource was modified, which + * only appears in the response. + * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * appears in the response. */ -export interface JobCollectionItem extends ProxyResource { - readonly runbook?: RunbookAssociationProperty; - readonly jobId?: string; - readonly creationTime?: Date; +export interface SoftwareUpdateConfigurationRun { + readonly name?: string; + readonly id?: string; + softwareUpdateConfiguration?: UpdateConfigurationNavigation; readonly status?: string; + readonly configuredDuration?: string; + readonly osType?: string; readonly startTime?: Date; readonly endTime?: Date; - readonly lastModifiedTime?: Date; - provisioningState?: JobProvisioningStateProperty; -} - -/** - * @class - * Initializes a new instance of the WindowsProperties class. - * @constructor - * Windows specific update configuration. - * - * @member {string} [includedUpdateClassifications] Update classification - * included in the software update configuration. A comma separated string with - * required values. Possible values include: 'Unclassified', 'Critical', - * 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', - * 'Tools', 'Updates' - * @member {array} [excludedKbNumbers] KB numbers excluded from the software - * update configuration. - */ -export interface WindowsProperties { - includedUpdateClassifications?: string; - excludedKbNumbers?: string[]; + readonly computerCount?: number; + readonly failedCount?: number; + readonly creationTime?: Date; + readonly createdBy?: string; + readonly lastModifiedTime?: Date; + readonly lastModifiedBy?: string; } /** * @class - * Initializes a new instance of the LinuxProperties class. + * Initializes a new instance of the SoftwareUpdateConfigurationRunListResult class. * @constructor - * Linux specific update configuration. + * result of listing all software update configuration runs * - * @member {string} [includedPackageClassifications] Update classifications - * included in the software update configuration. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'Other' - * @member {array} [excludedPackageNameMasks] packages excluded from the - * software update configuration. + * @member {array} [value] outer object returned when listing all software + * update configuration runs + * @member {string} [nextLink] link to next page of results. */ -export interface LinuxProperties { - includedPackageClassifications?: string; - excludedPackageNameMasks?: string[]; +export interface SoftwareUpdateConfigurationRunListResult { + value?: SoftwareUpdateConfigurationRun[]; + nextLink?: string; } /** * @class - * Initializes a new instance of the UpdateConfiguration class. + * Initializes a new instance of the JobNavigation class. * @constructor - * Update specifc properties of the software update configuration. + * Software update configuration machine run job navigation properties. * - * @member {string} operatingSystem operating system of target machines. - * Possible values include: 'Windows', 'Linux' - * @member {object} [windows] Windows specific update configuration. - * @member {string} [windows.includedUpdateClassifications] Update - * classification included in the software update configuration. A comma - * separated string with required values. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', - * 'ServicePack', 'Definition', 'Tools', 'Updates' - * @member {array} [windows.excludedKbNumbers] KB numbers excluded from the - * software update configuration. - * @member {object} [linux] Linux specific update configuration. - * @member {string} [linux.includedPackageClassifications] Update - * classifications included in the software update configuration. Possible - * values include: 'Unclassified', 'Critical', 'Security', 'Other' - * @member {array} [linux.excludedPackageNameMasks] packages excluded from the - * software update configuration. - * @member {moment.duration} [duration] Maximum time allowed for the software - * update configuration run. Duration needs to be specified using the format - * PT[n]H[n]M[n]S as per ISO8601 - * @member {array} [azureVirtualMachines] List of azure resource Ids for azure - * virtual machines targeted by the software update configuration. - * @member {array} [nonAzureComputerNames] List of names of non-azure machines - * targeted by the software update configuration. + * @member {string} [id] Id of the job associated with the software update + * configuration run */ -export interface UpdateConfiguration { - operatingSystem: string; - windows?: WindowsProperties; - linux?: LinuxProperties; - duration?: moment.Duration; - azureVirtualMachines?: string[]; - nonAzureComputerNames?: string[]; +export interface JobNavigation { + readonly id?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfiguration class. + * Initializes a new instance of the SoftwareUpdateConfigurationMachineRun class. * @constructor - * Software update configuration properties. + * Software update configuration machine run model. * - * @member {string} [name] Resource name. - * @member {string} [id] Resource Id. - * @member {string} [type] Resource type - * @member {object} updateConfiguration update specific properties for the - * Software update configuration - * @member {string} [updateConfiguration.operatingSystem] operating system of - * target machines. Possible values include: 'Windows', 'Linux' - * @member {object} [updateConfiguration.windows] Windows specific update - * configuration. - * @member {string} [updateConfiguration.windows.includedUpdateClassifications] - * Update classification included in the software update configuration. A comma - * separated string with required values. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', - * 'ServicePack', 'Definition', 'Tools', 'Updates' - * @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers - * excluded from the software update configuration. - * @member {object} [updateConfiguration.linux] Linux specific update - * configuration. - * @member {string} [updateConfiguration.linux.includedPackageClassifications] - * Update classifications included in the software update configuration. - * Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' - * @member {array} [updateConfiguration.linux.excludedPackageNameMasks] - * packages excluded from the software update configuration. - * @member {moment.duration} [updateConfiguration.duration] Maximum time - * allowed for the software update configuration run. Duration needs to be - * specified using the format PT[n]H[n]M[n]S as per ISO8601 - * @member {array} [updateConfiguration.azureVirtualMachines] List of azure - * resource Ids for azure virtual machines targeted by the software update - * configuration. - * @member {array} [updateConfiguration.nonAzureComputerNames] List of names of - * non-azure machines targeted by the software update configuration. - * @member {object} scheduleInfo Schedule information for the Software update - * configuration - * @member {date} [scheduleInfo.startTime] Gets or sets the start time of the - * schedule. - * @member {number} [scheduleInfo.startTimeOffsetMinutes] Gets the start time's - * offset in minutes. - * @member {date} [scheduleInfo.expiryTime] Gets or sets the end time of the - * schedule. - * @member {number} [scheduleInfo.expiryTimeOffsetMinutes] Gets or sets the - * expiry time's offset in minutes. - * @member {boolean} [scheduleInfo.isEnabled] Gets or sets a value indicating - * whether this schedule is enabled. - * @member {date} [scheduleInfo.nextRun] Gets or sets the next run time of the - * schedule. - * @member {number} [scheduleInfo.nextRunOffsetMinutes] Gets or sets the next - * run time's offset in minutes. - * @member {number} [scheduleInfo.interval] Gets or sets the interval of the - * schedule. - * @member {string} [scheduleInfo.frequency] Gets or sets the frequency of the - * schedule. Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' - * @member {string} [scheduleInfo.timeZone] Gets or sets the time zone of the - * schedule. - * @member {object} [scheduleInfo.advancedSchedule] Gets or sets the advanced - * schedule. - * @member {array} [scheduleInfo.advancedSchedule.weekDays] Days of the week - * that the job should execute on. - * @member {array} [scheduleInfo.advancedSchedule.monthDays] Days of the month - * that the job should execute on. Must be between 1 and 31. - * @member {array} [scheduleInfo.advancedSchedule.monthlyOccurrences] - * Occurrences of days within a month. - * @member {date} [scheduleInfo.creationTime] Gets or sets the creation time. - * @member {date} [scheduleInfo.lastModifiedTime] Gets or sets the last - * modified time. - * @member {string} [scheduleInfo.description] Gets or sets the description. - * @member {string} [provisioningState] Provisioning state for the software - * update configuration, which only appears in the response. - * @member {object} [error] detailes of provisioning error - * @member {string} [error.code] Error code - * @member {string} [error.message] Error message indicating why the operation - * failed. + * @member {string} [name] Name of the software update configuration machine + * run + * @member {string} [id] Resource Id of the software update configuration + * machine run + * @member {string} [targetComputer] name of the updated computer + * @member {string} [targetComputerType] type of the updated computer. + * @member {object} [softwareUpdateConfiguration] software update configuration + * triggered this run + * @member {string} [softwareUpdateConfiguration.name] Name of the software + * update configuration triggered the software update configuration run + * @member {string} [status] Status of the software update configuration + * machine run. + * @member {string} [osType] Operating system target of the software update + * configuration triggered this run + * @member {uuid} [correlationId] correlation id of the software update + * configuration machine run + * @member {uuid} [sourceComputerId] source computer id of the software update + * configuration machine run + * @member {date} [startTime] Start time of the software update configuration + * machine run. + * @member {date} [endTime] End time of the software update configuration + * machine run. + * @member {string} [configuredDuration] configured duration for the software + * update configuration run. + * @member {object} [job] Job associated with the software update configuration + * machine run + * @member {string} [job.id] Id of the job associated with the software update + * configuration run * @member {date} [creationTime] Creation time of theresource, which only * appears in the response. * @member {string} [createdBy] createdBy property, which only appears in the @@ -2520,14 +2306,20 @@ export interface UpdateConfiguration { * @member {string} [lastModifiedBy] lastModifiedBy property, which only * appears in the response. */ -export interface SoftwareUpdateConfiguration extends BaseResource { +export interface SoftwareUpdateConfigurationMachineRun { readonly name?: string; readonly id?: string; - readonly type?: string; - updateConfiguration: UpdateConfiguration; - scheduleInfo: ScheduleProperties; - readonly provisioningState?: string; - error?: ErrorResponse; + readonly targetComputer?: string; + readonly targetComputerType?: string; + softwareUpdateConfiguration?: UpdateConfigurationNavigation; + readonly status?: string; + readonly osType?: string; + readonly correlationId?: string; + readonly sourceComputerId?: string; + readonly startTime?: Date; + readonly endTime?: Date; + readonly configuredDuration?: string; + job?: JobNavigation; readonly creationTime?: Date; readonly createdBy?: string; readonly lastModifiedTime?: Date; @@ -2536,416 +2328,551 @@ export interface SoftwareUpdateConfiguration extends BaseResource { /** * @class - * Initializes a new instance of the CollectionItemUpdateConfiguration class. + * Initializes a new instance of the SoftwareUpdateConfigurationMachineRunListResult class. + * @constructor + * result of listing all software update configuration machine runs + * + * @member {array} [value] outer object returned when listing all software + * update configuration machine runs + * @member {string} [nextLink] link to next page of results. + */ +export interface SoftwareUpdateConfigurationMachineRunListResult { + value?: SoftwareUpdateConfigurationMachineRun[]; + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the SourceControl class. + * @constructor + * Definition of the source control. + * + * @member {string} [repoUrl] Gets or sets the repo url of the source control. + * @member {string} [branch] Gets or sets the repo branch of the source + * control. Include branch as empty string for VsoTfvc. + * @member {string} [folderPath] Gets or sets the folder path of the source + * control. + * @member {boolean} [autoSync] Gets or sets auto async of the source control. + * Default is false. + * @member {boolean} [publishRunbook] Gets or sets the auto publish of the + * source control. Default is true. + * @member {string} [sourceType] The source type. Must be one of VsoGit, + * VsoTfvc, GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' + * @member {string} [description] Gets or sets the description. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + */ +export interface SourceControl extends ProxyResource { + repoUrl?: string; + branch?: string; + folderPath?: string; + autoSync?: boolean; + publishRunbook?: boolean; + sourceType?: string; + description?: string; + creationTime?: Date; + lastModifiedTime?: Date; +} + +/** + * @class + * Initializes a new instance of the SourceControlUpdateParameters class. + * @constructor + * The parameters supplied to the update source control operation. + * + * @member {string} [branch] Gets or sets the repo branch of the source + * control. + * @member {string} [folderPath] Gets or sets the folder path of the source + * control. Path must be relative. + * @member {boolean} [autoSync] Gets or sets auto async of the source control. + * Default is false. + * @member {boolean} [publishRunbook] Gets or sets the auto publish of the + * source control. Default is true. + * @member {string} [securityToken] Gets or sets the authorization token for + * the repo of the source control. + * @member {string} [description] Gets or sets the user description of the + * source control. + */ +export interface SourceControlUpdateParameters { + branch?: string; + folderPath?: string; + autoSync?: boolean; + publishRunbook?: boolean; + securityToken?: string; + description?: string; +} + +/** + * @class + * Initializes a new instance of the SourceControlCreateOrUpdateParameters class. * @constructor - * object returned when requesting a collection of software update - * configuration + * The parameters supplied to the create or update source control operation. * - * @member {array} [azureVirtualMachines] List of azure resource Ids for azure - * virtual machines targeted by the software update configuration. - * @member {moment.duration} [duration] Maximum time allowed for the software - * update configuration run. Duration needs to be specified using the format - * PT[n]H[n]M[n]S as per ISO8601 + * @member {string} [repoUrl] Gets or sets the repo url of the source control. + * @member {string} [branch] Gets or sets the repo branch of the source + * control. Include branch as empty string for VsoTfvc. + * @member {string} [folderPath] Gets or sets the folder path of the source + * control. Path must be relative. + * @member {boolean} [autoSync] Gets or sets auto async of the source control. + * Default is false. + * @member {boolean} [publishRunbook] Gets or sets the auto publish of the + * source control. Default is true. + * @member {string} [sourceType] The source type. Must be one of VsoGit, + * VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', + * 'VsoTfvc', 'GitHub' + * @member {string} [securityToken] Gets or sets the authorization token for + * the repo of the source control. + * @member {string} [description] Gets or sets the user description of the + * source control. */ -export interface CollectionItemUpdateConfiguration { - azureVirtualMachines?: string[]; - duration?: moment.Duration; +export interface SourceControlCreateOrUpdateParameters { + repoUrl?: string; + branch?: string; + folderPath?: string; + autoSync?: boolean; + publishRunbook?: boolean; + sourceType?: string; + securityToken?: string; + description?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationCollectionItem class. + * Initializes a new instance of the SourceControlSyncJob class. * @constructor - * Software update configuration collection item properties. + * Definition of the source control sync job. * - * @member {string} [name] Name of the software update configuration. - * @member {string} [id] Resource Id of the software update configuration - * @member {object} [updateConfiguration] Update specific properties of the - * software update configuration. - * @member {array} [updateConfiguration.azureVirtualMachines] List of azure - * resource Ids for azure virtual machines targeted by the software update - * configuration. - * @member {moment.duration} [updateConfiguration.duration] Maximum time - * allowed for the software update configuration run. Duration needs to be - * specified using the format PT[n]H[n]M[n]S as per ISO8601 - * @member {string} [frequency] execution frequency of the schedule associated - * with the software update configuration. Possible values include: 'OneTime', - * 'Day', 'Hour', 'Week', 'Month' - * @member {date} [startTime] the start time of the update. - * @member {date} [creationTime] Creation time of the software update - * configuration, which only appears in the response. - * @member {date} [lastModifiedTime] Last time software update configuration - * was modified, which only appears in the response. - * @member {string} [provisioningState] Provisioning state for the software - * update configuration, which only appears in the response. - * @member {date} [nextRun] ext run time of the update. + * @member {string} [name] Resource name. + * @member {string} [type] Resource type. + * @member {string} [id] Resource id. + * @member {string} [syncJobId] Gets the source control sync job id. + * @member {date} [creationTime] Gets the creation time of the job. + * @member {string} [provisioningState] Gets the provisioning state of the job. + * Possible values include: 'Completed', 'Failed', 'Running' + * @member {date} [startTime] Gets the start time of the job. + * @member {date} [endTime] Gets the end time of the job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' */ -export interface SoftwareUpdateConfigurationCollectionItem { +export interface SourceControlSyncJob { readonly name?: string; + readonly type?: string; readonly id?: string; - updateConfiguration?: CollectionItemUpdateConfiguration; - frequency?: string; - startTime?: Date; + syncJobId?: string; readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - readonly provisioningState?: string; - nextRun?: Date; + provisioningState?: string; + readonly startTime?: Date; + readonly endTime?: Date; + startType?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationListResult class. + * Initializes a new instance of the SourceControlSyncJobCreateParameters class. * @constructor - * result of listing all software update configuration + * The parameters supplied to the create source control sync job operation. * - * @member {array} [value] outer object returned when listing all software - * update configurations + * @member {string} [commitId] Sets the commit id of the source control sync + * job. */ -export interface SoftwareUpdateConfigurationListResult { - value?: SoftwareUpdateConfigurationCollectionItem[]; +export interface SourceControlSyncJobCreateParameters { + commitId?: string; } /** * @class - * Initializes a new instance of the UpdateConfigurationNavigation class. + * Initializes a new instance of the SourceControlSyncJobById class. * @constructor - * Software update configuration Run Navigation model. + * Definition of the source control sync job. * - * @member {string} [name] Name of the software update configuration triggered - * the software update configuration run + * @member {string} [id] Gets the id of the job. + * @member {string} [syncJobId] Gets the source control sync job id. + * @member {date} [creationTime] Gets the creation time of the job. + * @member {string} [provisioningState] Gets the provisioning state of the job. + * Possible values include: 'Completed', 'Failed', 'Running' + * @member {date} [startTime] Gets the start time of the job. + * @member {date} [endTime] Gets the end time of the job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' + * @member {string} [exception] Gets the exceptions that occured while running + * the sync job. */ -export interface UpdateConfigurationNavigation { - readonly name?: string; +export interface SourceControlSyncJobById { + id?: string; + syncJobId?: string; + readonly creationTime?: Date; + provisioningState?: string; + readonly startTime?: Date; + readonly endTime?: Date; + startType?: string; + exception?: string; } /** * @class - * Initializes a new instance of the JobNavigation class. + * Initializes a new instance of the SourceControlSyncJobStream class. * @constructor - * Software update configuration machine run job navigation properties. + * Definition of the source control sync job stream. * - * @member {string} [id] Id of the job associated with the software update - * configuration run + * @member {string} [id] Resource id. + * @member {string} [syncJobStreamId] Gets the sync job stream id. + * @member {string} [summary] Gets the summary of the sync job stream. + * @member {date} [time] Gets the time of the sync job stream. + * @member {string} [streamType] Gets the type of the sync job stream. Possible + * values include: 'Error', 'Output' */ -export interface JobNavigation { +export interface SourceControlSyncJobStream { readonly id?: string; + syncJobStreamId?: string; + summary?: string; + readonly time?: Date; + streamType?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationRun class. + * Initializes a new instance of the SourceControlSyncJobStreamById class. * @constructor - * Software update configuration Run properties. + * Definition of the source control sync job stream by id. * - * @member {string} [name] Name of the software update configuration run. - * @member {string} [id] Resource Id of the software update configuration run - * @member {object} [softwareUpdateConfiguration] software update configuration - * triggered this run - * @member {string} [softwareUpdateConfiguration.name] Name of the software - * update configuration triggered the software update configuration run - * @member {string} [status] Status of the software update configuration run. - * @member {string} [configuredDuration] configured duration for the software - * update configuration run. - * @member {string} [osType] Operating system target of the software update - * configuration triggered this run - * @member {date} [startTime] Etart time of the software update configuration - * run. - * @member {date} [endTime] End time of the software update configuration run. - * @member {number} [computerCount] Number of computers in the software update - * configuration run. - * @member {number} [failedCount] Number of computers with failed status. - * @member {date} [creationTime] Creation time of theresource, which only - * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the - * response. - * @member {date} [lastModifiedTime] Last time resource was modified, which - * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only - * appears in the response. - */ -export interface SoftwareUpdateConfigurationRun { - readonly name?: string; + * @member {string} [id] Resource id. + * @member {string} [syncJobStreamId] Gets the sync job stream id. + * @member {string} [summary] Gets the summary of the sync job stream. + * @member {date} [time] Gets the time of the sync job stream. + * @member {string} [streamType] Gets the type of the sync job stream. Possible + * values include: 'Error', 'Output' + * @member {string} [streamText] Gets the text of the sync job stream. + * @member {string} [value] Gets the value of the sync job stream. + */ +export interface SourceControlSyncJobStreamById { readonly id?: string; - softwareUpdateConfiguration?: UpdateConfigurationNavigation; - readonly status?: string; - readonly configuredDuration?: string; - readonly osType?: string; - readonly startTime?: Date; - readonly endTime?: Date; - readonly computerCount?: number; - readonly failedCount?: number; - readonly creationTime?: Date; - readonly createdBy?: string; - readonly lastModifiedTime?: Date; - readonly lastModifiedBy?: string; + syncJobStreamId?: string; + summary?: string; + readonly time?: Date; + streamType?: string; + streamText?: string; + value?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationRunListResult class. + * Initializes a new instance of the Job class. * @constructor - * result of listing all software update configuration runs + * Definition of the job. * - * @member {array} [value] outer object returned when listing all software - * update configuration runs - * @member {string} [nextLink] link to next page of results. + * @member {object} [runbook] Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [startedBy] Gets or sets the job started by. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + * @member {uuid} [jobId] Gets or sets the id of the job. + * @member {date} [creationTime] Gets or sets the creation time of the job. + * @member {string} [status] Gets or sets the status of the job. Possible + * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', + * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', + * 'Resuming', 'Removing' + * @member {string} [statusDetails] Gets or sets the status details of the job. + * @member {date} [startTime] Gets or sets the start time of the job. + * @member {date} [endTime] Gets or sets the end time of the job. + * @member {string} [exception] Gets or sets the exception of the job. + * @member {date} [lastModifiedTime] Gets or sets the last modified time of the + * job. + * @member {date} [lastStatusModifiedTime] Gets or sets the last status + * modified time of the job. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' */ -export interface SoftwareUpdateConfigurationRunListResult { - value?: SoftwareUpdateConfigurationRun[]; - nextLink?: string; +export interface Job extends ProxyResource { + runbook?: RunbookAssociationProperty; + startedBy?: string; + runOn?: string; + jobId?: string; + creationTime?: Date; + status?: string; + statusDetails?: string; + startTime?: Date; + endTime?: Date; + exception?: string; + lastModifiedTime?: Date; + lastStatusModifiedTime?: Date; + parameters?: { [propertyName: string]: string }; + provisioningState?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationMachineRun class. + * Initializes a new instance of the JobCollectionItem class. * @constructor - * Software update configuration machine run model. + * Job collection item properties. * - * @member {string} [name] Name of the software update configuration machine - * run - * @member {string} [id] Resource Id of the software update configuration - * machine run - * @member {string} [targetComputer] name of the updated computer - * @member {string} [targetComputerType] type of the updated computer. - * @member {object} [softwareUpdateConfiguration] software update configuration - * triggered this run - * @member {string} [softwareUpdateConfiguration.name] Name of the software - * update configuration triggered the software update configuration run - * @member {string} [status] Status of the software update configuration - * machine run. - * @member {string} [osType] Operating system target of the software update - * configuration triggered this run - * @member {uuid} [correlationId] correlation id of the software update - * configuration machine run - * @member {uuid} [sourceComputerId] source computer id of the software update - * configuration machine run - * @member {date} [startTime] Start time of the software update configuration - * machine run. - * @member {date} [endTime] End time of the software update configuration - * machine run. - * @member {string} [configuredDuration] configured duration for the software - * update configuration run. - * @member {object} [job] Job associated with the software update configuration - * machine run - * @member {string} [job.id] Id of the job associated with the software update - * configuration run - * @member {date} [creationTime] Creation time of theresource, which only - * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the - * response. - * @member {date} [lastModifiedTime] Last time resource was modified, which - * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only - * appears in the response. + * @member {object} [runbook] The runbook association. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {uuid} [jobId] The id of the job. + * @member {date} [creationTime] The creation time of the job. + * @member {string} [status] The status of the job. Possible values include: + * 'New', 'Activating', 'Running', 'Completed', 'Failed', 'Stopped', 'Blocked', + * 'Suspended', 'Disconnected', 'Suspending', 'Stopping', 'Resuming', + * 'Removing' + * @member {date} [startTime] The start time of the job. + * @member {date} [endTime] The end time of the job. + * @member {date} [lastModifiedTime] The last modified time of the job. + * @member {string} [provisioningState] The provisioning state of a resource. + * @member {string} [runOn] Specifies the runOn group name where the job was + * executed. */ -export interface SoftwareUpdateConfigurationMachineRun { - readonly name?: string; - readonly id?: string; - readonly targetComputer?: string; - readonly targetComputerType?: string; - softwareUpdateConfiguration?: UpdateConfigurationNavigation; +export interface JobCollectionItem extends ProxyResource { + readonly runbook?: RunbookAssociationProperty; + readonly jobId?: string; + readonly creationTime?: Date; readonly status?: string; - readonly osType?: string; - readonly correlationId?: string; - readonly sourceComputerId?: string; readonly startTime?: Date; readonly endTime?: Date; - readonly configuredDuration?: string; - job?: JobNavigation; - readonly creationTime?: Date; - readonly createdBy?: string; readonly lastModifiedTime?: Date; - readonly lastModifiedBy?: string; + readonly provisioningState?: string; + runOn?: string; } /** * @class - * Initializes a new instance of the SoftwareUpdateConfigurationMachineRunListResult class. + * Initializes a new instance of the JobCreateParameters class. * @constructor - * result of listing all software update configuration machine runs + * The parameters supplied to the create job operation. * - * @member {array} [value] outer object returned when listing all software - * update configuration machine runs - * @member {string} [nextLink] link to next page of results. + * @member {object} [runbook] Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. */ -export interface SoftwareUpdateConfigurationMachineRunListResult { - value?: SoftwareUpdateConfigurationMachineRun[]; - nextLink?: string; +export interface JobCreateParameters { + runbook?: RunbookAssociationProperty; + parameters?: { [propertyName: string]: string }; + runOn?: string; } /** * @class - * Initializes a new instance of the SourceControlCreateOrUpdateParameters class. + * Initializes a new instance of the DscReportError class. * @constructor - * The parameters supplied to the create or update source control operation. + * Definition of the dsc node report error type. * - * @member {string} [repoUrl] Gets or sets the repo url of the source control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. - * @member {string} [sourceType] The source type. Must be one of VsoGit, - * VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', - * 'VsoTfvc', 'GitHub' - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the - * source control. + * @member {string} [errorSource] Gets or sets the source of the error. + * @member {string} [resourceId] Gets or sets the resource ID which generated + * the error. + * @member {string} [errorCode] Gets or sets the error code. + * @member {string} [errorMessage] Gets or sets the error message. + * @member {string} [locale] Gets or sets the locale of the error. + * @member {string} [errorDetails] Gets or sets the error details. */ -export interface SourceControlCreateOrUpdateParameters { - repoUrl?: string; - branch?: string; - folderPath?: string; - autoSync?: boolean; - publishRunbook?: boolean; - sourceType?: string; - securityToken?: string; - description?: string; +export interface DscReportError { + errorSource?: string; + resourceId?: string; + errorCode?: string; + errorMessage?: string; + locale?: string; + errorDetails?: string; } /** * @class - * Initializes a new instance of the SourceControl class. + * Initializes a new instance of the DscReportResourceNavigation class. * @constructor - * Definition of the source control. + * Navigation for DSC Report Resource. * - * @member {string} [name] Resource name. - * @member {string} [id] Resource Id. - * @member {string} [type] Resource type. - * @member {string} [repoUrl] Gets or sets the repo url of the source control. - * @member {string} [branch] Gets or sets the repo branch of the source - * control. Include branch as empty string for VsoTfvc. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. - * @member {string} [sourceType] The source type. Must be one of VsoGit, - * VsoTfvc, GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' - * @member {string} [description] Gets or sets the description. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [resourceId] Gets or sets the ID of the resource to + * navigate to. */ -export interface SourceControl extends BaseResource { - readonly name?: string; - readonly id?: string; - readonly type?: string; - repoUrl?: string; - branch?: string; - folderPath?: string; - autoSync?: boolean; - publishRunbook?: boolean; - sourceType?: string; - description?: string; - creationTime?: Date; - lastModifiedTime?: Date; +export interface DscReportResourceNavigation { + resourceId?: string; } /** * @class - * Initializes a new instance of the SourceControlUpdateParameters class. + * Initializes a new instance of the DscReportResource class. * @constructor - * The parameters supplied to the update source control operation. + * Definition of the DSC Report Resource. * - * @member {string} [branch] Gets or sets the repo branch of the source - * control. - * @member {string} [folderPath] Gets or sets the folder path of the source - * control. Path must be relative. - * @member {boolean} [autoSync] Gets or sets auto async of the source control. - * Default is false. - * @member {boolean} [publishRunbook] Gets or sets the auto publish of the - * source control. Default is true. - * @member {string} [securityToken] Gets or sets the authorization token for - * the repo of the source control. - * @member {string} [description] Gets or sets the user description of the - * source control. + * @member {string} [resourceId] Gets or sets the ID of the resource. + * @member {string} [sourceInfo] Gets or sets the source info of the resource. + * @member {array} [dependsOn] Gets or sets the Resource Navigation values for + * resources the resource depends on. + * @member {string} [moduleName] Gets or sets the module name of the resource. + * @member {string} [moduleVersion] Gets or sets the module version of the + * resource. + * @member {string} [resourceName] Gets or sets the name of the resource. + * @member {string} [error] Gets or sets the error of the resource. + * @member {string} [status] Gets or sets the status of the resource. + * @member {number} [durationInSeconds] Gets or sets the duration in seconds + * for the resource. + * @member {date} [startDate] Gets or sets the start date of the resource. */ -export interface SourceControlUpdateParameters { - branch?: string; - folderPath?: string; - autoSync?: boolean; - publishRunbook?: boolean; - securityToken?: string; - description?: string; +export interface DscReportResource { + resourceId?: string; + sourceInfo?: string; + dependsOn?: DscReportResourceNavigation[]; + moduleName?: string; + moduleVersion?: string; + resourceName?: string; + error?: string; + status?: string; + durationInSeconds?: number; + startDate?: Date; +} + +/** + * @class + * Initializes a new instance of the DscMetaConfiguration class. + * @constructor + * Definition of the DSC Meta Configuration. + * + * @member {number} [configurationModeFrequencyMins] Gets or sets the + * ConfigurationModeFrequencyMins value of the meta configuration. + * @member {boolean} [rebootNodeIfNeeded] Gets or sets the RebootNodeIfNeeded + * value of the meta configuration. + * @member {string} [configurationMode] Gets or sets the ConfigurationMode + * value of the meta configuration. + * @member {string} [actionAfterReboot] Gets or sets the ActionAfterReboot + * value of the meta configuration. + * @member {string} [certificateId] Gets or sets the CertificateId value of the + * meta configuration. + * @member {number} [refreshFrequencyMins] Gets or sets the + * RefreshFrequencyMins value of the meta configuration. + * @member {boolean} [allowModuleOverwrite] Gets or sets the + * AllowModuleOverwrite value of the meta configuration. + */ +export interface DscMetaConfiguration { + configurationModeFrequencyMins?: number; + rebootNodeIfNeeded?: boolean; + configurationMode?: string; + actionAfterReboot?: string; + certificateId?: string; + refreshFrequencyMins?: number; + allowModuleOverwrite?: boolean; +} + +/** + * @class + * Initializes a new instance of the DscNodeReport class. + * @constructor + * Definition of the dsc node report type. + * + * @member {date} [endTime] Gets or sets the end time of the node report. + * @member {date} [lastModifiedTime] Gets or sets the lastModifiedTime of the + * node report. + * @member {date} [startTime] Gets or sets the start time of the node report. + * @member {string} [type] Gets or sets the type of the node report. + * @member {string} [reportId] Gets or sets the id of the node report. + * @member {string} [status] Gets or sets the status of the node report. + * @member {string} [refreshMode] Gets or sets the refreshMode of the node + * report. + * @member {string} [rebootRequested] Gets or sets the rebootRequested of the + * node report. + * @member {string} [reportFormatVersion] Gets or sets the reportFormatVersion + * of the node report. + * @member {string} [configurationVersion] Gets or sets the + * configurationVersion of the node report. + * @member {string} [id] Gets or sets the id. + * @member {array} [errors] Gets or sets the errors for the node report. + * @member {array} [resources] Gets or sets the resource for the node report. + * @member {object} [metaConfiguration] Gets or sets the metaConfiguration of + * the node at the time of the report. + * @member {number} [metaConfiguration.configurationModeFrequencyMins] Gets or + * sets the ConfigurationModeFrequencyMins value of the meta configuration. + * @member {boolean} [metaConfiguration.rebootNodeIfNeeded] Gets or sets the + * RebootNodeIfNeeded value of the meta configuration. + * @member {string} [metaConfiguration.configurationMode] Gets or sets the + * ConfigurationMode value of the meta configuration. + * @member {string} [metaConfiguration.actionAfterReboot] Gets or sets the + * ActionAfterReboot value of the meta configuration. + * @member {string} [metaConfiguration.certificateId] Gets or sets the + * CertificateId value of the meta configuration. + * @member {number} [metaConfiguration.refreshFrequencyMins] Gets or sets the + * RefreshFrequencyMins value of the meta configuration. + * @member {boolean} [metaConfiguration.allowModuleOverwrite] Gets or sets the + * AllowModuleOverwrite value of the meta configuration. + * @member {string} [hostName] Gets or sets the hostname of the node that sent + * the report. + * @member {array} [iPV4Addresses] Gets or sets the IPv4 address of the node + * that sent the report. + * @member {array} [iPV6Addresses] Gets or sets the IPv6 address of the node + * that sent the report. + * @member {number} [numberOfResources] Gets or sets the number of resource in + * the node report. + * @member {string} [rawErrors] Gets or sets the unparsed errors for the node + * report. + */ +export interface DscNodeReport { + endTime?: Date; + lastModifiedTime?: Date; + startTime?: Date; + type?: string; + reportId?: string; + status?: string; + refreshMode?: string; + rebootRequested?: string; + reportFormatVersion?: string; + configurationVersion?: string; + id?: string; + errors?: DscReportError[]; + resources?: DscReportResource[]; + metaConfiguration?: DscMetaConfiguration; + hostName?: string; + iPV4Addresses?: string[]; + iPV6Addresses?: string[]; + numberOfResources?: number; + rawErrors?: string; } /** * @class - * Initializes a new instance of the SourceControlSyncJob class. + * Initializes a new instance of the AgentRegistrationKeys class. * @constructor - * Definition of the source control sync job. + * Definition of the agent registration keys. * - * @member {string} [name] Resource name. - * @member {string} [type] Resource type. - * @member {string} [id] Resource id. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the job. - * Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. + * @member {string} [primary] Gets or sets the primary key. + * @member {string} [secondary] Gets or sets the secondary key. */ -export interface SourceControlSyncJob { - readonly name?: string; - readonly type?: string; - readonly id?: string; - sourceControlSyncJobId?: string; - readonly creationTime?: Date; - provisioningState?: string; - readonly startTime?: Date; - readonly endTime?: Date; - startedBy?: string; +export interface AgentRegistrationKeys { + primary?: string; + secondary?: string; } /** * @class - * Initializes a new instance of the SourceControlSyncJobByIdErrors class. + * Initializes a new instance of the AgentRegistration class. * @constructor - * Error details of the source control sync job. + * Definition of the agent registration infomration type. * - * @member {string} [code] Gets the error code for the job. - * @member {string} [message] Gets the error message for the job. + * @member {string} [dscMetaConfiguration] Gets or sets the dsc meta + * configuration. + * @member {string} [endpoint] Gets or sets the dsc server endpoint. + * @member {object} [keys] Gets or sets the agent registration keys. + * @member {string} [keys.primary] Gets or sets the primary key. + * @member {string} [keys.secondary] Gets or sets the secondary key. + * @member {string} [id] Gets or sets the id. */ -export interface SourceControlSyncJobByIdErrors { - code?: string; - message?: string; +export interface AgentRegistration { + dscMetaConfiguration?: string; + endpoint?: string; + keys?: AgentRegistrationKeys; + id?: string; } /** * @class - * Initializes a new instance of the SourceControlSyncJobById class. + * Initializes a new instance of the DscNodeExtensionHandlerAssociationProperty class. * @constructor - * Definition of the source control sync job. + * The dsc extensionHandler property associated with the node * - * @member {string} [id] Gets the id of the job. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. - * @member {date} [creationTime] Gets the creation time of the job. - * @member {string} [provisioningState] Gets the provisioning state of the job. - * Possible values include: 'Completed', 'Failed', 'Running' - * @member {date} [startTime] Gets the start time of the job. - * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. - * @member {object} [errors] Error details of the source control sync job. - * @member {string} [errors.code] Gets the error code for the job. - * @member {string} [errors.message] Gets the error message for the job. + * @member {string} [name] Gets or sets the name of the extension handler. + * @member {string} [version] Gets or sets the version of the extension + * handler. */ -export interface SourceControlSyncJobById { - id?: string; - sourceControlSyncJobId?: string; - readonly creationTime?: Date; - provisioningState?: string; - readonly startTime?: Date; - readonly endTime?: Date; - startedBy?: string; - errors?: SourceControlSyncJobByIdErrors; +export interface DscNodeExtensionHandlerAssociationProperty { + name?: string; + version?: string; } /** @@ -2964,6 +2891,8 @@ export interface SourceControlSyncJobById { * @member {string} [status] Gets or sets the status of the node. * @member {string} [nodeId] Gets or sets the node id. * @member {string} [etag] Gets or sets the etag of the resource. + * @member {number} [totalCount] Gets the total number of records matching + * filter criteria. * @member {array} [extensionHandler] Gets or sets the list of extensionHandler * properties for a Node. */ @@ -2976,9 +2905,133 @@ export interface DscNode extends ProxyResource { status?: string; nodeId?: string; etag?: string; + totalCount?: number; extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; } +/** + * @class + * Initializes a new instance of the AgentRegistrationRegenerateKeyParameter class. + * @constructor + * The parameters supplied to the regenerate keys operation. + * + * @member {string} keyName Gets or sets the agent registration key name - + * primary or secondary. Possible values include: 'primary', 'secondary' + */ +export interface AgentRegistrationRegenerateKeyParameter { + keyName: string; +} + +/** + * @class + * Initializes a new instance of the DscNodeUpdateParametersProperties class. + * @constructor + * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + */ +export interface DscNodeUpdateParametersProperties { + name?: string; +} + +/** + * @class + * Initializes a new instance of the DscNodeUpdateParameters class. + * @constructor + * The parameters supplied to the update dsc node operation. + * + * @member {string} [nodeId] Gets or sets the id of the dsc node. + * @member {object} [properties] + * @member {string} [properties.name] Gets or sets the name of the dsc + * nodeconfiguration. + */ +export interface DscNodeUpdateParameters { + nodeId?: string; + properties?: DscNodeUpdateParametersProperties; +} + +/** + * @class + * Initializes a new instance of the DscConfigurationAssociationProperty class. + * @constructor + * The Dsc configuration property associated with the entity. + * + * @member {string} [name] Gets or sets the name of the Dsc configuration. + */ +export interface DscConfigurationAssociationProperty { + name?: string; +} + +/** + * @class + * Initializes a new instance of the DscCompilationJob class. + * @constructor + * Definition of the Dsc Compilation job. + * + * @member {object} [configuration] Gets or sets the configuration. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {string} [startedBy] Gets the compilation job started by. + * @member {uuid} [jobId] Gets the id of the job. + * @member {date} [creationTime] Gets the creation time of the job. + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + * @member {string} [status] Gets or sets the status of the job. Possible + * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', + * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', + * 'Resuming', 'Removing' + * @member {string} [statusDetails] Gets or sets the status details of the job. + * @member {date} [startTime] Gets the start time of the job. + * @member {date} [endTime] Gets the end time of the job. + * @member {string} [exception] Gets the exception of the job. + * @member {date} [lastModifiedTime] Gets the last modified time of the job. + * @member {date} [lastStatusModifiedTime] Gets the last status modified time + * of the job. + * @member {object} [parameters] Gets or sets the parameters of the job. + */ +export interface DscCompilationJob extends ProxyResource { + configuration?: DscConfigurationAssociationProperty; + readonly startedBy?: string; + readonly jobId?: string; + readonly creationTime?: Date; + provisioningState?: string; + runOn?: string; + status?: string; + statusDetails?: string; + readonly startTime?: Date; + readonly endTime?: Date; + readonly exception?: string; + readonly lastModifiedTime?: Date; + readonly lastStatusModifiedTime?: Date; + parameters?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the DscCompilationJobCreateParameters class. + * @constructor + * The parameters supplied to the create compilation job operation. + * + * @member {object} configuration Gets or sets the configuration. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + * @member {string} [name] Gets or sets name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface DscCompilationJobCreateParameters { + configuration: DscConfigurationAssociationProperty; + parameters?: { [propertyName: string]: string }; + incrementNodeConfigurationBuild?: boolean; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + /** * @class * Initializes a new instance of the DscNodeConfiguration class. @@ -3007,7 +3060,7 @@ export interface DscNodeConfiguration extends ProxyResource { /** * @class - * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParametersProperties class. + * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class. * @constructor * The parameters supplied to the create or update node configuration * operation. @@ -3023,18 +3076,60 @@ export interface DscNodeConfiguration extends ProxyResource { * @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 {string} name Gets or sets the type of the parameter. * @member {object} configuration Gets or sets the configuration of the node. * @member {string} [configuration.name] Gets or sets the name of the Dsc * configuration. * @member {boolean} [incrementNodeConfigurationBuild] If a new build version * of NodeConfiguration is required. + * @member {string} [name] Name of the node configuration. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface DscNodeConfigurationCreateOrUpdateParametersProperties { +export interface DscNodeConfigurationCreateOrUpdateParameters { source: ContentSource; - name: string; configuration: DscConfigurationAssociationProperty; incrementNodeConfigurationBuild?: boolean; + name?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the NodeCountProperties class. + * @constructor + * @member {number} [count] Gets the count for the name + */ +export interface NodeCountProperties { + count?: number; +} + +/** + * @class + * Initializes a new instance of the NodeCount class. + * @constructor + * Number of nodes based on the Filter + * + * @member {string} [name] Gets the name of a count type + * @member {object} [properties] + * @member {number} [properties.count] Gets the count for the name + */ +export interface NodeCount { + name?: string; + properties?: NodeCountProperties; +} + +/** + * @class + * Initializes a new instance of the NodeCounts class. + * @constructor + * Gets the count of nodes by count type + * + * @member {array} [value] Gets an array of counts + * @member {number} [totalCount] Gets the total number of records matching + * countType criteria. + */ +export interface NodeCounts { + value?: NodeCount[]; + totalCount?: number; } @@ -3080,14 +3175,6 @@ export interface StatisticsListResult extends Array { export interface UsageListResult extends Array { } -/** - * @class - * Initializes a new instance of the KeyListResult class. - * @constructor - */ -export interface KeyListResult extends Array { -} - /** * @class * Initializes a new instance of the CertificateListResult class. @@ -3143,6 +3230,8 @@ export interface CredentialListResult extends Array { * The response model for the list configuration operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of configurations + * matching filter criteria. */ export interface DscConfigurationListResult extends Array { nextLink?: string; @@ -3266,6 +3355,18 @@ export interface WebhookListResult extends Array { nextLink?: string; } +/** + * @class + * Initializes a new instance of the WatcherListResult class. + * @constructor + * The response model for the list watcher operation. + * + * @member {string} [nextLink] Gets or sets the next link. + */ +export interface WatcherListResult extends Array { + nextLink?: string; +} + /** * @class * Initializes a new instance of the SourceControlListResult class. @@ -3290,6 +3391,18 @@ export interface SourceControlSyncJobListResult extends Array { + readonly nextLink?: string; +} + /** * @class * Initializes a new instance of the JobListResultV2 class. @@ -3309,6 +3422,8 @@ export interface JobListResultV2 extends Array { * The response model for the list dsc nodes operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of nodes matching filter + * criteria. */ export interface DscNodeListResult extends Array { nextLink?: string; @@ -3345,6 +3460,7 @@ export interface DscCompilationJobListResult extends Array { * The response model for the list job operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets or sets the total rows in query. */ export interface DscNodeConfigurationListResult extends Array { nextLink?: string; diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 30ffdfbf07..450c7f4b5d 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -18,103 +18,85 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; -exports.ErrorResponse = require('./errorResponse'); -exports.Key = require('./key'); -exports.UsageCounterName = require('./usageCounterName'); -exports.Usage = require('./usage'); -exports.Statistics = require('./statistics'); -exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); +exports.Sku = require('./sku'); exports.Resource = require('./resource'); -exports.ProxyResource = require('./proxyResource'); -exports.Webhook = require('./webhook'); -exports.Variable = require('./variable'); -exports.JobProvisioningStateProperty = require('./jobProvisioningStateProperty'); -exports.DscConfigurationAssociationProperty = require('./dscConfigurationAssociationProperty'); -exports.DscCompilationJob = require('./dscCompilationJob'); -exports.Credential = require('./credential'); -exports.ConnectionTypeAssociationProperty = require('./connectionTypeAssociationProperty'); -exports.Connection = require('./connection'); -exports.Certificate = require('./certificate'); -exports.RunbookParameter = require('./runbookParameter'); -exports.ContentHash = require('./contentHash'); -exports.ContentLink = require('./contentLink'); -exports.RunbookDraft = require('./runbookDraft'); exports.TrackedResource = require('./trackedResource'); -exports.Runbook = require('./runbook'); -exports.ModuleErrorInfo = require('./moduleErrorInfo'); -exports.Module = require('./module'); -exports.ContentSource = require('./contentSource'); -exports.DscConfigurationParameter = require('./dscConfigurationParameter'); -exports.DscConfiguration = require('./dscConfiguration'); -exports.Sku = require('./sku'); exports.AutomationAccount = require('./automationAccount'); +exports.AutomationAccountCreateOrUpdateParameters = require('./automationAccountCreateOrUpdateParameters'); exports.OperationDisplay = require('./operationDisplay'); exports.Operation = require('./operation'); -exports.AutomationAccountCreateOrUpdateParameters = require('./automationAccountCreateOrUpdateParameters'); +exports.Statistics = require('./statistics'); +exports.UsageCounterName = require('./usageCounterName'); +exports.Usage = require('./usage'); +exports.Key = require('./key'); +exports.KeyListResult = require('./keyListResult'); exports.AutomationAccountUpdateParameters = require('./automationAccountUpdateParameters'); -exports.CertificateUpdateParameters = require('./certificateUpdateParameters'); +exports.ProxyResource = require('./proxyResource'); +exports.ErrorResponse = require('./errorResponse'); exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters'); -exports.ConnectionUpdateParameters = require('./connectionUpdateParameters'); +exports.Certificate = require('./certificate'); +exports.CertificateUpdateParameters = require('./certificateUpdateParameters'); +exports.ConnectionTypeAssociationProperty = require('./connectionTypeAssociationProperty'); exports.ConnectionCreateOrUpdateParameters = require('./connectionCreateOrUpdateParameters'); +exports.Connection = require('./connection'); +exports.ConnectionUpdateParameters = require('./connectionUpdateParameters'); exports.FieldDefinition = require('./fieldDefinition'); exports.ConnectionType = require('./connectionType'); exports.ConnectionTypeCreateOrUpdateParameters = require('./connectionTypeCreateOrUpdateParameters'); -exports.CredentialUpdateParameters = require('./credentialUpdateParameters'); exports.CredentialCreateOrUpdateParameters = require('./credentialCreateOrUpdateParameters'); -exports.ActivityParameter = require('./activityParameter'); -exports.ActivityParameterSet = require('./activityParameterSet'); -exports.ActivityOutputType = require('./activityOutputType'); -exports.Activity = require('./activity'); -exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); -exports.AdvancedSchedule = require('./advancedSchedule'); -exports.AgentRegistrationKeys = require('./agentRegistrationKeys'); -exports.AgentRegistration = require('./agentRegistration'); -exports.AgentRegistrationRegenerateKeyParameter = require('./agentRegistrationRegenerateKeyParameter'); -exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters'); +exports.Credential = require('./credential'); +exports.CredentialUpdateParameters = require('./credentialUpdateParameters'); +exports.ContentHash = require('./contentHash'); +exports.ContentSource = require('./contentSource'); +exports.DscConfigurationParameter = require('./dscConfigurationParameter'); exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters'); +exports.DscConfiguration = require('./dscConfiguration'); exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters'); -exports.DscMetaConfiguration = require('./dscMetaConfiguration'); -exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters'); -exports.DscNodeConfigurationAssociationProperty = require('./dscNodeConfigurationAssociationProperty'); -exports.DscNodeExtensionHandlerAssociationProperty = require('./dscNodeExtensionHandlerAssociationProperty'); -exports.DscNodeUpdateParametersProperties = require('./dscNodeUpdateParametersProperties'); -exports.DscNodeUpdateParameters = require('./dscNodeUpdateParameters'); -exports.DscReportError = require('./dscReportError'); -exports.DscReportResourceNavigation = require('./dscReportResourceNavigation'); -exports.DscReportResource = require('./dscReportResource'); -exports.DscNodeReport = require('./dscNodeReport'); -exports.HybridRunbookWorker = require('./hybridRunbookWorker'); exports.RunAsCredentialAssociationProperty = require('./runAsCredentialAssociationProperty'); +exports.HybridRunbookWorker = require('./hybridRunbookWorker'); exports.HybridRunbookWorkerGroup = require('./hybridRunbookWorkerGroup'); exports.HybridRunbookWorkerGroupUpdateParameters = require('./hybridRunbookWorkerGroupUpdateParameters'); -exports.Job = require('./job'); -exports.JobCreateParameters = require('./jobCreateParameters'); -exports.JobListResult = require('./jobListResult'); exports.ScheduleAssociationProperty = require('./scheduleAssociationProperty'); -exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); +exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); exports.JobSchedule = require('./jobSchedule'); -exports.JobStream = require('./jobStream'); +exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); exports.LinkedWorkspace = require('./linkedWorkspace'); +exports.ActivityParameterValidationSet = require('./activityParameterValidationSet'); +exports.ActivityParameter = require('./activityParameter'); +exports.ActivityParameterSet = require('./activityParameterSet'); +exports.ActivityOutputType = require('./activityOutputType'); +exports.Activity = require('./activity'); +exports.ModuleErrorInfo = require('./moduleErrorInfo'); +exports.ContentLink = require('./contentLink'); +exports.Module = require('./module'); exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); -exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); +exports.TypeField = require('./typeField'); +exports.RunbookParameter = require('./runbookParameter'); +exports.RunbookDraft = require('./runbookDraft'); +exports.Runbook = require('./runbook'); exports.RunbookCreateOrUpdateParameters = require('./runbookCreateOrUpdateParameters'); +exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); +exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); +exports.TestJobCreateParameters = require('./testJobCreateParameters'); +exports.TestJob = require('./testJob'); exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties'); exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters'); -exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); +exports.JobStream = require('./jobStream'); +exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); +exports.AdvancedSchedule = require('./advancedSchedule'); exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters'); exports.ScheduleProperties = require('./scheduleProperties'); exports.Schedule = require('./schedule'); exports.ScheduleUpdateParameters = require('./scheduleUpdateParameters'); -exports.SubResource = require('./subResource'); -exports.TestJobCreateParameters = require('./testJobCreateParameters'); -exports.TestJob = require('./testJob'); -exports.TypeField = require('./typeField'); exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); +exports.Variable = require('./variable'); exports.VariableUpdateParameters = require('./variableUpdateParameters'); -exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); +exports.Webhook = require('./webhook'); exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); -exports.JobCollectionItem = require('./jobCollectionItem'); +exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); +exports.Watcher = require('./watcher'); +exports.WatcherUpdateParameters = require('./watcherUpdateParameters'); exports.WindowsProperties = require('./windowsProperties'); exports.LinuxProperties = require('./linuxProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); @@ -123,25 +105,46 @@ exports.CollectionItemUpdateConfiguration = require('./collectionItemUpdateConfi exports.SoftwareUpdateConfigurationCollectionItem = require('./softwareUpdateConfigurationCollectionItem'); exports.SoftwareUpdateConfigurationListResult = require('./softwareUpdateConfigurationListResult'); exports.UpdateConfigurationNavigation = require('./updateConfigurationNavigation'); -exports.JobNavigation = require('./jobNavigation'); exports.SoftwareUpdateConfigurationRun = require('./softwareUpdateConfigurationRun'); exports.SoftwareUpdateConfigurationRunListResult = require('./softwareUpdateConfigurationRunListResult'); +exports.JobNavigation = require('./jobNavigation'); exports.SoftwareUpdateConfigurationMachineRun = require('./softwareUpdateConfigurationMachineRun'); exports.SoftwareUpdateConfigurationMachineRunListResult = require('./softwareUpdateConfigurationMachineRunListResult'); -exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); exports.SourceControl = require('./sourceControl'); exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); +exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); exports.SourceControlSyncJob = require('./sourceControlSyncJob'); -exports.SourceControlSyncJobByIdErrors = require('./sourceControlSyncJobByIdErrors'); +exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCreateParameters'); exports.SourceControlSyncJobById = require('./sourceControlSyncJobById'); +exports.SourceControlSyncJobStream = require('./sourceControlSyncJobStream'); +exports.SourceControlSyncJobStreamById = require('./sourceControlSyncJobStreamById'); +exports.Job = require('./job'); +exports.JobCollectionItem = require('./jobCollectionItem'); +exports.JobCreateParameters = require('./jobCreateParameters'); +exports.DscReportError = require('./dscReportError'); +exports.DscReportResourceNavigation = require('./dscReportResourceNavigation'); +exports.DscReportResource = require('./dscReportResource'); +exports.DscMetaConfiguration = require('./dscMetaConfiguration'); +exports.DscNodeReport = require('./dscNodeReport'); +exports.AgentRegistrationKeys = require('./agentRegistrationKeys'); +exports.AgentRegistration = require('./agentRegistration'); +exports.DscNodeExtensionHandlerAssociationProperty = require('./dscNodeExtensionHandlerAssociationProperty'); exports.DscNode = require('./dscNode'); +exports.AgentRegistrationRegenerateKeyParameter = require('./agentRegistrationRegenerateKeyParameter'); +exports.DscNodeUpdateParametersProperties = require('./dscNodeUpdateParametersProperties'); +exports.DscNodeUpdateParameters = require('./dscNodeUpdateParameters'); +exports.DscConfigurationAssociationProperty = require('./dscConfigurationAssociationProperty'); +exports.DscCompilationJob = require('./dscCompilationJob'); +exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters'); exports.DscNodeConfiguration = require('./dscNodeConfiguration'); -exports.DscNodeConfigurationCreateOrUpdateParametersProperties = require('./dscNodeConfigurationCreateOrUpdateParametersProperties'); +exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters'); +exports.NodeCountProperties = require('./nodeCountProperties'); +exports.NodeCount = require('./nodeCount'); +exports.NodeCounts = require('./nodeCounts'); exports.AutomationAccountListResult = require('./automationAccountListResult'); exports.OperationListResult = require('./operationListResult'); exports.StatisticsListResult = require('./statisticsListResult'); exports.UsageListResult = require('./usageListResult'); -exports.KeyListResult = require('./keyListResult'); exports.CertificateListResult = require('./certificateListResult'); exports.ConnectionListResult = require('./connectionListResult'); exports.ConnectionTypeListResult = require('./connectionTypeListResult'); @@ -157,8 +160,10 @@ exports.JobStreamListResult = require('./jobStreamListResult'); exports.ScheduleListResult = require('./scheduleListResult'); exports.VariableListResult = require('./variableListResult'); exports.WebhookListResult = require('./webhookListResult'); +exports.WatcherListResult = require('./watcherListResult'); exports.SourceControlListResult = require('./sourceControlListResult'); exports.SourceControlSyncJobListResult = require('./sourceControlSyncJobListResult'); +exports.SourceControlSyncJobStreamsListBySyncJob = require('./sourceControlSyncJobStreamsListBySyncJob'); exports.JobListResultV2 = require('./jobListResultV2'); exports.DscNodeListResult = require('./dscNodeListResult'); exports.DscNodeReportListResult = require('./dscNodeReportListResult'); diff --git a/lib/services/automationManagement/lib/models/job.js b/lib/services/automationManagement/lib/models/job.js index b75467cfad..582d9d4be5 100644 --- a/lib/services/automationManagement/lib/models/job.js +++ b/lib/services/automationManagement/lib/models/job.js @@ -41,10 +41,9 @@ class Job extends models['ProxyResource'] { * @member {date} [lastStatusModifiedTime] Gets or sets the last status * modified time of the job. * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {object} [provisioningState] The provisioning state of a resource. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' */ constructor() { super(); @@ -112,6 +111,7 @@ class Job extends models['ProxyResource'] { }, jobId: { required: false, + nullable: false, serializedName: 'properties.jobId', type: { name: 'String' @@ -119,6 +119,7 @@ class Job extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -140,6 +141,7 @@ class Job extends models['ProxyResource'] { }, startTime: { required: false, + nullable: true, serializedName: 'properties.startTime', type: { name: 'DateTime' @@ -147,6 +149,7 @@ class Job extends models['ProxyResource'] { }, endTime: { required: false, + nullable: true, serializedName: 'properties.endTime', type: { name: 'DateTime' @@ -161,6 +164,7 @@ class Job extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: true, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' @@ -168,6 +172,7 @@ class Job extends models['ProxyResource'] { }, lastStatusModifiedTime: { required: false, + nullable: true, serializedName: 'properties.lastStatusModifiedTime', type: { name: 'DateTime' @@ -191,8 +196,7 @@ class Job extends models['ProxyResource'] { required: false, serializedName: 'properties.provisioningState', type: { - name: 'Composite', - className: 'JobProvisioningStateProperty' + name: 'String' } } } diff --git a/lib/services/automationManagement/lib/models/jobCollectionItem.js b/lib/services/automationManagement/lib/models/jobCollectionItem.js index cec5e91389..00cc9d0439 100644 --- a/lib/services/automationManagement/lib/models/jobCollectionItem.js +++ b/lib/services/automationManagement/lib/models/jobCollectionItem.js @@ -31,11 +31,9 @@ class JobCollectionItem extends models['ProxyResource'] { * @member {date} [startTime] The start time of the job. * @member {date} [endTime] The end time of the job. * @member {date} [lastModifiedTime] The last modified time of the job. - * @member {object} [provisioningState] The current provisioning state of the - * job. - * @member {string} [provisioningState.provisioningState] The provisioning - * state of the resource. Possible values include: 'Failed', 'Succeeded', - * 'Suspended', 'Processing' + * @member {string} [provisioningState] The provisioning state of a resource. + * @member {string} [runOn] Specifies the runOn group name where the job was + * executed. */ constructor() { super(); @@ -90,6 +88,7 @@ class JobCollectionItem extends models['ProxyResource'] { }, jobId: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.jobId', type: { @@ -98,6 +97,7 @@ class JobCollectionItem extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -114,6 +114,7 @@ class JobCollectionItem extends models['ProxyResource'] { }, startTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.startTime', type: { @@ -122,6 +123,7 @@ class JobCollectionItem extends models['ProxyResource'] { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { @@ -130,6 +132,7 @@ class JobCollectionItem extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { @@ -138,10 +141,17 @@ class JobCollectionItem extends models['ProxyResource'] { }, provisioningState: { required: false, + readOnly: true, serializedName: 'properties.provisioningState', type: { - name: 'Composite', - className: 'JobProvisioningStateProperty' + name: 'String' + } + }, + runOn: { + required: false, + serializedName: 'properties.runOn', + type: { + name: 'String' } } } diff --git a/lib/services/automationManagement/lib/models/jobCreateParameters.js b/lib/services/automationManagement/lib/models/jobCreateParameters.js index b60f054efd..f62bbf6f81 100644 --- a/lib/services/automationManagement/lib/models/jobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobCreateParameters.js @@ -19,7 +19,7 @@ const models = require('./index'); class JobCreateParameters { /** * Create a JobCreateParameters. - * @member {object} runbook Gets or sets the runbook. + * @member {object} [runbook] Gets or sets the runbook. * @member {string} [runbook.name] Gets or sets the name of the runbook. * @member {object} [parameters] Gets or sets the parameters of the job. * @member {string} [runOn] Gets or sets the runOn which specifies the group @@ -43,7 +43,7 @@ class JobCreateParameters { className: 'JobCreateParameters', modelProperties: { runbook: { - required: true, + required: false, serializedName: 'properties.runbook', type: { name: 'Composite', diff --git a/lib/services/automationManagement/lib/models/jobSchedule.js b/lib/services/automationManagement/lib/models/jobSchedule.js index f608fc5495..aa9031c84d 100644 --- a/lib/services/automationManagement/lib/models/jobSchedule.js +++ b/lib/services/automationManagement/lib/models/jobSchedule.js @@ -24,7 +24,7 @@ class JobSchedule { * @member {string} [type] Resource type * @member {string} [jobScheduleId] Gets or sets the id of job schedule. * @member {object} [schedule] Gets or sets the schedule. - * @member {string} [schedule.name] Gets or sets the name of the schedule. + * @member {string} [schedule.name] Gets or sets the name of the Schedule. * @member {object} [runbook] Gets or sets the runbook. * @member {string} [runbook.name] Gets or sets the name of the runbook. * @member {string} [runOn] Gets or sets the hybrid worker group that the diff --git a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js index f49878f3f3..82bb1dd5aa 100644 --- a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js @@ -20,7 +20,7 @@ class JobScheduleCreateParameters { /** * Create a JobScheduleCreateParameters. * @member {object} schedule Gets or sets the schedule. - * @member {string} [schedule.name] Gets or sets the name of the schedule. + * @member {string} [schedule.name] Gets or sets the name of the Schedule. * @member {object} runbook Gets or sets the runbook. * @member {string} [runbook.name] Gets or sets the name of the runbook. * @member {string} [runOn] Gets or sets the hybrid worker group that the diff --git a/lib/services/automationManagement/lib/models/jobStream.js b/lib/services/automationManagement/lib/models/jobStream.js index 84fe18c918..5df84568e2 100644 --- a/lib/services/automationManagement/lib/models/jobStream.js +++ b/lib/services/automationManagement/lib/models/jobStream.js @@ -60,6 +60,7 @@ class JobStream { }, time: { required: false, + nullable: false, serializedName: 'properties.time', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/key.js b/lib/services/automationManagement/lib/models/key.js index 95e57f9318..81d97e79ac 100644 --- a/lib/services/automationManagement/lib/models/key.js +++ b/lib/services/automationManagement/lib/models/key.js @@ -18,9 +18,9 @@ class Key { /** * Create a Key. * @member {string} [keyName] Automation key name. Possible values include: - * 'primary', 'secondary' + * 'Primary', 'Secondary' * @member {string} [permissions] Automation key permissions. Possible values - * include: 'Full' + * include: 'Read', 'Full' * @member {string} [value] Value of the Automation Key used for * registration. */ @@ -43,21 +43,24 @@ class Key { modelProperties: { keyName: { required: false, - serializedName: 'keyName', + readOnly: true, + serializedName: 'KeyName', type: { name: 'String' } }, permissions: { required: false, - serializedName: 'permissions', + readOnly: true, + serializedName: 'Permissions', type: { name: 'String' } }, value: { required: false, - serializedName: 'value', + readOnly: true, + serializedName: 'Value', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/keyListResult.js b/lib/services/automationManagement/lib/models/keyListResult.js index 3bacb69713..80b209d443 100644 --- a/lib/services/automationManagement/lib/models/keyListResult.js +++ b/lib/services/automationManagement/lib/models/keyListResult.js @@ -10,15 +10,17 @@ 'use strict'; +const models = require('./index'); + /** * Class representing a KeyListResult. */ -class KeyListResult extends Array { +class KeyListResult { /** * Create a KeyListResult. + * @member {array} [keys] Lists the automation keys. */ constructor() { - super(); } /** @@ -35,9 +37,9 @@ class KeyListResult extends Array { name: 'Composite', className: 'KeyListResult', modelProperties: { - value: { + keys: { required: false, - serializedName: '', + serializedName: 'keys', type: { name: 'Sequence', element: { diff --git a/lib/services/automationManagement/lib/models/linuxProperties.js b/lib/services/automationManagement/lib/models/linuxProperties.js index 3e25b2be22..7e2ed8c7a0 100644 --- a/lib/services/automationManagement/lib/models/linuxProperties.js +++ b/lib/services/automationManagement/lib/models/linuxProperties.js @@ -22,6 +22,10 @@ class LinuxProperties { * 'Unclassified', 'Critical', 'Security', 'Other' * @member {array} [excludedPackageNameMasks] packages excluded from the * software update configuration. + * @member {array} [includedPackageNameMasks] packages included from the + * software update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ constructor() { } @@ -60,6 +64,27 @@ class LinuxProperties { } } } + }, + includedPackageNameMasks: { + required: false, + serializedName: 'includedPackageNameMasks', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + rebootSetting: { + required: false, + serializedName: 'rebootSetting', + type: { + name: 'String' + } } } } diff --git a/lib/services/automationManagement/lib/models/module.js b/lib/services/automationManagement/lib/models/module.js index 0aab08f1df..58c7323629 100644 --- a/lib/services/automationManagement/lib/models/module.js +++ b/lib/services/automationManagement/lib/models/module.js @@ -49,6 +49,8 @@ class Module extends models['TrackedResource'] { * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. * @member {string} [description] Gets or sets the description. + * @member {boolean} [isComposite] Gets or sets type of module, if its + * composite or not. * @member {string} [etag] Gets or sets the etag of the resource. */ constructor() { @@ -168,6 +170,7 @@ class Module extends models['TrackedResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -175,6 +178,7 @@ class Module extends models['TrackedResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' @@ -187,6 +191,13 @@ class Module extends models['TrackedResource'] { name: 'String' } }, + isComposite: { + required: false, + serializedName: 'properties.isComposite', + type: { + name: 'Boolean' + } + }, etag: { required: false, serializedName: 'etag', diff --git a/lib/services/automationManagement/lib/models/nodeCount.js b/lib/services/automationManagement/lib/models/nodeCount.js new file mode 100644 index 0000000000..5891ea3530 --- /dev/null +++ b/lib/services/automationManagement/lib/models/nodeCount.js @@ -0,0 +1,64 @@ +/* + * 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'); + +/** + * Number of nodes based on the Filter + * + */ +class NodeCount { + /** + * Create a NodeCount. + * @member {string} [name] Gets the name of a count type + * @member {object} [properties] + * @member {number} [properties.count] Gets the count for the name + */ + constructor() { + } + + /** + * Defines the metadata of NodeCount + * + * @returns {object} metadata of NodeCount + * + */ + mapper() { + return { + required: false, + serializedName: 'NodeCount', + type: { + name: 'Composite', + className: 'NodeCount', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Composite', + className: 'NodeCountProperties' + } + } + } + } + }; + } +} + +module.exports = NodeCount; diff --git a/lib/services/automationManagement/lib/models/nodeCountProperties.js b/lib/services/automationManagement/lib/models/nodeCountProperties.js new file mode 100644 index 0000000000..28c80b7ce9 --- /dev/null +++ b/lib/services/automationManagement/lib/models/nodeCountProperties.js @@ -0,0 +1,51 @@ +/* + * 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'; + +/** + * Class representing a NodeCountProperties. + */ +class NodeCountProperties { + /** + * Create a NodeCountProperties. + * @member {number} [count] Gets the count for the name + */ + constructor() { + } + + /** + * Defines the metadata of NodeCountProperties + * + * @returns {object} metadata of NodeCountProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'NodeCountProperties', + type: { + name: 'Composite', + className: 'NodeCountProperties', + modelProperties: { + count: { + required: false, + serializedName: 'count', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = NodeCountProperties; diff --git a/lib/services/automationManagement/lib/models/nodeCounts.js b/lib/services/automationManagement/lib/models/nodeCounts.js new file mode 100644 index 0000000000..9598ea00ca --- /dev/null +++ b/lib/services/automationManagement/lib/models/nodeCounts.js @@ -0,0 +1,71 @@ +/* + * 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'); + +/** + * Gets the count of nodes by count type + * + */ +class NodeCounts { + /** + * Create a NodeCounts. + * @member {array} [value] Gets an array of counts + * @member {number} [totalCount] Gets the total number of records matching + * countType criteria. + */ + constructor() { + } + + /** + * Defines the metadata of NodeCounts + * + * @returns {object} metadata of NodeCounts + * + */ + mapper() { + return { + required: false, + serializedName: 'NodeCounts', + type: { + name: 'Composite', + className: 'NodeCounts', + modelProperties: { + value: { + required: false, + serializedName: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NodeCountElementType', + type: { + name: 'Composite', + className: 'NodeCount' + } + } + } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = NodeCounts; diff --git a/lib/services/automationManagement/lib/models/proxyResource.js b/lib/services/automationManagement/lib/models/proxyResource.js index 43e93ec60e..4ea685046e 100644 --- a/lib/services/automationManagement/lib/models/proxyResource.js +++ b/lib/services/automationManagement/lib/models/proxyResource.js @@ -13,8 +13,7 @@ const models = require('./index'); /** - * The resource model definition for a ARM proxy resource. It will have - * everything other than required location and tags + * ARM proxy resource. * * @extends models['Resource'] */ diff --git a/lib/services/automationManagement/lib/models/runbook.js b/lib/services/automationManagement/lib/models/runbook.js index 234b38d12d..00090a51e5 100644 --- a/lib/services/automationManagement/lib/models/runbook.js +++ b/lib/services/automationManagement/lib/models/runbook.js @@ -240,6 +240,7 @@ class Runbook extends models['TrackedResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -247,6 +248,7 @@ class Runbook extends models['TrackedResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/runbookDraft.js b/lib/services/automationManagement/lib/models/runbookDraft.js index 06c864d39d..7cc6d43f0e 100644 --- a/lib/services/automationManagement/lib/models/runbookDraft.js +++ b/lib/services/automationManagement/lib/models/runbookDraft.js @@ -13,8 +13,7 @@ const models = require('./index'); /** - * Definition of the runbook type. - * + * Class representing a RunbookDraft. */ class RunbookDraft { /** @@ -72,6 +71,7 @@ class RunbookDraft { }, creationTime: { required: false, + nullable: false, serializedName: 'creationTime', type: { name: 'DateTime' @@ -79,6 +79,7 @@ class RunbookDraft { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/schedule.js b/lib/services/automationManagement/lib/models/schedule.js index 37dbafbc93..83e19eb77a 100644 --- a/lib/services/automationManagement/lib/models/schedule.js +++ b/lib/services/automationManagement/lib/models/schedule.js @@ -15,13 +15,11 @@ const models = require('./index'); /** * Definition of the schedule. * + * @extends models['ProxyResource'] */ -class Schedule { +class Schedule extends models['ProxyResource'] { /** * Create a Schedule. - * @member {string} [id] Gets the id of the resource. - * @member {string} [name] Gets name of the schedule. - * @member {string} [type] Resource type * @member {date} [startTime] Gets or sets the start time of the schedule. * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in * minutes. @@ -49,6 +47,7 @@ class Schedule { * @member {string} [description] Gets or sets the description. */ constructor() { + super(); } /** @@ -91,6 +90,7 @@ class Schedule { }, startTime: { required: false, + nullable: false, serializedName: 'properties.startTime', type: { name: 'DateTime' @@ -98,6 +98,7 @@ class Schedule { }, startTimeOffsetMinutes: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.startTimeOffsetMinutes', type: { @@ -106,6 +107,7 @@ class Schedule { }, expiryTime: { required: false, + nullable: true, serializedName: 'properties.expiryTime', type: { name: 'DateTime' @@ -113,6 +115,7 @@ class Schedule { }, expiryTimeOffsetMinutes: { required: false, + nullable: false, serializedName: 'properties.expiryTimeOffsetMinutes', type: { name: 'Number' @@ -128,6 +131,7 @@ class Schedule { }, nextRun: { required: false, + nullable: true, serializedName: 'properties.nextRun', type: { name: 'DateTime' @@ -135,6 +139,7 @@ class Schedule { }, nextRunOffsetMinutes: { required: false, + nullable: false, serializedName: 'properties.nextRunOffsetMinutes', type: { name: 'Number' @@ -171,6 +176,7 @@ class Schedule { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -178,6 +184,7 @@ class Schedule { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/scheduleAssociationProperty.js b/lib/services/automationManagement/lib/models/scheduleAssociationProperty.js index a21c31f50d..fc7db44a05 100644 --- a/lib/services/automationManagement/lib/models/scheduleAssociationProperty.js +++ b/lib/services/automationManagement/lib/models/scheduleAssociationProperty.js @@ -17,7 +17,7 @@ class ScheduleAssociationProperty { /** * Create a ScheduleAssociationProperty. - * @member {string} [name] Gets or sets the name of the schedule. + * @member {string} [name] Gets or sets the name of the Schedule. */ constructor() { } diff --git a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js index fd14a76bd3..6dc9a654f1 100644 --- a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js @@ -19,7 +19,7 @@ const models = require('./index'); class ScheduleCreateOrUpdateParameters { /** * Create a ScheduleCreateOrUpdateParameters. - * @member {string} name Gets or sets the name of the schedule. + * @member {string} name Gets or sets the name of the Schedule. * @member {string} [description] Gets or sets the description of the * schedule. * @member {date} startTime Gets or sets the start time of the schedule. @@ -69,6 +69,7 @@ class ScheduleCreateOrUpdateParameters { }, startTime: { required: true, + nullable: false, serializedName: 'properties.startTime', type: { name: 'DateTime' @@ -76,6 +77,7 @@ class ScheduleCreateOrUpdateParameters { }, expiryTime: { required: false, + nullable: true, serializedName: 'properties.expiryTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/scheduleProperties.js b/lib/services/automationManagement/lib/models/scheduleProperties.js index 8a0efe82d1..1795e7c9b1 100644 --- a/lib/services/automationManagement/lib/models/scheduleProperties.js +++ b/lib/services/automationManagement/lib/models/scheduleProperties.js @@ -64,6 +64,7 @@ class ScheduleProperties { modelProperties: { startTime: { required: false, + nullable: false, serializedName: 'startTime', type: { name: 'DateTime' @@ -71,6 +72,7 @@ class ScheduleProperties { }, startTimeOffsetMinutes: { required: false, + nullable: false, readOnly: true, serializedName: 'startTimeOffsetMinutes', type: { @@ -79,6 +81,7 @@ class ScheduleProperties { }, expiryTime: { required: false, + nullable: true, serializedName: 'expiryTime', type: { name: 'DateTime' @@ -86,6 +89,7 @@ class ScheduleProperties { }, expiryTimeOffsetMinutes: { required: false, + nullable: false, serializedName: 'expiryTimeOffsetMinutes', type: { name: 'Number' @@ -101,6 +105,7 @@ class ScheduleProperties { }, nextRun: { required: false, + nullable: true, serializedName: 'nextRun', type: { name: 'DateTime' @@ -108,6 +113,7 @@ class ScheduleProperties { }, nextRunOffsetMinutes: { required: false, + nullable: false, serializedName: 'nextRunOffsetMinutes', type: { name: 'Number' @@ -144,6 +150,7 @@ class ScheduleProperties { }, creationTime: { required: false, + nullable: false, serializedName: 'creationTime', type: { name: 'DateTime' @@ -151,6 +158,7 @@ class ScheduleProperties { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/scheduleUpdateParameters.js b/lib/services/automationManagement/lib/models/scheduleUpdateParameters.js index 26bd642bec..65268c3287 100644 --- a/lib/services/automationManagement/lib/models/scheduleUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/scheduleUpdateParameters.js @@ -17,7 +17,7 @@ class ScheduleUpdateParameters { /** * Create a ScheduleUpdateParameters. - * @member {string} [name] Gets or sets the name of the schedule. + * @member {string} [name] Gets or sets the name of the Schedule. * @member {string} [description] Gets or sets the description of the * schedule. * @member {boolean} [isEnabled] Gets or sets a value indicating whether this diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js index a93fc66152..47ee95120a 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js @@ -37,6 +37,10 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { * 'ServicePack', 'Definition', 'Tools', 'Updates' * @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers * excluded from the software update configuration. + * @member {array} [updateConfiguration.windows.includedKbNumbers] KB numbers + * included from the software update configuration. + * @member {string} [updateConfiguration.windows.rebootSetting] Reboot + * setting for the software update configuration. * @member {object} [updateConfiguration.linux] Linux specific update * configuration. * @member {string} @@ -45,6 +49,10 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { * values include: 'Unclassified', 'Critical', 'Security', 'Other' * @member {array} [updateConfiguration.linux.excludedPackageNameMasks] * packages excluded from the software update configuration. + * @member {array} [updateConfiguration.linux.includedPackageNameMasks] + * packages included from the software update configuration. + * @member {string} [updateConfiguration.linux.rebootSetting] Reboot setting + * for the software update configuration. * @member {moment.duration} [updateConfiguration.duration] Maximum time * allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 @@ -179,6 +187,7 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -195,6 +204,7 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js index 3feed65506..e5d5ded094 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js @@ -91,6 +91,7 @@ class SoftwareUpdateConfigurationCollectionItem { }, startTime: { required: false, + nullable: false, serializedName: 'properties.startTime', type: { name: 'DateTime' @@ -98,6 +99,7 @@ class SoftwareUpdateConfigurationCollectionItem { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -106,6 +108,7 @@ class SoftwareUpdateConfigurationCollectionItem { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { @@ -122,6 +125,7 @@ class SoftwareUpdateConfigurationCollectionItem { }, nextRun: { required: false, + nullable: true, serializedName: 'properties.nextRun', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js index 0220b60692..7160b1314d 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js @@ -147,6 +147,7 @@ class SoftwareUpdateConfigurationMachineRun { }, startTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.startTime', type: { @@ -155,6 +156,7 @@ class SoftwareUpdateConfigurationMachineRun { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { @@ -179,6 +181,7 @@ class SoftwareUpdateConfigurationMachineRun { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -195,6 +198,7 @@ class SoftwareUpdateConfigurationMachineRun { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js index d7c603ce40..c4a762fec8 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js @@ -113,6 +113,7 @@ class SoftwareUpdateConfigurationRun { }, startTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.startTime', type: { @@ -121,6 +122,7 @@ class SoftwareUpdateConfigurationRun { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { @@ -145,6 +147,7 @@ class SoftwareUpdateConfigurationRun { }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -161,6 +164,7 @@ class SoftwareUpdateConfigurationRun { }, lastModifiedTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.lastModifiedTime', type: { diff --git a/lib/services/automationManagement/lib/models/sourceControl.js b/lib/services/automationManagement/lib/models/sourceControl.js index b926558d2e..65d21d0307 100644 --- a/lib/services/automationManagement/lib/models/sourceControl.js +++ b/lib/services/automationManagement/lib/models/sourceControl.js @@ -15,14 +15,11 @@ const models = require('./index'); /** * Definition of the source control. * - * @extends models['BaseResource'] + * @extends models['ProxyResource'] */ -class SourceControl extends models['BaseResource'] { +class SourceControl extends models['ProxyResource'] { /** * Create a SourceControl. - * @member {string} [name] Resource name. - * @member {string} [id] Resource Id. - * @member {string} [type] Resource type. * @member {string} [repoUrl] Gets or sets the repo url of the source * control. * @member {string} [branch] Gets or sets the repo branch of the source @@ -57,18 +54,18 @@ class SourceControl extends models['BaseResource'] { name: 'Composite', className: 'SourceControl', modelProperties: { - name: { + id: { required: false, readOnly: true, - serializedName: 'name', + serializedName: 'id', type: { name: 'String' } }, - id: { + name: { required: false, readOnly: true, - serializedName: 'id', + serializedName: 'name', type: { name: 'String' } @@ -132,6 +129,7 @@ class SourceControl extends models['BaseResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -139,6 +137,7 @@ class SourceControl extends models['BaseResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJob.js b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js index 77494ea6a2..91ef7d3416 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJob.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js @@ -20,14 +20,14 @@ class SourceControlSyncJob { * @member {string} [name] Resource name. * @member {string} [type] Resource type. * @member {string} [id] Resource id. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the * job. Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' */ constructor() { } @@ -70,15 +70,16 @@ class SourceControlSyncJob { name: 'String' } }, - sourceControlSyncJobId: { + syncJobId: { required: false, - serializedName: 'properties.sourceControlSyncJobId', + serializedName: 'properties.syncJobId', type: { name: 'String' } }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -94,6 +95,7 @@ class SourceControlSyncJob { }, startTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.startTime', type: { @@ -102,15 +104,16 @@ class SourceControlSyncJob { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { name: 'DateTime' } }, - startedBy: { + startType: { required: false, - serializedName: 'properties.startedBy', + serializedName: 'properties.startType', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js index 5936289484..243b063ca4 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the source control sync job. * @@ -20,17 +18,16 @@ class SourceControlSyncJobById { /** * Create a SourceControlSyncJobById. * @member {string} [id] Gets the id of the job. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the * job. Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. - * @member {object} [errors] Error details of the source control sync job. - * @member {string} [errors.code] Gets the error code for the job. - * @member {string} [errors.message] Gets the error message for the job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' + * @member {string} [exception] Gets the exceptions that occured while + * running the sync job. */ constructor() { } @@ -56,15 +53,16 @@ class SourceControlSyncJobById { name: 'String' } }, - sourceControlSyncJobId: { + syncJobId: { required: false, - serializedName: 'properties.sourceControlSyncJobId', + serializedName: 'properties.syncJobId', type: { name: 'String' } }, creationTime: { required: false, + nullable: false, readOnly: true, serializedName: 'properties.creationTime', type: { @@ -80,6 +78,7 @@ class SourceControlSyncJobById { }, startTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.startTime', type: { @@ -88,25 +87,25 @@ class SourceControlSyncJobById { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'properties.endTime', type: { name: 'DateTime' } }, - startedBy: { + startType: { required: false, - serializedName: 'properties.startedBy', + serializedName: 'properties.startType', type: { name: 'String' } }, - errors: { + exception: { required: false, - serializedName: 'properties.errors', + serializedName: 'properties.exception', type: { - name: 'Composite', - className: 'SourceControlSyncJobByIdErrors' + name: 'String' } } } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js new file mode 100644 index 0000000000..e2ec347211 --- /dev/null +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobCreateParameters.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * The parameters supplied to the create source control sync job operation. + * + */ +class SourceControlSyncJobCreateParameters { + /** + * Create a SourceControlSyncJobCreateParameters. + * @member {string} [commitId] Sets the commit id of the source control sync + * job. + */ + constructor() { + } + + /** + * Defines the metadata of SourceControlSyncJobCreateParameters + * + * @returns {object} metadata of SourceControlSyncJobCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceControlSyncJobCreateParameters', + type: { + name: 'Composite', + className: 'SourceControlSyncJobCreateParameters', + modelProperties: { + commitId: { + required: false, + serializedName: 'properties.commitId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceControlSyncJobCreateParameters; diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js new file mode 100644 index 0000000000..2c7605db40 --- /dev/null +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStream.js @@ -0,0 +1,88 @@ +/* + * 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'; + +/** + * Definition of the source control sync job stream. + * + */ +class SourceControlSyncJobStream { + /** + * Create a SourceControlSyncJobStream. + * @member {string} [id] Resource id. + * @member {string} [syncJobStreamId] Gets the sync job stream id. + * @member {string} [summary] Gets the summary of the sync job stream. + * @member {date} [time] Gets the time of the sync job stream. + * @member {string} [streamType] Gets the type of the sync job stream. + * Possible values include: 'Error', 'Output' + */ + constructor() { + } + + /** + * Defines the metadata of SourceControlSyncJobStream + * + * @returns {object} metadata of SourceControlSyncJobStream + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceControlSyncJobStream', + type: { + name: 'Composite', + className: 'SourceControlSyncJobStream', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + syncJobStreamId: { + required: false, + serializedName: 'properties.syncJobStreamId', + type: { + name: 'String' + } + }, + summary: { + required: false, + serializedName: 'properties.summary', + type: { + name: 'String' + } + }, + time: { + required: false, + nullable: true, + readOnly: true, + serializedName: 'properties.time', + type: { + name: 'DateTime' + } + }, + streamType: { + required: false, + serializedName: 'properties.streamType', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceControlSyncJobStream; diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js new file mode 100644 index 0000000000..82cd2f7782 --- /dev/null +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamById.js @@ -0,0 +1,104 @@ +/* + * 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'; + +/** + * Definition of the source control sync job stream by id. + * + */ +class SourceControlSyncJobStreamById { + /** + * Create a SourceControlSyncJobStreamById. + * @member {string} [id] Resource id. + * @member {string} [syncJobStreamId] Gets the sync job stream id. + * @member {string} [summary] Gets the summary of the sync job stream. + * @member {date} [time] Gets the time of the sync job stream. + * @member {string} [streamType] Gets the type of the sync job stream. + * Possible values include: 'Error', 'Output' + * @member {string} [streamText] Gets the text of the sync job stream. + * @member {string} [value] Gets the value of the sync job stream. + */ + constructor() { + } + + /** + * Defines the metadata of SourceControlSyncJobStreamById + * + * @returns {object} metadata of SourceControlSyncJobStreamById + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceControlSyncJobStreamById', + type: { + name: 'Composite', + className: 'SourceControlSyncJobStreamById', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + syncJobStreamId: { + required: false, + serializedName: 'properties.syncJobStreamId', + type: { + name: 'String' + } + }, + summary: { + required: false, + serializedName: 'properties.summary', + type: { + name: 'String' + } + }, + time: { + required: false, + nullable: true, + readOnly: true, + serializedName: 'properties.time', + type: { + name: 'DateTime' + } + }, + streamType: { + required: false, + serializedName: 'properties.streamType', + type: { + name: 'String' + } + }, + streamText: { + required: false, + serializedName: 'properties.streamText', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'properties.value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceControlSyncJobStreamById; diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js new file mode 100644 index 0000000000..1bd26279c6 --- /dev/null +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobStreamsListBySyncJob.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * The response model for the list source control sync job streams operation. + */ +class SourceControlSyncJobStreamsListBySyncJob extends Array { + /** + * Create a SourceControlSyncJobStreamsListBySyncJob. + * @member {string} [nextLink] Gets or sets the next link. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SourceControlSyncJobStreamsListBySyncJob + * + * @returns {object} metadata of SourceControlSyncJobStreamsListBySyncJob + * + */ + mapper() { + return { + required: false, + serializedName: 'SourceControlSyncJobStreamsListBySyncJob', + type: { + name: 'Composite', + className: 'SourceControlSyncJobStreamsListBySyncJob', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'SourceControlSyncJobStreamElementType', + type: { + name: 'Composite', + className: 'SourceControlSyncJobStream' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SourceControlSyncJobStreamsListBySyncJob; diff --git a/lib/services/automationManagement/lib/models/statistics.js b/lib/services/automationManagement/lib/models/statistics.js index dd6db0ec7e..4c7629aff5 100644 --- a/lib/services/automationManagement/lib/models/statistics.js +++ b/lib/services/automationManagement/lib/models/statistics.js @@ -59,6 +59,7 @@ class Statistics { }, startTime: { required: false, + nullable: false, readOnly: true, serializedName: 'startTime', type: { @@ -67,6 +68,7 @@ class Statistics { }, endTime: { required: false, + nullable: true, readOnly: true, serializedName: 'endTime', type: { diff --git a/lib/services/automationManagement/lib/models/testJob.js b/lib/services/automationManagement/lib/models/testJob.js index 5dfc6c310a..870be9a287 100644 --- a/lib/services/automationManagement/lib/models/testJob.js +++ b/lib/services/automationManagement/lib/models/testJob.js @@ -54,6 +54,7 @@ class TestJob { modelProperties: { creationTime: { required: false, + nullable: false, serializedName: 'creationTime', type: { name: 'DateTime' @@ -82,6 +83,7 @@ class TestJob { }, startTime: { required: false, + nullable: true, serializedName: 'startTime', type: { name: 'DateTime' @@ -89,6 +91,7 @@ class TestJob { }, endTime: { required: false, + nullable: true, serializedName: 'endTime', type: { name: 'DateTime' @@ -103,6 +106,7 @@ class TestJob { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'lastModifiedTime', type: { name: 'DateTime' @@ -110,6 +114,7 @@ class TestJob { }, lastStatusModifiedTime: { required: false, + nullable: true, serializedName: 'lastStatusModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 49842befcc..5154e25af8 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -29,12 +29,20 @@ class UpdateConfiguration { * 'ServicePack', 'Definition', 'Tools', 'Updates' * @member {array} [windows.excludedKbNumbers] KB numbers excluded from the * software update configuration. + * @member {array} [windows.includedKbNumbers] KB numbers included from the + * software update configuration. + * @member {string} [windows.rebootSetting] Reboot setting for the software + * update configuration. * @member {object} [linux] Linux specific update configuration. * @member {string} [linux.includedPackageClassifications] Update * classifications included in the software update configuration. Possible * values include: 'Unclassified', 'Critical', 'Security', 'Other' * @member {array} [linux.excludedPackageNameMasks] packages excluded from * the software update configuration. + * @member {array} [linux.includedPackageNameMasks] packages included from + * the software update configuration. + * @member {string} [linux.rebootSetting] Reboot setting for the software + * update configuration. * @member {moment.duration} [duration] Maximum time allowed for the software * update configuration run. Duration needs to be specified using the format * PT[n]H[n]M[n]S as per ISO8601 diff --git a/lib/services/automationManagement/lib/models/variable.js b/lib/services/automationManagement/lib/models/variable.js index 96a65bf066..02610dc34d 100644 --- a/lib/services/automationManagement/lib/models/variable.js +++ b/lib/services/automationManagement/lib/models/variable.js @@ -78,6 +78,7 @@ class Variable extends models['ProxyResource'] { }, isEncrypted: { required: false, + nullable: true, serializedName: 'properties.isEncrypted', type: { name: 'Boolean' @@ -85,6 +86,7 @@ class Variable extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -92,6 +94,7 @@ class Variable extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/watcher.js b/lib/services/automationManagement/lib/models/watcher.js new file mode 100644 index 0000000000..439460fad1 --- /dev/null +++ b/lib/services/automationManagement/lib/models/watcher.js @@ -0,0 +1,191 @@ +/* + * 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'); + +/** + * Definition of the watcher type. + * + * @extends models['TrackedResource'] + */ +class Watcher extends models['TrackedResource'] { + /** + * Create a Watcher. + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency + * at which the watcher is invoked. + * @member {string} [scriptName] Gets or sets the name of the script the + * watcher is attached to, i.e. the name of an existing runbook. + * @member {object} [scriptParameters] Gets or sets the parameters of the + * script. + * @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker + * group the watcher will run on. + * @member {string} [status] Gets the current status of the watcher. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified + * the watcher. + * @member {string} [description] Gets or sets the description. + * @member {string} [etag] Gets or sets the etag of the resource. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of Watcher + * + * @returns {object} metadata of Watcher + * + */ + mapper() { + return { + required: false, + serializedName: 'Watcher', + type: { + name: 'Composite', + className: 'Watcher', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + executionFrequencyInSeconds: { + required: false, + serializedName: 'properties.executionFrequencyInSeconds', + type: { + name: 'Number' + } + }, + scriptName: { + required: false, + serializedName: 'properties.scriptName', + type: { + name: 'String' + } + }, + scriptParameters: { + required: false, + serializedName: 'properties.scriptParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + scriptRunOn: { + required: false, + serializedName: 'properties.scriptRunOn', + type: { + name: 'String' + } + }, + status: { + required: false, + readOnly: true, + serializedName: 'properties.status', + type: { + name: 'String' + } + }, + creationTime: { + required: false, + nullable: false, + readOnly: true, + serializedName: 'properties.creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: false, + nullable: false, + readOnly: true, + serializedName: 'properties.lastModifiedTime', + type: { + name: 'DateTime' + } + }, + lastModifiedBy: { + required: false, + readOnly: true, + serializedName: 'properties.lastModifiedBy', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'properties.description', + type: { + name: 'String' + } + }, + etag: { + required: false, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = Watcher; diff --git a/lib/services/automationManagement/lib/models/watcherListResult.js b/lib/services/automationManagement/lib/models/watcherListResult.js new file mode 100644 index 0000000000..c900c0ef28 --- /dev/null +++ b/lib/services/automationManagement/lib/models/watcherListResult.js @@ -0,0 +1,67 @@ +/* + * 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'; + +/** + * The response model for the list watcher operation. + */ +class WatcherListResult extends Array { + /** + * Create a WatcherListResult. + * @member {string} [nextLink] Gets or sets the next link. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of WatcherListResult + * + * @returns {object} metadata of WatcherListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'WatcherListResult', + type: { + name: 'Composite', + className: 'WatcherListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'WatcherElementType', + type: { + name: 'Composite', + className: 'Watcher' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WatcherListResult; diff --git a/lib/services/automationManagement/lib/models/watcherUpdateParameters.js b/lib/services/automationManagement/lib/models/watcherUpdateParameters.js new file mode 100644 index 0000000000..30671293e8 --- /dev/null +++ b/lib/services/automationManagement/lib/models/watcherUpdateParameters.js @@ -0,0 +1,60 @@ +/* + * 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'; + +/** + * Class representing a WatcherUpdateParameters. + */ +class WatcherUpdateParameters { + /** + * Create a WatcherUpdateParameters. + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency + * at which the watcher is invoked. + * @member {string} [name] Gets or sets the name of the resource. + */ + constructor() { + } + + /** + * Defines the metadata of WatcherUpdateParameters + * + * @returns {object} metadata of WatcherUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'WatcherUpdateParameters', + type: { + name: 'Composite', + className: 'WatcherUpdateParameters', + modelProperties: { + executionFrequencyInSeconds: { + required: false, + serializedName: 'properties.executionFrequencyInSeconds', + type: { + name: 'Number' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = WatcherUpdateParameters; diff --git a/lib/services/automationManagement/lib/models/webhook.js b/lib/services/automationManagement/lib/models/webhook.js index 871b68b080..f611e89501 100644 --- a/lib/services/automationManagement/lib/models/webhook.js +++ b/lib/services/automationManagement/lib/models/webhook.js @@ -34,6 +34,8 @@ class Webhook extends models['ProxyResource'] { * the webhook job will run on. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified + * the Webhook * @member {string} [description] Gets or sets the description. */ constructor() { @@ -95,6 +97,7 @@ class Webhook extends models['ProxyResource'] { }, expiryTime: { required: false, + nullable: false, serializedName: 'properties.expiryTime', type: { name: 'DateTime' @@ -102,6 +105,7 @@ class Webhook extends models['ProxyResource'] { }, lastInvokedTime: { required: false, + nullable: true, serializedName: 'properties.lastInvokedTime', type: { name: 'DateTime' @@ -138,6 +142,7 @@ class Webhook extends models['ProxyResource'] { }, creationTime: { required: false, + nullable: false, serializedName: 'properties.creationTime', type: { name: 'DateTime' @@ -145,11 +150,19 @@ class Webhook extends models['ProxyResource'] { }, lastModifiedTime: { required: false, + nullable: false, serializedName: 'properties.lastModifiedTime', type: { name: 'DateTime' } }, + lastModifiedBy: { + required: false, + serializedName: 'properties.lastModifiedBy', + type: { + name: 'String' + } + }, description: { required: false, serializedName: 'properties.description', diff --git a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js index 0025643af8..02b7161375 100644 --- a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js @@ -70,6 +70,7 @@ class WebhookCreateOrUpdateParameters { }, expiryTime: { required: false, + nullable: false, serializedName: 'properties.expiryTime', type: { name: 'DateTime' diff --git a/lib/services/automationManagement/lib/models/windowsProperties.js b/lib/services/automationManagement/lib/models/windowsProperties.js index d58407607d..85d1fd77a8 100644 --- a/lib/services/automationManagement/lib/models/windowsProperties.js +++ b/lib/services/automationManagement/lib/models/windowsProperties.js @@ -24,6 +24,10 @@ class WindowsProperties { * 'Tools', 'Updates' * @member {array} [excludedKbNumbers] KB numbers excluded from the software * update configuration. + * @member {array} [includedKbNumbers] KB numbers included from the software + * update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ constructor() { } @@ -62,6 +66,27 @@ class WindowsProperties { } } } + }, + includedKbNumbers: { + required: false, + serializedName: 'includedKbNumbers', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + rebootSetting: { + required: false, + serializedName: 'rebootSetting', + type: { + name: 'String' + } } } } diff --git a/lib/services/automationManagement/lib/operations/activityOperations.js b/lib/services/automationManagement/lib/operations/activityOperations.js index e7697d5ced..9d46756827 100644 --- a/lib/services/automationManagement/lib/operations/activityOperations.js +++ b/lib/services/automationManagement/lib/operations/activityOperations.js @@ -20,7 +20,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -190,7 +190,7 @@ function _get(resourceGroupName, automationAccountName, moduleName, activityName * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -496,7 +496,7 @@ class ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -533,7 +533,7 @@ class ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -591,7 +591,7 @@ class ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -625,7 +625,7 @@ class ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * diff --git a/lib/services/automationManagement/lib/operations/agentRegistrationInformation.js b/lib/services/automationManagement/lib/operations/agentRegistrationInformation.js index 87214db0dd..1be508946f 100644 --- a/lib/services/automationManagement/lib/operations/agentRegistrationInformation.js +++ b/lib/services/automationManagement/lib/operations/agentRegistrationInformation.js @@ -185,14 +185,6 @@ function _get(resourceGroupName, automationAccountName, options, callback) { * @param {string} parameters.keyName Gets or sets the agent registration key * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [parameters.name] Gets or sets the name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -472,14 +464,6 @@ class AgentRegistrationInformation { * @param {string} parameters.keyName Gets or sets the agent registration key * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [parameters.name] Gets or sets the name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -518,14 +502,6 @@ class AgentRegistrationInformation { * @param {string} parameters.keyName Gets or sets the agent registration key * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [parameters.name] Gets or sets the name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/automationManagement/lib/operations/automationAccountOperations.js b/lib/services/automationManagement/lib/operations/automationAccountOperations.js index a35d725c5a..2cefe84c58 100644 --- a/lib/services/automationManagement/lib/operations/automationAccountOperations.js +++ b/lib/services/automationManagement/lib/operations/automationAccountOperations.js @@ -17,9 +17,9 @@ const WebResource = msRest.WebResource; /** * Update an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the update automation * account. @@ -76,6 +76,14 @@ function _update(resourceGroupName, automationAccountName, parameters, options, throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -204,10 +212,9 @@ function _update(resourceGroupName, automationAccountName, parameters, options, /** * Create or update automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Parameters supplied to the create or - * update automation account. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the create or update * automation account. @@ -264,6 +271,14 @@ function _createOrUpdate(resourceGroupName, automationAccountName, parameters, o throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -409,9 +424,9 @@ function _createOrUpdate(resourceGroupName, automationAccountName, parameters, o /** * Delete an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -447,6 +462,14 @@ function _deleteMethod(resourceGroupName, automationAccountName, options, callba throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -541,9 +564,9 @@ function _deleteMethod(resourceGroupName, automationAccountName, options, callba /** * Get information about an Automation Account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -580,6 +603,14 @@ function _get(resourceGroupName, automationAccountName, options, callback) { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -691,7 +722,7 @@ function _get(resourceGroupName, automationAccountName, options, callback) { /** * Retrieve a list of accounts within a given resource group. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {object} [options] Optional Parameters. * @@ -729,6 +760,14 @@ function _listByResourceGroup(resourceGroupName, options, callback) { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -1249,9 +1288,9 @@ class AutomationAccountOperations { /** * Update an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the update automation * account. @@ -1301,9 +1340,9 @@ class AutomationAccountOperations { /** * Update an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the update automation * account. @@ -1375,10 +1414,9 @@ class AutomationAccountOperations { /** * Create or update automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Parameters supplied to the create or - * update automation account. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the create or update * automation account. @@ -1428,10 +1466,9 @@ class AutomationAccountOperations { /** * Create or update automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Parameters supplied to the create or - * update automation account. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the create or update * automation account. @@ -1503,9 +1540,9 @@ class AutomationAccountOperations { /** * Delete an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1535,9 +1572,9 @@ class AutomationAccountOperations { /** * Delete an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1588,9 +1625,9 @@ class AutomationAccountOperations { /** * Get information about an Automation Account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1620,9 +1657,9 @@ class AutomationAccountOperations { /** * Get information about an Automation Account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1674,7 +1711,7 @@ class AutomationAccountOperations { /** * Retrieve a list of accounts within a given resource group. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {object} [options] Optional Parameters. * @@ -1704,7 +1741,7 @@ class AutomationAccountOperations { /** * Retrieve a list of accounts within a given resource group. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/certificateOperations.js b/lib/services/automationManagement/lib/operations/certificateOperations.js index af935dabdb..2a462158e5 100644 --- a/lib/services/automationManagement/lib/operations/certificateOperations.js +++ b/lib/services/automationManagement/lib/operations/certificateOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, certificateName * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, certificateName, options * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the create or * update certificate operation. @@ -545,7 +545,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, certificateNa * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the update * certificate operation. @@ -735,7 +735,7 @@ function _update(resourceGroupName, automationAccountName, certificateName, para * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1037,7 +1037,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -1071,7 +1071,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -1126,7 +1126,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -1160,7 +1160,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -1216,7 +1216,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the create or * update certificate operation. @@ -1268,7 +1268,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the create or * update certificate operation. @@ -1342,7 +1342,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the update * certificate operation. @@ -1385,7 +1385,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the update * certificate operation. @@ -1450,7 +1450,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1482,7 +1482,7 @@ class CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/connectionOperations.js b/lib/services/automationManagement/lib/operations/connectionOperations.js index b6cdfdb030..43d5aa3082 100644 --- a/lib/services/automationManagement/lib/operations/connectionOperations.js +++ b/lib/services/automationManagement/lib/operations/connectionOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -183,7 +183,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, connectionName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -347,7 +347,7 @@ function _get(resourceGroupName, automationAccountName, connectionName, options, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the create or * update connection operation. @@ -563,7 +563,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, connectionNam * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the update a * connection operation. @@ -756,7 +756,7 @@ function _update(resourceGroupName, automationAccountName, connectionName, param * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1058,7 +1058,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1092,7 +1092,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1148,7 +1148,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1182,7 +1182,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1238,7 +1238,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the create or * update connection operation. @@ -1290,7 +1290,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the create or * update connection operation. @@ -1364,7 +1364,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the update a * connection operation. @@ -1410,7 +1410,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the update a * connection operation. @@ -1478,7 +1478,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1510,7 +1510,7 @@ class ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/connectionTypeOperations.js b/lib/services/automationManagement/lib/operations/connectionTypeOperations.js index fdd1e9fedb..33fa0617b0 100644 --- a/lib/services/automationManagement/lib/operations/connectionTypeOperations.js +++ b/lib/services/automationManagement/lib/operations/connectionTypeOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, connectionTypeN * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, connectionTypeName, opti * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The parameters supplied to the create or * update connectiontype operation. @@ -540,7 +540,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, connectionTyp * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -843,7 +843,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -877,7 +877,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -932,7 +932,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -966,7 +966,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -1022,7 +1022,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The parameters supplied to the create or * update connectiontype operation. @@ -1069,7 +1069,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The parameters supplied to the create or * update connectiontype operation. @@ -1138,7 +1138,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1170,7 +1170,7 @@ class ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/credentialOperations.js b/lib/services/automationManagement/lib/operations/credentialOperations.js index f617c56f0b..e54ce28c47 100644 --- a/lib/services/automationManagement/lib/operations/credentialOperations.js +++ b/lib/services/automationManagement/lib/operations/credentialOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, credentialName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, credentialName, options, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the create or * update credential operation. @@ -542,7 +542,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, credentialNam * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the Update * credential operation. @@ -738,7 +738,7 @@ function _update(resourceGroupName, automationAccountName, credentialName, param * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1038,7 +1038,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -1072,7 +1072,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -1127,7 +1127,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -1161,7 +1161,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -1217,7 +1217,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the create or * update credential operation. @@ -1266,7 +1266,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the create or * update credential operation. @@ -1337,7 +1337,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the Update * credential operation. @@ -1386,7 +1386,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the Update * credential operation. @@ -1457,7 +1457,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1489,7 +1489,7 @@ class CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/dscCompilationJobOperations.js b/lib/services/automationManagement/lib/operations/dscCompilationJobOperations.js index d89ef1d387..37c4d3773f 100644 --- a/lib/services/automationManagement/lib/operations/dscCompilationJobOperations.js +++ b/lib/services/automationManagement/lib/operations/dscCompilationJobOperations.js @@ -35,8 +35,8 @@ const WebResource = msRest.WebResource; * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -638,8 +638,8 @@ function _getStream(resourceGroupName, automationAccountName, jobId, jobStreamId * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -986,8 +986,8 @@ class DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -1042,8 +1042,8 @@ class DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -1395,8 +1395,8 @@ class DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -1451,8 +1451,8 @@ class DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * diff --git a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index 8fb422a481..44d5ac3d7b 100644 --- a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, configurationNa * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, configurationName, optio * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -568,7 +568,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, configuration * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -787,7 +787,7 @@ function _update(resourceGroupName, automationAccountName, configurationName, op * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -956,10 +956,18 @@ function _getContent(resourceGroupName, automationAccountName, configurationName * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -987,6 +995,10 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (!callback) { throw new Error('callback cannot be null.'); } + let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2015-10-31'; // Validate try { @@ -1013,6 +1025,18 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti 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 (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter must be of type string.'); + } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount 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.'); } @@ -1028,6 +1052,18 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -1261,7 +1297,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1295,7 +1331,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1350,7 +1386,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1384,7 +1420,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1440,7 +1476,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -1515,7 +1551,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -1612,7 +1648,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -1686,7 +1722,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -1782,7 +1818,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1816,7 +1852,7 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -1871,10 +1907,18 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1903,10 +1947,18 @@ class DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js index 6d8b0a61f0..92be1691db 100644 --- a/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js @@ -356,8 +356,6 @@ function _get(resourceGroupName, automationAccountName, nodeConfigurationName, o * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -367,6 +365,11 @@ function _get(resourceGroupName, automationAccountName, nodeConfigurationName, o * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -448,6 +451,12 @@ function _createOrUpdate(resourceGroupName, automationAccountName, nodeConfigura * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -476,6 +485,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('callback cannot be null.'); } let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2018-01-15'; // Validate try { @@ -505,6 +517,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount 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.'); } @@ -523,6 +544,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined) { queryParameters.push('$filter=' + encodeURIComponent(filter)); } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -636,8 +666,6 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -647,6 +675,11 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -752,7 +785,7 @@ function _beginCreateOrUpdate(resourceGroupName, automationAccountName, nodeConf let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['DscNodeConfigurationCreateOrUpdateParametersProperties']().mapper(); + let requestModelMapper = new client.models['DscNodeConfigurationCreateOrUpdateParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -1174,8 +1207,6 @@ class DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -1185,6 +1216,11 @@ class DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1241,8 +1277,6 @@ class DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -1252,6 +1286,11 @@ class DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1310,6 +1349,12 @@ class DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1344,6 +1389,12 @@ class DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1421,8 +1472,6 @@ class DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -1432,6 +1481,11 @@ class DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1488,8 +1542,6 @@ class DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -1499,6 +1551,11 @@ class DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/automationManagement/lib/operations/dscNodeOperations.js b/lib/services/automationManagement/lib/operations/dscNodeOperations.js index 16dd2a39b7..ed3b22b190 100644 --- a/lib/services/automationManagement/lib/operations/dscNodeOperations.js +++ b/lib/services/automationManagement/lib/operations/dscNodeOperations.js @@ -357,12 +357,6 @@ function _get(resourceGroupName, automationAccountName, nodeId, options, callbac * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the * dsc node. * - * @param {object} [dscNodeUpdateParameters.nodeConfiguration] Gets or sets the - * configuration of the node. - * - * @param {string} [dscNodeUpdateParameters.nodeConfiguration.name] Gets or - * sets the name of the dsc nodeconfiguration. - * * @param {object} [dscNodeUpdateParameters.properties] * * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the @@ -551,6 +545,12 @@ function _update(resourceGroupName, automationAccountName, nodeId, dscNodeUpdate * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -578,6 +578,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('callback cannot be null.'); } let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2018-01-15'; // Validate try { @@ -604,6 +607,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount 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.'); } @@ -624,6 +636,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined) { queryParameters.push('$filter=' + encodeURIComponent(filter)); } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1045,12 +1066,6 @@ class DscNodeOperations { * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the * dsc node. * - * @param {object} [dscNodeUpdateParameters.nodeConfiguration] Gets or sets the - * configuration of the node. - * - * @param {string} [dscNodeUpdateParameters.nodeConfiguration.name] Gets or - * sets the name of the dsc nodeconfiguration. - * * @param {object} [dscNodeUpdateParameters.properties] * * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the @@ -1096,12 +1111,6 @@ class DscNodeOperations { * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the * dsc node. * - * @param {object} [dscNodeUpdateParameters.nodeConfiguration] Gets or sets the - * configuration of the node. - * - * @param {string} [dscNodeUpdateParameters.nodeConfiguration.name] Gets or - * sets the name of the dsc nodeconfiguration. - * * @param {object} [dscNodeUpdateParameters.properties] * * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the @@ -1165,6 +1174,12 @@ class DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1199,6 +1214,12 @@ class DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/fields.js b/lib/services/automationManagement/lib/operations/fields.js index 99959d3d38..e42b0b4469 100644 --- a/lib/services/automationManagement/lib/operations/fields.js +++ b/lib/services/automationManagement/lib/operations/fields.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -200,7 +200,7 @@ class Fields { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -236,7 +236,7 @@ class Fields { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * diff --git a/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js b/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js index 51f2f367e7..23682f4273 100644 --- a/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js +++ b/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -166,7 +166,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, hybridRunbookWo * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -332,7 +332,7 @@ function _get(resourceGroupName, automationAccountName, hybridRunbookWorkerGroup * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -523,10 +523,12 @@ function _update(resourceGroupName, automationAccountName, hybridRunbookWorkerGr * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -554,6 +556,7 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (!callback) { throw new Error('callback cannot be null.'); } + let filter = (options && options.filter !== undefined) ? options.filter : undefined; let apiVersion = '2015-10-31'; // Validate try { @@ -577,6 +580,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti 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 (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter 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.'); } @@ -594,6 +600,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -826,7 +835,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -861,7 +870,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -917,7 +926,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -952,7 +961,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -1010,7 +1019,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -1053,7 +1062,7 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -1119,10 +1128,12 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1151,10 +1162,12 @@ class HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 6d21ef3ffe..bce9979388 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -9,6 +9,7 @@ */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; +import * as stream from 'stream'; import * as models from '../models'; @@ -24,9 +25,9 @@ export interface AutomationAccountOperations { /** * Update an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the update automation * account. @@ -64,9 +65,9 @@ export interface AutomationAccountOperations { /** * Update an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the update automation * account. @@ -123,10 +124,9 @@ export interface AutomationAccountOperations { /** * Create or update automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Parameters supplied to the create or - * update automation account. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the create or update * automation account. @@ -164,10 +164,9 @@ export interface AutomationAccountOperations { /** * Create or update automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Parameters supplied to the create or - * update automation account. + * @param {string} automationAccountName The name of the automation account. * * @param {object} parameters Parameters supplied to the create or update * automation account. @@ -224,9 +223,9 @@ export interface AutomationAccountOperations { /** * Delete an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -244,9 +243,9 @@ export interface AutomationAccountOperations { /** * Delete an automation account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -282,9 +281,9 @@ export interface AutomationAccountOperations { /** * Get information about an Automation Account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -302,9 +301,9 @@ export interface AutomationAccountOperations { /** * Get information about an Automation Account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -341,7 +340,7 @@ export interface AutomationAccountOperations { /** * Retrieve a list of accounts within a given resource group. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {object} [options] Optional Parameters. * @@ -359,7 +358,7 @@ export interface AutomationAccountOperations { /** * Retrieve a list of accounts within a given resource group. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {object} [options] Optional Parameters. * @@ -642,9 +641,9 @@ export interface StatisticsOperations { /** * Retrieve the statistics for the account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -664,9 +663,9 @@ export interface StatisticsOperations { /** * Retrieve the statistics for the account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -714,9 +713,9 @@ export interface Usages { /** * Retrieve the usage for the account id. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -734,9 +733,9 @@ export interface Usages { /** * Retrieve the usage for the account id. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -784,7 +783,7 @@ export interface Keys { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -804,7 +803,7 @@ export interface Keys { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -852,7 +851,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -874,7 +873,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -914,7 +913,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -936,7 +935,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The name of certificate. * @@ -977,7 +976,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the create or * update certificate operation. @@ -1017,7 +1016,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the create or * update certificate operation. @@ -1076,7 +1075,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the update * certificate operation. @@ -1107,7 +1106,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} certificateName The parameters supplied to the update * certificate operation. @@ -1157,7 +1156,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1177,7 +1176,7 @@ export interface CertificateOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1282,7 +1281,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1304,7 +1303,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1345,7 +1344,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1367,7 +1366,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The name of connection. * @@ -1408,7 +1407,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the create or * update connection operation. @@ -1448,7 +1447,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the create or * update connection operation. @@ -1507,7 +1506,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the update a * connection operation. @@ -1541,7 +1540,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionName The parameters supplied to the update a * connection operation. @@ -1594,7 +1593,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1614,7 +1613,7 @@ export interface ConnectionOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1719,7 +1718,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -1741,7 +1740,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -1781,7 +1780,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -1803,7 +1802,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The name of connectiontype. * @@ -1844,7 +1843,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The parameters supplied to the create or * update connectiontype operation. @@ -1879,7 +1878,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} connectionTypeName The parameters supplied to the create or * update connectiontype operation. @@ -1933,7 +1932,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1953,7 +1952,7 @@ export interface ConnectionTypeOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -2060,7 +2059,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -2082,7 +2081,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -2122,7 +2121,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -2144,7 +2143,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The name of credential. * @@ -2185,7 +2184,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the create or * update credential operation. @@ -2222,7 +2221,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the create or * update credential operation. @@ -2278,7 +2277,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the Update * credential operation. @@ -2315,7 +2314,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} credentialName The parameters supplied to the Update * credential operation. @@ -2371,7 +2370,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -2391,7 +2390,7 @@ export interface CredentialOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -2496,7 +2495,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2518,7 +2517,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2558,7 +2557,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2580,7 +2579,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2621,7 +2620,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -2684,7 +2683,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -2766,7 +2765,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -2828,7 +2827,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The create or update parameters for * configuration. @@ -2909,7 +2908,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2931,7 +2930,7 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} configurationName The configuration name. * @@ -2971,10 +2970,18 @@ export interface DscConfigurationOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2984,17 +2991,25 @@ export interface DscConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of configurations. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3021,9 +3036,9 @@ export interface DscConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3098,7 +3113,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3121,7 +3136,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName Automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3162,7 +3177,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3185,7 +3200,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3228,7 +3243,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3259,7 +3274,7 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} hybridRunbookWorkerGroupName The hybrid runbook worker group * name @@ -3310,10 +3325,12 @@ export interface HybridRunbookWorkerGroupOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3323,17 +3340,19 @@ export interface HybridRunbookWorkerGroupOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of hybrid runbook worker groups. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3360,9 +3379,9 @@ export interface HybridRunbookWorkerGroupOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3437,7 +3456,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3459,7 +3478,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3499,7 +3518,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3521,7 +3540,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3562,7 +3581,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3572,7 +3591,7 @@ export interface JobScheduleOperations { * @param {object} parameters.schedule Gets or sets the schedule. * * @param {string} [parameters.schedule.name] Gets or sets the name of the - * schedule. + * Schedule. * * @param {object} parameters.runbook Gets or sets the runbook. * @@ -3603,7 +3622,7 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -3613,7 +3632,7 @@ export interface JobScheduleOperations { * @param {object} parameters.schedule Gets or sets the schedule. * * @param {string} [parameters.schedule.name] Gets or sets the name of the - * schedule. + * Schedule. * * @param {object} parameters.runbook Gets or sets the runbook. * @@ -3663,10 +3682,12 @@ export interface JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3676,17 +3697,19 @@ export interface JobScheduleOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of job schedules. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3712,9 +3735,9 @@ export interface JobScheduleOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3788,7 +3811,7 @@ export interface LinkedWorkspaceOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -3808,7 +3831,7 @@ export interface LinkedWorkspaceOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -3857,7 +3880,7 @@ export interface ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -3882,7 +3905,7 @@ export interface ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -3925,7 +3948,7 @@ export interface ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -3947,7 +3970,7 @@ export interface ActivityOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4054,7 +4077,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -4076,7 +4099,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -4116,7 +4139,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -4138,7 +4161,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -4179,7 +4202,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4227,7 +4250,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4294,7 +4317,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4343,7 +4366,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4411,7 +4434,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -4431,7 +4454,7 @@ export interface ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -4536,7 +4559,7 @@ export interface ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4560,7 +4583,7 @@ export interface ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4603,7 +4626,7 @@ export interface ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} typeName The name of type. * @@ -4625,7 +4648,7 @@ export interface ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} typeName The name of type. * @@ -4675,7 +4698,7 @@ export interface Fields { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4699,7 +4722,7 @@ export interface Fields { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -4751,7 +4774,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -4762,18 +4785,18 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the content of runbook draft identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -4789,7 +4812,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4797,15 +4820,15 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -4813,11 +4836,11 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -4826,22 +4849,22 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - replaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + replaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -4855,7 +4878,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4863,15 +4886,15 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, callback: ServiceCallback): void; - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, callback: ServiceCallback): void; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -4879,7 +4902,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -4901,7 +4924,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -4942,7 +4965,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -4954,18 +4977,18 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - publishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + publishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Publish runbook draft. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -4982,7 +5005,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4990,15 +5013,15 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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. */ - publish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - publish(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - publish(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + publish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + publish(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + publish(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -5006,7 +5029,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5028,7 +5051,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5070,11 +5093,11 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -5083,22 +5106,22 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginReplaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginReplaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -5112,7 +5135,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5120,15 +5143,15 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, callback: ServiceCallback): void; - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, callback: ServiceCallback): void; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -5136,7 +5159,7 @@ export interface RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -5148,18 +5171,18 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Publish runbook draft. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -5176,7 +5199,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5184,15 +5207,15 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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. */ - beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -5209,7 +5232,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5220,18 +5243,18 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the content of runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5247,7 +5270,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5255,15 +5278,15 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -5271,7 +5294,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5293,7 +5316,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5334,7 +5357,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5420,7 +5443,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5525,7 +5548,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5567,7 +5590,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5628,7 +5651,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5650,7 +5673,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5690,7 +5713,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -5710,7 +5733,7 @@ export interface RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -5816,7 +5839,7 @@ export interface TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5841,7 +5864,7 @@ export interface TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5884,7 +5907,7 @@ export interface TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -5908,7 +5931,7 @@ export interface TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6017,7 +6040,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the create test job * operation. @@ -6049,7 +6072,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the create test job * operation. @@ -6100,7 +6123,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6122,7 +6145,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6163,7 +6186,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6185,7 +6208,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6225,7 +6248,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6247,7 +6270,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6287,7 +6310,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6309,7 +6332,7 @@ export interface TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -6358,14 +6381,14 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the create or update * schedule operation. * - * @param {string} parameters.name Gets or sets the name of the schedule. + * @param {string} parameters.name Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -6415,14 +6438,14 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the create or update * schedule operation. * - * @param {string} parameters.name Gets or sets the name of the schedule. + * @param {string} parameters.name Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -6491,14 +6514,14 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the update schedule * operation. * - * @param {string} [parameters.name] Gets or sets the name of the schedule. + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -6524,14 +6547,14 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the update schedule * operation. * - * @param {string} [parameters.name] Gets or sets the name of the schedule. + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -6576,7 +6599,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -6598,7 +6621,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -6639,7 +6662,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -6661,7 +6684,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -6701,7 +6724,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -6721,7 +6744,7 @@ export interface ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -6826,7 +6849,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -6861,7 +6884,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -6915,7 +6938,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -6947,7 +6970,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -6998,7 +7021,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -7020,7 +7043,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -7060,7 +7083,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -7082,7 +7105,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -7123,7 +7146,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7143,7 +7166,7 @@ export interface VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7248,7 +7271,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7268,7 +7291,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7306,7 +7329,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7328,7 +7351,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7368,7 +7391,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7390,7 +7413,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7431,7 +7454,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7475,7 +7498,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7538,7 +7561,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7576,7 +7599,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -7633,7 +7656,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7655,7 +7678,7 @@ export interface WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -7750,33 +7773,597 @@ export interface WebhookOperations { /** * @class - * SoftwareUpdateConfigurations + * WatcherOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface SoftwareUpdateConfigurations { +export interface WatcherOperations { /** - * Create a new software update configuration with the name given in the URI. + * Create the watcher identified by watcher name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} watcherName The watcher name. * - * @param {object} parameters Request body. + * @param {object} parameters The create or update parameters for watcher. * - * @param {object} parameters.updateConfiguration update specific properties - * for the Software update configuration + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. * - * @param {string} parameters.updateConfiguration.operatingSystem operating - * system of target machines. Possible values include: 'Windows', 'Linux' + * @param {string} [parameters.scriptName] Gets or sets the name of the script + * the watcher is attached to, i.e. the name of an existing runbook. * - * @param {object} [parameters.updateConfiguration.windows] Windows specific - * update configuration. + * @param {object} [parameters.scriptParameters] Gets or sets the parameters of + * the script. + * + * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid + * worker group the watcher will run on. + * + * @param {string} [parameters.description] Gets or sets the description. + * + * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {string} [parameters.location] The Azure Region where the resource + * lives + * + * @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, automationAccountName: string, watcherName: string, parameters: models.Watcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The create or update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.scriptName] Gets or sets the name of the script + * the watcher is attached to, i.e. the name of an existing runbook. + * + * @param {object} [parameters.scriptParameters] Gets or sets the parameters of + * the script. + * + * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid + * worker group the watcher will run on. + * + * @param {string} [parameters.description] Gets or sets the description. + * + * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {string} [parameters.location] The Azure Region where the resource + * lives + * + * @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 {Watcher} - 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. + * + * {Watcher} [result] - The deserialized result object if an error did not occur. + * See {@link Watcher} 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, automationAccountName: string, watcherName: string, parameters: models.Watcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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 {Watcher} - 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. + * + * {Watcher} [result] - The deserialized result object if an error did not occur. + * See {@link Watcher} 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, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, watcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Update the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.name] Gets or sets the name of the resource. + * + * @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. + */ + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.WatcherUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Update the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.name] Gets or sets the name of the resource. + * + * @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 {Watcher} - 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. + * + * {Watcher} [result] - The deserialized result object if an error did not occur. + * See {@link Watcher} 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(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.WatcherUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.WatcherUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.WatcherUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Delete the watcher by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Delete the watcher by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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. + */ + startWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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. + */ + start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + start(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback): void; + start(resourceGroupName: string, automationAccountName: string, watcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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. + */ + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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. + */ + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of watchers. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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. + */ + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of watchers. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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 {WatcherListResult} - 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. + * + * {WatcherListResult} [result] - The deserialized result object if an error did not occur. + * See {@link WatcherListResult} 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. + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of watchers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of watchers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {WatcherListResult} - 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. + * + * {WatcherListResult} [result] - The deserialized result object if an error did not occur. + * See {@link WatcherListResult} 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. + */ + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SoftwareUpdateConfigurations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SoftwareUpdateConfigurations { + + + /** + * Create a new software update configuration with the name given in the URI. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * + * @param {object} parameters Request body. + * + * @param {object} parameters.updateConfiguration update specific properties + * for the Software update configuration + * + * @param {string} parameters.updateConfiguration.operatingSystem operating + * system of target machines. Possible values include: 'Windows', 'Linux' + * + * @param {object} [parameters.updateConfiguration.windows] Windows specific + * update configuration. * * @param {string} * [parameters.updateConfiguration.windows.includedUpdateClassifications] @@ -7788,6 +8375,12 @@ export interface SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB * numbers excluded from the software update configuration. * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -7800,6 +8393,13 @@ export interface SoftwareUpdateConfigurations { * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages * excluded from the software update configuration. * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum * time allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 @@ -7918,6 +8518,12 @@ export interface SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB * numbers excluded from the software update configuration. * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -7930,6 +8536,13 @@ export interface SoftwareUpdateConfigurations { * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages * excluded from the software update configuration. * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum * time allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 @@ -9023,16 +9636,240 @@ export interface SourceControlOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of source controls. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {SourceControlListResult} - 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. + * + * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlListResult} 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. + */ + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SourceControlSyncJobOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SourceControlSyncJobOperations { + + + /** + * Creates the sync job for a source control. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. + * + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. + * + * @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. + */ + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates the sync job for a source control. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. + * + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. + * + * @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 {SourceControlSyncJob} - 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. + * + * {SourceControlSyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJob} 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. + */ + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve the source control sync job identified by job id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @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, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve the source control sync job identified by job id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @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 {SourceControlSyncJobById} - 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. + * + * {SourceControlSyncJobById} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobById} 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, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of source control sync jobs. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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. + */ + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source controls. + * Retrieve a list of source control sync jobs. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -9043,7 +9880,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9051,38 +9888,24 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlListResult} for more + * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobListResult} 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. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SourceControlSyncJobOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SourceControlSyncJobOperations { + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates the sync job for a source control. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. + * Retrieve a list of source control sync jobs. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9091,22 +9914,17 @@ export interface SourceControlSyncJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the sync job for a source control. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. + * Retrieve a list of source control sync jobs. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9120,7 +9938,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJob} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9128,20 +9946,30 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJob} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJob} for more information. + * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobListResult} 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. */ - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SourceControlSyncJobStreams + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SourceControlSyncJobStreams { /** - * Retrieve the source control sync job identified by job id. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -9153,19 +9981,21 @@ export interface SourceControlSyncJobOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listBySyncJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the source control sync job identified by job id. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -9177,6 +10007,8 @@ export interface SourceControlSyncJobOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -9187,7 +10019,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobById} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9195,21 +10027,21 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobById} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobById} for more - * information. + * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamsListBySyncJob} + * 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, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of source control sync jobs. + * Retrieve a sync job stream identified by stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -9217,23 +10049,25 @@ export interface SourceControlSyncJobOperations { * * @param {string} sourceControlName The source control name. * - * @param {object} [options] Optional Parameters. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} streamId The id of the sync job stream. + * + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source control sync jobs. + * Retrieve a sync job stream identified by stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -9241,9 +10075,11 @@ export interface SourceControlSyncJobOperations { * * @param {string} sourceControlName The source control name. * - * @param {object} [options] Optional Parameters. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} streamId The id of the sync job stream. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9255,7 +10091,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamById} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9263,21 +10099,21 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobListResult} for more + * {SourceControlSyncJobStreamById} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamById} 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. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of source control sync jobs. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -9289,14 +10125,14 @@ export interface SourceControlSyncJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listBySyncJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source control sync jobs. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -9313,7 +10149,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9321,17 +10157,17 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobListResult} for more - * information. + * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamsListBySyncJob} + * 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. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJobNext(nextPageLink: string, callback: ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -9362,11 +10198,11 @@ export interface JobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the job output identified by job name. @@ -9392,7 +10228,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9400,15 +10236,15 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -9430,11 +10266,11 @@ export interface JobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the runbook content of the job identified by job name. @@ -9460,7 +10296,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9468,15 +10304,15 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [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. */ - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -9696,7 +10532,7 @@ export interface JobOperations { * @param {object} parameters The parameters supplied to the create job * operation. * - * @param {object} parameters.runbook Gets or sets the runbook. + * @param {object} [parameters.runbook] Gets or sets the runbook. * * @param {string} [parameters.runbook.name] Gets or sets the name of the * runbook. @@ -9735,7 +10571,7 @@ export interface JobOperations { * @param {object} parameters The parameters supplied to the create job * operation. * - * @param {object} parameters.runbook Gets or sets the runbook. + * @param {object} [parameters.runbook] Gets or sets the runbook. * * @param {string} [parameters.runbook.name] Gets or sets the name of the * runbook. @@ -10280,14 +11116,6 @@ export interface AgentRegistrationInformation { * @param {string} parameters.keyName Gets or sets the agent registration key * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [parameters.name] Gets or sets the name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -10314,14 +11142,6 @@ export interface AgentRegistrationInformation { * @param {string} parameters.keyName Gets or sets the agent registration key * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [parameters.name] Gets or sets the name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -10504,12 +11324,6 @@ export interface DscNodeOperations { * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the * dsc node. * - * @param {object} [dscNodeUpdateParameters.nodeConfiguration] Gets or sets the - * configuration of the node. - * - * @param {string} [dscNodeUpdateParameters.nodeConfiguration.name] Gets or - * sets the name of the dsc nodeconfiguration. - * * @param {object} [dscNodeUpdateParameters.properties] * * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the @@ -10543,12 +11357,6 @@ export interface DscNodeOperations { * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the * dsc node. * - * @param {object} [dscNodeUpdateParameters.nodeConfiguration] Gets or sets the - * configuration of the node. - * - * @param {string} [dscNodeUpdateParameters.nodeConfiguration.name] Gets or - * sets the name of the dsc nodeconfiguration. - * * @param {object} [dscNodeUpdateParameters.properties] * * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the @@ -10597,6 +11405,12 @@ export interface DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10606,7 +11420,7 @@ export interface DscNodeOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of dsc nodes. @@ -10619,6 +11433,12 @@ export interface DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10644,9 +11464,9 @@ export interface DscNodeOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -11003,8 +11823,8 @@ export interface DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -11047,8 +11867,8 @@ export interface DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -11304,8 +12124,8 @@ export interface DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -11348,8 +12168,8 @@ export interface DscCompilationJobOperations { * @param {object} [parameters.parameters] Gets or sets the parameters of the * job. * - * @param {boolean} [parameters.newNodeConfigurationBuildVersionRequired] If a - * new build version of NodeConfiguration is required. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * * @param {string} [parameters.name] Gets or sets name of the resource. * @@ -11686,8 +12506,6 @@ export interface DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -11697,6 +12515,11 @@ export interface DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11708,7 +12531,7 @@ export interface DscNodeConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create the node configuration identified by node configuration name. @@ -11741,8 +12564,6 @@ export interface DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -11752,6 +12573,11 @@ export interface DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11779,9 +12605,9 @@ export interface DscNodeConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -11795,6 +12621,12 @@ export interface DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11804,7 +12636,7 @@ export interface DscNodeConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of dsc node configurations. @@ -11817,6 +12649,12 @@ export interface DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11843,9 +12681,9 @@ export interface DscNodeConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -11879,8 +12717,6 @@ export interface DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -11890,6 +12726,11 @@ export interface DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11901,7 +12742,7 @@ export interface DscNodeConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create the node configuration identified by node configuration name. @@ -11934,8 +12775,6 @@ export interface DscNodeConfigurationOperations { * @param {string} [parameters.source.version] Gets or sets the version of the * content. * - * @param {string} parameters.name Gets or sets the type of the parameter. - * * @param {object} parameters.configuration Gets or sets the configuration of * the node. * @@ -11945,6 +12784,11 @@ export interface DscNodeConfigurationOperations { * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build * version of NodeConfiguration is required. * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11972,9 +12816,9 @@ export interface DscNodeConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParametersProperties, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -12034,3 +12878,71 @@ export interface DscNodeConfigurationOperations { listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } + +/** + * @class + * NodeCountInformation + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface NodeCountInformation { + + + /** + * Retrieve counts for Dsc Nodes. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @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, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve counts for Dsc Nodes. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @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 {NodeCounts} - 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. + * + * {NodeCounts} [result] - The deserialized result object if an error did not occur. + * See {@link NodeCounts} 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, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} diff --git a/lib/services/automationManagement/lib/operations/index.js b/lib/services/automationManagement/lib/operations/index.js index 63aeffd32f..d0a423140c 100644 --- a/lib/services/automationManagement/lib/operations/index.js +++ b/lib/services/automationManagement/lib/operations/index.js @@ -38,11 +38,13 @@ exports.TestJobOperations = require('./testJobOperations'); exports.ScheduleOperations = require('./scheduleOperations'); exports.VariableOperations = require('./variableOperations'); exports.WebhookOperations = require('./webhookOperations'); +exports.WatcherOperations = require('./watcherOperations'); exports.SoftwareUpdateConfigurations = require('./softwareUpdateConfigurations'); exports.SoftwareUpdateConfigurationRuns = require('./softwareUpdateConfigurationRuns'); exports.SoftwareUpdateConfigurationMachineRuns = require('./softwareUpdateConfigurationMachineRuns'); exports.SourceControlOperations = require('./sourceControlOperations'); exports.SourceControlSyncJobOperations = require('./sourceControlSyncJobOperations'); +exports.SourceControlSyncJobStreams = require('./sourceControlSyncJobStreams'); exports.JobOperations = require('./jobOperations'); exports.JobStreamOperations = require('./jobStreamOperations'); exports.AgentRegistrationInformation = require('./agentRegistrationInformation'); @@ -51,3 +53,4 @@ exports.NodeReports = require('./nodeReports'); exports.DscCompilationJobOperations = require('./dscCompilationJobOperations'); exports.DscCompilationJobStream = require('./dscCompilationJobStream'); exports.DscNodeConfigurationOperations = require('./dscNodeConfigurationOperations'); +exports.NodeCountInformation = require('./nodeCountInformation'); diff --git a/lib/services/automationManagement/lib/operations/jobOperations.js b/lib/services/automationManagement/lib/operations/jobOperations.js index df4b700f0b..0058c8681b 100644 --- a/lib/services/automationManagement/lib/operations/jobOperations.js +++ b/lib/services/automationManagement/lib/operations/jobOperations.js @@ -37,7 +37,7 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -131,20 +131,22 @@ function _getOutput(resourceGroupName, automationAccountName, jobName, options, } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); 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 (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; @@ -161,33 +163,9 @@ function _getOutput(resourceGroupName, automationAccountName, jobName, options, } 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -215,7 +193,7 @@ function _getOutput(resourceGroupName, automationAccountName, jobName, options, * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -309,27 +287,30 @@ function _getRunbookContent(resourceGroupName, automationAccountName, jobName, o } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); 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 (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -339,33 +320,9 @@ function _getRunbookContent(resourceGroupName, automationAccountName, jobName, o } 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -868,7 +825,7 @@ function _get(resourceGroupName, automationAccountName, jobName, options, callba * @param {object} parameters The parameters supplied to the create job * operation. * - * @param {object} parameters.runbook Gets or sets the runbook. + * @param {object} [parameters.runbook] Gets or sets the runbook. * * @param {string} [parameters.runbook.name] Gets or sets the name of the * runbook. @@ -1570,7 +1527,7 @@ class JobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1612,7 +1569,7 @@ class JobOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1620,7 +1577,7 @@ class JobOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1665,7 +1622,7 @@ class JobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1707,7 +1664,7 @@ class JobOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1715,7 +1672,7 @@ class JobOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -2039,7 +1996,7 @@ class JobOperations { * @param {object} parameters The parameters supplied to the create job * operation. * - * @param {object} parameters.runbook Gets or sets the runbook. + * @param {object} [parameters.runbook] Gets or sets the runbook. * * @param {string} [parameters.runbook.name] Gets or sets the name of the * runbook. @@ -2090,7 +2047,7 @@ class JobOperations { * @param {object} parameters The parameters supplied to the create job * operation. * - * @param {object} parameters.runbook Gets or sets the runbook. + * @param {object} [parameters.runbook] Gets or sets the runbook. * * @param {string} [parameters.runbook.name] Gets or sets the name of the * runbook. diff --git a/lib/services/automationManagement/lib/operations/jobScheduleOperations.js b/lib/services/automationManagement/lib/operations/jobScheduleOperations.js index 0cda753c0a..1dc6f0ee2a 100644 --- a/lib/services/automationManagement/lib/operations/jobScheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/jobScheduleOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, jobScheduleId, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, jobScheduleId, options, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -339,7 +339,7 @@ function _get(resourceGroupName, automationAccountName, jobScheduleId, options, * @param {object} parameters.schedule Gets or sets the schedule. * * @param {string} [parameters.schedule.name] Gets or sets the name of the - * schedule. + * Schedule. * * @param {object} parameters.runbook Gets or sets the runbook. * @@ -529,10 +529,12 @@ function _create(resourceGroupName, automationAccountName, jobScheduleId, parame * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -559,6 +561,7 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (!callback) { throw new Error('callback cannot be null.'); } + let filter = (options && options.filter !== undefined) ? options.filter : undefined; let apiVersion = '2015-10-31'; // Validate try { @@ -582,6 +585,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti 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 (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter 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.'); } @@ -599,6 +605,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -830,7 +839,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -864,7 +873,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -919,7 +928,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -953,7 +962,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -1009,7 +1018,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -1019,7 +1028,7 @@ class JobScheduleOperations { * @param {object} parameters.schedule Gets or sets the schedule. * * @param {string} [parameters.schedule.name] Gets or sets the name of the - * schedule. + * Schedule. * * @param {object} parameters.runbook Gets or sets the runbook. * @@ -1062,7 +1071,7 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {uuid} jobScheduleId The job schedule name. * @@ -1072,7 +1081,7 @@ class JobScheduleOperations { * @param {object} parameters.schedule Gets or sets the schedule. * * @param {string} [parameters.schedule.name] Gets or sets the name of the - * schedule. + * Schedule. * * @param {object} parameters.runbook Gets or sets the runbook. * @@ -1137,10 +1146,12 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1169,10 +1180,12 @@ class JobScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/keys.js b/lib/services/automationManagement/lib/operations/keys.js index 2df8a00bf8..736f50817a 100644 --- a/lib/services/automationManagement/lib/operations/keys.js +++ b/lib/services/automationManagement/lib/operations/keys.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -188,7 +188,7 @@ class Keys { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -220,7 +220,7 @@ class Keys { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/linkedWorkspaceOperations.js b/lib/services/automationManagement/lib/operations/linkedWorkspaceOperations.js index d000df7367..2035ed2505 100644 --- a/lib/services/automationManagement/lib/operations/linkedWorkspaceOperations.js +++ b/lib/services/automationManagement/lib/operations/linkedWorkspaceOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -188,7 +188,7 @@ class LinkedWorkspaceOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -220,7 +220,7 @@ class LinkedWorkspaceOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/moduleOperations.js b/lib/services/automationManagement/lib/operations/moduleOperations.js index 132b237c66..1537021a1d 100644 --- a/lib/services/automationManagement/lib/operations/moduleOperations.js +++ b/lib/services/automationManagement/lib/operations/moduleOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -165,7 +165,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, moduleName, opt * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -329,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, moduleName, options, cal * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -553,7 +553,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, moduleName, p * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -761,7 +761,7 @@ function _update(resourceGroupName, automationAccountName, moduleName, parameter * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1063,7 +1063,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -1097,7 +1097,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -1152,7 +1152,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -1186,7 +1186,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The module name. * @@ -1242,7 +1242,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -1302,7 +1302,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -1384,7 +1384,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -1445,7 +1445,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -1528,7 +1528,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1560,7 +1560,7 @@ class ModuleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/nodeCountInformation.js b/lib/services/automationManagement/lib/operations/nodeCountInformation.js new file mode 100644 index 0000000000..d488b35e3d --- /dev/null +++ b/lib/services/automationManagement/lib/operations/nodeCountInformation.js @@ -0,0 +1,278 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Retrieve counts for Dsc Nodes. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @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 NodeCounts} 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 _get(resourceGroupName, automationAccountName, 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 apiVersion = '2018-01-15'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (this.client.countType1 === null || this.client.countType1 === undefined || typeof this.client.countType1.valueOf() !== 'string') { + throw new Error('this.client.countType1 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}/nodecounts/{countType}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{countType}', encodeURIComponent(this.client.countType1)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['NodeCounts']().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); + }); +} + +/** Class representing a NodeCountInformation. */ +class NodeCountInformation { + /** + * Create a NodeCountInformation. + * @param {AutomationClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._get = _get; + } + + /** + * Retrieve counts for Dsc Nodes. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, automationAccountName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve counts for Dsc Nodes. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @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 {NodeCounts} - 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 NodeCounts} 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. + */ + get(resourceGroupName, automationAccountName, 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._get(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, automationAccountName, options, optionalCallback); + } + } + +} + +module.exports = NodeCountInformation; diff --git a/lib/services/automationManagement/lib/operations/objectDataTypes.js b/lib/services/automationManagement/lib/operations/objectDataTypes.js index 602b0aff15..935560eab7 100644 --- a/lib/services/automationManagement/lib/operations/objectDataTypes.js +++ b/lib/services/automationManagement/lib/operations/objectDataTypes.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -189,7 +189,7 @@ function _listFieldsByModuleAndType(resourceGroupName, automationAccountName, mo * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} typeName The name of type. * @@ -365,7 +365,7 @@ class ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -401,7 +401,7 @@ class ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} moduleName The name of module. * @@ -459,7 +459,7 @@ class ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} typeName The name of type. * @@ -493,7 +493,7 @@ class ObjectDataTypes { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} typeName The name of type. * diff --git a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js index 49787465b5..f4d005719b 100644 --- a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -34,7 +34,7 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -121,20 +121,22 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); 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 (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; @@ -151,33 +153,9 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -188,11 +166,11 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -205,7 +183,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -252,7 +230,7 @@ function _replaceContent(resourceGroupName, automationAccountName, runbookName, required: false, serializedName: 'parsedResponse', type: { - name: 'String' + name: 'Stream' } }; result = client.deserialize(resultMapper, parsedResponse, 'result'); @@ -274,7 +252,7 @@ function _replaceContent(resourceGroupName, automationAccountName, runbookName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -439,7 +417,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -455,7 +433,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -493,26 +471,6 @@ function _publish(resourceGroupName, automationAccountName, runbookName, options if (responseBody === '') responseBody = null; // Deserialize Response - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); }); @@ -524,7 +482,7 @@ function _publish(resourceGroupName, automationAccountName, runbookName, options * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -689,11 +647,11 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -706,7 +664,7 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -751,8 +709,8 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN if (runbookName === null || runbookName === undefined || typeof runbookName.valueOf() !== 'string') { throw new Error('runbookName cannot be null or undefined and it must be of type string.'); } - if (runbookContent === null || runbookContent === undefined || typeof runbookContent.valueOf() !== 'string') { - throw new Error('runbookContent cannot be null or undefined and it must be of type string.'); + if (runbookContent === null || runbookContent === undefined) { + throw new Error('runbookContent cannot be null or undefined and it must be of type object.'); } 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.'); @@ -795,41 +753,25 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN } } // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (runbookContent !== null && runbookContent !== undefined) { - let requestModelMapper = { - required: true, - serializedName: 'runbookContent', - type: { - name: 'String' - } - }; - requestModel = client.serialize(requestModelMapper, runbookContent, 'runbookContent'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(runbookContent, null, 2)}.`); - return callback(serializationError); - } + let requestContent = runbookContent; httpRequest.body = requestContent; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200 && statusCode !== 202) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); 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 (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; @@ -847,33 +789,9 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN } 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -883,7 +801,7 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -899,7 +817,7 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -991,7 +909,7 @@ function _beginPublish(resourceGroupName, automationAccountName, runbookName, op return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 202) { + if (statusCode !== 202) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1020,29 +938,6 @@ function _beginPublish(resourceGroupName, automationAccountName, runbookName, op // 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); }); @@ -1070,7 +965,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1081,7 +976,7 @@ class RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1104,7 +999,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1120,7 +1015,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1128,7 +1023,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1159,11 +1054,11 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1172,7 +1067,7 @@ class RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1195,11 +1090,11 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1213,7 +1108,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1221,7 +1116,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1252,7 +1147,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1286,7 +1181,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1342,7 +1237,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -1354,7 +1249,7 @@ class RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1377,7 +1272,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -1394,7 +1289,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1402,7 +1297,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1433,7 +1328,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1467,7 +1362,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1524,11 +1419,11 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1537,7 +1432,7 @@ class RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1560,11 +1455,11 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * - * @param {string} runbookContent The runbook draft content. + * @param {object} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1578,7 +1473,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1586,7 +1481,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1617,7 +1512,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -1629,7 +1524,7 @@ class RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1652,7 +1547,7 @@ class RunbookDraftOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the publish runbook * operation. @@ -1669,7 +1564,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1677,7 +1572,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * diff --git a/lib/services/automationManagement/lib/operations/runbookOperations.js b/lib/services/automationManagement/lib/operations/runbookOperations.js index 5880429498..7f15c99528 100644 --- a/lib/services/automationManagement/lib/operations/runbookOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -34,7 +34,7 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -121,20 +121,22 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); 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 (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; @@ -151,33 +153,9 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } 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 = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - 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); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -187,7 +165,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -351,7 +329,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -613,7 +591,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, runbookName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -814,7 +792,7 @@ function _update(resourceGroupName, automationAccountName, runbookName, paramete * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -960,7 +938,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, runbookName, op * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1263,7 +1241,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1274,7 +1252,7 @@ class RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1297,7 +1275,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1313,7 +1291,7 @@ class RunbookOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1321,7 +1299,7 @@ class RunbookOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1352,7 +1330,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1386,7 +1364,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1442,7 +1420,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1540,7 +1518,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1660,7 +1638,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1714,7 +1692,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1790,7 +1768,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1824,7 +1802,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1879,7 +1857,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1911,7 +1889,7 @@ class RunbookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/scheduleOperations.js b/lib/services/automationManagement/lib/operations/scheduleOperations.js index 2657038aae..80d9f81168 100644 --- a/lib/services/automationManagement/lib/operations/scheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/scheduleOperations.js @@ -19,14 +19,14 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the create or update * schedule operation. * - * @param {string} parameters.name Gets or sets the name of the schedule. + * @param {string} parameters.name Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -179,7 +179,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, scheduleName, return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 201 && statusCode !== 409) { + if (statusCode !== 200 && statusCode !== 201 && statusCode !== 409) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -209,7 +209,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, scheduleName, let result = null; if (responseBody === '') responseBody = null; // Deserialize Response - if (statusCode === 201) { + if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -225,6 +225,23 @@ function _createOrUpdate(resourceGroupName, automationAccountName, scheduleName, return callback(deserializationError); } } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Schedule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } return callback(null, result, httpRequest, response); }); @@ -235,14 +252,14 @@ function _createOrUpdate(resourceGroupName, automationAccountName, scheduleName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the update schedule * operation. * - * @param {string} [parameters.name] Gets or sets the name of the schedule. + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -427,7 +444,7 @@ function _update(resourceGroupName, automationAccountName, scheduleName, paramet * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -591,7 +608,7 @@ function _get(resourceGroupName, automationAccountName, scheduleName, options, c * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -698,7 +715,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, scheduleName, o return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -737,7 +754,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, scheduleName, o * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1039,14 +1056,14 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the create or update * schedule operation. * - * @param {string} parameters.name Gets or sets the name of the schedule. + * @param {string} parameters.name Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -1108,14 +1125,14 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the create or update * schedule operation. * - * @param {string} parameters.name Gets or sets the name of the schedule. + * @param {string} parameters.name Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -1199,14 +1216,14 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the update schedule * operation. * - * @param {string} [parameters.name] Gets or sets the name of the schedule. + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -1244,14 +1261,14 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * * @param {object} parameters The parameters supplied to the update schedule * operation. * - * @param {string} [parameters.name] Gets or sets the name of the schedule. + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * * @param {string} [parameters.description] Gets or sets the description of the * schedule. @@ -1311,7 +1328,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -1345,7 +1362,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -1401,7 +1418,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -1435,7 +1452,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} scheduleName The schedule name. * @@ -1490,7 +1507,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1522,7 +1539,7 @@ class ScheduleOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js index dd36c0ac40..9861f663ab 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js @@ -139,7 +139,7 @@ function _getById(resourceGroupName, automationAccountName, softwareUpdateConfig return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -149,12 +149,13 @@ function _getById(resourceGroupName, automationAccountName, softwareUpdateConfig try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -339,7 +340,7 @@ function _list(resourceGroupName, automationAccountName, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -349,12 +350,13 @@ function _list(resourceGroupName, automationAccountName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js index 825c7c999e..ae6f3084d5 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js @@ -139,7 +139,7 @@ function _getById(resourceGroupName, automationAccountName, softwareUpdateConfig return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -149,12 +149,13 @@ function _getById(resourceGroupName, automationAccountName, softwareUpdateConfig try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -338,7 +339,7 @@ function _list(resourceGroupName, automationAccountName, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -348,12 +349,13 @@ function _list(resourceGroupName, automationAccountName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index a23fd6b9da..f22d9985d7 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -45,6 +45,12 @@ const WebResource = msRest.WebResource; * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB * numbers excluded from the software update configuration. * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -57,6 +63,13 @@ const WebResource = msRest.WebResource; * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages * excluded from the software update configuration. * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum * time allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 @@ -260,7 +273,7 @@ function _create(resourceGroupName, automationAccountName, softwareUpdateConfigu return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 201 && statusCode !== 400 && statusCode !== 404 && statusCode !== 409) { + if (statusCode !== 200 && statusCode !== 201) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -270,12 +283,13 @@ function _create(resourceGroupName, automationAccountName, softwareUpdateConfigu try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -452,7 +466,7 @@ function _getByName(resourceGroupName, automationAccountName, softwareUpdateConf return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -462,12 +476,13 @@ function _getByName(resourceGroupName, automationAccountName, softwareUpdateConf try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -625,7 +640,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, softwareUpdateC return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 204 && statusCode !== 404) { + if (statusCode !== 200 && statusCode !== 204) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -635,12 +650,13 @@ function _deleteMethod(resourceGroupName, automationAccountName, softwareUpdateC try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -785,7 +801,7 @@ function _list(resourceGroupName, automationAccountName, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 404) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -795,12 +811,13 @@ function _list(resourceGroupName, automationAccountName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + 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['CloudError']().mapper(); + let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -880,6 +897,12 @@ class SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB * numbers excluded from the software update configuration. * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -892,6 +915,13 @@ class SoftwareUpdateConfigurations { * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages * excluded from the software update configuration. * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum * time allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 @@ -1022,6 +1052,12 @@ class SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB * numbers excluded from the software update configuration. * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -1034,6 +1070,13 @@ class SoftwareUpdateConfigurations { * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages * excluded from the software update configuration. * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum * time allowed for the software update configuration run. Duration needs to be * specified using the format PT[n]H[n]M[n]S as per ISO8601 diff --git a/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js b/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js index a3c6ac5ef3..991d33318c 100644 --- a/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js +++ b/lib/services/automationManagement/lib/operations/sourceControlSyncJobOperations.js @@ -25,6 +25,12 @@ const WebResource = msRest.WebResource; * * @param {uuid} sourceControlSyncJobId The source control sync job id. * + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. + * + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -43,7 +49,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, callback) { +function _create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -82,6 +88,9 @@ function _create(resourceGroupName, automationAccountName, sourceControlName, so if (sourceControlSyncJobId === null || sourceControlSyncJobId === undefined || typeof sourceControlSyncJobId.valueOf() !== 'string' || !msRest.isValidUuid(sourceControlSyncJobId)) { throw new Error('sourceControlSyncJobId cannot be null or undefined and it must be of type string and must be a valid uuid.'); } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } 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.'); } @@ -126,7 +135,21 @@ function _create(resourceGroupName, automationAccountName, sourceControlName, so } } } - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['SourceControlSyncJobCreateParameters']().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) { @@ -683,6 +706,12 @@ class SourceControlSyncJobOperations { * * @param {uuid} sourceControlSyncJobId The source control sync job id. * + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. + * + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -694,11 +723,11 @@ class SourceControlSyncJobOperations { * * @reject {Error} - The error object. */ - createWithHttpOperationResponse(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options) { + createWithHttpOperationResponse(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, (err, result, request, response) => { + self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -719,6 +748,12 @@ class SourceControlSyncJobOperations { * * @param {uuid} sourceControlSyncJobId The source control sync job id. * + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. + * + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -746,7 +781,7 @@ class SourceControlSyncJobOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, optionalCallback) { + create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -755,14 +790,14 @@ class SourceControlSyncJobOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, (err, result, request, response) => { + self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, optionalCallback); + return self._create(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, parameters, options, optionalCallback); } } diff --git a/lib/services/automationManagement/lib/operations/sourceControlSyncJobStreams.js b/lib/services/automationManagement/lib/operations/sourceControlSyncJobStreams.js new file mode 100644 index 0000000000..b4ca7b0de9 --- /dev/null +++ b/lib/services/automationManagement/lib/operations/sourceControlSyncJobStreams.js @@ -0,0 +1,801 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Retrieve a list of sync job streams identified by sync job id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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 SourceControlSyncJobStreamsListBySyncJob} + * 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 _listBySyncJob(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, 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 filter = (options && options.filter !== undefined) ? options.filter : undefined; + let apiVersion = '2017-05-15-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (sourceControlName === null || sourceControlName === undefined || typeof sourceControlName.valueOf() !== 'string') { + throw new Error('sourceControlName cannot be null or undefined and it must be of type string.'); + } + if (sourceControlSyncJobId === null || sourceControlSyncJobId === undefined || typeof sourceControlSyncJobId.valueOf() !== 'string' || !msRest.isValidUuid(sourceControlSyncJobId)) { + throw new Error('sourceControlSyncJobId cannot be null or undefined and it must be of type string and must be a valid uuid.'); + } + if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter 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}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{sourceControlName}', encodeURIComponent(sourceControlName)); + requestUrl = requestUrl.replace('{sourceControlSyncJobId}', encodeURIComponent(sourceControlSyncJobId.toString())); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['SourceControlSyncJobStreamsListBySyncJob']().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 a sync job stream identified by stream id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. + * + * @param {object} [options] Optional Parameters. + * + * @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 SourceControlSyncJobStreamById} 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 _get(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, 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 apiVersion = '2017-05-15-preview'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (sourceControlName === null || sourceControlName === undefined || typeof sourceControlName.valueOf() !== 'string') { + throw new Error('sourceControlName cannot be null or undefined and it must be of type string.'); + } + if (sourceControlSyncJobId === null || sourceControlSyncJobId === undefined || typeof sourceControlSyncJobId.valueOf() !== 'string' || !msRest.isValidUuid(sourceControlSyncJobId)) { + throw new Error('sourceControlSyncJobId cannot be null or undefined and it must be of type string and must be a valid uuid.'); + } + if (streamId === null || streamId === undefined || typeof streamId.valueOf() !== 'string') { + throw new Error('streamId 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}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams/{streamId}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{sourceControlName}', encodeURIComponent(sourceControlName)); + requestUrl = requestUrl.replace('{sourceControlSyncJobId}', encodeURIComponent(sourceControlSyncJobId.toString())); + requestUrl = requestUrl.replace('{streamId}', encodeURIComponent(streamId)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['SourceControlSyncJobStreamById']().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 a list of sync job streams identified by sync job id. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @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 SourceControlSyncJobStreamsListBySyncJob} + * 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 _listBySyncJobNext(nextPageLink, 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.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['SourceControlSyncJobStreamsListBySyncJob']().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); + }); +} + +/** Class representing a SourceControlSyncJobStreams. */ +class SourceControlSyncJobStreams { + /** + * Create a SourceControlSyncJobStreams. + * @param {AutomationClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listBySyncJob = _listBySyncJob; + this._get = _get; + this._listBySyncJobNext = _listBySyncJobNext; + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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. + */ + listBySyncJobWithHttpOperationResponse(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listBySyncJob(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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 {SourceControlSyncJobStreamsListBySyncJob} - 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 SourceControlSyncJobStreamsListBySyncJob} + * 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. + */ + listBySyncJob(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, 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._listBySyncJob(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listBySyncJob(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, options, optionalCallback); + } + } + + /** + * Retrieve a sync job stream identified by stream id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a sync job stream identified by stream id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. + * + * @param {object} [options] Optional Parameters. + * + * @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 {SourceControlSyncJobStreamById} - 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 SourceControlSyncJobStreamById} 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. + */ + get(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, 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._get(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, streamId, options, optionalCallback); + } + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listBySyncJobNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listBySyncJobNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @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 {SourceControlSyncJobStreamsListBySyncJob} - 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 SourceControlSyncJobStreamsListBySyncJob} + * 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. + */ + listBySyncJobNext(nextPageLink, 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._listBySyncJobNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listBySyncJobNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = SourceControlSyncJobStreams; diff --git a/lib/services/automationManagement/lib/operations/statisticsOperations.js b/lib/services/automationManagement/lib/operations/statisticsOperations.js index 2d55cd9c03..1a57da8c09 100644 --- a/lib/services/automationManagement/lib/operations/statisticsOperations.js +++ b/lib/services/automationManagement/lib/operations/statisticsOperations.js @@ -17,9 +17,9 @@ const WebResource = msRest.WebResource; /** * Retrieve the statistics for the account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -59,6 +59,14 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -187,9 +195,9 @@ class StatisticsOperations { /** * Retrieve the statistics for the account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -221,9 +229,9 @@ class StatisticsOperations { /** * Retrieve the statistics for the account. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/testJobOperations.js b/lib/services/automationManagement/lib/operations/testJobOperations.js index ec509a1344..7fa11c73e5 100644 --- a/lib/services/automationManagement/lib/operations/testJobOperations.js +++ b/lib/services/automationManagement/lib/operations/testJobOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the create test job * operation. @@ -210,7 +210,7 @@ function _create(resourceGroupName, automationAccountName, runbookName, paramete * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -374,7 +374,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -520,7 +520,7 @@ function _resume(resourceGroupName, automationAccountName, runbookName, options, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -666,7 +666,7 @@ function _stop(resourceGroupName, automationAccountName, runbookName, options, c * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -827,7 +827,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the create test job * operation. @@ -871,7 +871,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The parameters supplied to the create test job * operation. @@ -937,7 +937,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -971,7 +971,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1027,7 +1027,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1061,7 +1061,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1116,7 +1116,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1150,7 +1150,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1205,7 +1205,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -1239,7 +1239,7 @@ class TestJobOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * diff --git a/lib/services/automationManagement/lib/operations/testJobStreams.js b/lib/services/automationManagement/lib/operations/testJobStreams.js index 944809e85b..9feaa152d1 100644 --- a/lib/services/automationManagement/lib/operations/testJobStreams.js +++ b/lib/services/automationManagement/lib/operations/testJobStreams.js @@ -20,7 +20,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -190,7 +190,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, jobStreamId * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -505,7 +505,7 @@ class TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -542,7 +542,7 @@ class TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -600,7 +600,7 @@ class TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * @@ -636,7 +636,7 @@ class TestJobStreams { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} runbookName The runbook name. * diff --git a/lib/services/automationManagement/lib/operations/usages.js b/lib/services/automationManagement/lib/operations/usages.js index b68cfaf78b..3ca7d0955c 100644 --- a/lib/services/automationManagement/lib/operations/usages.js +++ b/lib/services/automationManagement/lib/operations/usages.js @@ -17,9 +17,9 @@ const WebResource = msRest.WebResource; /** * Retrieve the usage for the account id. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -56,6 +56,14 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } if (resourceGroupName.match(/^[-\w\._]+$/) === null) { throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); @@ -178,9 +186,9 @@ class Usages { /** * Retrieve the usage for the account id. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -210,9 +218,9 @@ class Usages { /** * Retrieve the usage for the account id. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/variableOperations.js b/lib/services/automationManagement/lib/operations/variableOperations.js index 02e2b78ede..5f7e21d10f 100644 --- a/lib/services/automationManagement/lib/operations/variableOperations.js +++ b/lib/services/automationManagement/lib/operations/variableOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -230,7 +230,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, variableName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -421,7 +421,7 @@ function _update(resourceGroupName, automationAccountName, variableName, paramet * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -567,7 +567,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, variableName, o * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -731,7 +731,7 @@ function _get(resourceGroupName, automationAccountName, variableName, options, c * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1033,7 +1033,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -1080,7 +1080,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -1149,7 +1149,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -1193,7 +1193,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The variable name. * @@ -1259,7 +1259,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -1293,7 +1293,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -1348,7 +1348,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -1382,7 +1382,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} variableName The name of variable. * @@ -1438,7 +1438,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1470,7 +1470,7 @@ class VariableOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/watcherOperations.js b/lib/services/automationManagement/lib/operations/watcherOperations.js new file mode 100644 index 0000000000..bf2c4b4d8b --- /dev/null +++ b/lib/services/automationManagement/lib/operations/watcherOperations.js @@ -0,0 +1,2114 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Create the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The create or update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.scriptName] Gets or sets the name of the script + * the watcher is attached to, i.e. the name of an existing runbook. + * + * @param {object} [parameters.scriptParameters] Gets or sets the parameters of + * the script. + * + * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid + * worker group the watcher will run on. + * + * @param {string} [parameters.description] Gets or sets the description. + * + * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {string} [parameters.location] The Azure Region where the resource + * lives + * + * @param {object} [options] Optional Parameters. + * + * @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 Watcher} 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 _createOrUpdate(resourceGroupName, automationAccountName, watcherName, parameters, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + 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}/watchers/{watcherName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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 = 'PUT'; + 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['Watcher']().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 && statusCode !== 201) { + 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['Watcher']().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); + } + } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Watcher']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Retrieve the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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 Watcher} 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 _get(resourceGroupName, automationAccountName, watcherName, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName 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}/watchers/{watcherName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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 = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['Watcher']().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); + }); +} + +/** + * Update the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.name] Gets or sets the name of the resource. + * + * @param {object} [options] Optional Parameters. + * + * @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 Watcher} 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(resourceGroupName, automationAccountName, watcherName, parameters, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + 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}/watchers/{watcherName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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['WatcherUpdateParameters']().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['Watcher']().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); + }); +} + +/** + * Delete the watcher by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _deleteMethod(resourceGroupName, automationAccountName, watcherName, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName 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}/watchers/{watcherName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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 = 'DELETE'; + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _start(resourceGroupName, automationAccountName, watcherName, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName 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}/watchers/{watcherName}/start'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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 = 'POST'; + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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 _stop(resourceGroupName, automationAccountName, watcherName, 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 apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (watcherName === null || watcherName === undefined || typeof watcherName.valueOf() !== 'string') { + throw new Error('watcherName 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}/watchers/{watcherName}/stop'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{watcherName}', encodeURIComponent(watcherName)); + 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 = 'POST'; + 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]; + } + } + } + httpRequest.body = null; + // 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; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Retrieve a list of watchers. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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 WatcherListResult} 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 _listByAutomationAccount(resourceGroupName, automationAccountName, 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 filter = (options && options.filter !== undefined) ? options.filter : undefined; + let apiVersion = '2015-10-31'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"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 (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter 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}/watchers'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['WatcherListResult']().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 a list of watchers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @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 WatcherListResult} 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 _listByAutomationAccountNext(nextPageLink, 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.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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 requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + 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]; + } + } + } + httpRequest.body = null; + // 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['WatcherListResult']().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); + }); +} + +/** Class representing a WatcherOperations. */ +class WatcherOperations { + /** + * Create a WatcherOperations. + * @param {AutomationClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._createOrUpdate = _createOrUpdate; + this._get = _get; + this._update = _update; + this._deleteMethod = _deleteMethod; + this._start = _start; + this._stop = _stop; + this._listByAutomationAccount = _listByAutomationAccount; + this._listByAutomationAccountNext = _listByAutomationAccountNext; + } + + /** + * Create the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The create or update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.scriptName] Gets or sets the name of the script + * the watcher is attached to, i.e. the name of an existing runbook. + * + * @param {object} [parameters.scriptParameters] Gets or sets the parameters of + * the script. + * + * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid + * worker group the watcher will run on. + * + * @param {string} [parameters.description] Gets or sets the description. + * + * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {string} [parameters.location] The Azure Region where the resource + * lives + * + * @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} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, automationAccountName, watcherName, parameters, 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 watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The create or update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.scriptName] Gets or sets the name of the script + * the watcher is attached to, i.e. the name of an existing runbook. + * + * @param {object} [parameters.scriptParameters] Gets or sets the parameters of + * the script. + * + * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid + * worker group the watcher will run on. + * + * @param {string} [parameters.description] Gets or sets the description. + * + * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {string} [parameters.location] The Azure Region where the resource + * lives + * + * @param {object} [options] Optional Parameters. + * + * @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 {Watcher} - 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 Watcher} 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. + */ + createOrUpdate(resourceGroupName, automationAccountName, watcherName, parameters, 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._createOrUpdate(resourceGroupName, automationAccountName, watcherName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, automationAccountName, watcherName, parameters, options, optionalCallback); + } + } + + /** + * Retrieve the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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 {Watcher} - 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 Watcher} 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. + */ + get(resourceGroupName, automationAccountName, watcherName, 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._get(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, automationAccountName, watcherName, options, optionalCallback); + } + } + + /** + * Update the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.name] Gets or sets the name of the resource. + * + * @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} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, automationAccountName, watcherName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Update the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} parameters The update parameters for watcher. + * + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. + * + * @param {string} [parameters.name] Gets or sets the name of the resource. + * + * @param {object} [options] Optional Parameters. + * + * @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 {Watcher} - 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 Watcher} 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(resourceGroupName, automationAccountName, watcherName, parameters, 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(resourceGroupName, automationAccountName, watcherName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, automationAccountName, watcherName, parameters, options, optionalCallback); + } + } + + /** + * Delete the watcher by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Delete the watcher by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, automationAccountName, watcherName, 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._deleteMethod(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, automationAccountName, watcherName, options, optionalCallback); + } + } + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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} - The error object. + */ + startWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._start(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + start(resourceGroupName, automationAccountName, watcherName, 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._start(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._start(resourceGroupName, automationAccountName, watcherName, options, optionalCallback); + } + } + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher 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} - The error object. + */ + stopWithHttpOperationResponse(resourceGroupName, automationAccountName, watcherName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._stop(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Resume the watcher identified by watcher name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} watcherName The watcher name. + * + * @param {object} [options] Optional Parameters. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + stop(resourceGroupName, automationAccountName, watcherName, 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._stop(resourceGroupName, automationAccountName, watcherName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._stop(resourceGroupName, automationAccountName, watcherName, options, optionalCallback); + } + } + + /** + * Retrieve a list of watchers. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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. + */ + listByAutomationAccountWithHttpOperationResponse(resourceGroupName, automationAccountName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByAutomationAccount(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a list of watchers. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @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 {WatcherListResult} - 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 WatcherListResult} 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. + */ + listByAutomationAccount(resourceGroupName, automationAccountName, 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._listByAutomationAccount(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByAutomationAccount(resourceGroupName, automationAccountName, options, optionalCallback); + } + } + + /** + * Retrieve a list of watchers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByAutomationAccountNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a list of watchers. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @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 {WatcherListResult} - 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 WatcherListResult} 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. + */ + listByAutomationAccountNext(nextPageLink, 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._listByAutomationAccountNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByAutomationAccountNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = WatcherOperations; diff --git a/lib/services/automationManagement/lib/operations/webhookOperations.js b/lib/services/automationManagement/lib/operations/webhookOperations.js index d80da18620..23f19e7f6c 100644 --- a/lib/services/automationManagement/lib/operations/webhookOperations.js +++ b/lib/services/automationManagement/lib/operations/webhookOperations.js @@ -19,7 +19,7 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -182,7 +182,7 @@ function _generateUri(resourceGroupName, automationAccountName, options, callbac * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -328,7 +328,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, webhookName, op * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -492,7 +492,7 @@ function _get(resourceGroupName, automationAccountName, webhookName, options, ca * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -712,7 +712,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, webhookName, * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -909,7 +909,7 @@ function _update(resourceGroupName, automationAccountName, webhookName, paramete * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1221,7 +1221,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1253,7 +1253,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1306,7 +1306,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1340,7 +1340,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1395,7 +1395,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1429,7 +1429,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1485,7 +1485,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1541,7 +1541,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1619,7 +1619,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1669,7 +1669,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {string} webhookName The webhook name. * @@ -1741,7 +1741,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1775,7 +1775,7 @@ class WebhookOperations { * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The automation account name. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/package-lock.json b/lib/services/automationManagement/package-lock.json new file mode 100644 index 0000000000..1b330f71a9 --- /dev/null +++ b/lib/services/automationManagement/package-lock.json @@ -0,0 +1,473 @@ +{ + "name": "azure-arm-automation", + "version": "5.0.0-preview", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/node": { + "version": "8.10.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.21.tgz", + "integrity": "sha512-87XkD9qDXm8fIax+5y7drx84cXsu34ZZqfB7Cial3Q/2lxSoJ/+DRaWckkCbxP41wFSIrrb939VhzaNxj4eY1w==" + }, + "adal-node": { + "version": "0.1.28", + "resolved": "https://registry.npmjs.org/adal-node/-/adal-node-0.1.28.tgz", + "integrity": "sha1-RoxLs+u9lrEnBmn0ucuk4AZepIU=", + "requires": { + "@types/node": "^8.0.47", + "async": ">=0.6.0", + "date-utils": "*", + "jws": "3.x.x", + "request": ">= 2.52.0", + "underscore": ">= 1.3.1", + "uuid": "^3.1.0", + "xmldom": ">= 0.1.x", + "xpath.js": "~1.1.0" + } + }, + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "requires": { + "lodash": "^4.14.0" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", + "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "optional": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "combined-stream": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "date-utils": { + "version": "1.2.21", + "resolved": "https://registry.npmjs.org/date-utils/-/date-utils-1.2.21.tgz", + "integrity": "sha1-YfsWzcEnSzyayq/+n8ad+HIKK2Q=" + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=" + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "optional": true, + "requires": { + "jsbn": "~0.1.0" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", + "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "1.0.6", + "mime-types": "^2.1.12" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "requires": { + "ajv": "^5.1.0", + "har-schema": "^2.0.0" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jwa": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz", + "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.10", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", + "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", + "requires": { + "jwa": "^1.1.5", + "safe-buffer": "^5.0.1" + } + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + }, + "mime-db": { + "version": "1.35.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", + "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==" + }, + "mime-types": { + "version": "2.1.19", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", + "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", + "requires": { + "mime-db": "~1.35.0" + } + }, + "moment": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" + }, + "ms-rest": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/ms-rest/-/ms-rest-2.3.6.tgz", + "integrity": "sha512-M+Lx9P7Wy4TeAk7jqPLwGS1QS1gvxF6Xo+OHv5j1g3Kcb44T/GTUuSjxTKarF6aKyeacZH1ZD++Nt7pcql7dDA==", + "requires": { + "duplexer": "^0.1.1", + "is-buffer": "^1.1.6", + "is-stream": "^1.1.0", + "moment": "^2.21.0", + "request": "^2.87.0", + "through": "^2.3.8", + "tunnel": "0.0.5", + "uuid": "^3.2.1" + } + }, + "ms-rest-azure": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/ms-rest-azure/-/ms-rest-azure-2.5.7.tgz", + "integrity": "sha512-e4lgB0z29Dx4ufu/c+PmEAYY1WXq98GYUBkE+iRx7WsxsN04lrM3B1vj8y+B8rKt7clPUE0niqB9VovVL8zvag==", + "requires": { + "adal-node": "^0.1.28", + "async": "2.6.0", + "moment": "^2.22.2", + "ms-rest": "^2.3.2", + "uuid": "^3.2.1" + } + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "request": { + "version": "2.87.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", + "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.6.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.1", + "forever-agent": "~0.6.1", + "form-data": "~2.3.1", + "har-validator": "~5.0.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.17", + "oauth-sign": "~0.8.2", + "performance-now": "^2.1.0", + "qs": "~6.5.1", + "safe-buffer": "^5.1.1", + "tough-cookie": "~2.3.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.1.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sshpk": { + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", + "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, + "tough-cookie": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", + "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "requires": { + "punycode": "^1.4.1" + } + }, + "tunnel": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.5.tgz", + "integrity": "sha512-gj5sdqherx4VZKMcBA4vewER7zdK25Td+z1npBqpbDys4eJrLx+SlYjJvq1bDXs2irkuJM5pf8ktaEQVipkrbA==" + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "xmldom": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz", + "integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk=" + }, + "xpath.js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz", + "integrity": "sha512-jg+qkfS4K8E7965sqaUl8mRngXiKb3WZGfONgE18pr03FUQiuSV6G+Ej4tS55B+rIQSFEIw3phdVAQ4pPqNWfQ==" + } + } +} diff --git a/lib/services/automationManagement/package.json b/lib/services/automationManagement/package.json index c7c97ea4f1..7c501d1658 100644 --- a/lib/services/automationManagement/package.json +++ b/lib/services/automationManagement/package.json @@ -2,21 +2,24 @@ "name": "azure-arm-automation", "author": "Microsoft Corporation", "description": "AutomationClient Library with typescript type definitions for node", - "version": "4.0.0-preview", + "version": "5.0.0-preview", "dependencies": { - "ms-rest": "^2.3.2", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, - "keywords": [ "node", "azure" ], + "keywords": [ + "node", + "azure" + ], "license": "MIT", "main": "./lib/automationClient.js", "types": "./lib/automationClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/automationManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } }