From 0eccc252b6935a3c5f6c2206c41afadc3d7c6b75 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 7 Jun 2018 07:19:21 +0000 Subject: [PATCH 1/8] Generated from cf70daa6286e791991719865edc67272f9aaf702 Refactoring Automation Resources --- .../lib/automationClient.d.ts | 1 + .../lib/automationClient.js | 1 + .../lib/models/index.d.ts | 1643 +++++++------ .../automationManagement/lib/models/index.js | 61 +- .../lib/models/proxyResource.js | 3 +- .../lib/models/watcher.js | 189 ++ .../lib/models/watcherListResult.js | 67 + .../lib/models/watcherUpdateParameters.js | 60 + .../lib/operations/activityOperations.js | 12 +- .../operations/automationAccountOperations.js | 119 +- .../lib/operations/certificateOperations.js | 30 +- .../lib/operations/connectionOperations.js | 30 +- .../operations/connectionTypeOperations.js | 24 +- .../lib/operations/credentialOperations.js | 30 +- .../operations/dscConfigurationOperations.js | 36 +- .../lib/operations/fields.js | 6 +- .../hybridRunbookWorkerGroupOperations.js | 18 +- .../lib/operations/index.d.ts | 950 ++++++-- .../lib/operations/index.js | 1 + .../lib/operations/jobScheduleOperations.js | 24 +- .../lib/operations/keys.js | 6 +- .../operations/linkedWorkspaceOperations.js | 6 +- .../lib/operations/moduleOperations.js | 30 +- .../lib/operations/objectDataTypes.js | 12 +- .../lib/operations/runbookDraftOperations.js | 42 +- .../lib/operations/runbookOperations.js | 36 +- .../lib/operations/scheduleOperations.js | 30 +- .../softwareUpdateConfigurationMachineRuns.js | 18 +- .../softwareUpdateConfigurationRuns.js | 18 +- .../softwareUpdateConfigurations.js | 40 +- .../lib/operations/statisticsOperations.js | 20 +- .../lib/operations/testJobOperations.js | 30 +- .../lib/operations/testJobStreams.js | 12 +- .../lib/operations/usages.js | 20 +- .../lib/operations/variableOperations.js | 30 +- .../lib/operations/watcherOperations.js | 2114 +++++++++++++++++ .../lib/operations/webhookOperations.js | 36 +- 37 files changed, 4468 insertions(+), 1337 deletions(-) create mode 100644 lib/services/automationManagement/lib/models/watcher.js create mode 100644 lib/services/automationManagement/lib/models/watcherListResult.js create mode 100644 lib/services/automationManagement/lib/models/watcherUpdateParameters.js create mode 100644 lib/services/automationManagement/lib/operations/watcherOperations.js diff --git a/lib/services/automationManagement/lib/automationClient.d.ts b/lib/services/automationManagement/lib/automationClient.d.ts index f1d8dc4cac..56d13310df 100644 --- a/lib/services/automationManagement/lib/automationClient.d.ts +++ b/lib/services/automationManagement/lib/automationClient.d.ts @@ -92,6 +92,7 @@ export default class AutomationClient extends AzureServiceClient { dscCompilationJobOperations: operations.DscCompilationJobOperations; dscCompilationJobStream: operations.DscCompilationJobStream; dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations; + watcherOperations: operations.WatcherOperations; } export { AutomationClient, models as AutomationModels }; diff --git a/lib/services/automationManagement/lib/automationClient.js b/lib/services/automationManagement/lib/automationClient.js index ccbbfeef5e..6376309468 100644 --- a/lib/services/automationManagement/lib/automationClient.js +++ b/lib/services/automationManagement/lib/automationClient.js @@ -109,6 +109,7 @@ class AutomationClient extends ServiceClient { this.dscCompilationJobOperations = new operations.DscCompilationJobOperations(this); this.dscCompilationJobStream = new operations.DscCompilationJobStream(this); this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this); + this.watcherOperations = new operations.WatcherOperations(this); this.models = models; msRest.addSerializationMixin(this); } diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 9f6d41d765..11108ea466 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -111,582 +111,42 @@ export interface Statistics { /** * @class - * Initializes a new instance of the RunbookAssociationProperty class. - * @constructor - * The runbook property associated with the entity. - * - * @member {string} [name] Gets or sets the name of the runbook. - */ -export interface RunbookAssociationProperty { - name?: string; -} - -/** - * @class - * Initializes a new instance of the Resource class. - * @constructor - * The core properties of ARM resources - * - * @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 Resource extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: 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 - * - */ -export interface ProxyResource extends Resource { -} - -/** - * @class - * Initializes a new instance of the Webhook class. - * @constructor - * Definition of the webhook type. - * - * @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 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 Variable class. - * @constructor - * Definition of the varible. - * - * @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; - description?: string; -} - -/** - * @class - * Initializes a new instance of the JobProvisioningStateProperty class. - * @constructor - * The provisioning state property. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values include: 'Failed', 'Succeeded', 'Suspended', 'Processing' - */ -export interface JobProvisioningStateProperty { - readonly provisioningState?: string; -} - -/** - * @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 {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. - */ -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 }; -} - -/** - * @class - * Initializes a new instance of the Credential class. - * @constructor - * Definition of the credential. - * - * @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. - */ -export interface Credential extends ProxyResource { - readonly userName?: string; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - 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; -} - -/** - * @class - * Initializes a new instance of the Connection class. - * @constructor - * Definition 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 the field definition values of - * the connection. - * @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 Connection extends ProxyResource { - connectionType?: ConnectionTypeAssociationProperty; - readonly fieldDefinitionValues?: { [propertyName: string]: string }; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - description?: string; -} - -/** - * @class - * Initializes a new instance of the Certificate class. - * @constructor - * Definition of the certificate. - * - * @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 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 RunbookParameter class. - * @constructor - * Definition of the runbook parameter type. - * - * @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 RunbookParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: string; -} - -/** - * @class - * Initializes a new instance of the ContentHash class. - * @constructor - * Definition of the runbook property 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. - */ -export interface ContentHash { - algorithm: string; - value: string; -} - -/** - * @class - * Initializes a new instance of the ContentLink class. - * @constructor - * Definition of the content link. - * - * @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 ContentLink { - uri?: string; - contentHash?: ContentHash; - version?: string; -} - -/** - * @class - * Initializes a new instance of the RunbookDraft class. - * @constructor - * Definition of the runbook type. - * - * @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. - */ -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; -} - -/** - * @class - * Initializes a new instance of the Runbook class. - * @constructor - * Definition of the runbook type. - * - * @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 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 ModuleErrorInfo class. - * @constructor - * Definition of the module error info type. - * - * @member {string} [code] Gets or sets the error code. - * @member {string} [message] Gets or sets the error message. - */ -export interface ModuleErrorInfo { - code?: string; - message?: string; -} - -/** - * @class - * Initializes a new instance of the Module class. - * @constructor - * Definition of the module 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. - */ -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; -} - -/** - * @class - * Initializes a new instance of the ContentSource class. + * Initializes a new instance of the Resource class. * @constructor - * Definition of the content source. + * The core properties of ARM resources * - * @member {object} [hash] Gets or sets the hash. - * @member {string} [hash.algorithm] Gets or sets the content hash algorithm - * used to hash the content. - * @member {string} [hash.value] Gets or sets expected hash value of the - * content. - * @member {string} [type] Gets or sets the content source type. Possible - * values include: 'embeddedContent', 'uri' - * @member {string} [value] Gets or sets the value of the content. This is - * based on the content source type. - * @member {string} [version] Gets or sets the version of the content. + * @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 ContentSource { - hash?: ContentHash; - type?: string; - value?: string; - version?: string; +export interface Resource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; } /** * @class - * Initializes a new instance of the DscConfigurationParameter class. + * Initializes a new instance of the ProxyResource class. * @constructor - * Definition of the configuration parameter type. + * ARM proxy resource. * - * @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 DscConfigurationParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: string; +export interface ProxyResource extends Resource { } /** * @class - * Initializes a new instance of the DscConfiguration class. + * Initializes a new instance of the TrackedResource class. * @constructor - * Definition of the configuration type. + * The resource model definition for a ARM tracked top level resource * - * @member {string} [provisioningState] Gets or sets the provisioning state of - * the configuration. Possible values include: 'Succeeded' - * @member {number} [jobCount] Gets or sets the job count of the configuration. - * @member {object} [parameters] Gets or sets the configuration parameters. - * @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 {string} [state] Gets or sets the state of the configuration. - * Possible values include: 'New', 'Edit', 'Published' - * @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. + * @member {object} [tags] Resource tags. + * @member {string} [location] The Azure Region where the resource lives */ -export interface DscConfiguration extends TrackedResource { - provisioningState?: string; - jobCount?: number; - parameters?: { [propertyName: string]: DscConfigurationParameter }; - source?: ContentSource; - state?: string; - logVerbose?: boolean; - creationTime?: Date; - lastModifiedTime?: Date; - nodeConfigurationCount?: number; - description?: string; - etag?: string; +export interface TrackedResource extends Resource { + tags?: { [propertyName: string]: string }; + location?: string; } /** @@ -809,11 +269,34 @@ export interface AutomationAccountCreateOrUpdateParameters { * @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 AutomationAccountUpdateParameters { - sku?: Sku; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface AutomationAccountUpdateParameters { + sku?: Sku; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the Certificate class. + * @constructor + * Definition of the certificate. + * + * @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 Certificate extends ProxyResource { + readonly thumbprint?: string; + readonly expiryTime?: Date; + readonly isExportable?: boolean; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + description?: string; } /** @@ -856,6 +339,42 @@ export interface CertificateCreateOrUpdateParameters { isExportable?: boolean; } +/** + * @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; +} + +/** + * @class + * Initializes a new instance of the Connection class. + * @constructor + * Definition 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 the field definition values of + * the connection. + * @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 Connection extends ProxyResource { + connectionType?: ConnectionTypeAssociationProperty; + readonly fieldDefinitionValues?: { [propertyName: string]: string }; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + description?: string; +} + /** * @class * Initializes a new instance of the ConnectionUpdateParameters class. @@ -962,6 +481,24 @@ export interface ConnectionTypeCreateOrUpdateParameters { fieldDefinitions: { [propertyName: string]: FieldDefinition }; } +/** + * @class + * Initializes a new instance of the Credential class. + * @constructor + * Definition of the credential. + * + * @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. + */ +export interface Credential extends ProxyResource { + readonly userName?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + description?: string; +} + /** * @class * Initializes a new instance of the CredentialUpdateParameters class. @@ -1187,6 +724,77 @@ export interface AgentRegistrationRegenerateKeyParameter { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the ContentHash class. + * @constructor + * Definition of the runbook property 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. + */ +export interface ContentHash { + algorithm: string; + value: string; +} + +/** + * @class + * Initializes a new instance of the ContentLink class. + * @constructor + * Definition of the content link. + * + * @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 ContentLink { + uri?: string; + contentHash?: ContentHash; + version?: string; +} + +/** + * @class + * Initializes a new instance of the ContentSource class. + * @constructor + * Definition of the content source. + * + * @member {object} [hash] Gets or sets the hash. + * @member {string} [hash.algorithm] Gets or sets the content hash algorithm + * used to hash the content. + * @member {string} [hash.value] Gets or sets expected hash value of the + * content. + * @member {string} [type] Gets or sets the content source type. Possible + * values include: 'embeddedContent', 'uri' + * @member {string} [value] Gets or sets the value of the content. This is + * based on the content source type. + * @member {string} [version] Gets or sets the version of the content. + */ +export interface ContentSource { + hash?: ContentHash; + type?: string; + value?: string; + version?: string; +} + +/** + * @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 DscCompilationJobCreateParameters class. @@ -1227,14 +835,140 @@ export interface DscCompilationJobCreateParameters { * @member {string} [summary] Gets or sets the summary. * @member {object} [value] Gets or sets the values of the job stream. */ -export interface JobStream { - id?: string; - jobStreamId?: string; - time?: Date; - streamType?: string; - streamText?: string; - summary?: string; - value?: { [propertyName: string]: any }; +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 JobProvisioningStateProperty class. + * @constructor + * The provisioning state property. + * + * @member {string} [provisioningState] The provisioning state of the resource. + * Possible values include: 'Failed', 'Succeeded', 'Suspended', 'Processing' + */ +export interface JobProvisioningStateProperty { + readonly provisioningState?: 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 {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. + */ +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 }; +} + +/** + * @class + * Initializes a new instance of the DscConfigurationParameter class. + * @constructor + * Definition of the configuration parameter type. + * + * @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 DscConfigurationParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; +} + +/** + * @class + * Initializes a new instance of the DscConfiguration class. + * @constructor + * Definition of the configuration type. + * + * @member {string} [provisioningState] Gets or sets the provisioning state of + * the configuration. Possible values include: 'Succeeded' + * @member {number} [jobCount] Gets or sets the job count of the configuration. + * @member {object} [parameters] Gets or sets the configuration parameters. + * @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 {string} [state] Gets or sets the state of the configuration. + * Possible values include: 'New', 'Edit', 'Published' + * @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. + */ +export interface DscConfiguration extends TrackedResource { + provisioningState?: string; + jobCount?: number; + parameters?: { [propertyName: string]: DscConfigurationParameter }; + source?: ContentSource; + state?: string; + logVerbose?: boolean; + creationTime?: Date; + lastModifiedTime?: Date; + nodeConfigurationCount?: number; + description?: string; + etag?: string; } /** @@ -1619,6 +1353,18 @@ export interface ScheduleAssociationProperty { name?: string; } +/** + * @class + * Initializes a new instance of the RunbookAssociationProperty class. + * @constructor + * The runbook property associated with the entity. + * + * @member {string} [name] Gets or sets the name of the runbook. + */ +export interface RunbookAssociationProperty { + name?: string; +} + /** * @class * Initializes a new instance of the JobScheduleCreateParameters class. @@ -1709,6 +1455,70 @@ export interface ModuleCreateOrUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the ModuleErrorInfo class. + * @constructor + * Definition of the module error info type. + * + * @member {string} [code] Gets or sets the error code. + * @member {string} [message] Gets or sets the error message. + */ +export interface ModuleErrorInfo { + code?: string; + message?: string; +} + +/** + * @class + * Initializes a new instance of the Module class. + * @constructor + * Definition of the module 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. + */ +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; +} + /** * @class * Initializes a new instance of the ModuleUpdateParameters class. @@ -1736,6 +1546,59 @@ export interface ModuleUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the RunbookParameter class. + * @constructor + * Definition of the runbook parameter type. + * + * @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 RunbookParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; +} + +/** + * @class + * Initializes a new instance of the RunbookDraft class. + * @constructor + * Definition of the runbook type. + * + * @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. + */ +export interface RunbookDraft { + inEdit?: boolean; + draftContentLink?: ContentLink; + creationTime?: Date; + lastModifiedTime?: Date; + parameters?: { [propertyName: string]: RunbookParameter }; + outputTypes?: string[]; +} + /** * @class * Initializes a new instance of the RunbookDraftUndoEditResult class. @@ -1907,6 +1770,83 @@ export interface RunbookUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the Runbook class. + * @constructor + * Definition of the runbook type. + * + * @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 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 ScheduleCreateOrUpdateParameters class. @@ -2142,36 +2082,22 @@ export interface TypeField { /** * @class - * Initializes a new instance of the VariableCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update variable operation. - * - * @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 VariableCreateOrUpdateParameters { - name: string; - value?: string; - description?: string; - isEncrypted?: boolean; -} - -/** - * @class - * Initializes a new instance of the VariableUpdateParameters class. + * Initializes a new instance of the Variable class. * @constructor - * The parameters supplied to the update variable operation. + * Definition of the varible. * - * @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 {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 VariableUpdateParameters { - name?: string; +export interface Variable extends ProxyResource { value?: string; + isEncrypted?: boolean; + creationTime?: Date; + lastModifiedTime?: Date; description?: string; } @@ -2202,6 +2128,44 @@ export interface WebhookCreateOrUpdateParameters { runOn?: string; } +/** + * @class + * Initializes a new instance of the Webhook class. + * @constructor + * Definition of the webhook type. + * + * @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 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 WebhookUpdateParameters class. @@ -2226,98 +2190,138 @@ export interface WebhookUpdateParameters { /** * @class - * Initializes a new instance of the Job class. + * Initializes a new instance of the VariableCreateOrUpdateParameters class. * @constructor - * Definition of the job. + * The parameters supplied to the create or update variable operation. * - * @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 provisioning state of a resource. + * @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 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 }; - readonly provisioningState?: string; +export interface VariableCreateOrUpdateParameters { + name: string; + value?: string; + description?: string; + isEncrypted?: boolean; } /** * @class - * Initializes a new instance of the JobCollectionItem class. + * Initializes a new instance of the VariableUpdateParameters class. * @constructor - * Job collection item properties. + * The parameters supplied to the update variable operation. * - * @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. + * @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 JobCollectionItem extends ProxyResource { - readonly runbook?: RunbookAssociationProperty; - readonly jobId?: string; - readonly creationTime?: Date; - readonly status?: string; - readonly startTime?: Date; - readonly endTime?: Date; - readonly lastModifiedTime?: Date; - readonly provisioningState?: string; - runOn?: string; +export interface VariableUpdateParameters { + name?: string; + value?: string; + description?: string; } /** * @class - * Initializes a new instance of the JobCreateParameters class. + * Initializes a new instance of the SourceControlCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the create job operation. + * The parameters supplied to the create or update source control operation. * - * @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 {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 JobCreateParameters { - runbook?: RunbookAssociationProperty; - parameters?: { [propertyName: string]: string }; - runOn?: string; +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 SourceControl class. + * @constructor + * Definition of the source control. + * + * @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. + */ +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; +} + +/** + * @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; } /** @@ -2596,28 +2600,15 @@ export interface SoftwareUpdateConfigurationListResult { /** * @class - * Initializes a new instance of the UpdateConfigurationNavigation class. - * @constructor - * Software update configuration Run Navigation model. - * - * @member {string} [name] Name of the software update configuration triggered - * the software update configuration run - */ -export interface UpdateConfigurationNavigation { - readonly name?: string; -} - -/** - * @class - * Initializes a new instance of the JobNavigation class. + * Initializes a new instance of the UpdateConfigurationNavigation class. * @constructor - * Software update configuration machine run job navigation properties. + * Software update configuration Run Navigation model. * - * @member {string} [id] Id of the job associated with the software update - * configuration run + * @member {string} [name] Name of the software update configuration triggered + * the software update configuration run */ -export interface JobNavigation { - readonly id?: string; +export interface UpdateConfigurationNavigation { + readonly name?: string; } /** @@ -2684,6 +2675,19 @@ export interface SoftwareUpdateConfigurationRunListResult { nextLink?: string; } +/** + * @class + * Initializes a new instance of the JobNavigation class. + * @constructor + * Software update configuration machine run job navigation properties. + * + * @member {string} [id] Id of the job associated with the software update + * configuration run + */ +export interface JobNavigation { + readonly id?: string; +} + /** * @class * Initializes a new instance of the SoftwareUpdateConfigurationMachineRun class. @@ -2762,107 +2766,6 @@ export interface SoftwareUpdateConfigurationMachineRunListResult { nextLink?: string; } -/** - * @class - * Initializes a new instance of the SourceControlCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update source control operation. - * - * @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 SourceControlCreateOrUpdateParameters { - repoUrl?: string; - branch?: string; - folderPath?: string; - autoSync?: boolean; - publishRunbook?: boolean; - sourceType?: string; - securityToken?: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the SourceControl class. - * @constructor - * Definition of the source control. - * - * @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. - */ -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; -} - -/** - * @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 SourceControlSyncJob class. @@ -2981,6 +2884,102 @@ export interface SourceControlSyncJobStreamById { value?: string; } +/** + * @class + * Initializes a new instance of the Job class. + * @constructor + * Definition 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} [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 provisioning state of a resource. + */ +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 }; + readonly provisioningState?: string; +} + +/** + * @class + * Initializes a new instance of the JobCollectionItem class. + * @constructor + * Job collection item 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 {string} [provisioningState] The provisioning state of a resource. + * @member {string} [runOn] Specifies the runOn group name where the job was + * executed. + */ +export interface JobCollectionItem extends ProxyResource { + readonly runbook?: RunbookAssociationProperty; + readonly jobId?: string; + readonly creationTime?: Date; + readonly status?: string; + readonly startTime?: Date; + readonly endTime?: Date; + readonly lastModifiedTime?: Date; + readonly provisioningState?: string; + runOn?: string; +} + +/** + * @class + * Initializes a new instance of the JobCreateParameters class. + * @constructor + * The parameters supplied to the create job operation. + * + * @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 JobCreateParameters { + runbook?: RunbookAssociationProperty; + parameters?: { [propertyName: string]: string }; + runOn?: string; +} + /** * @class * Initializes a new instance of the DscNode class. @@ -3075,6 +3074,54 @@ export interface DscNodeConfigurationCreateOrUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the Watcher class. + * @constructor + * Definition of the watcher type. + * + * @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 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 WatcherUpdateParameters class. + * @constructor + * @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 WatcherUpdateParameters { + executionFrequencyInSeconds?: number; + name?: string; +} + /** * @class @@ -3404,3 +3451,15 @@ export interface DscCompilationJobListResult extends Array { export interface DscNodeConfigurationListResult 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; +} diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 2676638dbd..e9279d7cf3 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -23,42 +23,26 @@ exports.Key = require('./key'); exports.UsageCounterName = require('./usageCounterName'); exports.Usage = require('./usage'); exports.Statistics = require('./statistics'); -exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); 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.OperationDisplay = require('./operationDisplay'); exports.Operation = require('./operation'); exports.AutomationAccountCreateOrUpdateParameters = require('./automationAccountCreateOrUpdateParameters'); exports.AutomationAccountUpdateParameters = require('./automationAccountUpdateParameters'); +exports.Certificate = require('./certificate'); exports.CertificateUpdateParameters = require('./certificateUpdateParameters'); exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters'); +exports.ConnectionTypeAssociationProperty = require('./connectionTypeAssociationProperty'); +exports.Connection = require('./connection'); exports.ConnectionUpdateParameters = require('./connectionUpdateParameters'); exports.ConnectionCreateOrUpdateParameters = require('./connectionCreateOrUpdateParameters'); exports.FieldDefinition = require('./fieldDefinition'); exports.ConnectionType = require('./connectionType'); exports.ConnectionTypeCreateOrUpdateParameters = require('./connectionTypeCreateOrUpdateParameters'); +exports.Credential = require('./credential'); exports.CredentialUpdateParameters = require('./credentialUpdateParameters'); exports.CredentialCreateOrUpdateParameters = require('./credentialCreateOrUpdateParameters'); exports.ActivityParameter = require('./activityParameter'); @@ -70,8 +54,16 @@ exports.AdvancedSchedule = require('./advancedSchedule'); exports.AgentRegistrationKeys = require('./agentRegistrationKeys'); exports.AgentRegistration = require('./agentRegistration'); exports.AgentRegistrationRegenerateKeyParameter = require('./agentRegistrationRegenerateKeyParameter'); +exports.ContentHash = require('./contentHash'); +exports.ContentLink = require('./contentLink'); +exports.ContentSource = require('./contentSource'); +exports.DscConfigurationAssociationProperty = require('./dscConfigurationAssociationProperty'); exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters'); exports.JobStream = require('./jobStream'); +exports.JobProvisioningStateProperty = require('./jobProvisioningStateProperty'); +exports.DscCompilationJob = require('./dscCompilationJob'); +exports.DscConfigurationParameter = require('./dscConfigurationParameter'); +exports.DscConfiguration = require('./dscConfiguration'); exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters'); exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters'); exports.DscMetaConfiguration = require('./dscMetaConfiguration'); @@ -88,16 +80,22 @@ exports.RunAsCredentialAssociationProperty = require('./runAsCredentialAssociati exports.HybridRunbookWorkerGroup = require('./hybridRunbookWorkerGroup'); exports.HybridRunbookWorkerGroupUpdateParameters = require('./hybridRunbookWorkerGroupUpdateParameters'); exports.ScheduleAssociationProperty = require('./scheduleAssociationProperty'); +exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); exports.JobSchedule = require('./jobSchedule'); exports.LinkedWorkspace = require('./linkedWorkspace'); exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); +exports.ModuleErrorInfo = require('./moduleErrorInfo'); +exports.Module = require('./module'); exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); +exports.RunbookParameter = require('./runbookParameter'); +exports.RunbookDraft = require('./runbookDraft'); exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); exports.RunbookCreateOrUpdateParameters = require('./runbookCreateOrUpdateParameters'); exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties'); exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters'); exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); +exports.Runbook = require('./runbook'); exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters'); exports.ScheduleProperties = require('./scheduleProperties'); exports.Schedule = require('./schedule'); @@ -106,13 +104,15 @@ exports.SubResource = require('./subResource'); exports.TestJobCreateParameters = require('./testJobCreateParameters'); exports.TestJob = require('./testJob'); exports.TypeField = require('./typeField'); -exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); -exports.VariableUpdateParameters = require('./variableUpdateParameters'); +exports.Variable = require('./variable'); exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); +exports.Webhook = require('./webhook'); exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); -exports.Job = require('./job'); -exports.JobCollectionItem = require('./jobCollectionItem'); -exports.JobCreateParameters = require('./jobCreateParameters'); +exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); +exports.VariableUpdateParameters = require('./variableUpdateParameters'); +exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); +exports.SourceControl = require('./sourceControl'); +exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); exports.WindowsProperties = require('./windowsProperties'); exports.LinuxProperties = require('./linuxProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); @@ -121,22 +121,24 @@ 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.SourceControlSyncJob = require('./sourceControlSyncJob'); 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.DscNode = require('./dscNode'); exports.DscNodeConfiguration = require('./dscNodeConfiguration'); exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters'); +exports.Watcher = require('./watcher'); +exports.WatcherUpdateParameters = require('./watcherUpdateParameters'); exports.AutomationAccountListResult = require('./automationAccountListResult'); exports.OperationListResult = require('./operationListResult'); exports.StatisticsListResult = require('./statisticsListResult'); @@ -165,3 +167,4 @@ exports.DscNodeListResult = require('./dscNodeListResult'); exports.DscNodeReportListResult = require('./dscNodeReportListResult'); exports.DscCompilationJobListResult = require('./dscCompilationJobListResult'); exports.DscNodeConfigurationListResult = require('./dscNodeConfigurationListResult'); +exports.WatcherListResult = require('./watcherListResult'); 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/watcher.js b/lib/services/automationManagement/lib/models/watcher.js new file mode 100644 index 0000000000..39671ec978 --- /dev/null +++ b/lib/services/automationManagement/lib/models/watcher.js @@ -0,0 +1,189 @@ +/* + * 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, + readOnly: true, + serializedName: 'properties.creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: 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/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/automationAccountOperations.js b/lib/services/automationManagement/lib/operations/automationAccountOperations.js index a35d725c5a..d1c05fc628 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,9 @@ 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 {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -712,7 +745,7 @@ function _get(resourceGroupName, automationAccountName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroup(resourceGroupName, options, callback) { +function _listByResourceGroup(resourceGroupName, automationAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -729,11 +762,22 @@ 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\._]+$/'); } } + 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.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.'); } @@ -748,6 +792,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1249,9 +1294,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 +1346,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 +1420,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 +1472,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 +1546,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 +1578,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 +1631,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 +1663,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 +1717,9 @@ 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 {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1687,11 +1732,11 @@ class AutomationAccountOperations { * * @reject {Error} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { + listByResourceGroupWithHttpOperationResponse(resourceGroupName, automationAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, automationAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1704,7 +1749,9 @@ 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 {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -1734,7 +1781,7 @@ class AutomationAccountOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName, options, optionalCallback) { + listByResourceGroup(resourceGroupName, automationAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1743,14 +1790,14 @@ class AutomationAccountOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, automationAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByResourceGroup(resourceGroupName, options, optionalCallback); + return self._listByResourceGroup(resourceGroupName, automationAccountName, options, optionalCallback); } } 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/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index 9e0561afa8..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,7 +956,7 @@ 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. * @@ -1297,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. * @@ -1331,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. * @@ -1386,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. * @@ -1420,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. * @@ -1476,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. @@ -1551,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. @@ -1648,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. @@ -1722,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. @@ -1818,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. * @@ -1852,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. * @@ -1907,7 +1907,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 {object} [options] Optional Parameters. * @@ -1947,7 +1947,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 {object} [options] Optional Parameters. * 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 8248bc39ed..f3e7f017b6 100644 --- a/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js +++ b/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js @@ -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,7 +523,7 @@ 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. * @@ -926,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 @@ -961,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 @@ -1019,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 @@ -1062,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 @@ -1128,7 +1128,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 {object} [options] Optional Parameters. * @@ -1162,7 +1162,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 {object} [options] Optional Parameters. * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index fc49ae01f1..df624b4d24 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -24,9 +24,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 +64,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 +123,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 +163,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 +222,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 +242,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 +280,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 +300,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 +339,9 @@ 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 {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -354,12 +354,14 @@ export interface AutomationAccountOperations { * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * 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 {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -389,9 +391,9 @@ export interface AutomationAccountOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -642,9 +644,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 +666,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 +716,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 +736,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 +786,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 +806,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 +854,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 +876,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 +916,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 +938,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 +979,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 +1019,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 +1078,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 +1109,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 +1159,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 +1179,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 +1284,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 +1306,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 +1347,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 +1369,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 +1410,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 +1450,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 +1509,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 +1543,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 +1596,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 +1616,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 +1721,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 +1743,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 +1783,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 +1805,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 +1846,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 +1881,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 +1935,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 +1955,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 +2062,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 +2084,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 +2124,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 +2146,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 +2187,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 +2224,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 +2280,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 +2317,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 +2373,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 +2393,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 +2498,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 +2520,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 +2560,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 +2582,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 +2623,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 +2686,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 +2768,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 +2830,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 +2911,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 +2933,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,7 +2973,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 {object} [options] Optional Parameters. * @@ -2999,7 +3001,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 {object} [options] Optional Parameters. * @@ -3178,7 +3180,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 @@ -3201,7 +3203,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 @@ -3244,7 +3246,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 @@ -3275,7 +3277,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 @@ -3326,7 +3328,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 {object} [options] Optional Parameters. * @@ -3348,7 +3350,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 {object} [options] Optional Parameters. * @@ -3457,7 +3459,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. * @@ -3479,7 +3481,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. * @@ -3519,7 +3521,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. * @@ -3541,7 +3543,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. * @@ -3582,7 +3584,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. * @@ -3623,7 +3625,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. * @@ -3683,7 +3685,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 {object} [options] Optional Parameters. * @@ -3705,7 +3707,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 {object} [options] Optional Parameters. * @@ -3812,7 +3814,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. * @@ -3832,7 +3834,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. * @@ -3881,7 +3883,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. * @@ -3906,7 +3908,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. * @@ -3949,7 +3951,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. * @@ -3971,7 +3973,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. * @@ -4078,7 +4080,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. * @@ -4100,7 +4102,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. * @@ -4140,7 +4142,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. * @@ -4162,7 +4164,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. * @@ -4203,7 +4205,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. * @@ -4251,7 +4253,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. * @@ -4318,7 +4320,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. * @@ -4367,7 +4369,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. * @@ -4435,7 +4437,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. * @@ -4455,7 +4457,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. * @@ -4560,7 +4562,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. * @@ -4584,7 +4586,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. * @@ -4627,7 +4629,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. * @@ -4649,7 +4651,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. * @@ -4699,7 +4701,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. * @@ -4723,7 +4725,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. * @@ -4775,7 +4777,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. * @@ -4797,7 +4799,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. * @@ -4837,7 +4839,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. * @@ -4861,7 +4863,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. * @@ -4903,7 +4905,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. * @@ -4925,7 +4927,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. * @@ -4966,7 +4968,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. @@ -4989,7 +4991,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. @@ -5030,7 +5032,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. * @@ -5052,7 +5054,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. * @@ -5094,7 +5096,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. * @@ -5118,7 +5120,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. * @@ -5160,7 +5162,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. @@ -5183,7 +5185,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. @@ -5233,7 +5235,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. * @@ -5255,7 +5257,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. * @@ -5295,7 +5297,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. * @@ -5317,7 +5319,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. * @@ -5358,7 +5360,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. * @@ -5444,7 +5446,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. * @@ -5549,7 +5551,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. * @@ -5591,7 +5593,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. * @@ -5652,7 +5654,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. * @@ -5674,7 +5676,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. * @@ -5714,7 +5716,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. * @@ -5734,7 +5736,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. * @@ -5840,7 +5842,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. * @@ -5865,7 +5867,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 +5910,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. * @@ -5932,7 +5934,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. * @@ -6041,7 +6043,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. @@ -6073,7 +6075,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. @@ -6124,7 +6126,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. * @@ -6146,7 +6148,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. * @@ -6187,7 +6189,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. * @@ -6209,7 +6211,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. * @@ -6249,7 +6251,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. * @@ -6271,7 +6273,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. * @@ -6311,7 +6313,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. * @@ -6333,7 +6335,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. * @@ -6382,7 +6384,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. * @@ -6439,7 +6441,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. * @@ -6515,7 +6517,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. * @@ -6548,7 +6550,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. * @@ -6600,7 +6602,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. * @@ -6622,7 +6624,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. * @@ -6663,7 +6665,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. * @@ -6685,7 +6687,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. * @@ -6725,7 +6727,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. * @@ -6745,7 +6747,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. * @@ -6850,7 +6852,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. * @@ -6885,7 +6887,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. * @@ -6939,7 +6941,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. * @@ -6971,7 +6973,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. * @@ -7022,7 +7024,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. * @@ -7044,7 +7046,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. * @@ -7084,7 +7086,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. * @@ -7106,7 +7108,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. * @@ -7147,7 +7149,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. * @@ -7167,7 +7169,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. * @@ -7272,7 +7274,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. * @@ -7292,7 +7294,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. * @@ -7330,7 +7332,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. * @@ -7352,7 +7354,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. * @@ -7392,7 +7394,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. * @@ -7414,7 +7416,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. * @@ -7455,7 +7457,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. * @@ -7499,7 +7501,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. * @@ -7562,7 +7564,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. * @@ -7600,7 +7602,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. * @@ -7657,7 +7659,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. * @@ -7679,7 +7681,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. * @@ -12343,3 +12345,567 @@ export interface DscNodeConfigurationOperations { listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } + +/** + * @class + * WatcherOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface WatcherOperations { + + + /** + * 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|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; +} diff --git a/lib/services/automationManagement/lib/operations/index.js b/lib/services/automationManagement/lib/operations/index.js index 5c9e82b603..a26014da0f 100644 --- a/lib/services/automationManagement/lib/operations/index.js +++ b/lib/services/automationManagement/lib/operations/index.js @@ -52,3 +52,4 @@ exports.NodeReports = require('./nodeReports'); exports.DscCompilationJobOperations = require('./dscCompilationJobOperations'); exports.DscCompilationJobStream = require('./dscCompilationJobStream'); exports.DscNodeConfigurationOperations = require('./dscNodeConfigurationOperations'); +exports.WatcherOperations = require('./watcherOperations'); diff --git a/lib/services/automationManagement/lib/operations/jobScheduleOperations.js b/lib/services/automationManagement/lib/operations/jobScheduleOperations.js index 176130ca0c..56660cca5b 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. * @@ -529,7 +529,7 @@ 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. * @@ -839,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. * @@ -873,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. * @@ -928,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. * @@ -962,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. * @@ -1018,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. * @@ -1071,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. * @@ -1146,7 +1146,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 {object} [options] Optional Parameters. * @@ -1180,7 +1180,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 {object} [options] Optional Parameters. * 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/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..c58f292e14 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. * @@ -188,7 +188,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. * @@ -274,7 +274,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 +439,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. @@ -524,7 +524,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,7 +689,7 @@ 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. * @@ -883,7 +883,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. @@ -1070,7 +1070,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. * @@ -1104,7 +1104,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. * @@ -1159,7 +1159,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. * @@ -1195,7 +1195,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. * @@ -1252,7 +1252,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 +1286,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 +1342,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. @@ -1377,7 +1377,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. @@ -1433,7 +1433,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 +1467,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,7 +1524,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. * @@ -1560,7 +1560,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. * @@ -1617,7 +1617,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. @@ -1652,7 +1652,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. diff --git a/lib/services/automationManagement/lib/operations/runbookOperations.js b/lib/services/automationManagement/lib/operations/runbookOperations.js index 5880429498..950f0a9d7d 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. * @@ -187,7 +187,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 +351,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 +613,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 +814,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 +960,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 +1263,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. * @@ -1297,7 +1297,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. * @@ -1352,7 +1352,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 +1386,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 +1442,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 +1540,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 +1660,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 +1714,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 +1790,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 +1824,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 +1879,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 +1911,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..94f0d36eb9 100644 --- a/lib/services/automationManagement/lib/operations/scheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/scheduleOperations.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} scheduleName The schedule name. * @@ -235,7 +235,7 @@ 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. * @@ -427,7 +427,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 +591,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. * @@ -737,7 +737,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,7 +1039,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. * @@ -1108,7 +1108,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. * @@ -1199,7 +1199,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. * @@ -1244,7 +1244,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. * @@ -1311,7 +1311,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 +1345,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 +1401,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 +1435,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 +1490,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 +1522,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..8cc0d121b6 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js @@ -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) { @@ -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..e4a7cf8515 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js @@ -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) { @@ -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 60620e732a..fced67c954 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -273,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); @@ -283,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) { @@ -475,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) { @@ -638,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); @@ -648,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) { @@ -808,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) { 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. * From 3e2e836a733e770fd560b0a6f37b3dee3329e8bf Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 7 Jun 2018 22:36:50 +0000 Subject: [PATCH 2/8] Generated from de5451f64c64bc87aa0a18e11831e5c589bbd430 Fix 2017 resources and remove definitions.json --- .../lib/models/index.d.ts | 196 +++++++++--------- .../automationManagement/lib/models/index.js | 6 +- .../lib/models/sourceControl.js | 15 +- 3 files changed, 104 insertions(+), 113 deletions(-) diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 11108ea466..172715218a 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -2223,107 +2223,6 @@ export interface VariableUpdateParameters { description?: string; } -/** - * @class - * Initializes a new instance of the SourceControlCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update source control operation. - * - * @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 SourceControlCreateOrUpdateParameters { - repoUrl?: string; - branch?: string; - folderPath?: string; - autoSync?: boolean; - publishRunbook?: boolean; - sourceType?: string; - securityToken?: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the SourceControl class. - * @constructor - * Definition of the source control. - * - * @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. - */ -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; -} - -/** - * @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 WindowsProperties class. @@ -2766,6 +2665,101 @@ export interface SoftwareUpdateConfigurationMachineRunListResult { 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 + * The parameters supplied to the create or update source control operation. + * + * @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 SourceControlCreateOrUpdateParameters { + repoUrl?: string; + branch?: string; + folderPath?: string; + autoSync?: boolean; + publishRunbook?: boolean; + sourceType?: string; + securityToken?: string; + description?: string; +} + /** * @class * Initializes a new instance of the SourceControlSyncJob class. diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index e9279d7cf3..5daf36142d 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -110,9 +110,6 @@ exports.Webhook = require('./webhook'); exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); exports.VariableUpdateParameters = require('./variableUpdateParameters'); -exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); -exports.SourceControl = require('./sourceControl'); -exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); exports.WindowsProperties = require('./windowsProperties'); exports.LinuxProperties = require('./linuxProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); @@ -126,6 +123,9 @@ exports.SoftwareUpdateConfigurationRunListResult = require('./softwareUpdateConf exports.JobNavigation = require('./jobNavigation'); exports.SoftwareUpdateConfigurationMachineRun = require('./softwareUpdateConfigurationMachineRun'); exports.SoftwareUpdateConfigurationMachineRunListResult = require('./softwareUpdateConfigurationMachineRunListResult'); +exports.SourceControl = require('./sourceControl'); +exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); +exports.SourceControlCreateOrUpdateParameters = require('./sourceControlCreateOrUpdateParameters'); exports.SourceControlSyncJob = require('./sourceControlSyncJob'); exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCreateParameters'); exports.SourceControlSyncJobById = require('./sourceControlSyncJobById'); diff --git a/lib/services/automationManagement/lib/models/sourceControl.js b/lib/services/automationManagement/lib/models/sourceControl.js index b926558d2e..eeedff4348 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' } From 92bf788196f3fb59fe3e26b1b226816b5906aeec Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 8 Jun 2018 06:22:30 +0000 Subject: [PATCH 3/8] Generated from 30f27399c1c797dc44cdff66346523b8e3d3c1a5 2018 Resources refactored --- .../lib/models/dscCompilationJob.js | 11 +- .../lib/models/index.d.ts | 1097 ++++++++--------- .../automationManagement/lib/models/index.js | 41 +- .../automationManagement/lib/models/job.js | 5 +- 4 files changed, 569 insertions(+), 585 deletions(-) diff --git a/lib/services/automationManagement/lib/models/dscCompilationJob.js b/lib/services/automationManagement/lib/models/dscCompilationJob.js index e33fe69c1f..bbe31f6259 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 @@ -125,8 +123,7 @@ class DscCompilationJob extends models['ProxyResource'] { required: false, serializedName: 'properties.provisioningState', type: { - name: 'Composite', - className: 'JobProvisioningStateProperty' + name: 'String' } }, runOn: { diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 172715218a..769c0fdfe3 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -31,84 +31,6 @@ export interface ErrorResponse { message?: string; } -/** - * @class - * Initializes a new instance of the Key class. - * @constructor - * Automation key which is used to register a DSC Node - * - * @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. - */ -export interface Key { - keyName?: string; - permissions?: string; - value?: string; -} - -/** - * @class - * Initializes a new instance of the UsageCounterName class. - * @constructor - * Definition of usage counter name. - * - * @member {string} [value] Gets or sets the usage counter name. - * @member {string} [localizedValue] Gets or sets the localized usage counter - * name. - */ -export interface UsageCounterName { - value?: string; - localizedValue?: string; -} - -/** - * @class - * Initializes a new instance of the Usage class. - * @constructor - * Definition of Usage. - * - * @member {string} [id] Gets or sets the id of the resource. - * @member {object} [name] Gets or sets the usage counter name. - * @member {string} [name.value] Gets or sets the usage counter name. - * @member {string} [name.localizedValue] Gets or sets the localized usage - * counter name. - * @member {string} [unit] Gets or sets the usage unit name. - * @member {number} [currentValue] Gets or sets the current usage value. - * @member {number} [limit] Gets or sets max limit. -1 for unlimited - * @member {string} [throttleStatus] Gets or sets the throttle status. - */ -export interface Usage { - id?: string; - name?: UsageCounterName; - unit?: string; - currentValue?: number; - limit?: number; - throttleStatus?: string; -} - -/** - * @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; -} - /** * @class * Initializes a new instance of the Resource class. @@ -125,16 +47,6 @@ export interface Resource extends BaseResource { readonly type?: string; } -/** - * @class - * Initializes a new instance of the ProxyResource class. - * @constructor - * ARM proxy resource. - * - */ -export interface ProxyResource extends Resource { -} - /** * @class * Initializes a new instance of the TrackedResource class. @@ -149,6 +61,16 @@ export interface TrackedResource extends Resource { location?: string; } +/** + * @class + * Initializes a new instance of the ProxyResource class. + * @constructor + * ARM proxy resource. + * + */ +export interface ProxyResource extends Resource { +} + /** * @class * Initializes a new instance of the Sku class. @@ -195,6 +117,29 @@ export interface AutomationAccount extends TrackedResource { 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. @@ -233,25 +178,80 @@ export interface Operation { /** * @class - * Initializes a new instance of the AutomationAccountCreateOrUpdateParameters class. + * Initializes a new instance of the Statistics class. * @constructor - * The parameters supplied to the create or update automation account - * operation. + * Definition of the statistic. * - * @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} [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 AutomationAccountCreateOrUpdateParameters { - sku?: Sku; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface Statistics { + readonly counterProperty?: string; + readonly counterValue?: number; + readonly startTime?: Date; + readonly endTime?: Date; + readonly id?: string; +} + +/** + * @class + * Initializes a new instance of the UsageCounterName class. + * @constructor + * Definition of usage counter name. + * + * @member {string} [value] Gets or sets the usage counter name. + * @member {string} [localizedValue] Gets or sets the localized usage counter + * name. + */ +export interface UsageCounterName { + value?: string; + localizedValue?: string; +} + +/** + * @class + * Initializes a new instance of the Usage class. + * @constructor + * Definition of Usage. + * + * @member {string} [id] Gets or sets the id of the resource. + * @member {object} [name] Gets or sets the usage counter name. + * @member {string} [name.value] Gets or sets the usage counter name. + * @member {string} [name.localizedValue] Gets or sets the localized usage + * counter name. + * @member {string} [unit] Gets or sets the usage unit name. + * @member {number} [currentValue] Gets or sets the current usage value. + * @member {number} [limit] Gets or sets max limit. -1 for unlimited + * @member {string} [throttleStatus] Gets or sets the throttle status. + */ +export interface Usage { + id?: string; + name?: UsageCounterName; + unit?: string; + currentValue?: number; + limit?: number; + throttleStatus?: string; +} + +/** + * @class + * Initializes a new instance of the Key class. + * @constructor + * Automation key which is used to register a DSC Node + * + * @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. + */ +export interface Key { + keyName?: string; + permissions?: string; + value?: string; } /** @@ -527,111 +527,13 @@ export interface CredentialUpdateParameters { * @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. - * - * @member {string} [name] Gets or sets the name of the activity parameter. - * @member {string} [type] Gets or sets the type of the activity parameter. - * @member {boolean} [isMandatory] Gets or sets a Boolean value that indicates - * true if the parameter is required. If the value is false, the 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 - * parameter. - * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that - * indicates true if the parameter can take values from the incoming pipeline - * objects. This setting is used if the cmdlet must access the complete input - * object. false indicates that the parameter cannot take values from the - * complete input object. - * @member {boolean} [valueFromPipelineByPropertyName] Gets or sets a Boolean - * value that indicates true if the parameter can be filled from a property of - * the incoming pipeline object that has the same name as this parameter. false - * indicates that the parameter cannot be filled from the incoming pipeline - * object property with the same name. - * @member {boolean} [valueFromRemainingArguments] Gets or sets a Boolean value - * that indicates true if the cmdlet parameter accepts all the 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. - */ -export interface ActivityParameter { - name?: string; - type?: string; - isMandatory?: boolean; - isDynamic?: boolean; - position?: boolean; - valueFromPipeline?: boolean; - valueFromPipelineByPropertyName?: boolean; - valueFromRemainingArguments?: boolean; -} - -/** - * @class - * Initializes a new instance of the ActivityParameterSet class. - * @constructor - * Definition of the activity parameter set. - * - * @member {string} [name] Gets or sets the name of the activity parameter set. - * @member {array} [parameters] Gets or sets the parameters of the activity - * parameter set. - */ -export interface ActivityParameterSet { - name?: string; - parameters?: ActivityParameter[]; -} - -/** - * @class - * Initializes a new instance of the ActivityOutputType class. - * @constructor - * Definition of the activity output type. - * - * @member {string} [name] Gets or sets the name of the activity output type. - * @member {string} [type] Gets or sets the type of the activity output type. - */ -export interface ActivityOutputType { - name?: string; - type?: string; -} - -/** - * @class - * Initializes a new instance of the Activity class. - * @constructor - * Definition of the activity. - * - * @member {string} [id] Gets or sets the id of the resource. - * @member {string} [name] Gets the name of the activity. - * @member {string} [definition] Gets or sets the user name of the activity. - * @member {array} [parameterSets] Gets or sets the parameter sets of the - * activity. - * @member {array} [outputTypes] Gets or sets the output types of the activity. - * @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 Activity { - id?: string; - readonly name?: string; - definition?: string; - parameterSets?: ActivityParameterSet[]; - outputTypes?: ActivityOutputType[]; - creationTime?: Date; - lastModifiedTime?: Date; + * @member {string} [description] Gets or sets the description of the + * credential. + */ +export interface CredentialCreateOrUpdateParameters { + name: string; + userName: string; + password: string; description?: string; } @@ -739,26 +641,6 @@ export interface ContentHash { value: string; } -/** - * @class - * Initializes a new instance of the ContentLink class. - * @constructor - * Definition of the content link. - * - * @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 ContentLink { - uri?: string; - contentHash?: ContentHash; - version?: string; -} - /** * @class * Initializes a new instance of the ContentSource class. @@ -783,43 +665,6 @@ export interface ContentSource { version?: string; } -/** - * @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 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} [newNodeConfigurationBuildVersionRequired] 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 }; - newNodeConfigurationBuildVersionRequired?: boolean; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; -} - /** * @class * Initializes a new instance of the JobStream class. @@ -847,64 +692,22 @@ export interface JobStream { /** * @class - * Initializes a new instance of the JobProvisioningStateProperty class. - * @constructor - * The provisioning state property. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values include: 'Failed', 'Succeeded', 'Suspended', 'Processing' - */ -export interface JobProvisioningStateProperty { - readonly provisioningState?: string; -} - -/** - * @class - * Initializes a new instance of the DscCompilationJob class. + * Initializes a new instance of the ContentLink class. * @constructor - * Definition of the Dsc Compilation job. + * Definition of the content link. * - * @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} [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 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 ContentLink { + uri?: string; + contentHash?: ContentHash; + version?: string; } /** @@ -1390,160 +1193,30 @@ export interface JobScheduleCreateParameters { * @class * Initializes a new instance of the JobSchedule class. * @constructor - * Definition of the job schedule. - * - * @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 }; -} - -/** - * @class - * Initializes a new instance of the LinkedWorkspace class. - * @constructor - * Definition of the linked workspace. - * - * @member {string} [id] Gets the id of the linked workspace. - */ -export interface LinkedWorkspace { - readonly id?: string; -} - -/** - * @class - * Initializes a new instance of the ModuleCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update module 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. - */ -export interface ModuleCreateOrUpdateParameters { - contentLink: ContentLink; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the ModuleErrorInfo class. - * @constructor - * Definition of the module error info type. - * - * @member {string} [code] Gets or sets the error code. - * @member {string} [message] Gets or sets the error message. - */ -export interface ModuleErrorInfo { - code?: string; - message?: string; -} - -/** - * @class - * Initializes a new instance of the Module class. - * @constructor - * Definition of the module 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. - */ -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; -} - -/** - * @class - * Initializes a new instance of the ModuleUpdateParameters class. - * @constructor - * The parameters supplied to the update module operation. + * Definition of the job schedule. * - * @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} [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 ModuleUpdateParameters { - contentLink?: ContentLink; - name?: string; - location?: string; - tags?: { [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 }; } /** @@ -2068,124 +1741,352 @@ export interface TestJob { /** * @class - * Initializes a new instance of the TypeField class. + * Initializes a new instance of the Variable class. + * @constructor + * Definition of the varible. + * + * @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; + description?: string; +} + +/** + * @class + * Initializes a new instance of the WebhookCreateOrUpdateParameters class. + * @constructor + * The parameters supplied to the create or update webhook operation. + * + * @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 WebhookCreateOrUpdateParameters { + name: string; + isEnabled?: boolean; + uri?: string; + expiryTime?: Date; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; + runOn?: string; +} + +/** + * @class + * Initializes a new instance of the Webhook class. + * @constructor + * Definition of the webhook type. + * + * @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 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 WebhookUpdateParameters class. + * @constructor + * The parameters supplied to the update webhook operation. + * + * @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 WebhookUpdateParameters { + name?: string; + isEnabled?: boolean; + runOn?: string; + parameters?: { [propertyName: string]: string }; + description?: string; +} + +/** + * @class + * Initializes a new instance of the LinkedWorkspace class. + * @constructor + * Definition of the linked workspace. + * + * @member {string} [id] Gets the id of the linked workspace. + */ +export interface LinkedWorkspace { + readonly id?: string; +} + +/** + * @class + * Initializes a new instance of the ActivityParameter class. + * @constructor + * 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. + * @member {boolean} [isMandatory] Gets or sets a Boolean value that indicates + * true if the parameter is required. If the value is false, the 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 + * parameter. + * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that + * indicates true if the parameter can take values from the incoming pipeline + * objects. This setting is used if the cmdlet must access the complete input + * object. false indicates that the parameter cannot take values from the + * complete input object. + * @member {boolean} [valueFromPipelineByPropertyName] Gets or sets a Boolean + * value that indicates true if the parameter can be filled from a property of + * the incoming pipeline object that has the same name as this parameter. false + * indicates that the parameter cannot be filled from the incoming pipeline + * object property with the same name. + * @member {boolean} [valueFromRemainingArguments] Gets or sets a Boolean value + * that indicates true if the cmdlet parameter accepts all the 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. + */ +export interface ActivityParameter { + name?: string; + type?: string; + isMandatory?: boolean; + isDynamic?: boolean; + position?: boolean; + valueFromPipeline?: boolean; + valueFromPipelineByPropertyName?: boolean; + valueFromRemainingArguments?: boolean; +} + +/** + * @class + * Initializes a new instance of the ActivityParameterSet class. + * @constructor + * Definition of the activity parameter set. + * + * @member {string} [name] Gets or sets the name of the activity parameter set. + * @member {array} [parameters] Gets or sets the parameters of the activity + * parameter set. + */ +export interface ActivityParameterSet { + name?: string; + parameters?: ActivityParameter[]; +} + +/** + * @class + * Initializes a new instance of the ActivityOutputType class. + * @constructor + * Definition of the activity output type. + * + * @member {string} [name] Gets or sets the name of the activity output type. + * @member {string} [type] Gets or sets the type of the activity output type. + */ +export interface ActivityOutputType { + name?: string; + type?: string; +} + +/** + * @class + * Initializes a new instance of the Activity class. + * @constructor + * Definition of the activity. + * + * @member {string} [id] Gets or sets the id of the resource. + * @member {string} [name] Gets the name of the activity. + * @member {string} [definition] Gets or sets the user name of the activity. + * @member {array} [parameterSets] Gets or sets the parameter sets of the + * activity. + * @member {array} [outputTypes] Gets or sets the output types of the activity. + * @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 Activity { + id?: string; + readonly name?: string; + definition?: string; + parameterSets?: ActivityParameterSet[]; + outputTypes?: ActivityOutputType[]; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; +} + +/** + * @class + * Initializes a new instance of the ModuleErrorInfo class. * @constructor - * Information about a field of a type. + * Definition of the module error info type. * - * @member {string} [name] Gets or sets the name of the field. - * @member {string} [type] Gets or sets the type of the field. + * @member {string} [code] Gets or sets the error code. + * @member {string} [message] Gets or sets the error message. */ -export interface TypeField { - name?: string; - type?: string; +export interface ModuleErrorInfo { + code?: string; + message?: string; } /** * @class - * Initializes a new instance of the Variable class. + * Initializes a new instance of the Module class. * @constructor - * Definition of the varible. + * Definition of the module type. * - * @member {string} [value] Gets or sets the value of the variable. - * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the - * variable. + * @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. */ -export interface Variable extends ProxyResource { - value?: string; - isEncrypted?: boolean; +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; } /** * @class - * Initializes a new instance of the WebhookCreateOrUpdateParameters class. + * Initializes a new instance of the ModuleCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the create or update webhook operation. + * The parameters supplied to the create or update module operation. * - * @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 {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 WebhookCreateOrUpdateParameters { - name: string; - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; +export interface ModuleCreateOrUpdateParameters { + contentLink: ContentLink; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the Webhook class. + * Initializes a new instance of the ModuleUpdateParameters class. * @constructor - * Definition of the webhook type. + * The parameters supplied to the update module operation. * - * @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. + * @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 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; +export interface ModuleUpdateParameters { + contentLink?: ContentLink; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the WebhookUpdateParameters class. + * Initializes a new instance of the TypeField class. * @constructor - * The parameters supplied to the update webhook operation. + * Information about a field of a type. * - * @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] Gets or sets the name of the field. + * @member {string} [type] Gets or sets the type of the field. */ -export interface WebhookUpdateParameters { +export interface TypeField { name?: string; - isEnabled?: boolean; - runOn?: string; - parameters?: { [propertyName: string]: string }; - description?: string; + type?: string; } /** @@ -2904,7 +2805,9 @@ export interface SourceControlSyncJobStreamById { * @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 provisioning state of a resource. + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' */ export interface Job extends ProxyResource { runbook?: RunbookAssociationProperty; @@ -2920,7 +2823,7 @@ export interface Job extends ProxyResource { lastModifiedTime?: Date; lastStatusModifiedTime?: Date; parameters?: { [propertyName: string]: string }; - readonly provisioningState?: string; + provisioningState?: string; } /** @@ -3008,6 +2911,90 @@ export interface DscNode extends ProxyResource { extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; } +/** + * @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} [newNodeConfigurationBuildVersionRequired] 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 }; + newNodeConfigurationBuildVersionRequired?: boolean; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + /** * @class * Initializes a new instance of the DscNodeConfiguration class. diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 5daf36142d..725a7241d3 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -19,18 +19,18 @@ 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.Resource = require('./resource'); -exports.ProxyResource = require('./proxyResource'); exports.TrackedResource = require('./trackedResource'); +exports.ProxyResource = require('./proxyResource'); 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.AutomationAccountUpdateParameters = require('./automationAccountUpdateParameters'); exports.Certificate = require('./certificate'); exports.CertificateUpdateParameters = require('./certificateUpdateParameters'); @@ -45,23 +45,15 @@ exports.ConnectionTypeCreateOrUpdateParameters = require('./connectionTypeCreate exports.Credential = require('./credential'); 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.ContentHash = require('./contentHash'); -exports.ContentLink = require('./contentLink'); exports.ContentSource = require('./contentSource'); -exports.DscConfigurationAssociationProperty = require('./dscConfigurationAssociationProperty'); -exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters'); exports.JobStream = require('./jobStream'); -exports.JobProvisioningStateProperty = require('./jobProvisioningStateProperty'); -exports.DscCompilationJob = require('./dscCompilationJob'); +exports.ContentLink = require('./contentLink'); exports.DscConfigurationParameter = require('./dscConfigurationParameter'); exports.DscConfiguration = require('./dscConfiguration'); exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters'); @@ -83,11 +75,6 @@ exports.ScheduleAssociationProperty = require('./scheduleAssociationProperty'); exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); exports.JobSchedule = require('./jobSchedule'); -exports.LinkedWorkspace = require('./linkedWorkspace'); -exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); -exports.ModuleErrorInfo = require('./moduleErrorInfo'); -exports.Module = require('./module'); -exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); exports.RunbookParameter = require('./runbookParameter'); exports.RunbookDraft = require('./runbookDraft'); exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); @@ -103,11 +90,20 @@ exports.ScheduleUpdateParameters = require('./scheduleUpdateParameters'); exports.SubResource = require('./subResource'); exports.TestJobCreateParameters = require('./testJobCreateParameters'); exports.TestJob = require('./testJob'); -exports.TypeField = require('./typeField'); exports.Variable = require('./variable'); exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); exports.Webhook = require('./webhook'); exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); +exports.LinkedWorkspace = require('./linkedWorkspace'); +exports.ActivityParameter = require('./activityParameter'); +exports.ActivityParameterSet = require('./activityParameterSet'); +exports.ActivityOutputType = require('./activityOutputType'); +exports.Activity = require('./activity'); +exports.ModuleErrorInfo = require('./moduleErrorInfo'); +exports.Module = require('./module'); +exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); +exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); +exports.TypeField = require('./typeField'); exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); exports.VariableUpdateParameters = require('./variableUpdateParameters'); exports.WindowsProperties = require('./windowsProperties'); @@ -135,6 +131,9 @@ exports.Job = require('./job'); exports.JobCollectionItem = require('./jobCollectionItem'); exports.JobCreateParameters = require('./jobCreateParameters'); exports.DscNode = require('./dscNode'); +exports.DscConfigurationAssociationProperty = require('./dscConfigurationAssociationProperty'); +exports.DscCompilationJob = require('./dscCompilationJob'); +exports.DscCompilationJobCreateParameters = require('./dscCompilationJobCreateParameters'); exports.DscNodeConfiguration = require('./dscNodeConfiguration'); exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters'); exports.Watcher = require('./watcher'); diff --git a/lib/services/automationManagement/lib/models/job.js b/lib/services/automationManagement/lib/models/job.js index c0759250d5..d3d2383b14 100644 --- a/lib/services/automationManagement/lib/models/job.js +++ b/lib/services/automationManagement/lib/models/job.js @@ -41,7 +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 {string} [provisioningState] The provisioning state of a resource. + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' */ constructor() { super(); @@ -186,7 +188,6 @@ class Job extends models['ProxyResource'] { }, provisioningState: { required: false, - readOnly: true, serializedName: 'properties.provisioningState', type: { name: 'String' From 9ab3b2b91fa55be6fa457b84f7fce04f49758d8e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 9 Jun 2018 22:23:58 +0000 Subject: [PATCH 4/8] Generated from 89887215b6739229792be24c251650fd6de3183c Corrected the runbook.json and defintions --- ...agentRegistrationRegenerateKeyParameter.js | 31 - .../lib/models/dscNodeUpdateParameters.js | 12 - .../lib/models/index.d.ts | 2377 ++++++++--------- .../automationManagement/lib/models/index.js | 82 +- .../automationManagement/lib/models/key.js | 7 +- .../lib/models/keyListResult.js | 10 +- .../lib/models/runbookDraft.js | 3 +- .../lib/models/schedule.js | 7 +- .../agentRegistrationInformation.js | 24 - .../operations/automationAccountOperations.js | 22 +- .../lib/operations/dscNodeOperations.js | 18 - .../hybridRunbookWorkerGroupOperations.js | 6 +- .../lib/operations/index.d.ts | 44 +- .../lib/operations/scheduleOperations.js | 4 +- 14 files changed, 1240 insertions(+), 1407 deletions(-) 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/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/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 769c0fdfe3..94dbab705f 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -243,15 +243,25 @@ export interface Usage { * Automation key which is used to register a DSC Node * * @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. */ export interface Key { - keyName?: string; - permissions?: string; - value?: string; + readonly keyName?: string; + readonly permissions?: string; + readonly value?: string; +} + +/** + * @class + * Initializes a new instance of the KeyListResult class. + * @constructor + * @member {array} [keys] Lists the automation keys. + */ +export interface KeyListResult { + keys?: Key[]; } /** @@ -276,6 +286,31 @@ export interface AutomationAccountUpdateParameters { tags?: { [propertyName: string]: string }; } +/** + * @class + * Initializes a new instance of the CertificateCreateOrUpdateParameters class. + * @constructor + * The parameters supplied to the create or update or replace certificate + * operation. + * + * @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 Certificate class. @@ -316,39 +351,37 @@ export interface CertificateUpdateParameters { /** * @class - * Initializes a new instance of the CertificateCreateOrUpdateParameters class. + * Initializes a new instance of the ConnectionTypeAssociationProperty class. * @constructor - * The parameters supplied to the create or update or replace certificate - * operation. + * The connection type 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 connection type. */ -export interface CertificateCreateOrUpdateParameters { - name: string; - base64Value: string; - description?: string; - thumbprint?: string; - isExportable?: boolean; +export interface ConnectionTypeAssociationProperty { + name?: string; } /** * @class - * Initializes a new instance of the ConnectionTypeAssociationProperty class. + * Initializes a new instance of the ConnectionCreateOrUpdateParameters class. * @constructor - * The connection type property associated with the entity. + * The parameters supplied to the create or update connection operation. * - * @member {string} [name] Gets or sets the name of the connection type. + * @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 ConnectionTypeAssociationProperty { - name?: string; +export interface ConnectionCreateOrUpdateParameters { + name: string; + description?: string; + connectionType: ConnectionTypeAssociationProperty; + fieldDefinitionValues?: { [propertyName: string]: string }; } /** @@ -393,29 +426,6 @@ export interface ConnectionUpdateParameters { fieldDefinitionValues?: { [propertyName: string]: string }; } -/** - * @class - * Initializes a new instance of the ConnectionCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update connection operation. - * - * @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 ConnectionCreateOrUpdateParameters { - name: string; - description?: string; - connectionType: ConnectionTypeAssociationProperty; - fieldDefinitionValues?: { [propertyName: string]: string }; -} - /** * @class * Initializes a new instance of the FieldDefinition class. @@ -481,6 +491,25 @@ export interface ConnectionTypeCreateOrUpdateParameters { fieldDefinitions: { [propertyName: string]: FieldDefinition }; } +/** + * @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 Credential class. @@ -518,114 +547,6 @@ export interface CredentialUpdateParameters { 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 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. - * @constructor - * The properties of the create Advanced Schedule. - * - * @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 AdvancedSchedule { - weekDays?: string[]; - monthDays?: number[]; - monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; -} - -/** - * @class - * Initializes a new instance of the AgentRegistrationKeys class. - * @constructor - * Definition of the agent registration keys. - * - * @member {string} [primary] Gets or sets the primary key. - * @member {string} [secondary] Gets or sets the secondary key. - */ -export interface AgentRegistrationKeys { - primary?: string; - secondary?: string; -} - -/** - * @class - * Initializes a new instance of the AgentRegistration class. - * @constructor - * Definition of the agent registration infomration 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. - */ -export interface AgentRegistration { - dscMetaConfiguration?: string; - endpoint?: string; - keys?: AgentRegistrationKeys; - id?: string; -} - -/** - * @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' - * @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 AgentRegistrationRegenerateKeyParameter { - keyName: string; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; -} - /** * @class * Initializes a new instance of the ContentHash class. @@ -667,66 +588,58 @@ export interface ContentSource { /** * @class - * Initializes a new instance of the JobStream class. + * Initializes a new instance of the DscConfigurationParameter class. * @constructor - * Definition of the job stream. + * Definition of the configuration parameter 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 {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 JobStream { - id?: string; - jobStreamId?: string; - time?: Date; - streamType?: string; - streamText?: string; - summary?: string; - value?: { [propertyName: string]: any }; -} - -/** - * @class - * Initializes a new instance of the ContentLink class. - * @constructor - * Definition of the content link. - * - * @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 ContentLink { - uri?: string; - contentHash?: ContentHash; - version?: string; +export interface DscConfigurationParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; } /** * @class - * Initializes a new instance of the DscConfigurationParameter class. + * Initializes a new instance of the DscConfigurationCreateOrUpdateParameters class. * @constructor - * Definition of the configuration parameter type. + * The parameters supplied to the create or update configuration operation. * - * @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} [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 DscConfigurationParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: string; +export interface DscConfigurationCreateOrUpdateParameters { + logVerbose?: boolean; + logProgress?: boolean; + source: ContentSource; + parameters?: { [propertyName: string]: DscConfigurationParameter }; + description?: string; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** @@ -776,7 +689,7 @@ export interface DscConfiguration extends TrackedResource { /** * @class - * Initializes a new instance of the DscConfigurationCreateOrUpdateParameters class. + * Initializes a new instance of the DscConfigurationUpdateParameters class. * @constructor * The parameters supplied to the create or update configuration operation. * @@ -797,650 +710,496 @@ export interface DscConfiguration extends TrackedResource { * @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 { +export interface DscConfigurationUpdateParameters { 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 DscConfigurationUpdateParameters class. + * Initializes a new instance of the RunAsCredentialAssociationProperty class. * @constructor - * The parameters supplied to the create or update configuration operation. + * Definition of runas credential to use for hybrid worker. * - * @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. + * @member {string} [name] Gets or sets the name of the credential. */ -export interface DscConfigurationUpdateParameters { - logVerbose?: boolean; - logProgress?: boolean; - source: ContentSource; - parameters?: { [propertyName: string]: DscConfigurationParameter }; - description?: string; +export interface RunAsCredentialAssociationProperty { name?: string; - tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the DscMetaConfiguration class. + * Initializes a new instance of the HybridRunbookWorker class. * @constructor - * Definition of the DSC Meta Configuration. + * Definition of hybrid runbook worker. * - * @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} [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 DscMetaConfiguration { - configurationModeFrequencyMins?: number; - rebootNodeIfNeeded?: boolean; - configurationMode?: string; - actionAfterReboot?: string; - certificateId?: string; - refreshFrequencyMins?: number; - allowModuleOverwrite?: boolean; +export interface HybridRunbookWorker { + name?: string; + ip?: string; + registrationTime?: Date; + lastSeenDateTime?: Date; } /** * @class - * Initializes a new instance of the DscNodeConfigurationAssociationProperty class. + * Initializes a new instance of the HybridRunbookWorkerGroup class. * @constructor - * The dsc nodeconfiguration property associated with the entity. + * Definition of hybrid runbook worker group. * - * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + * @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 DscNodeConfigurationAssociationProperty { +export interface HybridRunbookWorkerGroup { + id?: string; name?: string; + hybridRunbookWorkers?: HybridRunbookWorker[]; + credential?: RunAsCredentialAssociationProperty; + groupType?: string; } /** * @class - * Initializes a new instance of the DscNodeExtensionHandlerAssociationProperty class. + * Initializes a new instance of the HybridRunbookWorkerGroupUpdateParameters class. * @constructor - * The dsc extensionHandler property associated with the node + * Parameters supplied to the update 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 {object} [credential] Sets the credential of a worker group. + * @member {string} [credential.name] Gets or sets the name of the credential. */ -export interface DscNodeExtensionHandlerAssociationProperty { - name?: string; - version?: string; +export interface HybridRunbookWorkerGroupUpdateParameters { + credential?: RunAsCredentialAssociationProperty; } /** * @class - * Initializes a new instance of the DscNodeUpdateParametersProperties class. + * Initializes a new instance of the ScheduleAssociationProperty class. * @constructor - * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + * The schedule property associated with the entity. + * + * @member {string} [name] Gets or sets the name of the schedule. */ -export interface DscNodeUpdateParametersProperties { +export interface ScheduleAssociationProperty { name?: string; } /** * @class - * Initializes a new instance of the DscNodeUpdateParameters class. + * Initializes a new instance of the RunbookAssociationProperty class. * @constructor - * The parameters supplied to the update dsc node operation. + * The runbook property associated with the entity. * - * @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} [name] Gets or sets the name of the runbook. */ -export interface DscNodeUpdateParameters { - nodeId?: string; - nodeConfiguration?: DscNodeConfigurationAssociationProperty; - properties?: DscNodeUpdateParametersProperties; +export interface RunbookAssociationProperty { + name?: string; } /** * @class - * Initializes a new instance of the DscReportError class. + * Initializes a new instance of the JobSchedule class. * @constructor - * Definition of the dsc node report error type. + * Definition of the job schedule. * - * @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 {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 DscReportError { - errorSource?: string; - resourceId?: string; - errorCode?: string; - errorMessage?: string; - locale?: string; - errorDetails?: 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 DscReportResourceNavigation class. + * Initializes a new instance of the JobScheduleCreateParameters class. * @constructor - * Navigation for DSC Report Resource. + * The parameters supplied to the create job schedule operation. * - * @member {string} [resourceId] Gets or sets the ID of the resource to - * navigate to. + * @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 DscReportResourceNavigation { - resourceId?: string; +export interface JobScheduleCreateParameters { + schedule: ScheduleAssociationProperty; + runbook: RunbookAssociationProperty; + runOn?: string; + parameters?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the DscReportResource class. + * Initializes a new instance of the LinkedWorkspace class. * @constructor - * Definition of the DSC Report Resource. + * Definition of the linked workspace. * - * @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 {string} [id] Gets the id of the linked workspace. */ -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 LinkedWorkspace { + readonly id?: string; } /** * @class - * Initializes a new instance of the DscNodeReport class. + * Initializes a new instance of the ActivityParameter class. * @constructor - * Definition of the dsc node report type. + * Definition of the activity parameter. * - * @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} [name] Gets or sets the name of the activity parameter. + * @member {string} [type] Gets or sets the type of the activity parameter. + * @member {boolean} [isMandatory] Gets or sets a Boolean value that indicates + * true if the parameter is required. If the value is false, the 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 + * parameter. + * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that + * indicates true if the parameter can take values from the incoming pipeline + * objects. This setting is used if the cmdlet must access the complete input + * object. false indicates that the parameter cannot take values from the + * complete input object. + * @member {boolean} [valueFromPipelineByPropertyName] Gets or sets a Boolean + * value that indicates true if the parameter can be filled from a property of + * the incoming pipeline object that has the same name as this parameter. false + * indicates that the parameter cannot be filled from the incoming pipeline + * object property with the same name. + * @member {boolean} [valueFromRemainingArguments] Gets or sets a Boolean value + * that indicates true if the cmdlet parameter accepts all the 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. */ -export interface DscNodeReport { - endTime?: Date; - lastModifiedTime?: Date; - startTime?: Date; +export interface ActivityParameter { + name?: string; 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; + isMandatory?: boolean; + isDynamic?: boolean; + position?: boolean; + valueFromPipeline?: boolean; + valueFromPipelineByPropertyName?: boolean; + valueFromRemainingArguments?: boolean; } /** * @class - * Initializes a new instance of the HybridRunbookWorker class. + * Initializes a new instance of the ActivityParameterSet class. * @constructor - * Definition of hybrid runbook worker. + * Definition of the activity parameter set. * - * @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 + * @member {string} [name] Gets or sets the name of the activity parameter set. + * @member {array} [parameters] Gets or sets the parameters of the activity + * parameter set. */ -export interface HybridRunbookWorker { +export interface ActivityParameterSet { name?: string; - ip?: string; - registrationTime?: Date; - lastSeenDateTime?: Date; + parameters?: ActivityParameter[]; } /** * @class - * Initializes a new instance of the RunAsCredentialAssociationProperty class. + * Initializes a new instance of the ActivityOutputType class. * @constructor - * Definition of runas credential to use for hybrid worker. + * Definition of the activity output type. * - * @member {string} [name] Gets or sets the name of the credential. + * @member {string} [name] Gets or sets the name of the activity output type. + * @member {string} [type] Gets or sets the type of the activity output type. */ -export interface RunAsCredentialAssociationProperty { +export interface ActivityOutputType { name?: string; + type?: string; } /** * @class - * Initializes a new instance of the HybridRunbookWorkerGroup class. + * Initializes a new instance of the Activity class. * @constructor - * Definition of hybrid runbook worker group. + * Definition of the activity. * * @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' + * @member {string} [name] Gets the name of the activity. + * @member {string} [definition] Gets or sets the user name of the activity. + * @member {array} [parameterSets] Gets or sets the parameter sets of the + * activity. + * @member {array} [outputTypes] Gets or sets the output types of the activity. + * @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 HybridRunbookWorkerGroup { +export interface Activity { id?: string; - name?: string; - hybridRunbookWorkers?: HybridRunbookWorker[]; - credential?: RunAsCredentialAssociationProperty; - groupType?: string; + readonly name?: string; + definition?: string; + parameterSets?: ActivityParameterSet[]; + outputTypes?: ActivityOutputType[]; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the HybridRunbookWorkerGroupUpdateParameters class. + * Initializes a new instance of the ModuleErrorInfo class. * @constructor - * Parameters supplied to the update operation. + * Definition of the module error info type. * - * @member {object} [credential] Sets the credential of a worker group. - * @member {string} [credential.name] Gets or sets the name of the credential. + * @member {string} [code] Gets or sets the error code. + * @member {string} [message] Gets or sets the error message. */ -export interface HybridRunbookWorkerGroupUpdateParameters { - credential?: RunAsCredentialAssociationProperty; +export interface ModuleErrorInfo { + code?: string; + message?: string; } /** * @class - * Initializes a new instance of the ScheduleAssociationProperty class. + * Initializes a new instance of the ContentLink class. * @constructor - * The schedule property associated with the entity. + * Definition of the content link. * - * @member {string} [name] Gets or sets the name of the schedule. + * @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 ScheduleAssociationProperty { - name?: string; +export interface ContentLink { + uri?: string; + contentHash?: ContentHash; + version?: string; } /** * @class - * Initializes a new instance of the RunbookAssociationProperty class. + * Initializes a new instance of the Module class. * @constructor - * The runbook property associated with the entity. + * Definition of the module type. * - * @member {string} [name] Gets or sets the name of the runbook. + * @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. */ -export interface RunbookAssociationProperty { - name?: string; -} - -/** - * @class - * Initializes a new instance of the JobScheduleCreateParameters class. - * @constructor - * The parameters supplied to the create job schedule operation. - * - * @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 JobScheduleCreateParameters { - schedule: ScheduleAssociationProperty; - runbook: RunbookAssociationProperty; - runOn?: string; - parameters?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the JobSchedule class. - * @constructor - * Definition of the job schedule. - * - * @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 }; -} - -/** - * @class - * Initializes a new instance of the RunbookParameter class. - * @constructor - * Definition of the runbook parameter type. - * - * @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 RunbookParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: 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; + etag?: string; } /** * @class - * Initializes a new instance of the RunbookDraft class. + * Initializes a new instance of the ModuleCreateOrUpdateParameters class. * @constructor - * Definition of the runbook type. + * The parameters supplied to the create or update module 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 + * @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} [draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draftContentLink.contentHash.algorithm] Gets or sets the + * @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} [draftContentLink.contentHash.value] Gets or sets expected - * hash value of the content. - * @member {string} [draftContentLink.version] Gets or sets the version of the + * @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 {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 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 RunbookDraft { - inEdit?: boolean; - draftContentLink?: ContentLink; - creationTime?: Date; - lastModifiedTime?: Date; - parameters?: { [propertyName: string]: RunbookParameter }; - outputTypes?: string[]; +export interface ModuleCreateOrUpdateParameters { + contentLink: ContentLink; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the RunbookDraftUndoEditResult class. + * Initializes a new instance of the ModuleUpdateParameters class. * @constructor - * The response model for the undoedit runbook operation. + * The parameters supplied to the update module 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 {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 RunbookDraftUndoEditResult { - statusCode?: string; - requestId?: string; +export interface ModuleUpdateParameters { + contentLink?: ContentLink; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateParameters class. + * Initializes a new instance of the TypeField class. * @constructor - * The parameters supplied to the create or update runbook 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 {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} [name] Gets or sets the name of the field. + * @member {string} [type] Gets or sets the type of the field. */ -export interface RunbookCreateOrUpdateParameters { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft?: RunbookDraft; - publishContentLink?: ContentLink; - description?: string; - logActivityTrace?: number; +export interface TypeField { name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + type?: string; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. + * Initializes a new instance of the JobStream class. * @constructor - * The parameters supplied to the create or update dratft runbook properties. + * Definition of the job stream. * - * @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. + * @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 RunbookCreateOrUpdateDraftProperties { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft: RunbookDraft; - description?: string; - logActivityTrace?: number; +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 RunbookCreateOrUpdateDraftParameters class. + * Initializes a new instance of the RunbookParameter class. * @constructor - * The parameters supplied to the create or update runbook operation. + * Definition of the runbook parameter type. * - * @member {string} runbookContent Content of the Runbook. + * @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 RunbookCreateOrUpdateDraftParameters { - runbookContent: string; +export interface RunbookParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; } /** * @class - * Initializes a new instance of the RunbookUpdateParameters class. + * Initializes a new instance of the RunbookDraft 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. + * @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. */ -export interface RunbookUpdateParameters { - description?: string; - logVerbose?: boolean; - logProgress?: boolean; - logActivityTrace?: number; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; +export interface RunbookDraft { + inEdit?: boolean; + draftContentLink?: ContentLink; + creationTime?: Date; + lastModifiedTime?: Date; + parameters?: { [propertyName: string]: RunbookParameter }; + outputTypes?: string[]; } /** @@ -1522,168 +1281,116 @@ export interface Runbook extends TrackedResource { /** * @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. - */ -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 ScheduleProperties class. + * Initializes a new instance of the RunbookCreateOrUpdateParameters class. * @constructor - * Definition of schedule parameters. + * The parameters supplied to the create or update runbook operation. * - * @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 {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 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; +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 }; } /** * @class - * Initializes a new instance of the Schedule class. + * Initializes a new instance of the RunbookUpdateParameters class. * @constructor - * Definition of the schedule. + * The parameters supplied to the update runbook operation. * - * @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. - * @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} [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 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; +export interface RunbookUpdateParameters { 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 { + logVerbose?: boolean; + logProgress?: boolean; + logActivityTrace?: number; name?: string; - description?: string; - isEnabled?: boolean; + location?: string; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the SubResource class. + * Initializes a new instance of the RunbookDraftUndoEditResult class. * @constructor - * The Sub Resource definition. + * The response model for the undoedit runbook operation. * - * @member {string} [id] Resource Id + * @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 SubResource extends BaseResource { - id?: string; +export interface RunbookDraftUndoEditResult { + statusCode?: string; + requestId?: string; } /** @@ -1741,217 +1448,222 @@ export interface TestJob { /** * @class - * Initializes a new instance of the Variable class. - * @constructor - * Definition of the varible. - * - * @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; - description?: string; -} - -/** - * @class - * Initializes a new instance of the WebhookCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update webhook operation. - * - * @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 WebhookCreateOrUpdateParameters { - name: string; - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; -} - -/** - * @class - * Initializes a new instance of the Webhook class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. * @constructor - * Definition of the webhook type. + * The parameters supplied to the create or update dratft runbook properties. * - * @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. + * @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 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; +export interface RunbookCreateOrUpdateDraftProperties { + logVerbose?: boolean; + logProgress?: boolean; + runbookType: string; + draft: RunbookDraft; description?: string; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the WebhookUpdateParameters class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. * @constructor - * The parameters supplied to the update webhook operation. + * The parameters supplied to the create or update runbook operation. * - * @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} runbookContent Content of the Runbook. */ -export interface WebhookUpdateParameters { - name?: string; - isEnabled?: boolean; - runOn?: string; - parameters?: { [propertyName: string]: string }; - description?: string; +export interface RunbookCreateOrUpdateDraftParameters { + runbookContent: string; } /** * @class - * Initializes a new instance of the LinkedWorkspace class. + * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. * @constructor - * Definition of the linked workspace. + * The properties of the create advanced schedule monthly occurrence. * - * @member {string} [id] Gets the id of the linked workspace. + * @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 LinkedWorkspace { - readonly id?: string; +export interface AdvancedScheduleMonthlyOccurrence { + occurrence?: number; + day?: string; } /** * @class - * Initializes a new instance of the ActivityParameter class. + * Initializes a new instance of the AdvancedSchedule class. * @constructor - * Definition of the activity parameter. + * The properties of the create Advanced Schedule. * - * @member {string} [name] Gets or sets the name of the activity parameter. - * @member {string} [type] Gets or sets the type of the activity parameter. - * @member {boolean} [isMandatory] Gets or sets a Boolean value that indicates - * true if the parameter is required. If the value is false, the 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 - * parameter. - * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that - * indicates true if the parameter can take values from the incoming pipeline - * objects. This setting is used if the cmdlet must access the complete input - * object. false indicates that the parameter cannot take values from the - * complete input object. - * @member {boolean} [valueFromPipelineByPropertyName] Gets or sets a Boolean - * value that indicates true if the parameter can be filled from a property of - * the incoming pipeline object that has the same name as this parameter. false - * indicates that the parameter cannot be filled from the incoming pipeline - * object property with the same name. - * @member {boolean} [valueFromRemainingArguments] Gets or sets a Boolean value - * that indicates true if the cmdlet parameter accepts all the 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 {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 ActivityParameter { - name?: string; - type?: string; - isMandatory?: boolean; - isDynamic?: boolean; - position?: boolean; - valueFromPipeline?: boolean; - valueFromPipelineByPropertyName?: boolean; - valueFromRemainingArguments?: boolean; +export interface AdvancedSchedule { + weekDays?: string[]; + monthDays?: number[]; + monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; } /** * @class - * Initializes a new instance of the ActivityParameterSet class. + * Initializes a new instance of the ScheduleCreateOrUpdateParameters class. * @constructor - * Definition of the activity parameter set. + * The parameters supplied to the create or update schedule operation. * - * @member {string} [name] Gets or sets the name of the activity parameter set. - * @member {array} [parameters] Gets or sets the parameters of the activity - * parameter set. + * @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 ActivityParameterSet { - name?: string; - parameters?: ActivityParameter[]; +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 ActivityOutputType class. + * Initializes a new instance of the ScheduleProperties class. * @constructor - * Definition of the activity output type. + * Definition of schedule parameters. * - * @member {string} [name] Gets or sets the name of the activity output type. - * @member {string} [type] Gets or sets the type of the activity output 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 ActivityOutputType { - name?: string; - type?: string; +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; } /** * @class - * Initializes a new instance of the Activity class. + * Initializes a new instance of the Schedule class. * @constructor - * Definition of the activity. + * Definition of the schedule. * - * @member {string} [id] Gets or sets the id of the resource. - * @member {string} [name] Gets the name of the activity. - * @member {string} [definition] Gets or sets the user name of the activity. - * @member {array} [parameterSets] Gets or sets the parameter sets of the - * activity. - * @member {array} [outputTypes] Gets or sets the output types of the activity. + * @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 Activity { - id?: string; - readonly name?: string; - definition?: string; - parameterSets?: ActivityParameterSet[]; - outputTypes?: ActivityOutputType[]; +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; @@ -1959,169 +1671,162 @@ export interface Activity { /** * @class - * Initializes a new instance of the ModuleErrorInfo class. + * Initializes a new instance of the ScheduleUpdateParameters class. * @constructor - * Definition of the module error info type. + * The parameters supplied to the update schedule 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 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 ModuleErrorInfo { - code?: string; - message?: string; +export interface ScheduleUpdateParameters { + name?: string; + description?: string; + isEnabled?: boolean; } /** * @class - * Initializes a new instance of the Module class. + * Initializes a new instance of the VariableCreateOrUpdateParameters class. * @constructor - * Definition of the module type. + * The parameters supplied to the create or update variable operation. * - * @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} 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 Module extends TrackedResource { - isGlobal?: boolean; - version?: string; - sizeInBytes?: number; - activityCount?: number; - provisioningState?: string; - contentLink?: ContentLink; - error?: ModuleErrorInfo; - creationTime?: Date; - lastModifiedTime?: Date; +export interface VariableCreateOrUpdateParameters { + name: string; + value?: string; description?: string; - etag?: string; + isEncrypted?: boolean; } /** * @class - * Initializes a new instance of the ModuleCreateOrUpdateParameters class. + * Initializes a new instance of the Variable class. * @constructor - * The parameters supplied to the create or update module operation. + * Definition of the varible. * - * @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} [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 ModuleCreateOrUpdateParameters { - contentLink: ContentLink; - name?: string; - location?: string; - tags?: { [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 ModuleUpdateParameters class. + * Initializes a new instance of the VariableUpdateParameters class. * @constructor - * The parameters supplied to the update module operation. + * The parameters supplied to the update variable 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 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 ModuleUpdateParameters { - contentLink?: ContentLink; +export interface VariableUpdateParameters { name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + value?: string; + description?: string; } /** * @class - * Initializes a new instance of the TypeField class. + * Initializes a new instance of the Webhook class. * @constructor - * Information about a field of a type. + * Definition of the webhook type. * - * @member {string} [name] Gets or sets the name of the field. - * @member {string} [type] Gets or sets the type of the field. + * @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 TypeField { - name?: string; - type?: string; +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 VariableCreateOrUpdateParameters class. + * Initializes a new instance of the WebhookUpdateParameters class. * @constructor - * The parameters supplied to the create or update variable operation. + * The parameters supplied to the update webhook operation. * - * @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 {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 VariableCreateOrUpdateParameters { - name: string; - value?: string; +export interface WebhookUpdateParameters { + name?: string; + isEnabled?: boolean; + runOn?: string; + parameters?: { [propertyName: string]: string }; description?: string; - isEncrypted?: boolean; } /** * @class - * Initializes a new instance of the VariableUpdateParameters class. + * Initializes a new instance of the WebhookCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the update variable operation. + * The parameters supplied to the create or update webhook operation. * - * @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 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 VariableUpdateParameters { - name?: string; - value?: string; - description?: string; +export interface WebhookCreateOrUpdateParameters { + name: string; + isEnabled?: boolean; + uri?: string; + expiryTime?: Date; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; + runOn?: string; } /** @@ -2746,135 +2451,358 @@ export interface SourceControlSyncJobById { * @member {string} [streamType] Gets the type of the sync job stream. Possible * values include: 'Error', 'Output' */ -export interface SourceControlSyncJobStream { - readonly id?: string; - syncJobStreamId?: string; - summary?: string; - readonly time?: Date; - streamType?: string; +export interface SourceControlSyncJobStream { + readonly id?: string; + syncJobStreamId?: string; + summary?: string; + readonly time?: Date; + streamType?: string; +} + +/** + * @class + * Initializes a new instance of the SourceControlSyncJobStreamById class. + * @constructor + * Definition of the source control sync job stream by id. + * + * @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; + syncJobStreamId?: string; + summary?: string; + readonly time?: Date; + streamType?: string; + streamText?: string; + value?: string; +} + +/** + * @class + * Initializes a new instance of the Job class. + * @constructor + * Definition 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} [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 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 JobCollectionItem class. + * @constructor + * Job collection item 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 {string} [provisioningState] The provisioning state of a resource. + * @member {string} [runOn] Specifies the runOn group name where the job was + * executed. + */ +export interface JobCollectionItem extends ProxyResource { + readonly runbook?: RunbookAssociationProperty; + readonly jobId?: string; + readonly creationTime?: Date; + readonly status?: string; + readonly startTime?: Date; + readonly endTime?: Date; + readonly lastModifiedTime?: Date; + readonly provisioningState?: string; + runOn?: string; +} + +/** + * @class + * Initializes a new instance of the JobCreateParameters class. + * @constructor + * The parameters supplied to the create job operation. + * + * @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 JobCreateParameters { + runbook?: RunbookAssociationProperty; + parameters?: { [propertyName: string]: string }; + runOn?: string; +} + +/** + * @class + * Initializes a new instance of the DscReportError class. + * @constructor + * Definition of the dsc node report error type. + * + * @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 DscReportError { + errorSource?: string; + resourceId?: string; + errorCode?: string; + errorMessage?: string; + locale?: string; + errorDetails?: string; +} + +/** + * @class + * Initializes a new instance of the DscReportResourceNavigation class. + * @constructor + * Navigation for DSC Report Resource. + * + * @member {string} [resourceId] Gets or sets the ID of the resource to + * navigate to. + */ +export interface DscReportResourceNavigation { + resourceId?: string; +} + +/** + * @class + * Initializes a new instance of the DscReportResource class. + * @constructor + * Definition of the DSC Report Resource. + * + * @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 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 SourceControlSyncJobStreamById class. + * Initializes a new instance of the DscNodeReport class. * @constructor - * Definition of the source control sync job stream by id. + * Definition of the dsc node report type. * - * @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. + * @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 SourceControlSyncJobStreamById { - readonly id?: string; - syncJobStreamId?: string; - summary?: string; - readonly time?: Date; - streamType?: string; - streamText?: string; - value?: string; +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 Job class. + * Initializes a new instance of the AgentRegistrationKeys class. * @constructor - * Definition of the job. + * Definition of the agent registration keys. * - * @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' + * @member {string} [primary] Gets or sets the primary key. + * @member {string} [secondary] Gets or sets the secondary key. */ -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; +export interface AgentRegistrationKeys { + primary?: string; + secondary?: string; } /** * @class - * Initializes a new instance of the JobCollectionItem class. + * Initializes a new instance of the AgentRegistration class. * @constructor - * Job collection item properties. + * Definition of the agent registration infomration type. * - * @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. + * @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 JobCollectionItem extends ProxyResource { - readonly runbook?: RunbookAssociationProperty; - readonly jobId?: string; - readonly creationTime?: Date; - readonly status?: string; - readonly startTime?: Date; - readonly endTime?: Date; - readonly lastModifiedTime?: Date; - readonly provisioningState?: string; - runOn?: string; +export interface AgentRegistration { + dscMetaConfiguration?: string; + endpoint?: string; + keys?: AgentRegistrationKeys; + id?: string; } /** * @class - * Initializes a new instance of the JobCreateParameters class. + * Initializes a new instance of the DscNodeExtensionHandlerAssociationProperty class. * @constructor - * The parameters supplied to the create job operation. + * The dsc extensionHandler property associated with the node * - * @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 {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 JobCreateParameters { - runbook?: RunbookAssociationProperty; - parameters?: { [propertyName: string]: string }; - runOn?: string; +export interface DscNodeExtensionHandlerAssociationProperty { + name?: string; + version?: string; } /** @@ -2911,6 +2839,45 @@ export interface DscNode extends ProxyResource { 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. @@ -3146,14 +3113,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. diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 725a7241d3..d5aa5017e5 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -31,81 +31,69 @@ 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.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters'); exports.Certificate = require('./certificate'); exports.CertificateUpdateParameters = require('./certificateUpdateParameters'); -exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters'); exports.ConnectionTypeAssociationProperty = require('./connectionTypeAssociationProperty'); +exports.ConnectionCreateOrUpdateParameters = require('./connectionCreateOrUpdateParameters'); exports.Connection = require('./connection'); exports.ConnectionUpdateParameters = require('./connectionUpdateParameters'); -exports.ConnectionCreateOrUpdateParameters = require('./connectionCreateOrUpdateParameters'); exports.FieldDefinition = require('./fieldDefinition'); exports.ConnectionType = require('./connectionType'); exports.ConnectionTypeCreateOrUpdateParameters = require('./connectionTypeCreateOrUpdateParameters'); +exports.CredentialCreateOrUpdateParameters = require('./credentialCreateOrUpdateParameters'); exports.Credential = require('./credential'); exports.CredentialUpdateParameters = require('./credentialUpdateParameters'); -exports.CredentialCreateOrUpdateParameters = require('./credentialCreateOrUpdateParameters'); -exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); -exports.AdvancedSchedule = require('./advancedSchedule'); -exports.AgentRegistrationKeys = require('./agentRegistrationKeys'); -exports.AgentRegistration = require('./agentRegistration'); -exports.AgentRegistrationRegenerateKeyParameter = require('./agentRegistrationRegenerateKeyParameter'); exports.ContentHash = require('./contentHash'); exports.ContentSource = require('./contentSource'); -exports.JobStream = require('./jobStream'); -exports.ContentLink = require('./contentLink'); exports.DscConfigurationParameter = require('./dscConfigurationParameter'); -exports.DscConfiguration = require('./dscConfiguration'); exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters'); +exports.DscConfiguration = require('./dscConfiguration'); exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters'); -exports.DscMetaConfiguration = require('./dscMetaConfiguration'); -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.ScheduleAssociationProperty = require('./scheduleAssociationProperty'); exports.RunbookAssociationProperty = require('./runbookAssociationProperty'); -exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); exports.JobSchedule = require('./jobSchedule'); -exports.RunbookParameter = require('./runbookParameter'); -exports.RunbookDraft = require('./runbookDraft'); -exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); -exports.RunbookCreateOrUpdateParameters = require('./runbookCreateOrUpdateParameters'); -exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties'); -exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters'); -exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); -exports.Runbook = require('./runbook'); -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.Variable = require('./variable'); -exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); -exports.Webhook = require('./webhook'); -exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); +exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters'); exports.LinkedWorkspace = require('./linkedWorkspace'); 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.TypeField = require('./typeField'); +exports.JobStream = require('./jobStream'); +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.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); +exports.AdvancedSchedule = require('./advancedSchedule'); +exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters'); +exports.ScheduleProperties = require('./scheduleProperties'); +exports.Schedule = require('./schedule'); +exports.ScheduleUpdateParameters = require('./scheduleUpdateParameters'); exports.VariableCreateOrUpdateParameters = require('./variableCreateOrUpdateParameters'); +exports.Variable = require('./variable'); exports.VariableUpdateParameters = require('./variableUpdateParameters'); +exports.Webhook = require('./webhook'); +exports.WebhookUpdateParameters = require('./webhookUpdateParameters'); +exports.WebhookCreateOrUpdateParameters = require('./webhookCreateOrUpdateParameters'); exports.WindowsProperties = require('./windowsProperties'); exports.LinuxProperties = require('./linuxProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); @@ -130,7 +118,18 @@ exports.SourceControlSyncJobStreamById = require('./sourceControlSyncJobStreamBy 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'); @@ -142,7 +141,6 @@ 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'); diff --git a/lib/services/automationManagement/lib/models/key.js b/lib/services/automationManagement/lib/models/key.js index 95e57f9318..c944c7ca56 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,6 +43,7 @@ class Key { modelProperties: { keyName: { required: false, + readOnly: true, serializedName: 'keyName', type: { name: 'String' @@ -50,6 +51,7 @@ class Key { }, permissions: { required: false, + readOnly: true, serializedName: 'permissions', type: { name: 'String' @@ -57,6 +59,7 @@ class Key { }, value: { required: false, + 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/runbookDraft.js b/lib/services/automationManagement/lib/models/runbookDraft.js index 06c864d39d..66c9744325 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 { /** diff --git a/lib/services/automationManagement/lib/models/schedule.js b/lib/services/automationManagement/lib/models/schedule.js index 37dbafbc93..3bca6b1bf9 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(); } /** 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 d1c05fc628..2cefe84c58 100644 --- a/lib/services/automationManagement/lib/operations/automationAccountOperations.js +++ b/lib/services/automationManagement/lib/operations/automationAccountOperations.js @@ -724,8 +724,6 @@ function _get(resourceGroupName, automationAccountName, options, callback) { * * @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 @@ -745,7 +743,7 @@ function _get(resourceGroupName, automationAccountName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroup(resourceGroupName, automationAccountName, options, callback) { +function _listByResourceGroup(resourceGroupName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -775,9 +773,6 @@ function _listByResourceGroup(resourceGroupName, automationAccountName, options, 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.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.'); } @@ -792,7 +787,6 @@ function _listByResourceGroup(resourceGroupName, automationAccountName, options, let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -1719,8 +1713,6 @@ class AutomationAccountOperations { * * @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 @@ -1732,11 +1724,11 @@ class AutomationAccountOperations { * * @reject {Error} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName, automationAccountName, options) { + listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1751,8 +1743,6 @@ class AutomationAccountOperations { * * @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 @@ -1781,7 +1771,7 @@ class AutomationAccountOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName, automationAccountName, options, optionalCallback) { + listByResourceGroup(resourceGroupName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1790,14 +1780,14 @@ class AutomationAccountOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByResourceGroup(resourceGroupName, automationAccountName, options, optionalCallback); + return self._listByResourceGroup(resourceGroupName, options, optionalCallback); } } diff --git a/lib/services/automationManagement/lib/operations/dscNodeOperations.js b/lib/services/automationManagement/lib/operations/dscNodeOperations.js index 3b28a08e33..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 @@ -1072,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 @@ -1123,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 diff --git a/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js b/lib/services/automationManagement/lib/operations/hybridRunbookWorkerGroupOperations.js index f3e7f017b6..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 @@ -835,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 @@ -870,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 diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index df624b4d24..c825d3d86f 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -341,8 +341,6 @@ export interface AutomationAccountOperations { * * @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 @@ -354,15 +352,13 @@ export interface AutomationAccountOperations { * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of accounts within a given resource group. * * @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 @@ -391,9 +387,9 @@ export interface AutomationAccountOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3116,7 +3112,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 @@ -3139,7 +3135,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 @@ -10555,14 +10551,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 @@ -10589,14 +10577,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 @@ -10779,12 +10759,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 @@ -10818,12 +10792,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 diff --git a/lib/services/automationManagement/lib/operations/scheduleOperations.js b/lib/services/automationManagement/lib/operations/scheduleOperations.js index 94f0d36eb9..0e33d7fe51 100644 --- a/lib/services/automationManagement/lib/operations/scheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/scheduleOperations.js @@ -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 !== 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); From 642b403deb0d0e5aedb81671444d2ef87f78b50d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 13 Jun 2018 04:21:54 +0000 Subject: [PATCH 5/8] Generated from 9bf9ed3e7e02fbb463989457583d3ea80a4ee4b4 Fixing based on review comments --- .../lib/models/activityParameter.js | 4 ++-- .../dscCompilationJobCreateParameters.js | 8 +++---- ...deConfigurationCreateOrUpdateParameters.js | 2 +- .../lib/models/index.d.ts | 10 ++++---- .../operations/dscCompilationJobOperations.js | 24 +++++++++---------- .../lib/operations/index.d.ts | 16 ++++++------- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/services/automationManagement/lib/models/activityParameter.js b/lib/services/automationManagement/lib/models/activityParameter.js index 9938816f29..f11092053b 100644 --- a/lib/services/automationManagement/lib/models/activityParameter.js +++ b/lib/services/automationManagement/lib/models/activityParameter.js @@ -24,7 +24,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 @@ -91,7 +91,7 @@ class ActivityParameter { required: false, serializedName: 'position', type: { - name: 'Boolean' + name: 'Number' } }, valueFromPipeline: { diff --git a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js index 364f2c99a6..06456c26a8 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/dscNodeConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js index 385da63714..7de927a808 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js @@ -74,7 +74,7 @@ class DscNodeConfigurationCreateOrUpdateParameters { }, incrementNodeConfigurationBuild: { required: false, - serializedName: 'properties.incrementNodeConfigurationBuild', + serializedName: 'properties.IncrementNodeConfigurationBuild', type: { name: 'Boolean' } diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 94dbab705f..a239fae56d 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -889,7 +889,7 @@ export interface LinkedWorkspace { * 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 @@ -912,7 +912,7 @@ export interface ActivityParameter { type?: string; isMandatory?: boolean; isDynamic?: boolean; - position?: boolean; + position?: number; valueFromPipeline?: boolean; valueFromPipelineByPropertyName?: boolean; valueFromRemainingArguments?: boolean; @@ -2947,8 +2947,8 @@ export interface DscCompilationJob extends ProxyResource { * @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. @@ -2956,7 +2956,7 @@ export interface DscCompilationJob extends ProxyResource { export interface DscCompilationJobCreateParameters { configuration: DscConfigurationAssociationProperty; parameters?: { [propertyName: string]: string }; - newNodeConfigurationBuildVersionRequired?: boolean; + incrementNodeConfigurationBuild?: boolean; name?: string; location?: string; tags?: { [propertyName: string]: string }; 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/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index c825d3d86f..397df4f3d8 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -11258,8 +11258,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. * @@ -11302,8 +11302,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. * @@ -11559,8 +11559,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. * @@ -11603,8 +11603,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. * From 54c6d4263e2b4429270c6fa6416221c238b419dd Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 14 Jun 2018 06:43:33 +0000 Subject: [PATCH 6/8] Generated from ae1e983f0a475a8ab7bce85f336e66e56535937f Fixed based on review comments. --- .../lib/models/dscCompilationJobCreateParameters.js | 2 +- .../models/dscNodeConfigurationCreateOrUpdateParameters.js | 2 +- lib/services/automationManagement/lib/models/key.js | 6 +++--- .../operations/softwareUpdateConfigurationMachineRuns.js | 4 ++-- .../lib/operations/softwareUpdateConfigurationRuns.js | 4 ++-- .../lib/operations/softwareUpdateConfigurations.js | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js index 06456c26a8..7a0bc57812 100644 --- a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js @@ -70,7 +70,7 @@ class DscCompilationJobCreateParameters { }, incrementNodeConfigurationBuild: { required: false, - serializedName: 'properties.IncrementNodeConfigurationBuild', + serializedName: 'properties.incrementNodeConfigurationBuild', type: { name: 'Boolean' } diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js index 7de927a808..385da63714 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js @@ -74,7 +74,7 @@ class DscNodeConfigurationCreateOrUpdateParameters { }, incrementNodeConfigurationBuild: { required: false, - serializedName: 'properties.IncrementNodeConfigurationBuild', + serializedName: 'properties.incrementNodeConfigurationBuild', type: { name: 'Boolean' } diff --git a/lib/services/automationManagement/lib/models/key.js b/lib/services/automationManagement/lib/models/key.js index c944c7ca56..81d97e79ac 100644 --- a/lib/services/automationManagement/lib/models/key.js +++ b/lib/services/automationManagement/lib/models/key.js @@ -44,7 +44,7 @@ class Key { keyName: { required: false, readOnly: true, - serializedName: 'keyName', + serializedName: 'KeyName', type: { name: 'String' } @@ -52,7 +52,7 @@ class Key { permissions: { required: false, readOnly: true, - serializedName: 'permissions', + serializedName: 'Permissions', type: { name: 'String' } @@ -60,7 +60,7 @@ class Key { value: { required: false, readOnly: true, - serializedName: 'value', + serializedName: 'Value', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationMachineRuns.js index 8cc0d121b6..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); @@ -340,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); diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js index e4a7cf8515..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); @@ -339,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); diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index fced67c954..f22d9985d7 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -466,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); @@ -801,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); From eb13b1f5a025d66a85969c755c89c9cfe18b6860 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 19 Jun 2018 00:06:06 +0000 Subject: [PATCH 7/8] Generated from 869cdb8deaa5e55a990ac3895058d76ba77444f0 Fixing SUC examples and Schedule definition errors --- .../automationManagement/lib/models/index.d.ts | 10 +++++----- .../automationManagement/lib/models/jobSchedule.js | 2 +- .../lib/models/jobScheduleCreateParameters.js | 2 +- .../lib/models/scheduleAssociationProperty.js | 2 +- .../lib/models/scheduleCreateOrUpdateParameters.js | 2 +- .../lib/models/scheduleUpdateParameters.js | 2 +- .../automationManagement/lib/operations/index.d.ts | 12 ++++++------ .../lib/operations/jobScheduleOperations.js | 6 +++--- .../lib/operations/scheduleOperations.js | 14 +++++++------- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index a239fae56d..e46718cf48 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -795,7 +795,7 @@ export interface HybridRunbookWorkerGroupUpdateParameters { * @constructor * The schedule property associated with the entity. * - * @member {string} [name] Gets or sets the name of the schedule. + * @member {string} [name] Gets or sets the name of the Schedule. */ export interface ScheduleAssociationProperty { name?: string; @@ -824,7 +824,7 @@ export interface RunbookAssociationProperty { * @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 @@ -850,7 +850,7 @@ export interface JobSchedule { * The parameters supplied to the create job schedule operation. * * @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 @@ -1544,7 +1544,7 @@ export interface AdvancedSchedule { * @constructor * The parameters supplied to the create or update schedule operation. * - * @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. * @member {date} [expiryTime] Gets or sets the end time of the schedule. @@ -1675,7 +1675,7 @@ export interface Schedule extends ProxyResource { * @constructor * The parameters supplied to the update schedule operation. * - * @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 * schedule is enabled. 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/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..dc6652e40b 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. 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/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 397df4f3d8..f1590b69f3 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -3590,7 +3590,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. * @@ -3631,7 +3631,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. * @@ -6387,7 +6387,7 @@ export interface ScheduleOperations { * @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. @@ -6444,7 +6444,7 @@ export interface ScheduleOperations { * @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. @@ -6520,7 +6520,7 @@ export interface ScheduleOperations { * @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. @@ -6553,7 +6553,7 @@ export interface ScheduleOperations { * @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. diff --git a/lib/services/automationManagement/lib/operations/jobScheduleOperations.js b/lib/services/automationManagement/lib/operations/jobScheduleOperations.js index 56660cca5b..1dc6f0ee2a 100644 --- a/lib/services/automationManagement/lib/operations/jobScheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/jobScheduleOperations.js @@ -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. * @@ -1028,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. * @@ -1081,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. * diff --git a/lib/services/automationManagement/lib/operations/scheduleOperations.js b/lib/services/automationManagement/lib/operations/scheduleOperations.js index 0e33d7fe51..1a1af0bfae 100644 --- a/lib/services/automationManagement/lib/operations/scheduleOperations.js +++ b/lib/services/automationManagement/lib/operations/scheduleOperations.js @@ -26,7 +26,7 @@ const WebResource = msRest.WebResource; * @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. @@ -242,7 +242,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, scheduleName, * @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. @@ -698,7 +698,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); @@ -1046,7 +1046,7 @@ class ScheduleOperations { * @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. @@ -1115,7 +1115,7 @@ class ScheduleOperations { * @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. @@ -1206,7 +1206,7 @@ class ScheduleOperations { * @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. @@ -1251,7 +1251,7 @@ class ScheduleOperations { * @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. From ffd41558ec3056875ceb071fed1b45e742922bd7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 19 Jun 2018 01:19:29 +0000 Subject: [PATCH 8/8] Generated from 5bf6dcbb1c9c8054d1aa9db6bb884332944c8924 Adding a suppression for the LongRunningResponseStatusCode --- .../lib/operations/index.d.ts | 28 ++++----- .../lib/operations/runbookDraftOperations.js | 61 +++---------------- 2 files changed, 23 insertions(+), 66 deletions(-) diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index f1590b69f3..fb2ceeb3b3 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -4976,11 +4976,11 @@ 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. @@ -5004,7 +5004,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. * @@ -5012,15 +5012,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; /** @@ -5170,11 +5170,11 @@ 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. @@ -5198,7 +5198,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. * @@ -5206,15 +5206,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; } /** diff --git a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js index c58f292e14..182c2feead 100644 --- a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js @@ -455,7 +455,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 +493,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); }); @@ -899,7 +879,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 +971,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 +1000,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); }); @@ -1354,7 +1311,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. */ @@ -1394,7 +1351,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 +1359,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. * @@ -1629,7 +1586,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. */ @@ -1669,7 +1626,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 +1634,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. *