diff --git a/lib/services/automationManagement/lib/automationClient.d.ts b/lib/services/automationManagement/lib/automationClient.d.ts index 3265f771ee..f1445c2d26 100644 --- a/lib/services/automationManagement/lib/automationClient.d.ts +++ b/lib/services/automationManagement/lib/automationClient.d.ts @@ -75,10 +75,6 @@ export default class AutomationClient extends AzureServiceClient { moduleOperations: operations.ModuleOperations; objectDataTypes: operations.ObjectDataTypes; fields: operations.Fields; - runbookDraftOperations: operations.RunbookDraftOperations; - runbookOperations: operations.RunbookOperations; - testJobStreams: operations.TestJobStreams; - testJobOperations: operations.TestJobOperations; scheduleOperations: operations.ScheduleOperations; variableOperations: operations.VariableOperations; webhookOperations: operations.WebhookOperations; @@ -98,6 +94,11 @@ export default class AutomationClient extends AzureServiceClient { dscCompilationJobStream: operations.DscCompilationJobStream; dscNodeConfigurationOperations: operations.DscNodeConfigurationOperations; nodeCountInformation: operations.NodeCountInformation; + runbookDraftOperations: operations.RunbookDraftOperations; + runbookOperations: operations.RunbookOperations; + testJobStreams: operations.TestJobStreams; + testJobOperations: operations.TestJobOperations; + python2Package: operations.Python2Package; } export { AutomationClient, models as AutomationModels }; diff --git a/lib/services/automationManagement/lib/automationClient.js b/lib/services/automationManagement/lib/automationClient.js index 153d9356d3..4a95bb39e9 100644 --- a/lib/services/automationManagement/lib/automationClient.js +++ b/lib/services/automationManagement/lib/automationClient.js @@ -93,10 +93,6 @@ class AutomationClient extends ServiceClient { this.moduleOperations = new operations.ModuleOperations(this); this.objectDataTypes = new operations.ObjectDataTypes(this); this.fields = new operations.Fields(this); - this.runbookDraftOperations = new operations.RunbookDraftOperations(this); - this.runbookOperations = new operations.RunbookOperations(this); - this.testJobStreams = new operations.TestJobStreams(this); - this.testJobOperations = new operations.TestJobOperations(this); this.scheduleOperations = new operations.ScheduleOperations(this); this.variableOperations = new operations.VariableOperations(this); this.webhookOperations = new operations.WebhookOperations(this); @@ -116,6 +112,11 @@ class AutomationClient extends ServiceClient { this.dscCompilationJobStream = new operations.DscCompilationJobStream(this); this.dscNodeConfigurationOperations = new operations.DscNodeConfigurationOperations(this); this.nodeCountInformation = new operations.NodeCountInformation(this); + this.runbookDraftOperations = new operations.RunbookDraftOperations(this); + this.runbookOperations = new operations.RunbookOperations(this); + this.testJobStreams = new operations.TestJobStreams(this); + this.testJobOperations = new operations.TestJobOperations(this); + this.python2Package = new operations.Python2Package(this); this.models = models; msRest.addSerializationMixin(this); } diff --git a/lib/services/automationManagement/lib/models/activity.js b/lib/services/automationManagement/lib/models/activity.js index 22d085cead..8f98103eb6 100644 --- a/lib/services/automationManagement/lib/models/activity.js +++ b/lib/services/automationManagement/lib/models/activity.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity. * diff --git a/lib/services/automationManagement/lib/models/activityParameter.js b/lib/services/automationManagement/lib/models/activityParameter.js index 59a28437a5..8da7831218 100644 --- a/lib/services/automationManagement/lib/models/activityParameter.js +++ b/lib/services/automationManagement/lib/models/activityParameter.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity parameter. * diff --git a/lib/services/automationManagement/lib/models/activityParameterSet.js b/lib/services/automationManagement/lib/models/activityParameterSet.js index 811fc74a61..6fc0969012 100644 --- a/lib/services/automationManagement/lib/models/activityParameterSet.js +++ b/lib/services/automationManagement/lib/models/activityParameterSet.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the activity parameter set. * diff --git a/lib/services/automationManagement/lib/models/advancedSchedule.js b/lib/services/automationManagement/lib/models/advancedSchedule.js index a27e6b8c7b..d90243b42d 100644 --- a/lib/services/automationManagement/lib/models/advancedSchedule.js +++ b/lib/services/automationManagement/lib/models/advancedSchedule.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The properties of the create Advanced Schedule. * diff --git a/lib/services/automationManagement/lib/models/agentRegistration.js b/lib/services/automationManagement/lib/models/agentRegistration.js index dbd1785629..cb4922904e 100644 --- a/lib/services/automationManagement/lib/models/agentRegistration.js +++ b/lib/services/automationManagement/lib/models/agentRegistration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the agent registration infomration type. * diff --git a/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js index 6793f6f794..e2cc5b5ddc 100644 --- a/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/automationAccountCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update automation account * operation. diff --git a/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js b/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js index f4917c3f5c..ef1cdad97d 100644 --- a/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/automationAccountUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update automation account operation. * diff --git a/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js index 08097d7229..6baa20a4ae 100644 --- a/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/connectionCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update connection operation. * diff --git a/lib/services/automationManagement/lib/models/connectionType.js b/lib/services/automationManagement/lib/models/connectionType.js index c0b4da0a84..427c3271d8 100644 --- a/lib/services/automationManagement/lib/models/connectionType.js +++ b/lib/services/automationManagement/lib/models/connectionType.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the connection type. * diff --git a/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js index 4c8eae0138..b077e8cfc4 100644 --- a/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/connectionTypeCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update connection type operation. * diff --git a/lib/services/automationManagement/lib/models/contentLink.js b/lib/services/automationManagement/lib/models/contentLink.js index 3e96458ded..2abfc0db59 100644 --- a/lib/services/automationManagement/lib/models/contentLink.js +++ b/lib/services/automationManagement/lib/models/contentLink.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the content link. * diff --git a/lib/services/automationManagement/lib/models/contentSource.js b/lib/services/automationManagement/lib/models/contentSource.js index 7c01643a28..9876b4c75d 100644 --- a/lib/services/automationManagement/lib/models/contentSource.js +++ b/lib/services/automationManagement/lib/models/contentSource.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the content source. * diff --git a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js index 7a0bc57812..05d4d21e8b 100644 --- a/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/dscCompilationJobCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create compilation job operation. * diff --git a/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js index f821247894..4b320348e9 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update configuration operation. * diff --git a/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js index a0fcd3d36d..0f73800e1e 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update configuration operation. * diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js index 385da63714..1b545c39b8 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update node configuration * operation. diff --git a/lib/services/automationManagement/lib/models/dscNodeReport.js b/lib/services/automationManagement/lib/models/dscNodeReport.js index f4243dd9a2..fbb1d46cf4 100644 --- a/lib/services/automationManagement/lib/models/dscNodeReport.js +++ b/lib/services/automationManagement/lib/models/dscNodeReport.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the dsc node report type. * diff --git a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js index b7cf090e73..b8af3806af 100644 --- a/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/dscNodeUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update dsc node operation. * diff --git a/lib/services/automationManagement/lib/models/dscReportResource.js b/lib/services/automationManagement/lib/models/dscReportResource.js index bebb6c2111..01e110aaaf 100644 --- a/lib/services/automationManagement/lib/models/dscReportResource.js +++ b/lib/services/automationManagement/lib/models/dscReportResource.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the DSC Report Resource. * diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js index a2208e0532..0f32e75065 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroup.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of hybrid runbook worker group. * diff --git a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js index daa66160b4..d9a514c551 100644 --- a/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/hybridRunbookWorkerGroupUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Parameters supplied to the update operation. * diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index e57907fc80..636a0014c2 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -1148,383 +1148,6 @@ export interface TypeField { type?: 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 - * @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 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 RunbookCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update runbook operation. - * - * @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 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 RunbookUpdateParameters class. - * @constructor - * The parameters supplied to the update runbook operation. - * - * @member {string} [description] Gets or sets the description of the runbook. - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. - */ -export interface RunbookUpdateParameters { - description?: string; - logVerbose?: boolean; - logProgress?: boolean; - logActivityTrace?: number; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the RunbookDraftUndoEditResult class. - * @constructor - * The response model for the undoedit runbook operation. - * - * @member {string} [statusCode] Possible values include: 'Continue', - * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', - * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', - * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' - * @member {string} [requestId] - */ -export interface RunbookDraftUndoEditResult { - statusCode?: string; - requestId?: string; -} - -/** - * @class - * Initializes a new instance of the TestJobCreateParameters class. - * @constructor - * The parameters supplied to the create test job operation. - * - * @member {object} [parameters] Gets or sets the parameters of the test job. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - */ -export interface TestJobCreateParameters { - parameters?: { [propertyName: string]: string }; - runOn?: string; -} - -/** - * @class - * Initializes a new instance of the TestJob class. - * @constructor - * Definition of the test job. - * - * @member {date} [creationTime] Gets or sets the creation time of the test - * job. - * @member {string} [status] Gets or sets the status of the test job. - * @member {string} [statusDetails] Gets or sets the status details of the test - * job. - * @member {string} [runOn] Gets or sets the runOn which specifies the group - * name where the job is to be executed. - * @member {date} [startTime] Gets or sets the start time of the test job. - * @member {date} [endTime] Gets or sets the end time of the test job. - * @member {string} [exception] Gets or sets the exception of the test job. - * @member {date} [lastModifiedTime] Gets or sets the last modified time of the - * test job. - * @member {date} [lastStatusModifiedTime] Gets or sets the last status - * modified time of the test job. - * @member {object} [parameters] Gets or sets the parameters of the test job. - * @member {number} [logActivityTrace] The activity-level tracing options of - * the runbook. - */ -export interface TestJob { - creationTime?: Date; - status?: string; - statusDetails?: string; - runOn?: string; - startTime?: Date; - endTime?: Date; - exception?: string; - lastModifiedTime?: Date; - lastStatusModifiedTime?: Date; - parameters?: { [propertyName: string]: string }; - logActivityTrace?: number; -} - -/** - * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. - * @constructor - * The parameters supplied to the create or update dratft runbook properties. - * - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {string} runbookType Gets or sets the type of the runbook. Possible - * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', - * 'GraphPowerShellWorkflow', 'GraphPowerShell' - * @member {object} draft Gets or sets the draft runbook properties. - * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit - * mode. - * @member {object} [draft.draftContentLink] Gets or sets the draft runbook - * content link. - * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the - * runbook content. - * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. - * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets - * the content hash algorithm used to hash the content. - * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets - * expected hash value of the content. - * @member {string} [draft.draftContentLink.version] Gets or sets the version - * of the content. - * @member {date} [draft.creationTime] Gets or sets the creation time of the - * runbook draft. - * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time - * of the runbook draft. - * @member {object} [draft.parameters] Gets or sets the runbook draft - * parameters. - * @member {array} [draft.outputTypes] Gets or sets the runbook output types. - * @member {string} [description] Gets or sets the description of the runbook. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - */ -export interface RunbookCreateOrUpdateDraftProperties { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft: RunbookDraft; - description?: string; - logActivityTrace?: number; -} - -/** - * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. - * @constructor - * The parameters supplied to the create or update runbook operation. - * - * @member {string} runbookContent Content of the Runbook. - */ -export interface RunbookCreateOrUpdateDraftParameters { - runbookContent: string; -} - -/** - * @class - * Initializes a new instance of the JobStream class. - * @constructor - * Definition of the job stream. - * - * @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 JobStream { - id?: string; - jobStreamId?: string; - time?: Date; - streamType?: string; - streamText?: string; - summary?: string; - value?: { [propertyName: string]: any }; -} - /** * @class * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. @@ -2576,6 +2199,31 @@ export interface SourceControlSyncJobStreamById { value?: { [propertyName: string]: any }; } +/** + * @class + * Initializes a new instance of the JobStream class. + * @constructor + * Definition of the job stream. + * + * @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 JobStream { + id?: string; + jobStreamId?: string; + time?: Date; + streamType?: string; + streamText?: string; + summary?: string; + value?: { [propertyName: string]: any }; +} + /** * @class * Initializes a new instance of the Job class. @@ -2918,240 +2566,627 @@ export interface DscNodeExtensionHandlerAssociationProperty { * @member {array} [extensionHandler] Gets or sets the list of extensionHandler * properties for a Node. */ -export interface DscNode extends ProxyResource { - lastSeen?: Date; - registrationTime?: Date; - ip?: string; - accountId?: string; - dscNodeName?: string; - status?: string; - nodeId?: string; - etag?: string; +export interface DscNode extends ProxyResource { + lastSeen?: Date; + registrationTime?: Date; + ip?: string; + accountId?: string; + dscNodeName?: string; + status?: string; + nodeId?: string; + etag?: string; + totalCount?: number; + extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; +} + +/** + * @class + * Initializes a new instance of the AgentRegistrationRegenerateKeyParameter class. + * @constructor + * The parameters supplied to the regenerate keys operation. + * + * @member {string} keyName Gets or sets the agent registration key name - + * primary or secondary. Possible values include: 'primary', 'secondary' + */ +export interface AgentRegistrationRegenerateKeyParameter { + keyName: string; +} + +/** + * @class + * Initializes a new instance of the DscNodeUpdateParametersProperties class. + * @constructor + * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + */ +export interface DscNodeUpdateParametersProperties { + name?: string; +} + +/** + * @class + * Initializes a new instance of the DscNodeUpdateParameters class. + * @constructor + * The parameters supplied to the update dsc node operation. + * + * @member {string} [nodeId] Gets or sets the id of the dsc node. + * @member {object} [properties] + * @member {string} [properties.name] Gets or sets the name of the dsc + * nodeconfiguration. + */ +export interface DscNodeUpdateParameters { + nodeId?: string; + properties?: DscNodeUpdateParametersProperties; +} + +/** + * @class + * Initializes a new instance of the DscConfigurationAssociationProperty class. + * @constructor + * The Dsc configuration property associated with the entity. + * + * @member {string} [name] Gets or sets the name of the Dsc configuration. + */ +export interface DscConfigurationAssociationProperty { + name?: string; +} + +/** + * @class + * Initializes a new instance of the DscCompilationJob class. + * @constructor + * Definition of the Dsc Compilation job. + * + * @member {object} [configuration] Gets or sets the configuration. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {string} [startedBy] Gets the compilation job started by. + * @member {uuid} [jobId] Gets the id of the job. + * @member {date} [creationTime] Gets the creation time of the job. + * @member {string} [provisioningState] The current provisioning state of the + * job. Possible values include: 'Failed', 'Succeeded', 'Suspended', + * 'Processing' + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + * @member {string} [status] Gets or sets the status of the job. Possible + * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', + * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', + * 'Resuming', 'Removing' + * @member {string} [statusDetails] Gets or sets the status details of the job. + * @member {date} [startTime] Gets the start time of the job. + * @member {date} [endTime] Gets the end time of the job. + * @member {string} [exception] Gets the exception of the job. + * @member {date} [lastModifiedTime] Gets the last modified time of the job. + * @member {date} [lastStatusModifiedTime] Gets the last status modified time + * of the job. + * @member {object} [parameters] Gets or sets the parameters of the job. + */ +export interface DscCompilationJob extends ProxyResource { + configuration?: DscConfigurationAssociationProperty; + readonly startedBy?: string; + readonly jobId?: string; + readonly creationTime?: Date; + provisioningState?: string; + runOn?: string; + status?: string; + statusDetails?: string; + readonly startTime?: Date; + readonly endTime?: Date; + readonly exception?: string; + readonly lastModifiedTime?: Date; + readonly lastStatusModifiedTime?: Date; + parameters?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the DscCompilationJobCreateParameters class. + * @constructor + * The parameters supplied to the create compilation job operation. + * + * @member {object} configuration Gets or sets the configuration. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + * @member {string} [name] Gets or sets name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface DscCompilationJobCreateParameters { + configuration: DscConfigurationAssociationProperty; + parameters?: { [propertyName: string]: string }; + incrementNodeConfigurationBuild?: boolean; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the DscNodeConfiguration class. + * @constructor + * Definition of the dsc node configuration. + * + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {date} [creationTime] Gets or sets creation time. + * @member {object} [configuration] Gets or sets the configuration of the node. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {string} [source] Source of node configuration. + * @member {number} [nodeCount] Number of nodes with this nodeconfiguration + * assigned + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + */ +export interface DscNodeConfiguration extends ProxyResource { + lastModifiedTime?: Date; + creationTime?: Date; + configuration?: DscConfigurationAssociationProperty; + source?: string; + nodeCount?: number; + incrementNodeConfigurationBuild?: boolean; +} + +/** + * @class + * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class. + * @constructor + * The parameters supplied to the create or update node configuration + * operation. + * + * @member {object} source Gets or sets the source. + * @member {object} [source.hash] Gets or sets the hash. + * @member {string} [source.hash.algorithm] Gets or sets the content hash + * algorithm used to hash the content. + * @member {string} [source.hash.value] Gets or sets expected hash value of the + * 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} configuration Gets or sets the configuration of the node. + * @member {string} [configuration.name] Gets or sets the name of the Dsc + * configuration. + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + * @member {string} [name] Name of the node configuration. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface DscNodeConfigurationCreateOrUpdateParameters { + source: ContentSource; + configuration: DscConfigurationAssociationProperty; + incrementNodeConfigurationBuild?: boolean; + name?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the NodeCountProperties class. + * @constructor + * @member {number} [count] Gets the count for the name + */ +export interface NodeCountProperties { + count?: number; +} + +/** + * @class + * Initializes a new instance of the NodeCount class. + * @constructor + * Number of nodes based on the Filter + * + * @member {string} [name] Gets the name of a count type + * @member {object} [properties] + * @member {number} [properties.count] Gets the count for the name + */ +export interface NodeCount { + name?: string; + properties?: NodeCountProperties; +} + +/** + * @class + * Initializes a new instance of the NodeCounts class. + * @constructor + * Gets the count of nodes by count type + * + * @member {array} [value] Gets an array of counts + * @member {number} [totalCount] Gets the total number of records matching + * countType criteria. + */ +export interface NodeCounts { + value?: NodeCount[]; totalCount?: number; - extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; } /** * @class - * Initializes a new instance of the AgentRegistrationRegenerateKeyParameter class. + * Initializes a new instance of the RunbookParameter class. * @constructor - * The parameters supplied to the regenerate keys operation. + * Definition of the runbook parameter type. * - * @member {string} keyName Gets or sets the agent registration key name - - * primary or secondary. Possible values include: 'primary', 'secondary' + * @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 AgentRegistrationRegenerateKeyParameter { - keyName: string; +export interface RunbookParameter { + type?: string; + isMandatory?: boolean; + position?: number; + defaultValue?: string; } /** * @class - * Initializes a new instance of the DscNodeUpdateParametersProperties class. + * Initializes a new instance of the RunbookDraft class. * @constructor - * @member {string} [name] Gets or sets the name of the dsc nodeconfiguration. + * @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 DscNodeUpdateParametersProperties { - name?: string; +export interface RunbookDraft { + inEdit?: boolean; + draftContentLink?: ContentLink; + creationTime?: Date; + lastModifiedTime?: Date; + parameters?: { [propertyName: string]: RunbookParameter }; + outputTypes?: string[]; } /** * @class - * Initializes a new instance of the DscNodeUpdateParameters class. + * Initializes a new instance of the Runbook class. * @constructor - * The parameters supplied to the update dsc node operation. + * Definition of the runbook type. * - * @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. + * @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 DscNodeUpdateParameters { - nodeId?: string; - properties?: DscNodeUpdateParametersProperties; +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 DscConfigurationAssociationProperty class. + * Initializes a new instance of the RunbookCreateOrUpdateParameters class. * @constructor - * The Dsc configuration property associated with the entity. + * The parameters supplied to the create or update runbook operation. * - * @member {string} [name] Gets or sets the name of the Dsc configuration. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {string} runbookType Gets or sets the type of the runbook. Possible + * values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', + * 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @member {object} [draft] Gets or sets the draft runbook properties. + * @member {boolean} [draft.inEdit] Gets or sets whether runbook is in edit + * mode. + * @member {object} [draft.draftContentLink] Gets or sets the draft runbook + * content link. + * @member {string} [draft.draftContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [draft.draftContentLink.contentHash] Gets or sets the hash. + * @member {string} [draft.draftContentLink.contentHash.algorithm] Gets or sets + * the content hash algorithm used to hash the content. + * @member {string} [draft.draftContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [draft.draftContentLink.version] Gets or sets the version + * of the content. + * @member {date} [draft.creationTime] Gets or sets the creation time of the + * runbook draft. + * @member {date} [draft.lastModifiedTime] Gets or sets the last modified time + * of the runbook draft. + * @member {object} [draft.parameters] Gets or sets the runbook draft + * parameters. + * @member {array} [draft.outputTypes] Gets or sets the runbook output types. + * @member {object} [publishContentLink] Gets or sets the published runbook + * content link. + * @member {string} [publishContentLink.uri] Gets or sets the uri of the + * runbook content. + * @member {object} [publishContentLink.contentHash] Gets or sets the hash. + * @member {string} [publishContentLink.contentHash.algorithm] Gets or sets the + * content hash algorithm used to hash the content. + * @member {string} [publishContentLink.contentHash.value] Gets or sets + * expected hash value of the content. + * @member {string} [publishContentLink.version] Gets or sets the version of + * the content. + * @member {string} [description] Gets or sets the description of the runbook. + * @member {number} [logActivityTrace] Gets or sets the activity-level tracing + * options of the runbook. + * @member {string} [name] Gets or sets the name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface DscConfigurationAssociationProperty { +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 DscCompilationJob class. + * Initializes a new instance of the RunbookUpdateParameters class. * @constructor - * Definition of the Dsc Compilation job. + * The parameters supplied to the update runbook operation. * - * @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. + * @member {string} [description] Gets or sets the description of the runbook. + * @member {boolean} [logVerbose] Gets or sets verbose log option. + * @member {boolean} [logProgress] Gets or sets progress log option. + * @member {number} [logActivityTrace] Gets or sets the activity-level tracing + * options of the runbook. + * @member {string} [name] Gets or sets the name of the resource. + * @member {string} [location] Gets or sets the location of the resource. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ +export interface RunbookUpdateParameters { + description?: string; + logVerbose?: boolean; + logProgress?: boolean; + logActivityTrace?: number; + name?: string; + location?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * @class + * Initializes a new instance of the RunbookDraftUndoEditResult class. + * @constructor + * The response model for the undoedit runbook operation. + * + * @member {string} [statusCode] Possible values include: 'Continue', + * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', + * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', + * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', + * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + * @member {string} [requestId] */ -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 }; +export interface RunbookDraftUndoEditResult { + statusCode?: string; + requestId?: string; } /** * @class - * Initializes a new instance of the DscCompilationJobCreateParameters class. + * Initializes a new instance of the TestJobCreateParameters class. * @constructor - * The parameters supplied to the create compilation job operation. + * The parameters supplied to the create test job operation. * - * @member {object} configuration Gets or sets the configuration. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {boolean} [incrementNodeConfigurationBuild] If a new build version - * of NodeConfiguration is required. - * @member {string} [name] Gets or sets name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {object} [parameters] Gets or sets the parameters of the test job. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. */ -export interface DscCompilationJobCreateParameters { - configuration: DscConfigurationAssociationProperty; +export interface TestJobCreateParameters { parameters?: { [propertyName: string]: string }; - incrementNodeConfigurationBuild?: boolean; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + runOn?: string; } /** * @class - * Initializes a new instance of the DscNodeConfiguration class. + * Initializes a new instance of the TestJob class. * @constructor - * Definition of the dsc node configuration. + * Definition of the test job. * - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {date} [creationTime] Gets or sets creation time. - * @member {object} [configuration] Gets or sets the configuration of the node. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {string} [source] Source of node configuration. - * @member {number} [nodeCount] Number of nodes with this nodeconfiguration - * assigned - * @member {boolean} [incrementNodeConfigurationBuild] If a new build version - * of NodeConfiguration is required. + * @member {date} [creationTime] Gets or sets the creation time of the test + * job. + * @member {string} [status] Gets or sets the status of the test job. + * @member {string} [statusDetails] Gets or sets the status details of the test + * job. + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + * @member {date} [startTime] Gets or sets the start time of the test job. + * @member {date} [endTime] Gets or sets the end time of the test job. + * @member {string} [exception] Gets or sets the exception of the test job. + * @member {date} [lastModifiedTime] Gets or sets the last modified time of the + * test job. + * @member {date} [lastStatusModifiedTime] Gets or sets the last status + * modified time of the test job. + * @member {object} [parameters] Gets or sets the parameters of the test job. + * @member {number} [logActivityTrace] The activity-level tracing options of + * the runbook. */ -export interface DscNodeConfiguration extends ProxyResource { - lastModifiedTime?: Date; +export interface TestJob { creationTime?: Date; - configuration?: DscConfigurationAssociationProperty; - source?: string; - nodeCount?: number; - incrementNodeConfigurationBuild?: boolean; + status?: string; + statusDetails?: string; + runOn?: string; + startTime?: Date; + endTime?: Date; + exception?: string; + lastModifiedTime?: Date; + lastStatusModifiedTime?: Date; + parameters?: { [propertyName: string]: string }; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. * @constructor - * The parameters supplied to the create or update node configuration - * operation. + * The parameters supplied to the create or update dratft runbook properties. * - * @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} configuration Gets or sets the configuration of the node. - * @member {string} [configuration.name] Gets or sets the name of the Dsc - * configuration. - * @member {boolean} [incrementNodeConfigurationBuild] If a new build version - * of NodeConfiguration is required. - * @member {string} [name] Name of the node configuration. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @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 DscNodeConfigurationCreateOrUpdateParameters { - source: ContentSource; - configuration: DscConfigurationAssociationProperty; - incrementNodeConfigurationBuild?: boolean; - name?: string; - tags?: { [propertyName: string]: string }; +export interface RunbookCreateOrUpdateDraftProperties { + logVerbose?: boolean; + logProgress?: boolean; + runbookType: string; + draft: RunbookDraft; + description?: string; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the NodeCountProperties class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. * @constructor - * @member {number} [count] Gets the count for the name + * The parameters supplied to the create or update runbook operation. + * + * @member {string} runbookContent Content of the Runbook. */ -export interface NodeCountProperties { - count?: number; +export interface RunbookCreateOrUpdateDraftParameters { + runbookContent: string; } /** * @class - * Initializes a new instance of the NodeCount class. + * Initializes a new instance of the PythonPackageCreateParameters class. * @constructor - * Number of nodes based on the Filter + * The parameters supplied to the create or update module operation. * - * @member {string} [name] Gets the name of a count type - * @member {object} [properties] - * @member {number} [properties.count] Gets the count for the name + * @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 {object} [tags] Gets or sets the tags attached to the resource. */ -export interface NodeCount { - name?: string; - properties?: NodeCountProperties; +export interface PythonPackageCreateParameters { + contentLink: ContentLink; + tags?: { [propertyName: string]: string }; } /** * @class - * Initializes a new instance of the NodeCounts class. + * Initializes a new instance of the PythonPackageUpdateParameters class. * @constructor - * Gets the count of nodes by count type + * The parameters supplied to the update module operation. * - * @member {array} [value] Gets an array of counts - * @member {number} [totalCount] Gets the total number of records matching - * countType criteria. + * @member {object} [tags] Gets or sets the tags attached to the resource. */ -export interface NodeCounts { - value?: NodeCount[]; - totalCount?: number; +export interface PythonPackageUpdateParameters { + tags?: { [propertyName: string]: string }; } @@ -3317,30 +3352,6 @@ export interface ModuleListResult extends Array { export interface TypeFieldListResult extends Array { } -/** - * @class - * Initializes a new instance of the RunbookListResult class. - * @constructor - * The response model for the list runbook operation. - * - * @member {string} [nextLink] Gets or sets the next link. - */ -export interface RunbookListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the JobStreamListResult class. - * @constructor - * The response model for the list job stream operation. - * - * @member {string} [nextLink] Gets or sets the next link. - */ -export interface JobStreamListResult extends Array { - nextLink?: string; -} - /** * @class * Initializes a new instance of the ScheduleListResult class. @@ -3437,6 +3448,18 @@ export interface JobListResultV2 extends Array { readonly nextLink?: string; } +/** + * @class + * Initializes a new instance of the JobStreamListResult class. + * @constructor + * The response model for the list job stream operation. + * + * @member {string} [nextLink] Gets or sets the next link. + */ +export interface JobStreamListResult extends Array { + nextLink?: string; +} + /** * @class * Initializes a new instance of the DscNodeListResult class. @@ -3487,3 +3510,15 @@ export interface DscCompilationJobListResult extends Array { export interface DscNodeConfigurationListResult extends Array { nextLink?: string; } + +/** + * @class + * Initializes a new instance of the RunbookListResult class. + * @constructor + * The response model for the list runbook operation. + * + * @member {string} [nextLink] Gets or sets the next link. + */ +export interface RunbookListResult extends Array { + nextLink?: string; +} diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 26f86dea74..d58720acf3 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -72,17 +72,6 @@ exports.Module = require('./module'); exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); exports.TypeField = require('./typeField'); -exports.RunbookParameter = require('./runbookParameter'); -exports.RunbookDraft = require('./runbookDraft'); -exports.Runbook = require('./runbook'); -exports.RunbookCreateOrUpdateParameters = require('./runbookCreateOrUpdateParameters'); -exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); -exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); -exports.TestJobCreateParameters = require('./testJobCreateParameters'); -exports.TestJob = require('./testJob'); -exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties'); -exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters'); -exports.JobStream = require('./jobStream'); exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); exports.AdvancedSchedule = require('./advancedSchedule'); exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters'); @@ -119,6 +108,7 @@ exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCr exports.SourceControlSyncJobById = require('./sourceControlSyncJobById'); exports.SourceControlSyncJobStream = require('./sourceControlSyncJobStream'); exports.SourceControlSyncJobStreamById = require('./sourceControlSyncJobStreamById'); +exports.JobStream = require('./jobStream'); exports.Job = require('./job'); exports.JobCollectionItem = require('./jobCollectionItem'); exports.JobCreateParameters = require('./jobCreateParameters'); @@ -142,6 +132,18 @@ exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigu exports.NodeCountProperties = require('./nodeCountProperties'); exports.NodeCount = require('./nodeCount'); exports.NodeCounts = require('./nodeCounts'); +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.PythonPackageCreateParameters = require('./pythonPackageCreateParameters'); +exports.PythonPackageUpdateParameters = require('./pythonPackageUpdateParameters'); exports.AutomationAccountListResult = require('./automationAccountListResult'); exports.OperationListResult = require('./operationListResult'); exports.StatisticsListResult = require('./statisticsListResult'); @@ -156,8 +158,6 @@ exports.JobScheduleListResult = require('./jobScheduleListResult'); exports.ActivityListResult = require('./activityListResult'); exports.ModuleListResult = require('./moduleListResult'); exports.TypeFieldListResult = require('./typeFieldListResult'); -exports.RunbookListResult = require('./runbookListResult'); -exports.JobStreamListResult = require('./jobStreamListResult'); exports.ScheduleListResult = require('./scheduleListResult'); exports.VariableListResult = require('./variableListResult'); exports.WebhookListResult = require('./webhookListResult'); @@ -166,7 +166,9 @@ exports.SourceControlListResult = require('./sourceControlListResult'); exports.SourceControlSyncJobListResult = require('./sourceControlSyncJobListResult'); exports.SourceControlSyncJobStreamsListBySyncJob = require('./sourceControlSyncJobStreamsListBySyncJob'); exports.JobListResultV2 = require('./jobListResultV2'); +exports.JobStreamListResult = require('./jobStreamListResult'); exports.DscNodeListResult = require('./dscNodeListResult'); exports.DscNodeReportListResult = require('./dscNodeReportListResult'); exports.DscCompilationJobListResult = require('./dscCompilationJobListResult'); exports.DscNodeConfigurationListResult = require('./dscNodeConfigurationListResult'); +exports.RunbookListResult = require('./runbookListResult'); diff --git a/lib/services/automationManagement/lib/models/jobCreateParameters.js b/lib/services/automationManagement/lib/models/jobCreateParameters.js index f62bbf6f81..5cb1e23d0f 100644 --- a/lib/services/automationManagement/lib/models/jobCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create job operation. * diff --git a/lib/services/automationManagement/lib/models/jobSchedule.js b/lib/services/automationManagement/lib/models/jobSchedule.js index aa9031c84d..f148950931 100644 --- a/lib/services/automationManagement/lib/models/jobSchedule.js +++ b/lib/services/automationManagement/lib/models/jobSchedule.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the job schedule. * diff --git a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js index 82bb1dd5aa..125d74f33a 100644 --- a/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js +++ b/lib/services/automationManagement/lib/models/jobScheduleCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create job schedule operation. * diff --git a/lib/services/automationManagement/lib/models/keyListResult.js b/lib/services/automationManagement/lib/models/keyListResult.js index 80b209d443..fcd02fe980 100644 --- a/lib/services/automationManagement/lib/models/keyListResult.js +++ b/lib/services/automationManagement/lib/models/keyListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a KeyListResult. */ diff --git a/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js index 0bbb36ad06..5fa2080d86 100644 --- a/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/moduleCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update module operation. * diff --git a/lib/services/automationManagement/lib/models/moduleUpdateParameters.js b/lib/services/automationManagement/lib/models/moduleUpdateParameters.js index c000345d7b..ce3f7a383c 100644 --- a/lib/services/automationManagement/lib/models/moduleUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/moduleUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update module operation. * diff --git a/lib/services/automationManagement/lib/models/nodeCount.js b/lib/services/automationManagement/lib/models/nodeCount.js index 5891ea3530..ec7e55bc85 100644 --- a/lib/services/automationManagement/lib/models/nodeCount.js +++ b/lib/services/automationManagement/lib/models/nodeCount.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Number of nodes based on the Filter * diff --git a/lib/services/automationManagement/lib/models/nodeCounts.js b/lib/services/automationManagement/lib/models/nodeCounts.js index 9598ea00ca..8837c4c719 100644 --- a/lib/services/automationManagement/lib/models/nodeCounts.js +++ b/lib/services/automationManagement/lib/models/nodeCounts.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Gets the count of nodes by count type * diff --git a/lib/services/automationManagement/lib/models/operation.js b/lib/services/automationManagement/lib/models/operation.js index df47dab5dd..da8399dd3d 100644 --- a/lib/services/automationManagement/lib/models/operation.js +++ b/lib/services/automationManagement/lib/models/operation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Automation REST API operation * diff --git a/lib/services/automationManagement/lib/models/pythonPackageCreateParameters.js b/lib/services/automationManagement/lib/models/pythonPackageCreateParameters.js new file mode 100644 index 0000000000..521a63aa41 --- /dev/null +++ b/lib/services/automationManagement/lib/models/pythonPackageCreateParameters.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * The parameters supplied to the create or update module operation. + * + */ +class PythonPackageCreateParameters { + /** + * Create a PythonPackageCreateParameters. + * @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 {object} [tags] Gets or sets the tags attached to the resource. + */ + constructor() { + } + + /** + * Defines the metadata of PythonPackageCreateParameters + * + * @returns {object} metadata of PythonPackageCreateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'PythonPackageCreateParameters', + type: { + name: 'Composite', + className: 'PythonPackageCreateParameters', + modelProperties: { + contentLink: { + required: true, + serializedName: 'properties.contentLink', + type: { + name: 'Composite', + className: 'ContentLink' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = PythonPackageCreateParameters; diff --git a/lib/services/automationManagement/lib/models/pythonPackageUpdateParameters.js b/lib/services/automationManagement/lib/models/pythonPackageUpdateParameters.js new file mode 100644 index 0000000000..4d4e776f30 --- /dev/null +++ b/lib/services/automationManagement/lib/models/pythonPackageUpdateParameters.js @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * The parameters supplied to the update module operation. + * + */ +class PythonPackageUpdateParameters { + /** + * Create a PythonPackageUpdateParameters. + * @member {object} [tags] Gets or sets the tags attached to the resource. + */ + constructor() { + } + + /** + * Defines the metadata of PythonPackageUpdateParameters + * + * @returns {object} metadata of PythonPackageUpdateParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'PythonPackageUpdateParameters', + type: { + name: 'Composite', + className: 'PythonPackageUpdateParameters', + modelProperties: { + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = PythonPackageUpdateParameters; diff --git a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js index 3b1704a807..0b3023bf7a 100644 --- a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js +++ b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateDraftProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update dratft runbook properties. * diff --git a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js index ee3850caf1..9be6a093f0 100644 --- a/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/runbookCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update runbook operation. * diff --git a/lib/services/automationManagement/lib/models/runbookDraft.js b/lib/services/automationManagement/lib/models/runbookDraft.js index 7cc6d43f0e..196b7d598c 100644 --- a/lib/services/automationManagement/lib/models/runbookDraft.js +++ b/lib/services/automationManagement/lib/models/runbookDraft.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a RunbookDraft. */ diff --git a/lib/services/automationManagement/lib/models/runbookDraftUndoEditResult.js b/lib/services/automationManagement/lib/models/runbookDraftUndoEditResult.js index cbe9a71fb3..ab43491b03 100644 --- a/lib/services/automationManagement/lib/models/runbookDraftUndoEditResult.js +++ b/lib/services/automationManagement/lib/models/runbookDraftUndoEditResult.js @@ -54,8 +54,7 @@ class RunbookDraftUndoEditResult { required: false, serializedName: 'statusCode', type: { - name: 'Enum', - allowedValues: [ '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' ] + name: 'String' } }, requestId: { diff --git a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js index 6dc9a654f1..01a76a203f 100644 --- a/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/scheduleCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update schedule operation. * diff --git a/lib/services/automationManagement/lib/models/scheduleProperties.js b/lib/services/automationManagement/lib/models/scheduleProperties.js index 1795e7c9b1..176032f584 100644 --- a/lib/services/automationManagement/lib/models/scheduleProperties.js +++ b/lib/services/automationManagement/lib/models/scheduleProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of schedule parameters. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js index e5d5ded094..f16a787c48 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationCollectionItem.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration collection item properties. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js index 74f8890db3..6d333885b7 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js index 7160b1314d..487ab39571 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration machine run model. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js index e6411a5fec..dedd8e2525 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRunListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration machine runs * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js index c4a762fec8..f3a93db89d 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Software update configuration Run properties. * diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js index 24ccdc2172..017f1a6d45 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRunListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * result of listing all software update configuration runs * diff --git a/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js index a76ea4af41..6ce37567c7 100644 --- a/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/sourceControlCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update source control operation. * diff --git a/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js b/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js index 61f3394925..915f56a0de 100644 --- a/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/sourceControlUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the update source control operation. * diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 5154e25af8..e2624ad4b5 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Update specifc properties of the software update configuration. * diff --git a/lib/services/automationManagement/lib/models/usage.js b/lib/services/automationManagement/lib/models/usage.js index e3a63db308..0809c9755c 100644 --- a/lib/services/automationManagement/lib/models/usage.js +++ b/lib/services/automationManagement/lib/models/usage.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of Usage. * diff --git a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js index 02b7161375..3ff1845e1c 100644 --- a/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js +++ b/lib/services/automationManagement/lib/models/webhookCreateOrUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The parameters supplied to the create or update webhook operation. * diff --git a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index 44d5ac3d7b..c83c5861d5 100644 --- a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js @@ -802,7 +802,7 @@ function _update(resourceGroupName, automationAccountName, configurationName, op * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -889,28 +889,29 @@ function _getContent(resourceGroupName, automationAccountName, configurationName } httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { - parsedErrorResponse = JSON.parse(responseBody); + if (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - 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.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -920,33 +921,9 @@ function _getContent(resourceGroupName, automationAccountName, configurationName } return callback(error); } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = { - required: false, - serializedName: 'parsedResponse', - type: { - name: 'String' - } - }; - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } @@ -1829,7 +1806,7 @@ class DscConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1868,7 +1845,7 @@ class DscConfigurationOperations { * * {Promise} A promise is returned * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1876,7 +1853,7 @@ class DscConfigurationOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {string} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 4e8e0a8e93..600fe1e06c 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -2919,11 +2919,11 @@ export interface DscConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the configuration script identified by configuration name. @@ -2946,7 +2946,7 @@ export interface DscConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2954,15 +2954,15 @@ export interface DscConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -4762,21 +4762,56 @@ export interface Fields { /** * @class - * RunbookDraftOperations + * ScheduleOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface RunbookDraftOperations { +export interface ScheduleOperations { /** - * Retrieve the content of runbook draft identified by runbook name. + * Create a schedule. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. + * + * @param {object} parameters The parameters supplied to the create or update + * schedule operation. + * + * @param {string} parameters.name Gets or sets the name of the Schedule. + * + * @param {string} [parameters.description] Gets or sets the description of the + * schedule. + * + * @param {date} parameters.startTime Gets or sets the start time of the + * schedule. + * + * @param {date} [parameters.expiryTime] Gets or sets the end time of the + * schedule. + * + * @param {object} [parameters.interval] Gets or sets the interval of the + * schedule. + * + * @param {string} parameters.frequency Possible values include: 'OneTime', + * 'Day', 'Hour', 'Week', 'Month' + * + * @param {string} [parameters.timeZone] Gets or sets the time zone of the + * schedule. + * + * @param {object} [parameters.advancedSchedule] Gets or sets the + * AdvancedSchedule. + * + * @param {array} [parameters.advancedSchedule.weekDays] Days of the week that + * the job should execute on. + * + * @param {array} [parameters.advancedSchedule.monthDays] Days of the month + * that the job should execute on. Must be between 1 and 31. + * + * @param {array} [parameters.advancedSchedule.monthlyOccurrences] Occurrences + * of days within a month. * * @param {object} [options] Optional Parameters. * @@ -4785,20 +4820,55 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the content of runbook draft identified by runbook name. + * Create a schedule. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. + * + * @param {object} parameters The parameters supplied to the create or update + * schedule operation. + * + * @param {string} parameters.name Gets or sets the name of the Schedule. + * + * @param {string} [parameters.description] Gets or sets the description of the + * schedule. + * + * @param {date} parameters.startTime Gets or sets the start time of the + * schedule. + * + * @param {date} [parameters.expiryTime] Gets or sets the end time of the + * schedule. + * + * @param {object} [parameters.interval] Gets or sets the interval of the + * schedule. + * + * @param {string} parameters.frequency Possible values include: 'OneTime', + * 'Day', 'Hour', 'Week', 'Month' + * + * @param {string} [parameters.timeZone] Gets or sets the time zone of the + * schedule. + * + * @param {object} [parameters.advancedSchedule] Gets or sets the + * AdvancedSchedule. + * + * @param {array} [parameters.advancedSchedule.weekDays] Days of the week that + * the job should execute on. + * + * @param {array} [parameters.advancedSchedule.monthDays] Days of the month + * that the job should execute on. Must be between 1 and 31. + * + * @param {array} [parameters.advancedSchedule.monthlyOccurrences] Occurrences + * of days within a month. * * @param {object} [options] Optional Parameters. * @@ -4812,7 +4882,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {Schedule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4820,27 +4890,37 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {Schedule} [result] - The deserialized result object if an error did not occur. + * See {@link Schedule} 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. */ - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Replaces the runbook draft content. + * Update the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. + * + * @param {object} parameters The parameters supplied to the update schedule + * operation. + * + * @param {string} [parameters.name] Gets or sets the name of the Schedule. * - * @param {object} runbookContent The runbook draft content. + * @param {string} [parameters.description] Gets or sets the description of the + * schedule. + * + * @param {boolean} [parameters.isEnabled] Gets or sets a value indicating + * whether this schedule is enabled. * * @param {object} [options] Optional Parameters. * @@ -4849,22 +4929,31 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - replaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Replaces the runbook draft content. + * Update the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. + * + * @param {object} parameters The parameters supplied to the update schedule + * operation. + * + * @param {string} [parameters.name] Gets or sets the name of the Schedule. + * + * @param {string} [parameters.description] Gets or sets the description of the + * schedule. * - * @param {object} runbookContent The runbook draft content. + * @param {boolean} [parameters.isEnabled] Gets or sets a value indicating + * whether this schedule is enabled. * * @param {object} [options] Optional Parameters. * @@ -4878,7 +4967,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {Schedule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4886,25 +4975,26 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {Schedule} [result] - The deserialized result object if an error did not occur. + * See {@link Schedule} 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. */ - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, callback: ServiceCallback): void; - replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the runbook draft identified by runbook name. + * Retrieve the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. * * @param {object} [options] Optional Parameters. * @@ -4913,20 +5003,20 @@ 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. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the runbook draft identified by runbook name. + * Retrieve the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} scheduleName The schedule name. * * @param {object} [options] Optional Parameters. * @@ -4940,7 +5030,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {RunbookDraft} - The deserialized result object. + * @resolve {Schedule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4948,27 +5038,26 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RunbookDraft} [result] - The deserialized result object if an error did not occur. - * See {@link RunbookDraft} for more information. + * {Schedule} [result] - The deserialized result object if an error did not occur. + * See {@link Schedule} 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, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Publish runbook draft. + * Delete the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The parameters supplied to the publish runbook - * operation. + * @param {string} scheduleName The schedule name. * * @param {object} [options] Optional Parameters. * @@ -4981,17 +5070,16 @@ export interface RunbookDraftOperations { * * @reject {Error|ServiceError} - The error object. */ - publishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Publish runbook draft. + * Delete the schedule identified by schedule name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The parameters supplied to the publish runbook - * operation. + * @param {string} scheduleName The schedule name. * * @param {object} [options] Optional Parameters. * @@ -5019,20 +5107,18 @@ export interface RunbookDraftOperations { * * {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; + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Undo draft edit to last known published state identified by runbook name. + * Retrieve a list of schedules. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5040,21 +5126,19 @@ 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. */ - undoEditWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Undo draft edit to last known published state identified by runbook name. + * Retrieve a list of schedules. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5067,7 +5151,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {RunbookDraftUndoEditResult} - The deserialized result object. + * @resolve {ScheduleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5075,29 +5159,23 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RunbookDraftUndoEditResult} [result] - The deserialized result object if an error did not occur. - * See {@link RunbookDraftUndoEditResult} for more - * information. + * {ScheduleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ScheduleListResult} 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. */ - undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Replaces the runbook draft content. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The runbook name. + * Retrieve a list of schedules. * - * @param {object} runbookContent The runbook draft content. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5106,22 +5184,17 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginReplaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Replaces the runbook draft content. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The runbook name. + * Retrieve a list of schedules. * - * @param {object} runbookContent The runbook draft content. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5135,7 +5208,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {ScheduleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5143,49 +5216,83 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {ScheduleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ScheduleListResult} 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. */ - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, callback: ServiceCallback): void; - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: stream.Readable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * VariableOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface VariableOperations { /** - * Publish runbook draft. + * Create a variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The parameters supplied to the publish runbook - * operation. - * - * @param {object} [options] Optional Parameters. + * @param {string} variableName The variable name. + * + * @param {object} parameters The parameters supplied to the create or update + * variable operation. + * + * @param {string} parameters.name Gets or sets the name of the variable. + * + * @param {string} [parameters.value] Gets or sets the value of the variable. + * + * @param {string} [parameters.description] Gets or sets the description of the + * variable. + * + * @param {boolean} [parameters.isEncrypted] Gets or sets the encrypted flag of + * the variable. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Publish runbook draft. + * Create a variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The parameters supplied to the publish runbook - * operation. + * @param {string} variableName The variable name. + * + * @param {object} parameters The parameters supplied to the create or update + * variable operation. + * + * @param {string} parameters.name Gets or sets the name of the variable. + * + * @param {string} [parameters.value] Gets or sets the value of the variable. + * + * @param {string} [parameters.description] Gets or sets the description of the + * variable. + * + * @param {boolean} [parameters.isEncrypted] Gets or sets the encrypted flag of + * the variable. * * @param {object} [options] Optional Parameters. * @@ -5199,7 +5306,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Variable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5207,34 +5314,36 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {Variable} [result] - The deserialized result object if an error did not occur. + * See {@link Variable} 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. */ - 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; -} - -/** - * @class - * RunbookOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface RunbookOperations { + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the content of runbook identified by runbook name. + * Update a variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} variableName The variable name. + * + * @param {object} parameters The parameters supplied to the update variable + * operation. + * + * @param {string} [parameters.name] Gets or sets the name of the variable. + * + * @param {string} [parameters.value] Gets or sets the value of the variable. + * + * @param {string} [parameters.description] Gets or sets the description of the + * variable. * * @param {object} [options] Optional Parameters. * @@ -5243,20 +5352,30 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the content of runbook identified by runbook name. + * Update a variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} variableName The variable name. + * + * @param {object} parameters The parameters supplied to the update variable + * operation. + * + * @param {string} [parameters.name] Gets or sets the name of the variable. + * + * @param {string} [parameters.value] Gets or sets the value of the variable. + * + * @param {string} [parameters.description] Gets or sets the description of the + * variable. * * @param {object} [options] Optional Parameters. * @@ -5270,7 +5389,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {Variable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5278,25 +5397,26 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {Variable} [result] - The deserialized result object if an error did not occur. + * See {@link Variable} 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. */ - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the runbook identified by runbook name. + * Delete the variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} variableName The name of variable. * * @param {object} [options] Optional Parameters. * @@ -5305,20 +5425,20 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the runbook identified by runbook name. + * Delete the variable. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} variableName The name of variable. * * @param {object} [options] Optional Parameters. * @@ -5332,7 +5452,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {Runbook} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5340,90 +5460,86 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Runbook} [result] - The deserialized result object if an error did not occur. - * See {@link Runbook} for more information. + * {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. */ - get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Create the runbook identified by runbook name. + * Retrieve the variable identified by variable name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} variableName The name of variable. * - * @param {object} parameters The create or update parameters for runbook. - * Provide either content link for a published runbook or draft, not both. + * @param {object} [options] Optional Parameters. * - * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.logProgress] Gets or sets progress log option. + * @returns {Promise} A promise is returned * - * @param {string} parameters.runbookType Gets or sets the type of the runbook. - * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', - * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {object} [parameters.draft] Gets or sets the draft runbook - * properties. + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve the variable identified by variable name. * - * @param {boolean} [parameters.draft.inEdit] Gets or sets whether runbook is - * in edit mode. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [parameters.draft.draftContentLink] Gets or sets the draft - * runbook content link. + * @param {string} automationAccountName The name of the automation account. * - * @param {date} [parameters.draft.creationTime] Gets or sets the creation time - * of the runbook draft. + * @param {string} variableName The name of variable. * - * @param {date} [parameters.draft.lastModifiedTime] Gets or sets the last - * modified time of the runbook draft. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.draft.parameters] Gets or sets the runbook draft - * parameters. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.draft.outputTypes] Gets or sets the runbook - * output types. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {object} [parameters.publishContentLink] Gets or sets the published - * runbook content link. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} [parameters.publishContentLink.uri] Gets or sets the uri of - * the runbook content. + * {Promise} A promise is returned. * - * @param {object} [parameters.publishContentLink.contentHash] Gets or sets the - * hash. + * @resolve {Variable} - The deserialized result object. * - * @param {string} parameters.publishContentLink.contentHash.algorithm Gets or - * sets the content hash algorithm used to hash the content. + * @reject {Error|ServiceError} - The error object. * - * @param {string} parameters.publishContentLink.contentHash.value Gets or sets - * expected hash value of the content. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.publishContentLink.version] Gets or sets the - * version of the content. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.description] Gets or sets the description of the - * runbook. + * {Variable} [result] - The deserialized result object if an error did not occur. + * See {@link Variable} for more information. * - * @param {number} [parameters.logActivityTrace] Gets or sets the - * activity-level tracing options of the runbook. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, variableName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, variableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of variables. * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -5432,84 +5548,75 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create the runbook identified by runbook name. + * Retrieve a list of variables. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * - * @param {object} parameters The create or update parameters for runbook. - * Provide either content link for a published runbook or draft, not both. - * - * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. + * @param {object} [options] Optional Parameters. * - * @param {boolean} [parameters.logProgress] Gets or sets progress log option. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} parameters.runbookType Gets or sets the type of the runbook. - * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', - * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {object} [parameters.draft] Gets or sets the draft runbook - * properties. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {boolean} [parameters.draft.inEdit] Gets or sets whether runbook is - * in edit mode. + * {Promise} A promise is returned. * - * @param {object} [parameters.draft.draftContentLink] Gets or sets the draft - * runbook content link. + * @resolve {VariableListResult} - The deserialized result object. * - * @param {date} [parameters.draft.creationTime] Gets or sets the creation time - * of the runbook draft. + * @reject {Error|ServiceError} - The error object. * - * @param {date} [parameters.draft.lastModifiedTime] Gets or sets the last - * modified time of the runbook draft. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {object} [parameters.draft.parameters] Gets or sets the runbook draft - * parameters. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {array} [parameters.draft.outputTypes] Gets or sets the runbook - * output types. + * {VariableListResult} [result] - The deserialized result object if an error did not occur. + * See {@link VariableListResult} for more information. * - * @param {object} [parameters.publishContentLink] Gets or sets the published - * runbook content link. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.publishContentLink.uri] Gets or sets the uri of - * the runbook content. - * - * @param {object} [parameters.publishContentLink.contentHash] Gets or sets the - * hash. - * - * @param {string} parameters.publishContentLink.contentHash.algorithm Gets or - * sets the content hash algorithm used to hash the content. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of variables. * - * @param {string} parameters.publishContentLink.contentHash.value Gets or sets - * expected hash value of the content. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} [parameters.publishContentLink.version] Gets or sets the - * version of the content. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.description] Gets or sets the description of the - * runbook. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {number} [parameters.logActivityTrace] Gets or sets the - * activity-level tracing options of the runbook. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * @reject {Error|ServiceError} - The error object. + */ + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of variables. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5523,7 +5630,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {Runbook} - The deserialized result object. + * @resolve {VariableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5531,47 +5638,34 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Runbook} [result] - The deserialized result object if an error did not occur. - * See {@link Runbook} for more information. + * {VariableListResult} [result] - The deserialized result object if an error did not occur. + * See {@link VariableListResult} 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, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * WebhookOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface WebhookOperations { /** - * Update the runbook identified by runbook name. + * Generates a Uri for use in creating a webhook. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * - * @param {object} parameters The update parameters for runbook. - * - * @param {string} [parameters.description] Gets or sets the description of the - * runbook. - * - * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. - * - * @param {boolean} [parameters.logProgress] Gets or sets progress log option. - * - * @param {number} [parameters.logActivityTrace] Gets or sets the - * activity-level tracing options of the runbook. - * - * @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 @@ -5579,41 +5673,19 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + generateUriWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the runbook identified by runbook name. + * Generates a Uri for use in creating a webhook. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * - * @param {object} parameters The update parameters for runbook. - * - * @param {string} [parameters.description] Gets or sets the description of the - * runbook. - * - * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. - * - * @param {boolean} [parameters.logProgress] Gets or sets progress log option. - * - * @param {number} [parameters.logActivityTrace] Gets or sets the - * activity-level tracing options of the runbook. - * - * @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 @@ -5626,7 +5698,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {Runbook} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5634,26 +5706,25 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Runbook} [result] - The deserialized result object if an error did not occur. - * See {@link Runbook} for more information. + * {String} [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. */ - update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + generateUri(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + generateUri(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + generateUri(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Delete the runbook by name. + * Delete the webhook by name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} webhookName The webhook name. * * @param {object} [options] Optional Parameters. * @@ -5666,16 +5737,16 @@ export interface RunbookOperations { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the runbook by name. + * Delete the webhook by name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} webhookName The webhook name. * * @param {object} [options] Optional Parameters. * @@ -5703,18 +5774,20 @@ export interface RunbookOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of runbooks. + * Retrieve the webhook identified by webhook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} webhookName The webhook name. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5722,19 +5795,21 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of runbooks. + * Retrieve the webhook identified by webhook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} webhookName The webhook name. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5747,7 +5822,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {RunbookListResult} - The deserialized result object. + * @resolve {Webhook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5755,23 +5830,48 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RunbookListResult} [result] - The deserialized result object if an error did not occur. - * See {@link RunbookListResult} for more information. + * {Webhook} [result] - The deserialized result object if an error did not occur. + * See {@link Webhook} 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?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, webhookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of runbooks. + * Create the webhook identified by webhook name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} webhookName The webhook name. + * + * @param {object} parameters The create or update parameters for webhook. + * + * @param {string} parameters.name Gets or sets the name of the webhook. + * + * @param {boolean} [parameters.isEnabled] Gets or sets the value of the + * enabled flag of webhook. + * + * @param {string} [parameters.uri] Gets or sets the uri. + * + * @param {date} [parameters.expiryTime] Gets or sets the expiry time. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {object} [parameters.runbook] Gets or sets the runbook. + * + * @param {string} [parameters.runbook.name] Gets or sets the name of the + * runbook. + * + * @param {string} [parameters.runOn] Gets or sets the name of the hybrid + * worker group the webhook job will run on. * * @param {object} [options] Optional Parameters. * @@ -5780,17 +5880,42 @@ export interface RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of runbooks. + * Create the webhook identified by webhook name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} webhookName The webhook name. + * + * @param {object} parameters The create or update parameters for webhook. + * + * @param {string} parameters.name Gets or sets the name of the webhook. + * + * @param {boolean} [parameters.isEnabled] Gets or sets the value of the + * enabled flag of webhook. + * + * @param {string} [parameters.uri] Gets or sets the uri. + * + * @param {date} [parameters.expiryTime] Gets or sets the expiry time. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {object} [parameters.runbook] Gets or sets the runbook. + * + * @param {string} [parameters.runbook.name] Gets or sets the name of the + * runbook. + * + * @param {string} [parameters.runOn] Gets or sets the name of the hybrid + * worker group the webhook job will run on. * * @param {object} [options] Optional Parameters. * @@ -5804,7 +5929,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {RunbookListResult} - The deserialized result object. + * @resolve {Webhook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5812,38 +5937,42 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {RunbookListResult} [result] - The deserialized result object if an error did not occur. - * See {@link RunbookListResult} for more information. + * {Webhook} [result] - The deserialized result object if an error did not occur. + * See {@link Webhook} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * TestJobStreams - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface TestJobStreams { + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a test job stream of the test job identified by runbook name and - * stream id. + * Update the webhook identified by webhook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} webhookName The webhook name. * - * @param {string} jobStreamId The job stream id. + * @param {object} parameters The update parameters for webhook. + * + * @param {string} [parameters.name] Gets or sets the name of the webhook. + * + * @param {boolean} [parameters.isEnabled] Gets or sets the value of the + * enabled flag of webhook. + * + * @param {string} [parameters.runOn] Gets or sets the name of the hybrid + * worker group the webhook job will run on. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {string} [parameters.description] Gets or sets the description of the + * webhook. * * @param {object} [options] Optional Parameters. * @@ -5852,23 +5981,36 @@ export interface TestJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a test job stream of the test job identified by runbook name and - * stream id. + * Update the webhook identified by webhook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. + * @param {string} webhookName The webhook name. * - * @param {string} jobStreamId The job stream id. + * @param {object} parameters The update parameters for webhook. + * + * @param {string} [parameters.name] Gets or sets the name of the webhook. + * + * @param {boolean} [parameters.isEnabled] Gets or sets the value of the + * enabled flag of webhook. + * + * @param {string} [parameters.runOn] Gets or sets the name of the hybrid + * worker group the webhook job will run on. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {string} [parameters.description] Gets or sets the description of the + * webhook. * * @param {object} [options] Optional Parameters. * @@ -5882,7 +6024,7 @@ export interface TestJobStreams { * * {Promise} A promise is returned. * - * @resolve {JobStream} - The deserialized result object. + * @resolve {Webhook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5890,27 +6032,25 @@ export interface TestJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStream} [result] - The deserialized result object if an error did not occur. - * See {@link JobStream} for more information. + * {Webhook} [result] - The deserialized result object if an error did not occur. + * See {@link Webhook} 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, runbookName: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of test job streams identified by runbook name. + * Retrieve a list of webhooks. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -5920,21 +6060,19 @@ export interface TestJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByTestJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of test job streams identified by runbook name. + * Retrieve a list of webhooks. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} runbookName The runbook name. - * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -5949,7 +6087,7 @@ export interface TestJobStreams { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {WebhookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5957,20 +6095,20 @@ export interface TestJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * {WebhookListResult} [result] - The deserialized result object if an error did not occur. + * See {@link WebhookListResult} 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. */ - listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 test job streams identified by runbook name. + * Retrieve a list of webhooks. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5982,14 +6120,14 @@ export interface TestJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByTestJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of test job streams identified by runbook name. + * Retrieve a list of webhooks. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6006,7 +6144,7 @@ export interface TestJobStreams { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {WebhookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6014,45 +6152,58 @@ export interface TestJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * {WebhookListResult} [result] - The deserialized result object if an error did not occur. + * See {@link WebhookListResult} 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. */ - listByTestJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByTestJobNext(nextPageLink: string, callback: ServiceCallback): void; - listByTestJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * TestJobOperations + * WatcherOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface TestJobOperations { +export interface WatcherOperations { /** - * Create a test job of the runbook. + * 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} runbookName The parameters supplied to the create test job - * operation. + * @param {string} watcherName The watcher name. * - * @param {object} parameters The parameters supplied to the create test job - * operation. + * @param {object} parameters The create or update parameters for watcher. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * test job. + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @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. * @@ -6061,30 +6212,43 @@ export interface TestJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a test job of the runbook. + * 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} runbookName The parameters supplied to the create test job - * operation. + * @param {string} watcherName The watcher name. * - * @param {object} parameters The parameters supplied to the create test job - * operation. + * @param {object} parameters The create or update parameters for watcher. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * test job. + * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the + * frequency at which the watcher is invoked. * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @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. * @@ -6098,7 +6262,7 @@ export interface TestJobOperations { * * {Promise} A promise is returned. * - * @resolve {TestJob} - The deserialized result object. + * @resolve {Watcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6106,26 +6270,26 @@ export interface TestJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {TestJob} [result] - The deserialized result object if an error did not occur. - * See {@link TestJob} for more information. + * {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. */ - create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 test job for the specified runbook. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6134,20 +6298,20 @@ export interface TestJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the test job for the specified runbook. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6161,7 +6325,7 @@ export interface TestJobOperations { * * {Promise} A promise is returned. * - * @resolve {TestJob} - The deserialized result object. + * @resolve {Watcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6169,26 +6333,33 @@ export interface TestJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {TestJob} [result] - The deserialized result object if an error did not occur. - * See {@link TestJob} for more information. + * {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, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Resume the test job. + * 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} runbookName The runbook name. + * @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. * @@ -6197,20 +6368,27 @@ export interface TestJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.WatcherUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume the test job. + * 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} runbookName The runbook name. + * @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. * @@ -6224,7 +6402,7 @@ export interface TestJobOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Watcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6232,25 +6410,26 @@ export interface TestJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - resume(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Stop the test job. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6263,16 +6442,16 @@ export interface TestJobOperations { * * @reject {Error|ServiceError} - The error object. */ - stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stop the test job. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6300,19 +6479,19 @@ export interface TestJobOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - stop(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Suspend the test job. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6325,16 +6504,16 @@ export interface TestJobOperations { * * @reject {Error|ServiceError} - The error object. */ - suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + startWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Suspend the test job. + * 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} runbookName The runbook name. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6362,63 +6541,19 @@ export interface TestJobOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; - suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ScheduleOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface ScheduleOperations { + 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; /** - * Create a schedule. + * 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} scheduleName The schedule name. - * - * @param {object} parameters The parameters supplied to the create or update - * schedule operation. - * - * @param {string} parameters.name Gets or sets the name of the Schedule. - * - * @param {string} [parameters.description] Gets or sets the description of the - * schedule. - * - * @param {date} parameters.startTime Gets or sets the start time of the - * schedule. - * - * @param {date} [parameters.expiryTime] Gets or sets the end time of the - * schedule. - * - * @param {object} [parameters.interval] Gets or sets the interval of the - * schedule. - * - * @param {string} parameters.frequency Possible values include: 'OneTime', - * 'Day', 'Hour', 'Week', 'Month' - * - * @param {string} [parameters.timeZone] Gets or sets the time zone of the - * schedule. - * - * @param {object} [parameters.advancedSchedule] Gets or sets the - * AdvancedSchedule. - * - * @param {array} [parameters.advancedSchedule.weekDays] Days of the week that - * the job should execute on. - * - * @param {array} [parameters.advancedSchedule.monthDays] Days of the month - * that the job should execute on. Must be between 1 and 31. - * - * @param {array} [parameters.advancedSchedule.monthlyOccurrences] Occurrences - * of days within a month. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6427,55 +6562,20 @@ export interface ScheduleOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a schedule. + * 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} scheduleName The schedule name. - * - * @param {object} parameters The parameters supplied to the create or update - * schedule operation. - * - * @param {string} parameters.name Gets or sets the name of the Schedule. - * - * @param {string} [parameters.description] Gets or sets the description of the - * schedule. - * - * @param {date} parameters.startTime Gets or sets the start time of the - * schedule. - * - * @param {date} [parameters.expiryTime] Gets or sets the end time of the - * schedule. - * - * @param {object} [parameters.interval] Gets or sets the interval of the - * schedule. - * - * @param {string} parameters.frequency Possible values include: 'OneTime', - * 'Day', 'Hour', 'Week', 'Month' - * - * @param {string} [parameters.timeZone] Gets or sets the time zone of the - * schedule. - * - * @param {object} [parameters.advancedSchedule] Gets or sets the - * AdvancedSchedule. - * - * @param {array} [parameters.advancedSchedule.weekDays] Days of the week that - * the job should execute on. - * - * @param {array} [parameters.advancedSchedule.monthDays] Days of the month - * that the job should execute on. Must be between 1 and 31. - * - * @param {array} [parameters.advancedSchedule.monthlyOccurrences] Occurrences - * of days within a month. + * @param {string} watcherName The watcher name. * * @param {object} [options] Optional Parameters. * @@ -6489,7 +6589,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {Schedule} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6497,73 +6597,50 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Schedule} [result] - The deserialized result object if an error did not occur. - * See {@link Schedule} for more information. + * {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. */ - createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Update the schedule identified by schedule name. + * Retrieve a list of watchers. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} scheduleName The schedule name. - * - * @param {object} parameters The parameters supplied to the update schedule - * operation. - * - * @param {string} [parameters.name] Gets or sets the name of the Schedule. - * - * @param {string} [parameters.description] Gets or sets the description of the - * schedule. - * - * @param {boolean} [parameters.isEnabled] Gets or sets a value indicating - * whether this schedule is enabled. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the schedule identified by schedule name. + * Retrieve a list of watchers. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} scheduleName The schedule name. - * - * @param {object} parameters The parameters supplied to the update schedule - * operation. - * - * @param {string} [parameters.name] Gets or sets the name of the Schedule. - * - * @param {string} [parameters.description] Gets or sets the description of the - * schedule. - * - * @param {boolean} [parameters.isEnabled] Gets or sets a value indicating - * whether this schedule is enabled. - * * @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 * @@ -6574,7 +6651,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {Schedule} - The deserialized result object. + * @resolve {WatcherListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6582,26 +6659,23 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Schedule} [result] - The deserialized result object if an error did not occur. - * See {@link Schedule} for more information. + * {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. */ - update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: models.ScheduleUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 the schedule identified by schedule name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of watchers. * - * @param {string} scheduleName The schedule name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6610,20 +6684,17 @@ export interface ScheduleOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the schedule identified by schedule name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of watchers. * - * @param {string} scheduleName The schedule name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6637,7 +6708,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {Schedule} - The deserialized result object. + * @resolve {WatcherListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6645,52 +6716,375 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Schedule} [result] - The deserialized result object if an error did not occur. - * See {@link Schedule} for more information. + * {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. */ - get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SoftwareUpdateConfigurations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SoftwareUpdateConfigurations { /** - * Delete the schedule identified by schedule name. + * Create a new software update configuration with the name given in the URI. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} scheduleName The schedule name. + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters Request body. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters.updateConfiguration update specific properties + * for the Software update configuration * - * @returns {Promise} A promise is returned + * @param {string} parameters.updateConfiguration.operatingSystem operating + * system of target machines. Possible values include: 'Windows', 'Linux' * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {object} [parameters.updateConfiguration.windows] Windows specific + * update configuration. * - * @reject {Error|ServiceError} - The error object. - */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Delete the schedule identified by schedule name. + * @param {string} + * [parameters.updateConfiguration.windows.includedUpdateClassifications] + * Update classification included in the software update configuration. A comma + * separated string with required values. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB + * numbers excluded from the software update configuration. * - * @param {string} automationAccountName The name of the automation account. + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. * - * @param {string} scheduleName The schedule name. + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. * - * @param {object} [options] Optional Parameters. + * @param {object} [parameters.updateConfiguration.linux] Linux specific update + * configuration. * - * @param {object} [options.customHeaders] Headers that will be added to the + * @param {string} + * [parameters.updateConfiguration.linux.includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' + * + * @param {array} + * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages + * excluded from the software update configuration. + * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * + * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum + * time allowed for the software update configuration run. Duration needs to be + * specified using the format PT[n]H[n]M[n]S as per ISO8601 + * + * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of + * azure resource Ids for azure virtual machines targeted by the software + * update configuration. + * + * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List + * of names of non-azure machines targeted by the software update + * configuration. + * + * @param {object} parameters.scheduleInfo Schedule information for the + * Software update configuration + * + * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start + * time of the schedule. + * + * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time + * of the schedule. + * + * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or + * sets the expiry time's offset in minutes. + * + * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value + * indicating whether this schedule is enabled. + * + * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run + * time of the schedule. + * + * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets + * the next run time's offset in minutes. + * + * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval + * of the schedule. + * + * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the + * frequency of the schedule. Possible values include: 'OneTime', 'Day', + * 'Hour', 'Week', 'Month' + * + * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time + * zone of the schedule. + * + * @param {object} [parameters.scheduleInfo.advancedSchedule] Gets or sets the + * advanced schedule. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.weekDays] Days of + * the week that the job should execute on. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.monthDays] Days of + * the month that the job should execute on. Must be between 1 and 31. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.monthlyOccurrences] + * Occurrences of days within a month. + * + * @param {date} [parameters.scheduleInfo.creationTime] Gets or sets the + * creation time. + * + * @param {date} [parameters.scheduleInfo.lastModifiedTime] Gets or sets the + * last modified time. + * + * @param {string} [parameters.scheduleInfo.description] Gets or sets the + * description. + * + * @param {object} [parameters.error] detailes of provisioning error + * + * @param {string} [parameters.error.code] Error code + * + * @param {string} [parameters.error.message] Error message indicating why the + * operation failed. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create a new software update configuration with the name given in the URI. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * + * @param {object} parameters Request body. + * + * @param {object} parameters.updateConfiguration update specific properties + * for the Software update configuration + * + * @param {string} parameters.updateConfiguration.operatingSystem operating + * system of target machines. Possible values include: 'Windows', 'Linux' + * + * @param {object} [parameters.updateConfiguration.windows] Windows specific + * update configuration. + * + * @param {string} + * [parameters.updateConfiguration.windows.includedUpdateClassifications] + * Update classification included in the software update configuration. A comma + * separated string with required values. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + * + * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB + * numbers excluded from the software update configuration. + * + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * + * @param {object} [parameters.updateConfiguration.linux] Linux specific update + * configuration. + * + * @param {string} + * [parameters.updateConfiguration.linux.includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' + * + * @param {array} + * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages + * excluded from the software update configuration. + * + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. + * + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. + * + * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum + * time allowed for the software update configuration run. Duration needs to be + * specified using the format PT[n]H[n]M[n]S as per ISO8601 + * + * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of + * azure resource Ids for azure virtual machines targeted by the software + * update configuration. + * + * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List + * of names of non-azure machines targeted by the software update + * configuration. + * + * @param {object} parameters.scheduleInfo Schedule information for the + * Software update configuration + * + * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start + * time of the schedule. + * + * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time + * of the schedule. + * + * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or + * sets the expiry time's offset in minutes. + * + * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value + * indicating whether this schedule is enabled. + * + * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run + * time of the schedule. + * + * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets + * the next run time's offset in minutes. + * + * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval + * of the schedule. + * + * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the + * frequency of the schedule. Possible values include: 'OneTime', 'Day', + * 'Hour', 'Week', 'Month' + * + * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time + * zone of the schedule. + * + * @param {object} [parameters.scheduleInfo.advancedSchedule] Gets or sets the + * advanced schedule. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.weekDays] Days of + * the week that the job should execute on. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.monthDays] Days of + * the month that the job should execute on. Must be between 1 and 31. + * + * @param {array} [parameters.scheduleInfo.advancedSchedule.monthlyOccurrences] + * Occurrences of days within a month. + * + * @param {date} [parameters.scheduleInfo.creationTime] Gets or sets the + * creation time. + * + * @param {date} [parameters.scheduleInfo.lastModifiedTime] Gets or sets the + * last modified time. + * + * @param {string} [parameters.scheduleInfo.description] Gets or sets the + * description. + * + * @param {object} [parameters.error] detailes of provisioning error + * + * @param {string} [parameters.error.code] Error code + * + * @param {string} [parameters.error.message] Error message indicating why the + * operation failed. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @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 {SoftwareUpdateConfiguration} - 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. + * + * {SoftwareUpdateConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfiguration} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get a single software update configuration by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @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. + */ + getByNameWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get a single software update configuration by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. @@ -6700,7 +7094,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6708,46 +7102,60 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {SoftwareUpdateConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfiguration} 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. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: ServiceCallback): void; + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of schedules. + * delete a specific software update configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of schedules. + * delete a specific software update configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. + * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6758,7 +7166,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {ScheduleListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6766,45 +7174,56 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ScheduleListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ScheduleListResult} for more information. + * {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. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of schedules. + * Get all software update configurations for the account. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of schedules. + * Get all software update configurations for the account. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6815,7 +7234,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {ScheduleListResult} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6823,86 +7242,155 @@ export interface ScheduleOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ScheduleListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ScheduleListResult} for more information. + * {SoftwareUpdateConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfigurationListResult} 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; + list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * VariableOperations + * SoftwareUpdateConfigurationRuns * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface VariableOperations { +export interface SoftwareUpdateConfigurationRuns { /** - * Create a variable. + * Get a single software update configuration Run by Id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The variable name. + * @param {uuid} softwareUpdateConfigurationRunId The Id of the software update + * configuration run. * - * @param {object} parameters The parameters supplied to the create or update - * variable operation. + * @param {object} [options] Optional Parameters. * - * @param {string} parameters.name Gets or sets the name of the variable. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {string} [parameters.value] Gets or sets the value of the variable. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.description] Gets or sets the description of the - * variable. + * @returns {Promise} A promise is returned * - * @param {boolean} [parameters.isEncrypted] Gets or sets the encrypted flag of - * the variable. + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get a single software update configuration Run by Id. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {uuid} softwareUpdateConfigurationRunId The Id of the software update + * configuration run. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @returns {Promise} A promise is returned + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {Promise} A promise is returned. + * + * @resolve {SoftwareUpdateConfigurationRun} - 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. + * + * {SoftwareUpdateConfigurationRun} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfigurationRun} 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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, callback: ServiceCallback): void; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** - * Create a variable. + * Return list of software update configuration runs * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The variable name. + * @param {object} [options] Optional Parameters. * - * @param {object} parameters The parameters supplied to the create or update - * variable operation. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {string} parameters.name Gets or sets the name of the variable. + * @param {string} [options.filter] The filter to apply on the operation. You + * can use the following filters: 'properties/osType', 'properties/status', + * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' * - * @param {string} [parameters.value] Gets or sets the value of the variable. + * @param {string} [options.skip] number of entries you skip before returning + * results * - * @param {string} [parameters.description] Gets or sets the description of the - * variable. + * @param {string} [options.top] Maximum number of entries returned in the + * results collection * - * @param {boolean} [parameters.isEncrypted] Gets or sets the encrypted flag of - * the variable. + * @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. + */ + listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Return list of software update configuration runs + * + * @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.clientRequestId] Identifies this specific client + * request. + * + * @param {string} [options.filter] The filter to apply on the operation. You + * can use the following filters: 'properties/osType', 'properties/status', + * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' + * + * @param {string} [options.skip] number of entries you skip before returning + * results + * + * @param {string} [options.top] Maximum number of entries returned in the + * results collection + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6913,7 +7401,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationRunListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6921,71 +7409,69 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Variable} [result] - The deserialized result object if an error did not occur. - * See {@link Variable} for more information. + * {SoftwareUpdateConfigurationRunListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfigurationRunListResult} + * 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, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SoftwareUpdateConfigurationMachineRuns + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SoftwareUpdateConfigurationMachineRuns { /** - * Update a variable. + * Get a single software update configuration machine run by Id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The variable name. - * - * @param {object} parameters The parameters supplied to the update variable - * operation. - * - * @param {string} [parameters.name] Gets or sets the name of the variable. - * - * @param {string} [parameters.value] Gets or sets the value of the variable. - * - * @param {string} [parameters.description] Gets or sets the description of the - * variable. + * @param {uuid} softwareUpdateConfigurationMachineRunId The Id of the software + * update configuration machine run. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update a variable. + * Get a single software update configuration machine run by Id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The variable name. - * - * @param {object} parameters The parameters supplied to the update variable - * operation. - * - * @param {string} [parameters.name] Gets or sets the name of the variable. - * - * @param {string} [parameters.value] Gets or sets the value of the variable. - * - * @param {string} [parameters.description] Gets or sets the description of the - * variable. + * @param {uuid} softwareUpdateConfigurationMachineRunId The Id of the software + * update configuration machine run. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6996,7 +7482,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationMachineRun} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7004,51 +7490,74 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Variable} [result] - The deserialized result object if an error did not occur. - * See {@link Variable} for more information. + * {SoftwareUpdateConfigurationMachineRun} [result] - The deserialized result object if an error did not occur. + * See {@link SoftwareUpdateConfigurationMachineRun} 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, variableName: string, parameters: models.VariableUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, callback: ServiceCallback): void; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Delete the variable. + * Return list of software update configuration machine runs * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The name of variable. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {string} [options.filter] The filter to apply on the operation. You + * can use the following filters: 'properties/osType', 'properties/status', + * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' + * + * @param {string} [options.skip] number of entries you skip before returning + * results + * + * @param {string} [options.top] Maximum number of entries returned in the + * results collection + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the variable. + * Return list of software update configuration machine runs * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The name of variable. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * + * @param {string} [options.filter] The filter to apply on the operation. You + * can use the following filters: 'properties/osType', 'properties/status', + * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' + * + * @param {string} [options.skip] number of entries you skip before returning + * results + * + * @param {string} [options.top] Maximum number of entries returned in the + * results collection + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7059,7 +7568,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationMachineRunListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7067,25 +7576,72 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {SoftwareUpdateConfigurationMachineRunListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * SoftwareUpdateConfigurationMachineRunListResult} 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. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SourceControlOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SourceControlOperations { /** - * Retrieve the variable identified by variable name. + * Create a source control. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The name of variable. + * @param {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the create or update + * source control operation. + * + * @param {string} [parameters.repoUrl] The repo url of the source control. + * + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. + * + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. + * + * @param {string} [parameters.sourceType] The source type. Must be one of + * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', + * 'VsoTfvc', 'GitHub' + * + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. + * + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -7094,20 +7650,55 @@ export interface VariableOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the variable identified by variable name. + * Create a source control. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} variableName The name of variable. + * @param {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the create or update + * source control operation. + * + * @param {string} [parameters.repoUrl] The repo url of the source control. + * + * @param {string} [parameters.branch] The repo branch of the source control. + * Include branch as empty string for VsoTfvc. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto async of the source control. + * Default is false. + * + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. + * + * @param {string} [parameters.sourceType] The source type. Must be one of + * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', + * 'VsoTfvc', 'GitHub' + * + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. + * + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -7121,7 +7712,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7129,25 +7720,55 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Variable} [result] - The deserialized result object if an error did not occur. - * See {@link Variable} for more information. + * {SourceControl} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControl} 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, variableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, variableName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, variableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of variables. + * Update a source control. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the update source + * control operation. + * + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. + * + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. + * + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. + * + * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + * + * @param {string} [parameters.description] The user description of the source + * control. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -7155,18 +7776,48 @@ export interface VariableOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Update a source control. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the update source + * control operation. + * + * @param {string} [parameters.branch] The repo branch of the source control. + * + * @param {string} [parameters.folderPath] The folder path of the source + * control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] The auto sync of the source control. + * Default is false. + * + * @param {boolean} [parameters.publishRunbook] The auto publish of the source + * control. Default is true. + * + * @param {object} [parameters.securityToken] The authorization token for the + * repo of the source control. + * + * @param {string} [parameters.securityToken.accessToken] The access token. * - * @reject {Error|ServiceError} - The error object. - */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve a list of variables. + * @param {string} [parameters.securityToken.refreshToken] The refresh token. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {string} [parameters.securityToken.tokenType] The token type. Must be + * either PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' * - * @param {string} automationAccountName The name of the automation account. + * @param {string} [parameters.description] The user description of the source + * control. * * @param {object} [options] Optional Parameters. * @@ -7180,7 +7831,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {VariableListResult} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7188,23 +7839,26 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {VariableListResult} [result] - The deserialized result object if an error did not occur. - * See {@link VariableListResult} for more information. + * {SourceControl} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControl} 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?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of variables. + * Delete the source control. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7213,17 +7867,20 @@ export interface VariableOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of variables. + * Delete the source control. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7237,7 +7894,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {VariableListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7245,34 +7902,26 @@ export interface VariableOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {VariableListResult} [result] - The deserialized result object if an error did not occur. - * See {@link VariableListResult} for more information. + * {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. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * WebhookOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface WebhookOperations { + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Generates a Uri for use in creating a webhook. + * Retrieve the source control identified by source control name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} sourceControlName The name of source control. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -7280,19 +7929,21 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - generateUriWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Generates a Uri for use in creating a webhook. + * Retrieve the source control identified by source control name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} sourceControlName The name of source control. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -7305,7 +7956,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7313,50 +7964,51 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {SourceControl} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControl} 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. */ - generateUri(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - generateUri(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - generateUri(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Delete the webhook by name. + * Retrieve a list of source controls. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the webhook by name. + * Retrieve a list of source controls. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7367,7 +8019,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SourceControlListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7375,25 +8027,24 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 the webhook identified by webhook name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of source controls. * - * @param {string} webhookName The webhook name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -7402,20 +8053,17 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the webhook identified by webhook name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of source controls. * - * @param {string} webhookName The webhook name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -7429,7 +8077,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {SourceControlListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7437,48 +8085,44 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Webhook} [result] - The deserialized result object if an error did not occur. - * See {@link Webhook} for more information. + * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, webhookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * SourceControlSyncJobOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface SourceControlSyncJobOperations { /** - * Create the webhook identified by webhook name. + * Creates the sync job for a source control. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * - * @param {object} parameters The create or update parameters for webhook. - * - * @param {string} parameters.name Gets or sets the name of the webhook. - * - * @param {boolean} [parameters.isEnabled] Gets or sets the value of the - * enabled flag of webhook. - * - * @param {string} [parameters.uri] Gets or sets the uri. - * - * @param {date} [parameters.expiryTime] Gets or sets the expiry time. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} sourceControlName The source control name. * - * @param {object} [parameters.runbook] Gets or sets the runbook. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {string} [parameters.runbook.name] Gets or sets the name of the - * runbook. + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. * - * @param {string} [parameters.runOn] Gets or sets the name of the hybrid - * worker group the webhook job will run on. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * @@ -7487,42 +8131,28 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create the webhook identified by webhook name. + * Creates the sync job for a source control. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * - * @param {object} parameters The create or update parameters for webhook. - * - * @param {string} parameters.name Gets or sets the name of the webhook. - * - * @param {boolean} [parameters.isEnabled] Gets or sets the value of the - * enabled flag of webhook. - * - * @param {string} [parameters.uri] Gets or sets the uri. - * - * @param {date} [parameters.expiryTime] Gets or sets the expiry time. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} sourceControlName The source control name. * - * @param {object} [parameters.runbook] Gets or sets the runbook. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {string} [parameters.runbook.name] Gets or sets the name of the - * runbook. + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. * - * @param {string} [parameters.runOn] Gets or sets the name of the hybrid - * worker group the webhook job will run on. + * @param {string} parameters.commitId The commit id of the source control sync + * job. If not syncing to a commitId, enter an empty string. * * @param {object} [options] Optional Parameters. * @@ -7536,7 +8166,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {SourceControlSyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7544,42 +8174,28 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Webhook} [result] - The deserialized result object if an error did not occur. - * See {@link Webhook} for more information. + * {SourceControlSyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJob} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Update the webhook identified by webhook name. + * Retrieve the source control sync job identified by job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * - * @param {object} parameters The update parameters for webhook. - * - * @param {string} [parameters.name] Gets or sets the name of the webhook. - * - * @param {boolean} [parameters.isEnabled] Gets or sets the value of the - * enabled flag of webhook. - * - * @param {string} [parameters.runOn] Gets or sets the name of the hybrid - * worker group the webhook job will run on. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} sourceControlName The source control name. * - * @param {string} [parameters.description] Gets or sets the description of the - * webhook. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * @@ -7588,36 +8204,22 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the webhook identified by webhook name. + * Retrieve the source control sync job identified by job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} webhookName The webhook name. - * - * @param {object} parameters The update parameters for webhook. - * - * @param {string} [parameters.name] Gets or sets the name of the webhook. - * - * @param {boolean} [parameters.isEnabled] Gets or sets the value of the - * enabled flag of webhook. - * - * @param {string} [parameters.runOn] Gets or sets the name of the hybrid - * worker group the webhook job will run on. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} sourceControlName The source control name. * - * @param {string} [parameters.description] Gets or sets the description of the - * webhook. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * @@ -7631,7 +8233,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {SourceControlSyncJobById} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7639,25 +8241,28 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Webhook} [result] - The deserialized result object if an error did not occur. - * See {@link Webhook} for more information. + * {SourceControlSyncJobById} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobById} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: models.WebhookUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of webhooks. + * Retrieve a list of source control sync jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} sourceControlName The source control name. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -7667,19 +8272,21 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of webhooks. + * Retrieve a list of source control sync jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} sourceControlName The source control name. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -7694,7 +8301,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {WebhookListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7702,20 +8309,21 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {WebhookListResult} [result] - The deserialized result object if an error did not occur. - * See {@link WebhookListResult} for more information. + * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of webhooks. + * Retrieve a list of source control sync jobs. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7727,14 +8335,14 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of webhooks. + * Retrieve a list of source control sync jobs. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7751,7 +8359,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {WebhookListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7759,106 +8367,69 @@ export interface WebhookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {WebhookListResult} [result] - The deserialized result object if an error did not occur. - * See {@link WebhookListResult} for more information. + * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * WatcherOperations + * SourceControlSyncJobStreams * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface WatcherOperations { +export interface SourceControlSyncJobStreams { /** - * Create the watcher identified by watcher name. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} 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} sourceControlName The source control name. * - * @param {string} [parameters.location] The Azure Region where the resource - * lives + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listBySyncJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create the watcher identified by watcher name. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} 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} sourceControlName The source control name. * - * @param {string} [parameters.location] The Azure Region where the resource - * lives + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7869,7 +8440,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {Watcher} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7877,26 +8448,31 @@ export interface WatcherOperations { * * {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. + * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamsListBySyncJob} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the watcher identified by watcher name. + * Retrieve a sync job stream identified by stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} watcherName The watcher name. + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. * * @param {object} [options] Optional Parameters. * @@ -7905,20 +8481,24 @@ export interface WatcherOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the watcher identified by watcher name. + * Retrieve a sync job stream identified by stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} watcherName The watcher name. + * @param {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. * * @param {object} [options] Optional Parameters. * @@ -7932,7 +8512,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {Watcher} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamById} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7940,33 +8520,24 @@ export interface WatcherOperations { * * {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. + * {SourceControlSyncJobStreamById} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamById} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * 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. + * Retrieve a list of sync job streams identified by sync job id. * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -7975,27 +8546,17 @@ export interface WatcherOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listBySyncJobNextWithHttpOperationResponse(nextPageLink: string, 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. + * Retrieve a list of sync job streams identified by sync job id. * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8009,7 +8570,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {Watcher} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8017,51 +8578,67 @@ export interface WatcherOperations { * * {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. + * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamsListBySyncJob} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + listBySyncJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJobNext(nextPageLink: string, callback: ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * JobOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface JobOperations { /** - * Delete the watcher by name. + * Retrieve the job output identified by job 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 {string} jobName The name of the job to be created. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the watcher by name. + * Retrieve the job output identified by job 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 {string} jobName The name of the job to be created. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8072,7 +8649,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8080,50 +8657,56 @@ export interface WatcherOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Resume the watcher identified by watcher name. + * Retrieve the runbook content of the job identified by job 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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - startWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume the watcher identified by watcher name. + * Retrieve the runbook content of the job identified by job 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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8134,7 +8717,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8142,28 +8725,31 @@ export interface WatcherOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - 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; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Resume the watcher identified by watcher name. + * Suspend the job identified by job 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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8173,19 +8759,22 @@ export interface WatcherOperations { * * @reject {Error|ServiceError} - The error object. */ - stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume the watcher identified by watcher name. + * Suspend the job identified by job 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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8210,43 +8799,49 @@ export interface WatcherOperations { * * {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; + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of watchers. + * Stop the job identified by jobName. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} jobName The job name. + * * @param {object} [options] Optional Parameters. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of watchers. + * Stop the job identified by jobName. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} jobName The job name. + * * @param {object} [options] Optional Parameters. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -8258,7 +8853,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {WatcherListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8266,45 +8861,56 @@ export interface WatcherOperations { * * {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. + * {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. */ - 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; + stop(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + stop(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of watchers. + * Retrieve the job identified by job name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of watchers. + * Retrieve the job identified by job name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.clientRequestId] Identifies this specific client + * request. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8315,7 +8921,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {WatcherListResult} - The deserialized result object. + * @resolve {Job} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8323,153 +8929,79 @@ export interface WatcherOperations { * * {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. + * {Job} [result] - The deserialized result object if an error did not occur. + * See {@link Job} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SoftwareUpdateConfigurations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SoftwareUpdateConfigurations { + get(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Create a new software update configuration with the name given in the URI. + * Create a job of the runbook. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. - * - * @param {object} parameters Request body. - * - * @param {object} parameters.updateConfiguration update specific properties - * for the Software update configuration - * - * @param {string} parameters.updateConfiguration.operatingSystem operating - * system of target machines. Possible values include: 'Windows', 'Linux' - * - * @param {object} [parameters.updateConfiguration.windows] Windows specific - * update configuration. - * - * @param {string} - * [parameters.updateConfiguration.windows.includedUpdateClassifications] - * Update classification included in the software update configuration. A comma - * separated string with required values. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', - * 'ServicePack', 'Definition', 'Tools', 'Updates' - * - * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB - * numbers excluded from the software update configuration. - * - * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB - * numbers included from the software update configuration. - * - * @param {string} [parameters.updateConfiguration.windows.rebootSetting] - * Reboot setting for the software update configuration. - * - * @param {object} [parameters.updateConfiguration.linux] Linux specific update - * configuration. - * - * @param {string} - * [parameters.updateConfiguration.linux.includedPackageClassifications] Update - * classifications included in the software update configuration. Possible - * values include: 'Unclassified', 'Critical', 'Security', 'Other' - * - * @param {array} - * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages - * excluded from the software update configuration. - * - * @param {array} - * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages - * included from the software update configuration. - * - * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot - * setting for the software update configuration. - * - * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum - * time allowed for the software update configuration run. Duration needs to be - * specified using the format PT[n]H[n]M[n]S as per ISO8601 - * - * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of - * azure resource Ids for azure virtual machines targeted by the software - * update configuration. - * - * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List - * of names of non-azure machines targeted by the software update - * configuration. - * - * @param {object} parameters.scheduleInfo Schedule information for the - * Software update configuration + * @param {string} jobName The job name. * - * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start - * time of the schedule. + * @param {object} parameters The parameters supplied to the create job + * operation. * - * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time - * of the schedule. + * @param {object} [parameters.runbook] Gets or sets the runbook. * - * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or - * sets the expiry time's offset in minutes. + * @param {string} [parameters.runbook.name] Gets or sets the name of the + * runbook. * - * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value - * indicating whether this schedule is enabled. + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. * - * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run - * time of the schedule. + * @param {string} [parameters.runOn] Gets or sets the runOn which specifies + * the group name where the job is to be executed. * - * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets - * the next run time's offset in minutes. + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval - * of the schedule. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the - * frequency of the schedule. Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time - * zone of the schedule. + * @returns {Promise} A promise is returned * - * @param {object} [parameters.scheduleInfo.advancedSchedule] Gets or sets the - * advanced schedule. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.weekDays] Days of - * the week that the job should execute on. + * @reject {Error|ServiceError} - The error object. + */ + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create a job of the runbook. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthDays] Days of - * the month that the job should execute on. Must be between 1 and 31. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthlyOccurrences] - * Occurrences of days within a month. + * @param {string} automationAccountName The name of the automation account. * - * @param {date} [parameters.scheduleInfo.creationTime] Gets or sets the - * creation time. + * @param {string} jobName The job name. * - * @param {date} [parameters.scheduleInfo.lastModifiedTime] Gets or sets the - * last modified time. + * @param {object} parameters The parameters supplied to the create job + * operation. * - * @param {string} [parameters.scheduleInfo.description] Gets or sets the - * description. + * @param {object} [parameters.runbook] Gets or sets the runbook. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {string} [parameters.runbook.name] Gets or sets the name of the + * runbook. * - * @param {string} [parameters.error.code] Error code + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. * - * @param {string} [parameters.error.message] Error message indicating why the - * operation failed. + * @param {string} [parameters.runOn] Gets or sets the runOn which specifies + * the group name where the job is to be executed. * * @param {object} [options] Optional Parameters. * @@ -8479,140 +9011,135 @@ export interface SoftwareUpdateConfigurations { * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @returns {Promise} A promise is returned + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {Promise} A promise is returned. + * + * @resolve {Job} - 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. + * + * {Job} [result] - The deserialized result object if an error did not occur. + * See {@link Job} 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. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** - * Create a new software update configuration with the name given in the URI. + * Retrieve a list of jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. - * - * @param {object} parameters Request body. - * - * @param {object} parameters.updateConfiguration update specific properties - * for the Software update configuration + * @param {object} [options] Optional Parameters. * - * @param {string} parameters.updateConfiguration.operatingSystem operating - * system of target machines. Possible values include: 'Windows', 'Linux' + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {object} [parameters.updateConfiguration.windows] Windows specific - * update configuration. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {string} - * [parameters.updateConfiguration.windows.includedUpdateClassifications] - * Update classification included in the software update configuration. A comma - * separated string with required values. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', - * 'ServicePack', 'Definition', 'Tools', 'Updates' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB - * numbers excluded from the software update configuration. + * @returns {Promise} A promise is returned * - * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB - * numbers included from the software update configuration. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.updateConfiguration.windows.rebootSetting] - * Reboot setting for the software update configuration. + * @reject {Error|ServiceError} - The error object. + */ + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of jobs. * - * @param {object} [parameters.updateConfiguration.linux] Linux specific update - * configuration. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} - * [parameters.updateConfiguration.linux.includedPackageClassifications] Update - * classifications included in the software update configuration. Possible - * values include: 'Unclassified', 'Critical', 'Security', 'Other' + * @param {string} automationAccountName The name of the automation account. * - * @param {array} - * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages - * excluded from the software update configuration. + * @param {object} [options] Optional Parameters. * - * @param {array} - * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages - * included from the software update configuration. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot - * setting for the software update configuration. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {moment.duration} [parameters.updateConfiguration.duration] Maximum - * time allowed for the software update configuration run. Duration needs to be - * specified using the format PT[n]H[n]M[n]S as per ISO8601 + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of - * azure resource Ids for azure virtual machines targeted by the software - * update configuration. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List - * of names of non-azure machines targeted by the software update - * configuration. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} parameters.scheduleInfo Schedule information for the - * Software update configuration + * {Promise} A promise is returned. * - * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start - * time of the schedule. + * @resolve {JobListResultV2} - The deserialized result object. * - * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time - * of the schedule. + * @reject {Error|ServiceError} - The error object. * - * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or - * sets the expiry time's offset in minutes. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value - * indicating whether this schedule is enabled. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run - * time of the schedule. + * {JobListResultV2} [result] - The deserialized result object if an error did not occur. + * See {@link JobListResultV2} for more information. * - * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets - * the next run time's offset in minutes. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval - * of the schedule. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Resume the job identified by jobName. * - * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the - * frequency of the schedule. Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time - * zone of the schedule. + * @param {string} automationAccountName The name of the automation account. * - * @param {object} [parameters.scheduleInfo.advancedSchedule] Gets or sets the - * advanced schedule. + * @param {string} jobName The job name. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.weekDays] Days of - * the week that the job should execute on. + * @param {object} [options] Optional Parameters. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthDays] Days of - * the month that the job should execute on. Must be between 1 and 31. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthlyOccurrences] - * Occurrences of days within a month. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {date} [parameters.scheduleInfo.creationTime] Gets or sets the - * creation time. + * @returns {Promise} A promise is returned * - * @param {date} [parameters.scheduleInfo.lastModifiedTime] Gets or sets the - * last modified time. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.scheduleInfo.description] Gets or sets the - * description. + * @reject {Error|ServiceError} - The error object. + */ + resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Resume the job identified by jobName. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} [parameters.error.code] Error code + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [parameters.error.message] Error message indicating why the - * operation failed. + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8629,7 +9156,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8637,28 +9164,22 @@ export interface SoftwareUpdateConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfiguration} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfiguration} for more - * information. + * {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. */ - create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + resume(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + resume(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + resume(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get a single software update configuration by name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of jobs. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8670,21 +9191,17 @@ export interface SoftwareUpdateConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getByNameWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration by name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of jobs. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8701,7 +9218,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. + * @resolve {JobListResultV2} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8709,28 +9226,37 @@ export interface SoftwareUpdateConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfiguration} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfiguration} for more - * information. + * {JobListResultV2} [result] - The deserialized result object if an error did not occur. + * See {@link JobListResultV2} 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. */ - getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: ServiceCallback): void; - getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * JobStreamOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface JobStreamOperations { /** - * delete a specific software update configuration. + * Retrieve the job stream identified by job stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} jobName The job name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -8742,21 +9268,22 @@ export interface SoftwareUpdateConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * delete a specific software update configuration. + * Retrieve the job stream identified by job stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} jobName The job name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -8773,7 +9300,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8781,56 +9308,61 @@ export interface SoftwareUpdateConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {JobStream} [result] - The deserialized result object if an error did not occur. + * See {@link JobStream} 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. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get all software update configurations for the account. + * Retrieve a list of jobs streams identified by job name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} jobName The job name. + * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {string} [options.clientRequestId] Identifies this specific client * request. * - * @param {string} [options.filter] The filter to apply on the operation. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all software update configurations for the account. + * Retrieve a list of jobs streams identified by job name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} jobName The job name. + * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {string} [options.clientRequestId] Identifies this specific client * request. * - * @param {string} [options.filter] The filter to apply on the operation. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8841,7 +9373,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationListResult} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8849,37 +9381,23 @@ export interface SoftwareUpdateConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfigurationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfigurationListResult} for - * more information. + * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. + * See {@link JobStreamListResult} 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. */ - list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SoftwareUpdateConfigurationRuns - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SoftwareUpdateConfigurationRuns { + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get a single software update configuration Run by Id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of jobs streams identified by job name. * - * @param {uuid} softwareUpdateConfigurationRunId The Id of the software update - * configuration run. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8891,21 +9409,17 @@ export interface SoftwareUpdateConfigurationRuns { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByJobNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration Run by Id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of jobs streams identified by job name. * - * @param {uuid} softwareUpdateConfigurationRunId The Id of the software update - * configuration run. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8922,7 +9436,7 @@ export interface SoftwareUpdateConfigurationRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationRun} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8930,21 +9444,29 @@ export interface SoftwareUpdateConfigurationRuns { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfigurationRun} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfigurationRun} for more - * information. + * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. + * See {@link JobStreamListResult} 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. */ - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, callback: ServiceCallback): void; - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByJobNext(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByJobNext(nextPageLink: string, callback: ServiceCallback): void; + listByJobNext(nextPageLink: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * AgentRegistrationInformation + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface AgentRegistrationInformation { /** - * Return list of software update configuration runs + * Retrieve the automation agent registration information. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -8952,32 +9474,19 @@ export interface SoftwareUpdateConfigurationRuns { * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * - * @param {string} [options.filter] The filter to apply on the operation. You - * can use the following filters: 'properties/osType', 'properties/status', - * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' - * - * @param {string} [options.skip] number of entries you skip before returning - * results - * - * @param {string} [options.top] Maximum number of entries returned in the - * results collection - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Return list of software update configuration runs + * Retrieve the automation agent registration information. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -8985,19 +9494,6 @@ export interface SoftwareUpdateConfigurationRuns { * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * - * @param {string} [options.filter] The filter to apply on the operation. You - * can use the following filters: 'properties/osType', 'properties/status', - * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' - * - * @param {string} [options.skip] number of entries you skip before returning - * results - * - * @param {string} [options.top] Maximum number of entries returned in the - * results collection - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -9008,7 +9504,7 @@ export interface SoftwareUpdateConfigurationRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationRunListResult} - The deserialized result object. + * @resolve {AgentRegistration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9016,68 +9512,58 @@ export interface SoftwareUpdateConfigurationRuns { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfigurationRunListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfigurationRunListResult} - * for more information. + * {AgentRegistration} [result] - The deserialized result object if an error did not occur. + * See {@link AgentRegistration} 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. */ - list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SoftwareUpdateConfigurationMachineRuns - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SoftwareUpdateConfigurationMachineRuns { + get(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get a single software update configuration machine run by Id. + * Regenerate a primary or secondary agent registration key * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {uuid} softwareUpdateConfigurationMachineRunId The Id of the software - * update configuration machine run. + * @param {object} parameters The name of the agent registration key to be + * regenerated * - * @param {object} [options] Optional Parameters. + * @param {string} parameters.keyName Gets or sets the agent registration key + * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + regenerateKeyWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration machine run by Id. + * Regenerate a primary or secondary agent registration key * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {uuid} softwareUpdateConfigurationMachineRunId The Id of the software - * update configuration machine run. + * @param {object} parameters The name of the agent registration key to be + * regenerated * - * @param {object} [options] Optional Parameters. + * @param {string} parameters.keyName Gets or sets the agent registration key + * name - primary or secondary. Possible values include: 'primary', 'secondary' * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9089,7 +9575,7 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationMachineRun} - The deserialized result object. + * @resolve {AgentRegistration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9097,73 +9583,59 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfigurationMachineRun} [result] - The deserialized result object if an error did not occur. - * See {@link SoftwareUpdateConfigurationMachineRun} for - * more information. + * {AgentRegistration} [result] - The deserialized result object if an error did not occur. + * See {@link AgentRegistration} 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. */ - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, callback: ServiceCallback): void; - getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, callback: ServiceCallback): void; + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DscNodeOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface DscNodeOperations { /** - * Return list of software update configuration machine runs + * Delete the dsc node identified by node id. * * @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.clientRequestId] Identifies this specific client - * request. - * - * @param {string} [options.filter] The filter to apply on the operation. You - * can use the following filters: 'properties/osType', 'properties/status', - * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' - * - * @param {string} [options.skip] number of entries you skip before returning - * results + * @param {string} nodeId The node id. * - * @param {string} [options.top] Maximum number of entries returned in the - * results collection + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Return list of software update configuration machine runs + * Delete the dsc node identified by node id. * * @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.clientRequestId] Identifies this specific client - * request. - * - * @param {string} [options.filter] The filter to apply on the operation. You - * can use the following filters: 'properties/osType', 'properties/status', - * 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' - * - * @param {string} [options.skip] number of entries you skip before returning - * results + * @param {string} nodeId The node id. * - * @param {string} [options.top] Maximum number of entries returned in the - * results collection + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9175,7 +9647,7 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationMachineRunListResult} - The deserialized result object. + * @resolve {DscNode} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9183,72 +9655,26 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SoftwareUpdateConfigurationMachineRunListResult} [result] - The deserialized result object if an error did not occur. - * See {@link - * SoftwareUpdateConfigurationMachineRunListResult} for - * more information. + * {DscNode} [result] - The deserialized result object if an error did not occur. + * See {@link DscNode} 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. */ - list(resourceGroupName: string, automationAccountName: string, options?: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - list(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - list(resourceGroupName: string, automationAccountName: string, options: { clientRequestId? : string, filter? : string, skip? : string, top? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SourceControlOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SourceControlOperations { + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Create a source control. + * Retrieve the dsc node identified by node id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {object} parameters The parameters supplied to the create or update - * source control operation. - * - * @param {string} [parameters.repoUrl] The repo url of the source control. - * - * @param {string} [parameters.branch] The repo branch of the source control. - * Include branch as empty string for VsoTfvc. - * - * @param {string} [parameters.folderPath] The folder path of the source - * control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] The auto async of the source control. - * Default is false. - * - * @param {boolean} [parameters.publishRunbook] The auto publish of the source - * control. Default is true. - * - * @param {string} [parameters.sourceType] The source type. Must be one of - * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', - * 'VsoTfvc', 'GitHub' - * - * @param {object} [parameters.securityToken] The authorization token for the - * repo of the source control. - * - * @param {string} [parameters.securityToken.accessToken] The access token. - * - * @param {string} [parameters.securityToken.refreshToken] The refresh token. - * - * @param {string} [parameters.securityToken.tokenType] The token type. Must be - * either PersonalAccessToken or Oauth. Possible values include: - * 'PersonalAccessToken', 'Oauth' - * - * @param {string} [parameters.description] The user description of the source - * control. + * @param {string} nodeId The node id. * * @param {object} [options] Optional Parameters. * @@ -9257,55 +9683,20 @@ export interface SourceControlOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a source control. + * Retrieve the dsc node identified by node id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {object} parameters The parameters supplied to the create or update - * source control operation. - * - * @param {string} [parameters.repoUrl] The repo url of the source control. - * - * @param {string} [parameters.branch] The repo branch of the source control. - * Include branch as empty string for VsoTfvc. - * - * @param {string} [parameters.folderPath] The folder path of the source - * control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] The auto async of the source control. - * Default is false. - * - * @param {boolean} [parameters.publishRunbook] The auto publish of the source - * control. Default is true. - * - * @param {string} [parameters.sourceType] The source type. Must be one of - * VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', - * 'VsoTfvc', 'GitHub' - * - * @param {object} [parameters.securityToken] The authorization token for the - * repo of the source control. - * - * @param {string} [parameters.securityToken.accessToken] The access token. - * - * @param {string} [parameters.securityToken.refreshToken] The refresh token. - * - * @param {string} [parameters.securityToken.tokenType] The token type. Must be - * either PersonalAccessToken or Oauth. Possible values include: - * 'PersonalAccessToken', 'Oauth' - * - * @param {string} [parameters.description] The user description of the source - * control. + * @param {string} nodeId The node id. * * @param {object} [options] Optional Parameters. * @@ -9319,7 +9710,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControl} - The deserialized result object. + * @resolve {DscNode} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9327,54 +9718,37 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControl} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControl} for more information. + * {DscNode} [result] - The deserialized result object if an error did not occur. + * See {@link DscNode} 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, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Update a source control. + * Update the dsc node. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {object} parameters The parameters supplied to the update source - * control operation. - * - * @param {string} [parameters.branch] The repo branch of the source control. - * - * @param {string} [parameters.folderPath] The folder path of the source - * control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] The auto sync of the source control. - * Default is false. - * - * @param {boolean} [parameters.publishRunbook] The auto publish of the source - * control. Default is true. - * - * @param {object} [parameters.securityToken] The authorization token for the - * repo of the source control. + * @param {string} nodeId Parameters supplied to the update dsc node. * - * @param {string} [parameters.securityToken.accessToken] The access token. + * @param {object} dscNodeUpdateParameters Parameters supplied to the update + * dsc node. * - * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the + * dsc node. * - * @param {string} [parameters.securityToken.tokenType] The token type. Must be - * either PersonalAccessToken or Oauth. Possible values include: - * 'PersonalAccessToken', 'Oauth' + * @param {object} [dscNodeUpdateParameters.properties] * - * @param {string} [parameters.description] The user description of the source - * control. + * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the + * name of the dsc nodeconfiguration. * * @param {object} [options] Optional Parameters. * @@ -9383,48 +9757,31 @@ export interface SourceControlOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update a source control. + * Update the dsc node. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {object} parameters The parameters supplied to the update source - * control operation. - * - * @param {string} [parameters.branch] The repo branch of the source control. - * - * @param {string} [parameters.folderPath] The folder path of the source - * control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] The auto sync of the source control. - * Default is false. - * - * @param {boolean} [parameters.publishRunbook] The auto publish of the source - * control. Default is true. - * - * @param {object} [parameters.securityToken] The authorization token for the - * repo of the source control. + * @param {string} nodeId Parameters supplied to the update dsc node. * - * @param {string} [parameters.securityToken.accessToken] The access token. + * @param {object} dscNodeUpdateParameters Parameters supplied to the update + * dsc node. * - * @param {string} [parameters.securityToken.refreshToken] The refresh token. + * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the + * dsc node. * - * @param {string} [parameters.securityToken.tokenType] The token type. Must be - * either PersonalAccessToken or Oauth. Possible values include: - * 'PersonalAccessToken', 'Oauth' + * @param {object} [dscNodeUpdateParameters.properties] * - * @param {string} [parameters.description] The user description of the source - * control. + * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the + * name of the dsc nodeconfiguration. * * @param {object} [options] Optional Parameters. * @@ -9438,7 +9795,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControl} - The deserialized result object. + * @resolve {DscNode} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9446,51 +9803,63 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControl} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControl} for more information. + * {DscNode} [result] - The deserialized result object if an error did not occur. + * See {@link DscNode} 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, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Delete the source control. + * Retrieve a list of dsc nodes. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The name of source control. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the source control. + * Retrieve a list of dsc nodes. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The name of source control. - * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -9501,7 +9870,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DscNodeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9509,25 +9878,23 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DscNodeListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeListResult} 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. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the source control identified by source control name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc nodes. * - * @param {string} sourceControlName The name of source control. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9536,20 +9903,17 @@ export interface SourceControlOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the source control identified by source control name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc nodes. * - * @param {string} sourceControlName The name of source control. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9563,7 +9927,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControl} - The deserialized result object. + * @resolve {DscNodeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9571,25 +9935,36 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControl} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControl} for more information. + * {DscNodeListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * NodeReports + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface NodeReports { /** - * Retrieve a list of source controls. + * Retrieve the Dsc node report list by node id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} nodeId The parameters supplied to the list operation. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -9599,19 +9974,21 @@ export interface SourceControlOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByNodeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source controls. + * Retrieve the Dsc node report list by node id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} nodeId The parameters supplied to the list operation. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -9626,7 +10003,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlListResult} - The deserialized result object. + * @resolve {DscNodeReportListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9634,24 +10011,29 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlListResult} for more + * {DscNodeReportListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeReportListResult} 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; + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of source controls. + * Retrieve the Dsc node report data by node id and report id. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} nodeId The Dsc node id. + * + * @param {string} reportId The report id. * * @param {object} [options] Optional Parameters. * @@ -9660,17 +10042,22 @@ export interface SourceControlOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source controls. + * Retrieve the Dsc node report data by node id and report id. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} nodeId The Dsc node id. + * + * @param {string} reportId The report id. * * @param {object} [options] Optional Parameters. * @@ -9684,7 +10071,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlListResult} - The deserialized result object. + * @resolve {DscNodeReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9692,44 +10079,28 @@ export interface SourceControlOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlListResult} for more - * information. + * {DscNodeReport} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeReport} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SourceControlSyncJobOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SourceControlSyncJobOperations { + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates the sync job for a source control. + * Retrieve the Dsc node reports by node id and report id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. - * - * @param {object} parameters The parameters supplied to the create source - * control sync job operation. + * @param {string} nodeId The Dsc node id. * - * @param {string} parameters.commitId The commit id of the source control sync - * job. If not syncing to a commitId, enter an empty string. + * @param {string} reportId The report id. * * @param {object} [options] Optional Parameters. * @@ -9738,28 +10109,22 @@ export interface SourceControlSyncJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the sync job for a source control. + * Retrieve the Dsc node reports by node id and report id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. - * - * @param {object} parameters The parameters supplied to the create source - * control sync job operation. + * @param {string} nodeId The Dsc node id. * - * @param {string} parameters.commitId The commit id of the source control sync - * job. If not syncing to a commitId, enter an empty string. + * @param {string} reportId The report id. * * @param {object} [options] Optional Parameters. * @@ -9773,7 +10138,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJob} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9781,28 +10146,22 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJob} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJob} for more information. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the source control sync job identified by job id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. + * Retrieve the Dsc node report list by node id. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9811,22 +10170,17 @@ export interface SourceControlSyncJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByNodeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the source control sync job identified by job id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. + * Retrieve the Dsc node report list by node id. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -9840,7 +10194,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobById} - The deserialized result object. + * @resolve {DscNodeReportListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9848,56 +10202,105 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobById} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobById} for more + * {DscNodeReportListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeReportListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByNodeNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByNodeNext(nextPageLink: string, callback: ServiceCallback): void; + listByNodeNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DscCompilationJobOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface DscCompilationJobOperations { /** - * Retrieve a list of source control sync jobs. + * Creates the Dsc compilation job of the configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. + * @param {string} compilationJobName The the DSC configuration Id. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The parameters supplied to the create compilation + * job operation. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} parameters.configuration Gets or sets the configuration. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Gets or sets 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 * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source control sync jobs. + * Creates the Dsc compilation job of the configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} compilationJobName The the DSC configuration Id. + * + * @param {object} parameters The parameters supplied to the create compilation + * job operation. + * + * @param {object} parameters.configuration Gets or sets the configuration. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Gets or sets name of the resource. + * + * @param {string} [parameters.location] Gets or sets the location of the + * resource. * - * @param {string} sourceControlName The source control name. + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. * * @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 * @@ -9908,7 +10311,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {DscCompilationJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9916,24 +10319,26 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobListResult} for more - * information. + * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. + * See {@link DscCompilationJob} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of source control sync jobs. + * Retrieve the Dsc configuration compilation job identified by job id. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} compilationJobName The the DSC configuration Id. * * @param {object} [options] Optional Parameters. * @@ -9942,17 +10347,20 @@ export interface SourceControlSyncJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source control sync jobs. + * Retrieve the Dsc configuration compilation job identified by job id. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} compilationJobName The the DSC configuration Id. * * @param {object} [options] Optional Parameters. * @@ -9966,7 +10374,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {DscCompilationJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9974,39 +10382,25 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobListResult} for more - * information. + * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. + * See {@link DscCompilationJob} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * SourceControlSyncJobStreams - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SourceControlSyncJobStreams { + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of sync job streams identified by sync job id. + * Retrieve a list of dsc compilation jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. - * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -10016,23 +10410,19 @@ export interface SourceControlSyncJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listBySyncJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of sync job streams identified by sync job id. + * Retrieve a list of dsc compilation jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. - * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -10047,7 +10437,7 @@ export interface SourceControlSyncJobStreams { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. + * @resolve {DscCompilationJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10055,31 +10445,29 @@ export interface SourceControlSyncJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobStreamsListBySyncJob} - * for more information. + * {DscCompilationJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscCompilationJobListResult} 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. */ - listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; - listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 sync job stream identified by stream id. + * Retrieve the job stream identified by job stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {uuid} jobId The job id. * - * @param {string} streamId The id of the sync job stream. + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -10088,24 +10476,22 @@ export interface SourceControlSyncJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getStreamWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a sync job stream identified by stream id. + * Retrieve the job stream identified by job stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {uuid} jobId The job id. * - * @param {string} streamId The id of the sync job stream. + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -10119,7 +10505,7 @@ export interface SourceControlSyncJobStreams { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobStreamById} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10127,24 +10513,48 @@ export interface SourceControlSyncJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobStreamById} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobStreamById} for more - * information. + * {JobStream} [result] - The deserialized result object if an error did not occur. + * See {@link JobStream} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, callback: ServiceCallback): void; + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of sync job streams identified by sync job id. + * Creates the Dsc compilation job of the configuration. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} compilationJobName The the DSC configuration Id. + * + * @param {object} parameters The parameters supplied to the create compilation + * job operation. + * + * @param {object} parameters.configuration Gets or sets the configuration. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Gets or sets 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. * @@ -10153,17 +10563,42 @@ export interface SourceControlSyncJobStreams { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listBySyncJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of sync job streams identified by sync job id. + * Creates the Dsc compilation job of the configuration. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} compilationJobName The the DSC configuration Id. + * + * @param {object} parameters The parameters supplied to the create compilation + * job operation. + * + * @param {object} parameters.configuration Gets or sets the configuration. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Gets or sets 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. * @@ -10177,7 +10612,7 @@ export interface SourceControlSyncJobStreams { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. + * @resolve {DscCompilationJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10185,67 +10620,45 @@ export interface SourceControlSyncJobStreams { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobStreamsListBySyncJob} - * for more information. + * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. + * See {@link DscCompilationJob} 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. */ - listBySyncJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listBySyncJobNext(nextPageLink: string, callback: ServiceCallback): void; - listBySyncJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * JobOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface JobOperations { + beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, callback: ServiceCallback): void; + beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the job output identified by job name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc compilation jobs. * - * @param {string} jobName The name of the job to be created. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job output identified by job name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc compilation jobs. * - * @param {string} jobName The name of the job to be created. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10256,7 +10669,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {DscCompilationJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10264,56 +10677,61 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {DscCompilationJobListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscCompilationJobListResult} 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. - */ - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DscCompilationJobStream + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface DscCompilationJobStream { /** - * Retrieve the runbook content of the job identified by job name. + * Retrieve all the job streams for the compilation Job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {uuid} jobId The job id. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the runbook content of the job identified by job name. + * Retrieve all the job streams for the compilation Job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {uuid} jobId The job id. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10324,7 +10742,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10332,31 +10750,38 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. + * See {@link JobStreamListResult} 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. */ - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, callback: ServiceCallback): void; + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DscNodeConfigurationOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface DscNodeConfigurationOperations { /** - * Suspend the job identified by job name. + * Delete the Dsc node configurations by node configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10366,22 +10791,19 @@ export interface JobOperations { * * @reject {Error|ServiceError} - The error object. */ - suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Suspend the job identified by job name. + * Delete the Dsc node configurations by node configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10406,50 +10828,44 @@ export interface JobOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - suspend(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Stop the job identified by jobName. + * Retrieve the Dsc node configurations by node configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stop the job identified by jobName. + * Retrieve the Dsc node configurations by node configuration. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10460,7 +10876,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DscNodeConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10468,55 +10884,122 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeConfiguration} 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. */ - stop(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - stop(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - stop(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the job identified by job name. + * Create the node configuration identified by node configuration name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The create or update parameters for + * configuration. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} parameters.source Gets or sets the source. + * + * @param {object} [parameters.source.hash] Gets or sets the hash. + * + * @param {string} parameters.source.hash.algorithm Gets or sets the content + * hash algorithm used to hash the content. + * + * @param {string} parameters.source.hash.value Gets or sets expected hash + * value of the content. + * + * @param {string} [parameters.source.type] Gets or sets the content source + * type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [parameters.source.value] Gets or sets the value of the + * content. This is based on the content source type. + * + * @param {string} [parameters.source.version] Gets or sets the version of the + * content. + * + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job identified by job name. + * Create the node configuration identified by node configuration name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. + * @param {string} nodeConfigurationName The Dsc node configuration name. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The create or update parameters for + * configuration. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} parameters.source Gets or sets the source. + * + * @param {object} [parameters.source.hash] Gets or sets the hash. + * + * @param {string} parameters.source.hash.algorithm Gets or sets the content + * hash algorithm used to hash the content. + * + * @param {string} parameters.source.hash.value Gets or sets expected hash + * value of the content. + * + * @param {string} [parameters.source.type] Gets or sets the content source + * type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [parameters.source.value] Gets or sets the value of the + * content. This is based on the content source type. + * + * @param {string} [parameters.source.version] Gets or sets the version of the + * content. + * + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10528,7 +11011,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Job} - The deserialized result object. + * @resolve {DscNodeConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10536,84 +11019,62 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Job} [result] - The deserialized result object if an error did not occur. - * See {@link Job} for more information. + * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeConfiguration} 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, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Create a job of the runbook. + * Retrieve a list of dsc node configurations. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {object} parameters The parameters supplied to the create job - * operation. - * - * @param {object} [parameters.runbook] Gets or sets the runbook. - * - * @param {string} [parameters.runbook.name] Gets or sets the name of the - * runbook. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @param {number} [options.skip] The number of rows to skip. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.top] The the number of rows to take. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {string} [options.inlinecount] Return total rows. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a job of the runbook. + * Retrieve a list of dsc node configurations. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {object} parameters The parameters supplied to the create job - * operation. - * - * @param {object} [parameters.runbook] Gets or sets the runbook. - * - * @param {string} [parameters.runbook.name] Gets or sets the name of the - * runbook. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @param {number} [options.skip] The number of rows to skip. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.top] The the number of rows to take. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {string} [options.inlinecount] Return total rows. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10625,7 +11086,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Job} - The deserialized result object. + * @resolve {DscNodeConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10633,56 +11094,123 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Job} [result] - The deserialized result object if an error did not occur. - * See {@link Job} for more information. + * {DscNodeConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeConfigurationListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of jobs. + * Create the node configuration identified by node configuration name. * * @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} nodeConfigurationName The Dsc node configuration name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} parameters The create or update parameters for + * configuration. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} parameters.source Gets or sets the source. + * + * @param {object} [parameters.source.hash] Gets or sets the hash. + * + * @param {string} parameters.source.hash.algorithm Gets or sets the content + * hash algorithm used to hash the content. + * + * @param {string} parameters.source.hash.value Gets or sets expected hash + * value of the content. + * + * @param {string} [parameters.source.type] Gets or sets the content source + * type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [parameters.source.value] Gets or sets the value of the + * content. This is based on the content source type. + * + * @param {string} [parameters.source.version] Gets or sets the version of the + * content. + * + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs. + * Create the node configuration identified by node configuration name. * * @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} nodeConfigurationName The Dsc node configuration name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} parameters The create or update parameters for + * configuration. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} parameters.source Gets or sets the source. + * + * @param {object} [parameters.source.hash] Gets or sets the hash. + * + * @param {string} parameters.source.hash.algorithm Gets or sets the content + * hash algorithm used to hash the content. + * + * @param {string} parameters.source.hash.value Gets or sets expected hash + * value of the content. + * + * @param {string} [parameters.source.type] Gets or sets the content source + * type. Possible values include: 'embeddedContent', 'uri' + * + * @param {string} [parameters.source.value] Gets or sets the value of the + * content. This is based on the content source type. + * + * @param {string} [parameters.source.version] Gets or sets the version of the + * content. + * + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. + * + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. + * + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. + * + * @param {string} [parameters.name] Name of the node configuration. + * + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10694,7 +11222,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {JobListResultV2} - The deserialized result object. + * @resolve {DscNodeConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10702,57 +11230,45 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobListResultV2} [result] - The deserialized result object if an error did not occur. - * See {@link JobListResultV2} for more information. + * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeConfiguration} 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, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Resume the job identified by jobName. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc node configurations. * - * @param {string} jobName The job name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume the job identified by jobName. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of dsc node configurations. * - * @param {string} jobName The job name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10763,7 +11279,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DscNodeConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10771,49 +11287,56 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DscNodeConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link DscNodeConfigurationListResult} 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. */ - resume(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - resume(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - resume(resourceGroupName: string, automationAccountName: string, jobName: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * NodeCountInformation + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface NodeCountInformation { /** - * Retrieve a list of jobs. + * Retrieve counts for Dsc Nodes. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs. + * Retrieve counts for Dsc Nodes. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10825,7 +11348,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {JobListResultV2} - The deserialized result object. + * @resolve {NodeCounts} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10833,70 +11356,60 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobListResultV2} [result] - The deserialized result object if an error did not occur. - * See {@link JobListResultV2} for more information. + * {NodeCounts} [result] - The deserialized result object if an error did not occur. + * See {@link NodeCounts} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * JobStreamOperations + * RunbookDraftOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface JobStreamOperations { +export interface RunbookDraftOperations { /** - * Retrieve the job stream identified by job stream id. + * Retrieve the content of runbook draft identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {string} jobStreamId The job stream id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job stream identified by job stream id. + * Retrieve the content of runbook draft identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {string} jobStreamId The job stream id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10907,7 +11420,7 @@ export interface JobStreamOperations { * * {Promise} A promise is returned. * - * @resolve {JobStream} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10915,60 +11428,53 @@ export interface JobStreamOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStream} [result] - The deserialized result object if an error did not occur. - * See {@link JobStream} for more information. + * {Object} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of jobs streams identified by job name. + * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {object} [options] Optional Parameters. + * @param {string} runbookName The runbook name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} runbookContent The runbook draft content. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + replaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs streams identified by job name. + * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} jobName The job name. - * - * @param {object} [options] Optional Parameters. + * @param {string} runbookName The runbook name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} runbookContent The runbook draft content. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10980,7 +11486,7 @@ export interface JobStreamOperations { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10988,50 +11494,49 @@ export interface JobStreamOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * {String} [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. */ - listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback): void; - listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, callback: ServiceCallback): void; + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of jobs streams identified by job name. + * Retrieve the runbook draft identified by runbook name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {string} runbookName The runbook 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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByJobNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs streams identified by job name. + * Retrieve the runbook draft identified by runbook name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {string} runbookName The runbook name. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -11043,7 +11548,7 @@ export interface JobStreamOperations { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {RunbookDraft} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11051,34 +11556,27 @@ export interface JobStreamOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * {RunbookDraft} [result] - The deserialized result object if an error did not occur. + * See {@link RunbookDraft} 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. */ - listByJobNext(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByJobNext(nextPageLink: string, callback: ServiceCallback): void; - listByJobNext(nextPageLink: string, options: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * AgentRegistrationInformation - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface AgentRegistrationInformation { + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the automation agent registration information. + * Undo draft edit to last known published state identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} runbookName The runbook name. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11086,19 +11584,21 @@ export interface AgentRegistrationInformation { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + undoEditWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the automation agent registration information. + * Undo draft edit to last known published state identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} runbookName The runbook name. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11111,7 +11611,7 @@ export interface AgentRegistrationInformation { * * {Promise} A promise is returned. * - * @resolve {AgentRegistration} - The deserialized result object. + * @resolve {RunbookDraftUndoEditResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11119,30 +11619,29 @@ export interface AgentRegistrationInformation { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AgentRegistration} [result] - The deserialized result object if an error did not occur. - * See {@link AgentRegistration} for more information. + * {RunbookDraftUndoEditResult} [result] - The deserialized result object if an error did not occur. + * See {@link RunbookDraftUndoEditResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Regenerate a primary or secondary agent registration key + * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {object} parameters The name of the agent registration key to be - * regenerated + * @param {string} runbookName The runbook name. * - * @param {string} parameters.keyName Gets or sets the agent registration key - * name - primary or secondary. Possible values include: 'primary', 'secondary' + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11151,24 +11650,22 @@ export interface AgentRegistrationInformation { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - regenerateKeyWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginReplaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Regenerate a primary or secondary agent registration key + * Replaces the runbook draft content. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {object} parameters The name of the agent registration key to be - * regenerated + * @param {string} runbookName The runbook name. * - * @param {string} parameters.keyName Gets or sets the agent registration key - * name - primary or secondary. Possible values include: 'primary', 'secondary' + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11182,7 +11679,7 @@ export interface AgentRegistrationInformation { * * {Promise} A promise is returned. * - * @resolve {AgentRegistration} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11190,35 +11687,35 @@ export interface AgentRegistrationInformation { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AgentRegistration} [result] - The deserialized result object if an error did not occur. - * See {@link AgentRegistration} for more information. + * {String} [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. */ - regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, callback: ServiceCallback): void; - regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, callback: ServiceCallback): void; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * DscNodeOperations + * RunbookOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface DscNodeOperations { +export interface RunbookOperations { /** - * Delete the dsc node identified by node id. + * Publish runbook draft. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The node id. + * @param {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -11227,20 +11724,21 @@ export interface DscNodeOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + publishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the dsc node identified by node id. + * Publish runbook draft. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The node id. + * @param {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -11254,7 +11752,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNode} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11262,26 +11760,25 @@ export interface DscNodeOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNode} [result] - The deserialized result object if an error did not occur. - * See {@link DscNode} for more information. + * {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, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: 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; /** - * Retrieve the dsc node identified by node id. + * Retrieve the content of runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The node id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11290,20 +11787,20 @@ export interface DscNodeOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the dsc node identified by node id. + * Retrieve the content of runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The node id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11317,7 +11814,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNode} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11325,37 +11822,25 @@ export interface DscNodeOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNode} [result] - The deserialized result object if an error did not occur. - * See {@link DscNode} for more information. + * {String} [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. */ - get(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, nodeId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Update the dsc node. + * Retrieve the runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId Parameters supplied to the update dsc node. - * - * @param {object} dscNodeUpdateParameters Parameters supplied to the update - * dsc node. - * - * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the - * dsc node. - * - * @param {object} [dscNodeUpdateParameters.properties] - * - * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the - * name of the dsc nodeconfiguration. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11364,31 +11849,20 @@ export interface DscNodeOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the dsc node. + * Retrieve the runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId Parameters supplied to the update dsc node. - * - * @param {object} dscNodeUpdateParameters Parameters supplied to the update - * dsc node. - * - * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the - * dsc node. - * - * @param {object} [dscNodeUpdateParameters.properties] - * - * @param {string} [dscNodeUpdateParameters.properties.name] Gets or sets the - * name of the dsc nodeconfiguration. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11402,7 +11876,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNode} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11410,117 +11884,176 @@ export interface DscNodeOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNode} [result] - The deserialized result object if an error did not occur. - * See {@link DscNode} for more information. + * {Runbook} [result] - The deserialized result object if an error did not occur. + * See {@link Runbook} 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, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of dsc nodes. + * Create the runbook identified by runbook name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The runbook name. + * + * @param {object} parameters The create or update parameters for runbook. + * Provide either content link for a published runbook or draft, not both. + * + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. + * + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. + * + * @param {string} parameters.runbookType Gets or sets the type of the runbook. + * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + * + * @param {object} [parameters.draft] Gets or sets the draft runbook + * properties. + * + * @param {boolean} [parameters.draft.inEdit] Gets or sets whether runbook is + * in edit mode. + * + * @param {object} [parameters.draft.draftContentLink] Gets or sets the draft + * runbook content link. + * + * @param {date} [parameters.draft.creationTime] Gets or sets the creation time + * of the runbook draft. + * + * @param {date} [parameters.draft.lastModifiedTime] Gets or sets the last + * modified time of the runbook draft. + * + * @param {object} [parameters.draft.parameters] Gets or sets the runbook draft + * parameters. + * + * @param {array} [parameters.draft.outputTypes] Gets or sets the runbook + * output types. + * + * @param {object} [parameters.publishContentLink] Gets or sets the published + * runbook content link. + * + * @param {string} [parameters.publishContentLink.uri] Gets or sets the uri of + * the runbook content. + * + * @param {object} [parameters.publishContentLink.contentHash] Gets or sets the + * hash. + * + * @param {string} parameters.publishContentLink.contentHash.algorithm Gets or + * sets the content hash algorithm used to hash the content. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {string} parameters.publishContentLink.contentHash.value Gets or sets + * expected hash value of the content. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} [parameters.publishContentLink.version] Gets or sets the + * version of the content. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {number} [parameters.logActivityTrace] Gets or sets the + * activity-level tracing options of the runbook. * - * @param {number} [options.skip] The number of rows to skip. + * @param {string} [parameters.name] Gets or sets the name of the resource. * - * @param {number} [options.top] The the number of rows to take. + * @param {string} [parameters.location] Gets or sets the location of the + * resource. * - * @param {string} [options.inlinecount] Return total rows. + * @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 * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc nodes. + * Create the runbook identified by runbook name. * * @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} runbookName The runbook name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} parameters The create or update parameters for runbook. + * Provide either content link for a published runbook or draft, not both. * - * @param {number} [options.skip] The number of rows to skip. + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. * - * @param {number} [options.top] The the number of rows to take. + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. * - * @param {string} [options.inlinecount] Return total rows. + * @param {string} parameters.runbookType Gets or sets the type of the runbook. + * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.draft] Gets or sets the draft runbook + * properties. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {boolean} [parameters.draft.inEdit] Gets or sets whether runbook is + * in edit mode. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {object} [parameters.draft.draftContentLink] Gets or sets the draft + * runbook content link. * - * {Promise} A promise is returned. + * @param {date} [parameters.draft.creationTime] Gets or sets the creation time + * of the runbook draft. * - * @resolve {DscNodeListResult} - The deserialized result object. + * @param {date} [parameters.draft.lastModifiedTime] Gets or sets the last + * modified time of the runbook draft. * - * @reject {Error|ServiceError} - The error object. + * @param {object} [parameters.draft.parameters] Gets or sets the runbook draft + * parameters. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} [parameters.draft.outputTypes] Gets or sets the runbook + * output types. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} [parameters.publishContentLink] Gets or sets the published + * runbook content link. * - * {DscNodeListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeListResult} for more information. + * @param {string} [parameters.publishContentLink.uri] Gets or sets the uri of + * the runbook content. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} [parameters.publishContentLink.contentHash] Gets or sets the + * hash. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Retrieve a list of dsc nodes. + * @param {string} parameters.publishContentLink.contentHash.algorithm Gets or + * sets the content hash algorithm used to hash the content. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} parameters.publishContentLink.contentHash.value Gets or sets + * expected hash value of the content. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.publishContentLink.version] Gets or sets the + * version of the content. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. * - * @returns {Promise} A promise is returned + * @param {number} [parameters.logActivityTrace] Gets or sets the + * activity-level tracing options of the runbook. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [parameters.name] Gets or sets the name of the resource. * - * @reject {Error|ServiceError} - The error object. - */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve a list of dsc nodes. + * @param {string} [parameters.location] Gets or sets the location of the + * resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. * * @param {object} [options] Optional Parameters. * @@ -11534,7 +12067,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeListResult} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11542,63 +12075,90 @@ export interface DscNodeOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeListResult} for more information. + * {Runbook} [result] - The deserialized result object if an error did not occur. + * See {@link Runbook} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * NodeReports - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface NodeReports { + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the Dsc node report list by node id. + * Update the runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The parameters supplied to the list operation. + * @param {string} runbookName The runbook name. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The update parameters for runbook. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. + * + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. + * + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. + * + * @param {number} [parameters.logActivityTrace] Gets or sets the + * activity-level tracing options of the runbook. + * + * @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 * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByNodeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node report list by node id. + * Update the runbook identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The parameters supplied to the list operation. + * @param {string} runbookName The runbook name. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters The update parameters for runbook. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. + * + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. + * + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. + * + * @param {number} [parameters.logActivityTrace] Gets or sets the + * activity-level tracing options of the runbook. + * + * @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 * request @@ -11610,7 +12170,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {DscNodeReportListResult} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11618,29 +12178,26 @@ export interface NodeReports { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeReportListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeReportListResult} for more - * information. + * {Runbook} [result] - The deserialized result object if an error did not occur. + * See {@link Runbook} 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. */ - listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: ServiceCallback): void; - listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the Dsc node report data by node id and report id. + * Delete the runbook by name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11649,22 +12206,20 @@ export interface NodeReports { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node report data by node id and report id. + * Delete the runbook by name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11678,7 +12233,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {DscNodeReport} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11686,29 +12241,24 @@ export interface NodeReports { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeReport} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeReport} for more information. + * {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. */ - get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the Dsc node reports by node id and report id. + * Retrieve a list of runbooks. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The Dsc node id. - * - * @param {string} reportId The report id. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11716,23 +12266,19 @@ export interface NodeReports { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node reports by node id and report id. + * Retrieve a list of runbooks. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeId The Dsc node id. - * - * @param {string} reportId The report id. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -11745,7 +12291,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {RunbookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11753,22 +12299,27 @@ export interface NodeReports { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {Object} [result] - The deserialized result object if an error did not occur. + * {RunbookListResult} [result] - The deserialized result object if an error did not occur. + * See {@link RunbookListResult} 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. */ - getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: ServiceCallback): void; - getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the Dsc node report list by node id. + * Publish runbook draft. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -11777,17 +12328,21 @@ export interface NodeReports { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByNodeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node report list by node id. + * Publish runbook draft. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -11801,7 +12356,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {DscNodeReportListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11809,58 +12364,22 @@ export interface NodeReports { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeReportListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeReportListResult} for more - * information. + * {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. */ - listByNodeNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByNodeNext(nextPageLink: string, callback: ServiceCallback): void; - listByNodeNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * DscCompilationJobOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface DscCompilationJobOperations { + 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; /** - * Creates the Dsc compilation job of the configuration. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} compilationJobName The the DSC configuration Id. - * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. - * - * @param {object} parameters.configuration Gets or sets the configuration. - * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. - * - * @param {string} [parameters.name] Gets or sets name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * Retrieve a list of runbooks. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11869,42 +12388,17 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the Dsc compilation job of the configuration. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} compilationJobName The the DSC configuration Id. - * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. - * - * @param {object} parameters.configuration Gets or sets the configuration. - * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. - * - * @param {string} [parameters.name] Gets or sets name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * Retrieve a list of runbooks. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11918,7 +12412,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {RunbookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11926,26 +12420,38 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. - * See {@link DscCompilationJob} for more information. + * {RunbookListResult} [result] - The deserialized result object if an error did not occur. + * See {@link RunbookListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, callback: ServiceCallback): void; - create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * TestJobStreams + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface TestJobStreams { /** - * Retrieve the Dsc configuration compilation job identified by job id. + * Retrieve a test job stream of the test job identified by runbook name and + * stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} compilationJobName The the DSC configuration Id. + * @param {string} runbookName The runbook name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -11954,20 +12460,23 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc configuration compilation job identified by job id. + * Retrieve a test job stream of the test job identified by runbook name and + * stream id. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} compilationJobName The the DSC configuration Id. + * @param {string} runbookName The runbook name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -11981,7 +12490,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11989,25 +12498,27 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. - * See {@link DscCompilationJob} for more information. + * {JobStream} [result] - The deserialized result object if an error did not occur. + * See {@link JobStream} 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, compilationJobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve a list of test job streams identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} runbookName The runbook name. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -12017,19 +12528,21 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByTestJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve a list of test job streams identified by runbook name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * + * @param {string} runbookName The runbook name. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. @@ -12044,7 +12557,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJobListResult} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12052,29 +12565,23 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscCompilationJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscCompilationJobListResult} for more - * information. + * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. + * See {@link JobStreamListResult} 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; + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the job stream identified by job stream id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {uuid} jobId The job id. + * Retrieve a list of test job streams identified by runbook name. * - * @param {string} jobStreamId The job stream id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12083,22 +12590,17 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getStreamWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByTestJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job stream identified by job stream id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {uuid} jobId The job id. + * Retrieve a list of test job streams identified by runbook name. * - * @param {string} jobStreamId The job stream id. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12112,7 +12614,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {JobStream} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12120,48 +12622,45 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStream} [result] - The deserialized result object if an error did not occur. - * See {@link JobStream} for more information. + * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. + * See {@link JobStreamListResult} 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. */ - getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, callback: ServiceCallback): void; - getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByTestJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByTestJobNext(nextPageLink: string, callback: ServiceCallback): void; + listByTestJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * TestJobOperations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface TestJobOperations { /** - * Creates the Dsc compilation job of the configuration. + * Create a test job of the runbook. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} compilationJobName The the DSC configuration Id. - * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. - * - * @param {object} parameters.configuration Gets or sets the configuration. - * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. - * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {string} runbookName The parameters supplied to the create test job + * operation. * - * @param {string} [parameters.name] Gets or sets name of the resource. + * @param {object} parameters The parameters supplied to the create test job + * operation. * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * @param {object} [parameters.parameters] Gets or sets the parameters of the + * test job. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} [parameters.runOn] Gets or sets the runOn which specifies + * the group name where the job is to be executed. * * @param {object} [options] Optional Parameters. * @@ -12170,42 +12669,30 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the Dsc compilation job of the configuration. + * Create a test job of the runbook. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} compilationJobName The the DSC configuration Id. - * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. - * - * @param {object} parameters.configuration Gets or sets the configuration. + * @param {string} runbookName The parameters supplied to the create test job + * operation. * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @param {object} parameters The parameters supplied to the create test job + * operation. * * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. - * - * @param {string} [parameters.name] Gets or sets name of the resource. - * - * @param {string} [parameters.location] Gets or sets the location of the - * resource. + * test job. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} [parameters.runOn] Gets or sets the runOn which specifies + * the group name where the job is to be executed. * * @param {object} [options] Optional Parameters. * @@ -12219,7 +12706,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {TestJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12227,23 +12714,26 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscCompilationJob} [result] - The deserialized result object if an error did not occur. - * See {@link DscCompilationJob} for more information. + * {TestJob} [result] - The deserialized result object if an error did not occur. + * See {@link TestJob} 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. */ - beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, callback: ServiceCallback): void; - beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, callback: ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve the test job for the specified runbook. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12252,17 +12742,20 @@ export interface DscCompilationJobOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve the test job for the specified runbook. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12276,7 +12769,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJobListResult} - The deserialized result object. + * @resolve {TestJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12284,36 +12777,26 @@ export interface DscCompilationJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscCompilationJobListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscCompilationJobListResult} for more - * information. + * {TestJob} [result] - The deserialized result object if an error did not occur. + * See {@link TestJob} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * DscCompilationJobStream - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface DscCompilationJobStream { + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve all the job streams for the compilation Job. + * Resume the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {uuid} jobId The job id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12322,20 +12805,20 @@ export interface DscCompilationJobStream { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve all the job streams for the compilation Job. + * Resume the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {uuid} jobId The job id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12349,7 +12832,7 @@ export interface DscCompilationJobStream { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12357,35 +12840,25 @@ export interface DscCompilationJobStream { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * {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. */ - listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, callback: ServiceCallback): void; - listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * DscNodeConfigurationOperations - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface DscNodeConfigurationOperations { + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Delete the Dsc node configurations by node configuration. + * Stop the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12398,16 +12871,16 @@ export interface DscNodeConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the Dsc node configurations by node configuration. + * Stop the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12435,19 +12908,19 @@ export interface DscNodeConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve the Dsc node configurations by node configuration. + * Suspend the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12456,20 +12929,20 @@ export interface DscNodeConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node configurations by node configuration. + * Suspend the test job. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12483,7 +12956,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfiguration} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12491,62 +12964,34 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeConfiguration} for more information. + * {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. */ - get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback): void; + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Python2Package + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface Python2Package { /** - * Create the node configuration identified by node configuration name. + * Delete the python 2 package by name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. - * - * @param {object} parameters The create or update parameters for - * configuration. - * - * @param {object} parameters.source Gets or sets the source. - * - * @param {object} [parameters.source.hash] Gets or sets the hash. - * - * @param {string} parameters.source.hash.algorithm Gets or sets the content - * hash algorithm used to hash the content. - * - * @param {string} parameters.source.hash.value Gets or sets expected hash - * value of the content. - * - * @param {string} [parameters.source.type] Gets or sets the content source - * type. Possible values include: 'embeddedContent', 'uri' - * - * @param {string} [parameters.source.value] Gets or sets the value of the - * content. This is based on the content source type. - * - * @param {string} [parameters.source.version] Gets or sets the version of the - * content. - * - * @param {object} parameters.configuration Gets or sets the configuration of - * the node. - * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. - * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. - * - * @param {string} [parameters.name] Name of the node configuration. - * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} packageName The python package name. * * @param {object} [options] Optional Parameters. * @@ -12555,56 +13000,20 @@ export interface DscNodeConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Create the node configuration identified by node configuration name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} nodeConfigurationName The Dsc node configuration name. - * - * @param {object} parameters The create or update parameters for - * configuration. - * - * @param {object} parameters.source Gets or sets the source. - * - * @param {object} [parameters.source.hash] Gets or sets the hash. - * - * @param {string} parameters.source.hash.algorithm Gets or sets the content - * hash algorithm used to hash the content. - * - * @param {string} parameters.source.hash.value Gets or sets expected hash - * value of the content. - * - * @param {string} [parameters.source.type] Gets or sets the content source - * type. Possible values include: 'embeddedContent', 'uri' - * - * @param {string} [parameters.source.value] Gets or sets the value of the - * content. This is based on the content source type. - * - * @param {string} [parameters.source.version] Gets or sets the version of the - * content. - * - * @param {object} parameters.configuration Gets or sets the configuration of - * the node. - * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, packageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Delete the python 2 package by name. * - * @param {string} [parameters.name] Name of the node configuration. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [parameters.tags] Gets or sets the tags attached to the - * resource. + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package name. * * @param {object} [options] Optional Parameters. * @@ -12618,7 +13027,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfiguration} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12626,62 +13035,49 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeConfiguration} for more information. + * {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. */ - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of dsc node configurations. + * Retrieve the python 2 package identified by package name. * * @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 {number} [options.skip] The number of rows to skip. - * - * @param {number} [options.top] The the number of rows to take. + * @param {string} packageName The python package name. * - * @param {string} [options.inlinecount] Return total rows. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, packageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc node configurations. + * Retrieve the python 2 package identified by package name. * * @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 {number} [options.skip] The number of rows to skip. - * - * @param {number} [options.top] The the number of rows to take. + * @param {string} packageName The python package name. * - * @param {string} [options.inlinecount] Return total rows. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -12693,7 +13089,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfigurationListResult} - The deserialized result object. + * @resolve {Module} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12701,60 +13097,89 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeConfigurationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeConfigurationListResult} for more - * information. + * {Module} [result] - The deserialized result object if an error did not occur. + * See {@link Module} 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, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, packageName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, packageName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, packageName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Create the node configuration identified by node configuration name. + * Create or Update the python 2 package identified by package name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} packageName The name of python package. * - * @param {object} parameters The create or update parameters for - * configuration. + * @param {object} parameters The create or update parameters for python + * package. * - * @param {object} parameters.source Gets or sets the source. + * @param {object} parameters.contentLink Gets or sets the module content link. * - * @param {object} [parameters.source.hash] Gets or sets the hash. + * @param {string} [parameters.contentLink.uri] Gets or sets the uri of the + * runbook content. * - * @param {string} parameters.source.hash.algorithm Gets or sets the content - * hash algorithm used to hash the content. + * @param {object} [parameters.contentLink.contentHash] Gets or sets the hash. * - * @param {string} parameters.source.hash.value Gets or sets expected hash - * value of the content. + * @param {string} parameters.contentLink.contentHash.algorithm Gets or sets + * the content hash algorithm used to hash the content. * - * @param {string} [parameters.source.type] Gets or sets the content source - * type. Possible values include: 'embeddedContent', 'uri' + * @param {string} parameters.contentLink.contentHash.value Gets or sets + * expected hash value of the content. * - * @param {string} [parameters.source.value] Gets or sets the value of the - * content. This is based on the content source type. + * @param {string} [parameters.contentLink.version] Gets or sets the version of + * the content. * - * @param {string} [parameters.source.version] Gets or sets the version of the - * content. + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. * - * @param {object} parameters.configuration Gets or sets the configuration of - * the node. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.name] Name of the node configuration. + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create or Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The create or update parameters for python + * package. + * + * @param {object} parameters.contentLink Gets or sets the module content link. + * + * @param {string} [parameters.contentLink.uri] Gets or sets the uri of the + * runbook content. + * + * @param {object} [parameters.contentLink.contentHash] Gets or sets the hash. + * + * @param {string} parameters.contentLink.contentHash.algorithm Gets or sets + * the content hash algorithm used to hash the content. + * + * @param {string} parameters.contentLink.contentHash.value Gets or sets + * expected hash value of the content. + * + * @param {string} [parameters.contentLink.version] Gets or sets the version of + * the content. * * @param {object} [parameters.tags] Gets or sets the tags attached to the * resource. @@ -12764,55 +13189,70 @@ export interface DscNodeConfigurationOperations { * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @returns {Promise} A promise is returned + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {Promise} A promise is returned. + * + * @resolve {Module} - 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. + * + * {Module} [result] - The deserialized result object if an error did not occur. + * See {@link Module} 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. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageCreateParameters, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** - * Create the node configuration identified by node configuration name. + * Update the python 2 package identified by package name. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {string} nodeConfigurationName The Dsc node configuration name. - * - * @param {object} parameters The create or update parameters for - * configuration. + * @param {string} packageName The name of python package. * - * @param {object} parameters.source Gets or sets the source. + * @param {object} parameters The update parameters for python package. * - * @param {object} [parameters.source.hash] Gets or sets the hash. + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. * - * @param {string} parameters.source.hash.algorithm Gets or sets the content - * hash algorithm used to hash the content. + * @param {object} [options] Optional Parameters. * - * @param {string} parameters.source.hash.value Gets or sets expected hash - * value of the content. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.source.type] Gets or sets the content source - * type. Possible values include: 'embeddedContent', 'uri' + * @returns {Promise} A promise is returned * - * @param {string} [parameters.source.value] Gets or sets the value of the - * content. This is based on the content source type. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.source.version] Gets or sets the version of the - * content. + * @reject {Error|ServiceError} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Update the python 2 package identified by package name. * - * @param {object} parameters.configuration Gets or sets the configuration of - * the node. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @param {string} automationAccountName The name of the automation account. * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {string} packageName The name of python package. * - * @param {string} [parameters.name] Name of the node configuration. + * @param {object} parameters The update parameters for python package. * * @param {object} [parameters.tags] Gets or sets the tags attached to the * resource. @@ -12829,7 +13269,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfiguration} - The deserialized result object. + * @resolve {Module} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12837,23 +13277,24 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeConfiguration} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeConfiguration} for more information. + * {Module} [result] - The deserialized result object if an error did not occur. + * See {@link Module} 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. */ - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageUpdateParameters, callback: ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: models.PythonPackageUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of dsc node configurations. + * Retrieve a list of python 2 packages. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -12862,17 +13303,18 @@ export interface DscNodeConfigurationOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc node configurations. + * Retrieve a list of python 2 packages. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. * * @param {object} [options] Optional Parameters. * @@ -12886,7 +13328,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfigurationListResult} - The deserialized result object. + * @resolve {ModuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12894,34 +13336,23 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DscNodeConfigurationListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeConfigurationListResult} for more - * information. + * {ModuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ModuleListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * NodeCountInformation - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface NodeCountInformation { + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve counts for Dsc Nodes. - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of python 2 packages. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12930,18 +13361,17 @@ export interface NodeCountInformation { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve counts for Dsc Nodes. - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of python 2 packages. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12955,7 +13385,7 @@ export interface NodeCountInformation { * * {Promise} A promise is returned. * - * @resolve {NodeCounts} - The deserialized result object. + * @resolve {ModuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12963,14 +13393,14 @@ export interface NodeCountInformation { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NodeCounts} [result] - The deserialized result object if an error did not occur. - * See {@link NodeCounts} for more information. + * {ModuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ModuleListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 d0a423140c..efce56edaa 100644 --- a/lib/services/automationManagement/lib/operations/index.js +++ b/lib/services/automationManagement/lib/operations/index.js @@ -31,10 +31,6 @@ exports.ActivityOperations = require('./activityOperations'); exports.ModuleOperations = require('./moduleOperations'); exports.ObjectDataTypes = require('./objectDataTypes'); exports.Fields = require('./fields'); -exports.RunbookDraftOperations = require('./runbookDraftOperations'); -exports.RunbookOperations = require('./runbookOperations'); -exports.TestJobStreams = require('./testJobStreams'); -exports.TestJobOperations = require('./testJobOperations'); exports.ScheduleOperations = require('./scheduleOperations'); exports.VariableOperations = require('./variableOperations'); exports.WebhookOperations = require('./webhookOperations'); @@ -54,3 +50,8 @@ exports.DscCompilationJobOperations = require('./dscCompilationJobOperations'); exports.DscCompilationJobStream = require('./dscCompilationJobStream'); exports.DscNodeConfigurationOperations = require('./dscNodeConfigurationOperations'); exports.NodeCountInformation = require('./nodeCountInformation'); +exports.RunbookDraftOperations = require('./runbookDraftOperations'); +exports.RunbookOperations = require('./runbookOperations'); +exports.TestJobStreams = require('./testJobStreams'); +exports.TestJobOperations = require('./testJobOperations'); +exports.Python2Package = require('./python2Package'); diff --git a/lib/services/automationManagement/lib/operations/python2Package.js b/lib/services/automationManagement/lib/operations/python2Package.js new file mode 100644 index 0000000000..41ac01be2f --- /dev/null +++ b/lib/services/automationManagement/lib/operations/python2Package.js @@ -0,0 +1,1620 @@ +/* + * 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; + +/** + * Delete the python 2 package by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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, packageName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-06-30'; + // 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 (packageName === null || packageName === undefined || typeof packageName.valueOf() !== 'string') { + throw new Error('packageName 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}/python2Packages/{packageName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{packageName}', encodeURIComponent(packageName)); + 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); + }); +} + +/** + * Retrieve the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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 Module} 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, packageName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-06-30'; + // 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 (packageName === null || packageName === undefined || typeof packageName.valueOf() !== 'string') { + throw new Error('packageName 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}/python2Packages/{packageName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{packageName}', encodeURIComponent(packageName)); + 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['Module']().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); + }); +} + +/** + * Create or Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The create or update parameters for python + * package. + * + * @param {object} parameters.contentLink Gets or sets the module content link. + * + * @param {string} [parameters.contentLink.uri] Gets or sets the uri of the + * runbook content. + * + * @param {object} [parameters.contentLink.contentHash] Gets or sets the hash. + * + * @param {string} parameters.contentLink.contentHash.algorithm Gets or sets + * the content hash algorithm used to hash the content. + * + * @param {string} parameters.contentLink.contentHash.value Gets or sets + * expected hash value of the content. + * + * @param {string} [parameters.contentLink.version] Gets or sets the version of + * the content. + * + * @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 + * 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 Module} 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, packageName, 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 = '2018-06-30'; + // 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 (packageName === null || packageName === undefined || typeof packageName.valueOf() !== 'string') { + throw new Error('packageName 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}/python2Packages/{packageName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{packageName}', encodeURIComponent(packageName)); + 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['PythonPackageCreateParameters']().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['Module']().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['Module']().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); + }); +} + +/** + * Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The update parameters for python package. + * + * @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 + * 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 Module} 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, packageName, 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 = '2018-06-30'; + // 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 (packageName === null || packageName === undefined || typeof packageName.valueOf() !== 'string') { + throw new Error('packageName 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}/python2Packages/{packageName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{packageName}', encodeURIComponent(packageName)); + 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['PythonPackageUpdateParameters']().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['Module']().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 python 2 packages. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ModuleListResult} 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 apiVersion = '2018-06-30'; + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._]+$/) === null) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); + } + } + if (automationAccountName === null || automationAccountName === undefined || typeof automationAccountName.valueOf() !== 'string') { + throw new Error('automationAccountName cannot be null or undefined and it must be of type string.'); + } + if (this.client.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}/python2Packages'; + 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)); + 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['ModuleListResult']().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 python 2 packages. + * + * @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 ModuleListResult} 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['ModuleListResult']().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 Python2Package. */ +class Python2Package { + /** + * Create a Python2Package. + * @param {AutomationClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._deleteMethod = _deleteMethod; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._update = _update; + this._listByAutomationAccount = _listByAutomationAccount; + this._listByAutomationAccountNext = _listByAutomationAccountNext; + } + + /** + * Delete the python 2 package by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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, packageName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, automationAccountName, packageName, 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 python 2 package by name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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, packageName, 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, packageName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, automationAccountName, packageName, options, optionalCallback); + } + } + + /** + * Retrieve the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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, packageName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, automationAccountName, packageName, 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 python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The python package 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 {Module} - 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 Module} 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, packageName, 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, packageName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, automationAccountName, packageName, options, optionalCallback); + } + } + + /** + * Create or Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The create or update parameters for python + * package. + * + * @param {object} parameters.contentLink Gets or sets the module content link. + * + * @param {string} [parameters.contentLink.uri] Gets or sets the uri of the + * runbook content. + * + * @param {object} [parameters.contentLink.contentHash] Gets or sets the hash. + * + * @param {string} parameters.contentLink.contentHash.algorithm Gets or sets + * the content hash algorithm used to hash the content. + * + * @param {string} parameters.contentLink.contentHash.value Gets or sets + * expected hash value of the content. + * + * @param {string} [parameters.contentLink.version] Gets or sets the version of + * the content. + * + * @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 + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, automationAccountName, packageName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, automationAccountName, packageName, 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 or Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The create or update parameters for python + * package. + * + * @param {object} parameters.contentLink Gets or sets the module content link. + * + * @param {string} [parameters.contentLink.uri] Gets or sets the uri of the + * runbook content. + * + * @param {object} [parameters.contentLink.contentHash] Gets or sets the hash. + * + * @param {string} parameters.contentLink.contentHash.algorithm Gets or sets + * the content hash algorithm used to hash the content. + * + * @param {string} parameters.contentLink.contentHash.value Gets or sets + * expected hash value of the content. + * + * @param {string} [parameters.contentLink.version] Gets or sets the version of + * the content. + * + * @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 + * 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 {Module} - 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 Module} 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, packageName, 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, packageName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, automationAccountName, packageName, parameters, options, optionalCallback); + } + } + + /** + * Update the python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The update parameters for python package. + * + * @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 + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName, automationAccountName, packageName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, automationAccountName, packageName, 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 python 2 package identified by package name. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} packageName The name of python package. + * + * @param {object} parameters The update parameters for python package. + * + * @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 + * 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 {Module} - 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 Module} 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, packageName, 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, packageName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, automationAccountName, packageName, parameters, options, optionalCallback); + } + } + + /** + * Retrieve a list of python 2 packages. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + 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 python 2 packages. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ModuleListResult} - 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 ModuleListResult} 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 python 2 packages. + * + * @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 python 2 packages. + * + * @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 {ModuleListResult} - 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 ModuleListResult} 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 = Python2Package; diff --git a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js index f4d005719b..dc08d05921 100644 --- a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js @@ -50,7 +50,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -170,7 +170,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -183,7 +183,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -230,7 +230,7 @@ function _replaceContent(resourceGroupName, automationAccountName, runbookName, required: false, serializedName: 'parsedResponse', type: { - name: 'Stream' + name: 'String' } }; result = client.deserialize(resultMapper, parsedResponse, 'result'); @@ -284,7 +284,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -411,72 +411,6 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca }); } - -/** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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. - * - * {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 _publish(resourceGroupName, automationAccountName, runbookName, 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.'); - } - - // Send request - this.beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; - - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; - if (responseBody === '') responseBody = null; - - // Deserialize Response - - return callback(null, result, httpRequest, response); - }); - }); -} - /** * Undo draft edit to last known published state identified by runbook name. * @@ -515,7 +449,7 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -651,7 +585,7 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -664,7 +598,7 @@ function _undoEdit(resourceGroupName, automationAccountName, runbookName, option * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -680,7 +614,7 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -709,8 +643,8 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN if (runbookName === null || runbookName === undefined || typeof runbookName.valueOf() !== 'string') { throw new Error('runbookName cannot be null or undefined and it must be of type string.'); } - if (runbookContent === null || runbookContent === undefined) { - throw new Error('runbookContent cannot be null or undefined and it must be of type object.'); + if (runbookContent === null || runbookContent === undefined || typeof runbookContent.valueOf() !== 'string') { + throw new Error('runbookContent cannot be null or undefined and it must be of type string.'); } if (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.'); @@ -753,163 +687,33 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN } } // Serialize Request - let requestContent = runbookContent; - httpRequest.body = requestContent; - // Send Request - httpRequest.streamedResponse = true; - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - - let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 202) { - let error = new Error(`Unexpected status code: ${statusCode}`); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - if (responseBody !== undefined) 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 = response; - return callback(null, result, httpRequest, response); - }); -} - -/** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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. - * - * {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 _beginPublish(resourceGroupName, automationAccountName, runbookName, 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 + let requestContent = null; + let requestModel = null; try { - 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 (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 (runbookName === null || runbookName === undefined || typeof runbookName.valueOf() !== 'string') { - throw new Error('runbookName cannot be null or undefined and it must be of type string.'); - } - if (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.'); + if (runbookContent !== null && runbookContent !== undefined) { + let requestModelMapper = { + required: true, + serializedName: 'runbookContent', + type: { + name: 'String' + } + }; + requestModel = client.serialize(requestModelMapper, runbookContent, 'runbookContent'); + requestContent = JSON.stringify(requestModel); } } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/publish'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); - requestUrl = requestUrl.replace('{runbookName}', encodeURIComponent(runbookName)); - 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; + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(runbookContent, null, 2)}.`); + return callback(serializationError); } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 202) { + if (statusCode !== 200 && statusCode !== 202) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -938,6 +742,29 @@ 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); }); @@ -954,10 +781,8 @@ class RunbookDraftOperations { this._getContent = _getContent; this._replaceContent = _replaceContent; this._get = _get; - this._publish = _publish; this._undoEdit = _undoEdit; this._beginReplaceContent = _beginReplaceContent; - this._beginPublish = _beginPublish; } /** @@ -1058,7 +883,7 @@ class RunbookDraftOperations { * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1067,7 +892,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. */ @@ -1094,7 +919,7 @@ class RunbookDraftOperations { * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1108,7 +933,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {Object} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1116,7 +941,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1232,97 +1057,6 @@ class RunbookDraftOperations { } } - /** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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. - */ - publishWithHttpOperationResponse(resourceGroupName, automationAccountName, runbookName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._publish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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 {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. - */ - publish(resourceGroupName, automationAccountName, runbookName, 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._publish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._publish(resourceGroupName, automationAccountName, runbookName, options, optionalCallback); - } - } - /** * Undo draft edit to last known published state identified by runbook name. * @@ -1423,7 +1157,7 @@ class RunbookDraftOperations { * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1432,7 +1166,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. */ @@ -1459,7 +1193,7 @@ class RunbookDraftOperations { * * @param {string} runbookName The runbook name. * - * @param {object} runbookContent The runbook draft content. + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -1473,7 +1207,7 @@ class RunbookDraftOperations { * * {Promise} A promise is returned * - * @resolve {Object} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1481,7 +1215,7 @@ class RunbookDraftOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1507,97 +1241,6 @@ class RunbookDraftOperations { } } - /** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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. - */ - beginPublishWithHttpOperationResponse(resourceGroupName, automationAccountName, runbookName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Publish runbook draft. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} runbookName The parameters supplied to the publish runbook - * 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 {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. - */ - beginPublish(resourceGroupName, automationAccountName, runbookName, 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._beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._beginPublish(resourceGroupName, automationAccountName, runbookName, options, optionalCallback); - } - } - } module.exports = RunbookDraftOperations; diff --git a/lib/services/automationManagement/lib/operations/runbookOperations.js b/lib/services/automationManagement/lib/operations/runbookOperations.js index 7f15c99528..54745b698d 100644 --- a/lib/services/automationManagement/lib/operations/runbookOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookOperations.js @@ -14,6 +14,72 @@ const msRest = require('ms-rest'); const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; + +/** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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. + * + * {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 _publish(resourceGroupName, automationAccountName, runbookName, 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.'); + } + + // Send request + this.beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + /** * Retrieve the content of runbook identified by runbook name. * @@ -34,7 +100,7 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -50,7 +116,7 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -121,22 +187,20 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } httpRequest.body = null; // Send Request - httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } - let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(`Unexpected status code: ${statusCode}`); + 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 { - if (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); + parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; @@ -153,9 +217,33 @@ function _getContent(resourceGroupName, automationAccountName, runbookName, opti } return callback(error); } - // Create Result - let result = response; + 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); }); } @@ -197,7 +285,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -425,7 +513,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, runbookName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -518,7 +606,7 @@ function _createOrUpdate(resourceGroupName, automationAccountName, runbookName, return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 201 && statusCode !== 400) { + if (statusCode !== 200 && statusCode !== 201) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -643,7 +731,7 @@ function _update(resourceGroupName, automationAccountName, runbookName, paramete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -823,7 +911,7 @@ function _deleteMethod(resourceGroupName, automationAccountName, runbookName, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -968,7 +1056,7 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1091,6 +1179,153 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti }); } +/** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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. + * + * {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 _beginPublish(resourceGroupName, automationAccountName, runbookName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-06-30'; + // Validate + try { + 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 (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 (runbookName === null || runbookName === undefined || typeof runbookName.valueOf() !== 'string') { + throw new Error('runbookName cannot be null or undefined and it must be of type string.'); + } + if (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}/runbooks/{runbookName}/publish'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); + requestUrl = requestUrl.replace('{runbookName}', encodeURIComponent(runbookName)); + 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 !== 202) { + 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 runbooks. * @@ -1227,15 +1462,108 @@ class RunbookOperations { */ constructor(client) { this.client = client; + this._publish = _publish; this._getContent = _getContent; this._get = _get; this._createOrUpdate = _createOrUpdate; this._update = _update; this._deleteMethod = _deleteMethod; this._listByAutomationAccount = _listByAutomationAccount; + this._beginPublish = _beginPublish; this._listByAutomationAccountNext = _listByAutomationAccountNext; } + /** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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. + */ + publishWithHttpOperationResponse(resourceGroupName, automationAccountName, runbookName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._publish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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 {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. + */ + publish(resourceGroupName, automationAccountName, runbookName, 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._publish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._publish(resourceGroupName, automationAccountName, runbookName, options, optionalCallback); + } + } + /** * Retrieve the content of runbook identified by runbook name. * @@ -1252,7 +1580,7 @@ class RunbookOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -1291,7 +1619,7 @@ class RunbookOperations { * * {Promise} A promise is returned * - * @resolve {Object} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1299,7 +1627,7 @@ class RunbookOperations { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {string} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -1938,6 +2266,97 @@ class RunbookOperations { } } + /** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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. + */ + beginPublishWithHttpOperationResponse(resourceGroupName, automationAccountName, runbookName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Publish runbook draft. + * + * @param {string} resourceGroupName Name of an Azure Resource group. + * + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} runbookName The parameters supplied to the publish runbook + * 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 {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. + */ + beginPublish(resourceGroupName, automationAccountName, runbookName, 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._beginPublish(resourceGroupName, automationAccountName, runbookName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginPublish(resourceGroupName, automationAccountName, runbookName, options, optionalCallback); + } + } + /** * Retrieve a list of runbooks. * diff --git a/lib/services/automationManagement/lib/operations/testJobOperations.js b/lib/services/automationManagement/lib/operations/testJobOperations.js index 7fa11c73e5..530c233bdb 100644 --- a/lib/services/automationManagement/lib/operations/testJobOperations.js +++ b/lib/services/automationManagement/lib/operations/testJobOperations.js @@ -61,7 +61,7 @@ function _create(resourceGroupName, automationAccountName, runbookName, paramete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -242,7 +242,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -405,7 +405,7 @@ function _resume(resourceGroupName, automationAccountName, runbookName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -551,7 +551,7 @@ function _stop(resourceGroupName, automationAccountName, runbookName, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -697,7 +697,7 @@ function _suspend(resourceGroupName, automationAccountName, runbookName, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/automationManagement/lib/operations/testJobStreams.js b/lib/services/automationManagement/lib/operations/testJobStreams.js index 9feaa152d1..c187b43da2 100644 --- a/lib/services/automationManagement/lib/operations/testJobStreams.js +++ b/lib/services/automationManagement/lib/operations/testJobStreams.js @@ -54,7 +54,7 @@ function _get(resourceGroupName, automationAccountName, runbookName, jobStreamId if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -225,7 +225,7 @@ function _listByTestJob(resourceGroupName, automationAccountName, runbookName, o throw new Error('callback cannot be null.'); } let filter = (options && options.filter !== undefined) ? options.filter : undefined; - let apiVersion = '2015-10-31'; + let apiVersion = '2018-06-30'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/automationManagement/package.json b/lib/services/automationManagement/package.json index 0066807941..b739c2114f 100644 --- a/lib/services/automationManagement/package.json +++ b/lib/services/automationManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/automationClient.js", "types": "./lib/automationClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/automationManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"