diff --git a/lib/services/automationManagement/lib/automationClient.d.ts b/lib/services/automationManagement/lib/automationClient.d.ts index 821580ecd2..dd37dd181b 100644 --- a/lib/services/automationManagement/lib/automationClient.d.ts +++ b/lib/services/automationManagement/lib/automationClient.d.ts @@ -23,8 +23,6 @@ export default class AutomationClient extends AzureServiceClient { * * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * - * @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration' - * * @param {string} [baseUri] - The base URI of the service. * * @param {object} [options] - The parameter options @@ -43,14 +41,12 @@ export default class AutomationClient extends AzureServiceClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, countType1: string, baseUri?: string, options?: AzureServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; subscriptionId: string; - countType1: string; - acceptLanguage: string; longRunningOperationRetryTimeout: number; @@ -75,10 +71,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 +90,10 @@ 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; } export { AutomationClient, models as AutomationModels }; diff --git a/lib/services/automationManagement/lib/automationClient.js b/lib/services/automationManagement/lib/automationClient.js index 62706fd455..080a9a995f 100644 --- a/lib/services/automationManagement/lib/automationClient.js +++ b/lib/services/automationManagement/lib/automationClient.js @@ -28,7 +28,6 @@ class AutomationClient extends ServiceClient { * Create a AutomationClient. * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - * @param {countType} countType1 - The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration' * @param {string} [baseUri] - The base URI of the service. * @param {object} [options] - The parameter options * @param {Array} [options.filters] - Filters to be added to the request pipeline @@ -39,16 +38,13 @@ class AutomationClient extends ServiceClient { * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ - constructor(credentials, subscriptionId, countType1, baseUri, options) { + constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId === null || subscriptionId === undefined) { throw new Error('\'subscriptionId\' cannot be null.'); } - if (countType1 === null || countType1 === undefined) { - throw new Error('\'countType1\' cannot be null.'); - } if (!options) options = {}; @@ -63,7 +59,6 @@ class AutomationClient extends ServiceClient { } this.credentials = credentials; this.subscriptionId = subscriptionId; - this.countType1 = countType1; let packageInfo = this.getPackageJsonInfo(__dirname); this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); @@ -93,10 +88,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 +107,10 @@ 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.models = models; msRest.addSerializationMixin(this); } diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 778b24f201..4266150bf1 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -1128,808 +1128,431 @@ export interface TypeField { /** * @class - * Initializes a new instance of the JobStream class. + * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. * @constructor - * Definition of the job stream. + * The properties of the create advanced schedule monthly occurrence. * - * @member {string} [id] Gets or sets the id of the resource. - * @member {string} [jobStreamId] Gets or sets the id of the job stream. - * @member {date} [time] Gets or sets the creation time of the job. - * @member {string} [streamType] Gets or sets the stream type. Possible values - * include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any' - * @member {string} [streamText] Gets or sets the stream text. - * @member {string} [summary] Gets or sets the summary. - * @member {object} [value] Gets or sets the values of the job stream. + * @member {number} [occurrence] Occurrence of the week within the month. Must + * be between 1 and 5 + * @member {string} [day] Day of the occurrence. Must be one of monday, + * tuesday, wednesday, thursday, friday, saturday, sunday. Possible values + * include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', + * 'Sunday' */ -export interface JobStream { - id?: string; - jobStreamId?: string; - time?: Date; - streamType?: string; - streamText?: string; - summary?: string; - value?: { [propertyName: string]: any }; +export interface AdvancedScheduleMonthlyOccurrence { + occurrence?: number; + day?: string; } /** * @class - * Initializes a new instance of the RunbookParameter class. + * Initializes a new instance of the AdvancedSchedule class. * @constructor - * Definition of the runbook parameter type. + * The properties of the create Advanced Schedule. * - * @member {string} [type] Gets or sets the type of the parameter. - * @member {boolean} [isMandatory] Gets or sets a Boolean value to indicate - * whether the parameter is madatory or not. - * @member {number} [position] Get or sets the position of the parameter. - * @member {string} [defaultValue] Gets or sets the default value of parameter. + * @member {array} [weekDays] Days of the week that the job should execute on. + * @member {array} [monthDays] Days of the month that the job should execute + * on. Must be between 1 and 31. + * @member {array} [monthlyOccurrences] Occurrences of days within a month. */ -export interface RunbookParameter { - type?: string; - isMandatory?: boolean; - position?: number; - defaultValue?: string; +export interface AdvancedSchedule { + weekDays?: string[]; + monthDays?: number[]; + monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; } /** * @class - * Initializes a new instance of the RunbookDraft class. + * Initializes a new instance of the ScheduleCreateOrUpdateParameters 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. + * The parameters supplied to the create or update schedule operation. + * + * @member {string} name Gets or sets the name of the Schedule. + * @member {string} [description] Gets or sets the description of the schedule. + * @member {date} startTime Gets or sets the start time of the schedule. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {object} [interval] Gets or sets the interval of the schedule. + * @member {string} frequency Possible values include: 'OneTime', 'Day', + * 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the AdvancedSchedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. */ -export interface RunbookDraft { - inEdit?: boolean; - draftContentLink?: ContentLink; +export interface ScheduleCreateOrUpdateParameters { + name: string; + description?: string; + startTime: Date; + expiryTime?: Date; + interval?: any; + frequency: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; +} + +/** + * @class + * Initializes a new instance of the ScheduleProperties class. + * @constructor + * Definition of schedule parameters. + * + * @member {date} [startTime] Gets or sets the start time of the schedule. + * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in + * minutes. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + * @member {date} [nextRun] Gets or sets the next run time of the schedule. + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + * @member {number} [interval] Gets or sets the interval of the schedule. + * @member {string} [frequency] Gets or sets the frequency of the schedule. + * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the advanced schedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. + */ +export interface ScheduleProperties { + startTime?: Date; + readonly startTimeOffsetMinutes?: number; + expiryTime?: Date; + expiryTimeOffsetMinutes?: number; + isEnabled?: boolean; + nextRun?: Date; + nextRunOffsetMinutes?: number; + interval?: number; + frequency?: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; creationTime?: Date; lastModifiedTime?: Date; - parameters?: { [propertyName: string]: RunbookParameter }; - outputTypes?: string[]; + description?: string; } /** * @class - * Initializes a new instance of the Runbook class. + * Initializes a new instance of the Schedule class. * @constructor - * Definition of the runbook type. + * Definition of the schedule. * - * @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} [startTime] Gets or sets the start time of the schedule. + * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in + * minutes. + * @member {date} [expiryTime] Gets or sets the end time of the schedule. + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + * @member {date} [nextRun] Gets or sets the next run time of the schedule. + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + * @member {number} [interval] Gets or sets the interval of the schedule. + * @member {string} [frequency] Gets or sets the frequency of the schedule. + * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + * @member {object} [advancedSchedule] Gets or sets the advanced schedule. + * @member {array} [advancedSchedule.weekDays] Days of the week that the job + * should execute on. + * @member {array} [advancedSchedule.monthDays] Days of the month that the job + * should execute on. Must be between 1 and 31. + * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days + * within a month. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. * @member {string} [description] Gets or sets the description. - * @member {string} [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; +export interface Schedule extends ProxyResource { + startTime?: Date; + readonly startTimeOffsetMinutes?: number; + expiryTime?: Date; + expiryTimeOffsetMinutes?: number; + isEnabled?: boolean; + nextRun?: Date; + nextRunOffsetMinutes?: number; + interval?: number; + frequency?: string; + timeZone?: string; + advancedSchedule?: AdvancedSchedule; creationTime?: Date; lastModifiedTime?: Date; description?: string; - etag?: string; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateParameters class. + * Initializes a new instance of the ScheduleUpdateParameters class. * @constructor - * The parameters supplied to the create or update runbook operation. + * The parameters supplied to the update schedule 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. + * @member {string} [name] Gets or sets the name of the Schedule. + * @member {string} [description] Gets or sets the description of the schedule. + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. */ -export interface RunbookCreateOrUpdateParameters { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft?: RunbookDraft; - publishContentLink?: ContentLink; - description?: string; - logActivityTrace?: number; +export interface ScheduleUpdateParameters { name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + description?: string; + isEnabled?: boolean; } /** * @class - * Initializes a new instance of the RunbookUpdateParameters class. + * Initializes a new instance of the VariableCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the update runbook operation. + * The parameters supplied to the create or update variable operation. * - * @member {string} [description] Gets or sets the description of the runbook. - * @member {boolean} [logVerbose] Gets or sets verbose log option. - * @member {boolean} [logProgress] Gets or sets progress log option. - * @member {number} [logActivityTrace] Gets or sets the activity-level tracing - * options of the runbook. - * @member {string} [name] Gets or sets the name of the resource. - * @member {string} [location] Gets or sets the location of the resource. - * @member {object} [tags] Gets or sets the tags attached to the resource. + * @member {string} name Gets or sets the name of the variable. + * @member {string} [value] Gets or sets the value of the variable. + * @member {string} [description] Gets or sets the description of the variable. + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. */ -export interface RunbookUpdateParameters { +export interface VariableCreateOrUpdateParameters { + name: string; + value?: string; description?: string; - logVerbose?: boolean; - logProgress?: boolean; - logActivityTrace?: number; - name?: string; - location?: string; - tags?: { [propertyName: string]: string }; + isEncrypted?: boolean; } /** * @class - * Initializes a new instance of the RunbookDraftUndoEditResult class. + * Initializes a new instance of the Variable class. * @constructor - * The response model for the undoedit runbook operation. + * Definition of the varible. * - * @member {string} [statusCode] Possible values include: 'Continue', - * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', - * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', - * 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', - * 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' - * @member {string} [requestId] + * @member {string} [value] Gets or sets the value of the variable. + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [description] Gets or sets the description. */ -export interface RunbookDraftUndoEditResult { - statusCode?: string; - requestId?: string; +export interface Variable extends ProxyResource { + value?: string; + isEncrypted?: boolean; + creationTime?: Date; + lastModifiedTime?: Date; + description?: string; } /** * @class - * Initializes a new instance of the TestJobCreateParameters class. + * Initializes a new instance of the VariableUpdateParameters class. * @constructor - * The parameters supplied to the create test job operation. + * The parameters supplied to the update variable 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. + * @member {string} [name] Gets or sets the name of the variable. + * @member {string} [value] Gets or sets the value of the variable. + * @member {string} [description] Gets or sets the description of the variable. */ -export interface TestJobCreateParameters { - parameters?: { [propertyName: string]: string }; - runOn?: string; +export interface VariableUpdateParameters { + name?: string; + value?: string; + description?: string; } /** * @class - * Initializes a new instance of the TestJob class. + * Initializes a new instance of the Webhook class. * @constructor - * Definition of the test job. + * Definition of the webhook type. * - * @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. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * the webhook. Default value: false . + * @member {string} [uri] Gets or sets the webhook uri. + * @member {date} [expiryTime] Gets or sets the expiry time. + * @member {date} [lastInvokedTime] Gets or sets the last invoked time. + * @member {object} [parameters] Gets or sets the parameters of the job that is + * created when the webhook calls the runbook it is associated with. + * @member {object} [runbook] Gets or sets the runbook the webhook is + * associated with. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + * @member {date} [creationTime] Gets or sets the creation time. + * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified the + * Webhook + * @member {string} [description] Gets or sets the description. */ -export interface TestJob { - creationTime?: Date; - status?: string; - statusDetails?: string; +export interface Webhook extends ProxyResource { + isEnabled?: boolean; + uri?: string; + expiryTime?: Date; + lastInvokedTime?: Date; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; runOn?: string; - startTime?: Date; - endTime?: Date; - exception?: string; + creationTime?: Date; lastModifiedTime?: Date; - lastStatusModifiedTime?: Date; - parameters?: { [propertyName: string]: string }; - logActivityTrace?: number; + lastModifiedBy?: string; + description?: string; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. + * Initializes a new instance of the WebhookUpdateParameters class. * @constructor - * The parameters supplied to the create or update dratft runbook properties. + * The parameters supplied to the update webhook 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 {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 webhook. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * webhook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {string} [description] Gets or sets the description of the webhook. */ -export interface RunbookCreateOrUpdateDraftProperties { - logVerbose?: boolean; - logProgress?: boolean; - runbookType: string; - draft: RunbookDraft; +export interface WebhookUpdateParameters { + name?: string; + isEnabled?: boolean; + runOn?: string; + parameters?: { [propertyName: string]: string }; description?: string; - logActivityTrace?: number; } /** * @class - * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. + * Initializes a new instance of the WebhookCreateOrUpdateParameters class. * @constructor - * The parameters supplied to the create or update runbook operation. + * The parameters supplied to the create or update webhook operation. * - * @member {string} runbookContent Content of the Runbook. - */ -export interface RunbookCreateOrUpdateDraftParameters { - runbookContent: string; -} - -/** - * @class - * Initializes a new instance of the AdvancedScheduleMonthlyOccurrence class. - * @constructor - * The properties of the create advanced schedule monthly occurrence. - * - * @member {number} [occurrence] Occurrence of the week within the month. Must - * be between 1 and 5 - * @member {string} [day] Day of the occurrence. Must be one of monday, - * tuesday, wednesday, thursday, friday, saturday, sunday. Possible values - * include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', - * 'Sunday' - */ -export interface AdvancedScheduleMonthlyOccurrence { - occurrence?: number; - day?: string; -} - -/** - * @class - * Initializes a new instance of the AdvancedSchedule class. - * @constructor - * The properties of the create Advanced Schedule. - * - * @member {array} [weekDays] Days of the week that the job should execute on. - * @member {array} [monthDays] Days of the month that the job should execute - * on. Must be between 1 and 31. - * @member {array} [monthlyOccurrences] Occurrences of days within a month. - */ -export interface AdvancedSchedule { - weekDays?: string[]; - monthDays?: number[]; - monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; -} - -/** - * @class - * Initializes a new instance of the ScheduleCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update schedule operation. - * - * @member {string} name Gets or sets the name of the Schedule. - * @member {string} [description] Gets or sets the description of the schedule. - * @member {date} startTime Gets or sets the start time of the schedule. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {object} [interval] Gets or sets the interval of the schedule. - * @member {string} frequency Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the AdvancedSchedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. + * @member {string} name Gets or sets the name of the webhook. + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of + * webhook. + * @member {string} [uri] Gets or sets the uri. + * @member {date} [expiryTime] Gets or sets the expiry time. + * @member {object} [parameters] Gets or sets the parameters of the job. + * @member {object} [runbook] Gets or sets the runbook. + * @member {string} [runbook.name] Gets or sets the name of the runbook. + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. */ -export interface ScheduleCreateOrUpdateParameters { +export interface WebhookCreateOrUpdateParameters { name: string; - description?: string; - startTime: Date; + isEnabled?: boolean; + uri?: string; expiryTime?: Date; - interval?: any; - frequency: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; + parameters?: { [propertyName: string]: string }; + runbook?: RunbookAssociationProperty; + runOn?: string; } /** * @class - * Initializes a new instance of the ScheduleProperties class. + * Initializes a new instance of the Watcher class. * @constructor - * Definition of schedule parameters. + * Definition of the watcher type. * - * @member {date} [startTime] Gets or sets the start time of the schedule. - * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in - * minutes. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's - * offset in minutes. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. Default value: false . - * @member {date} [nextRun] Gets or sets the next run time of the schedule. - * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's - * offset in minutes. - * @member {number} [interval] Gets or sets the interval of the schedule. - * @member {string} [frequency] Gets or sets the frequency of the schedule. - * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the advanced schedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at + * which the watcher is invoked. + * @member {string} [scriptName] Gets or sets the name of the script the + * watcher is attached to, i.e. the name of an existing runbook. + * @member {object} [scriptParameters] Gets or sets the parameters of the + * script. + * @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker + * group the watcher will run on. + * @member {string} [status] Gets the current status of the watcher. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {string} [lastModifiedBy] Details of the user who last modified the + * watcher. * @member {string} [description] Gets or sets the description. + * @member {string} [etag] Gets or sets the etag of the resource. */ -export interface ScheduleProperties { - startTime?: Date; - readonly startTimeOffsetMinutes?: number; - expiryTime?: Date; - expiryTimeOffsetMinutes?: number; - isEnabled?: boolean; - nextRun?: Date; - nextRunOffsetMinutes?: number; - interval?: number; - frequency?: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; - creationTime?: Date; - lastModifiedTime?: Date; +export interface Watcher extends TrackedResource { + executionFrequencyInSeconds?: number; + scriptName?: string; + scriptParameters?: { [propertyName: string]: string }; + scriptRunOn?: string; + readonly status?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly lastModifiedBy?: string; description?: string; + etag?: string; } /** * @class - * Initializes a new instance of the Schedule class. + * Initializes a new instance of the WatcherUpdateParameters class. * @constructor - * Definition of the schedule. - * - * @member {date} [startTime] Gets or sets the start time of the schedule. - * @member {number} [startTimeOffsetMinutes] Gets the start time's offset in - * minutes. - * @member {date} [expiryTime] Gets or sets the end time of the schedule. - * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's - * offset in minutes. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. Default value: false . - * @member {date} [nextRun] Gets or sets the next run time of the schedule. - * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's - * offset in minutes. - * @member {number} [interval] Gets or sets the interval of the schedule. - * @member {string} [frequency] Gets or sets the frequency of the schedule. - * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' - * @member {string} [timeZone] Gets or sets the time zone of the schedule. - * @member {object} [advancedSchedule] Gets or sets the advanced schedule. - * @member {array} [advancedSchedule.weekDays] Days of the week that the job - * should execute on. - * @member {array} [advancedSchedule.monthDays] Days of the month that the job - * should execute on. Must be between 1 and 31. - * @member {array} [advancedSchedule.monthlyOccurrences] Occurrences of days - * within a month. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at + * which the watcher is invoked. + * @member {string} [name] Gets or sets the name of the resource. */ -export interface Schedule extends ProxyResource { - startTime?: Date; - readonly startTimeOffsetMinutes?: number; - expiryTime?: Date; - expiryTimeOffsetMinutes?: number; - isEnabled?: boolean; - nextRun?: Date; - nextRunOffsetMinutes?: number; - interval?: number; - frequency?: string; - timeZone?: string; - advancedSchedule?: AdvancedSchedule; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; +export interface WatcherUpdateParameters { + executionFrequencyInSeconds?: number; + name?: string; } /** * @class - * Initializes a new instance of the ScheduleUpdateParameters class. + * Initializes a new instance of the WindowsProperties class. * @constructor - * The parameters supplied to the update schedule operation. + * Windows specific update configuration. * - * @member {string} [name] Gets or sets the name of the Schedule. - * @member {string} [description] Gets or sets the description of the schedule. - * @member {boolean} [isEnabled] Gets or sets a value indicating whether this - * schedule is enabled. + * @member {string} [includedUpdateClassifications] Update classification + * included in the software update configuration. A comma separated string with + * required values. Possible values include: 'Unclassified', 'Critical', + * 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', + * 'Tools', 'Updates' + * @member {array} [excludedKbNumbers] KB numbers excluded from the software + * update configuration. + * @member {array} [includedKbNumbers] KB numbers included from the software + * update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ -export interface ScheduleUpdateParameters { - name?: string; - description?: string; - isEnabled?: boolean; +export interface WindowsProperties { + includedUpdateClassifications?: string; + excludedKbNumbers?: string[]; + includedKbNumbers?: string[]; + rebootSetting?: string; } /** * @class - * Initializes a new instance of the VariableCreateOrUpdateParameters class. + * Initializes a new instance of the LinuxProperties class. * @constructor - * The parameters supplied to the create or update variable operation. + * Linux specific update configuration. * - * @member {string} name Gets or sets the name of the variable. - * @member {string} [value] Gets or sets the value of the variable. - * @member {string} [description] Gets or sets the description of the variable. - * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the - * variable. + * @member {string} [includedPackageClassifications] Update classifications + * included in the software update configuration. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'Other' + * @member {array} [excludedPackageNameMasks] packages excluded from the + * software update configuration. + * @member {array} [includedPackageNameMasks] packages included from the + * software update configuration. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ -export interface VariableCreateOrUpdateParameters { - name: string; - value?: string; - description?: string; - isEncrypted?: boolean; +export interface LinuxProperties { + includedPackageClassifications?: string; + excludedPackageNameMasks?: string[]; + includedPackageNameMasks?: string[]; + rebootSetting?: string; } /** * @class - * Initializes a new instance of the Variable class. + * Initializes a new instance of the UpdateConfiguration class. * @constructor - * Definition of the varible. - * - * @member {string} [value] Gets or sets the value of the variable. - * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the - * variable. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [description] Gets or sets the description. - */ -export interface Variable extends ProxyResource { - value?: string; - isEncrypted?: boolean; - creationTime?: Date; - lastModifiedTime?: Date; - description?: string; -} - -/** - * @class - * Initializes a new instance of the VariableUpdateParameters class. - * @constructor - * The parameters supplied to the update variable operation. - * - * @member {string} [name] Gets or sets the name of the variable. - * @member {string} [value] Gets or sets the value of the variable. - * @member {string} [description] Gets or sets the description of the variable. - */ -export interface VariableUpdateParameters { - name?: string; - value?: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the Webhook class. - * @constructor - * Definition of the webhook type. - * - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * the webhook. Default value: false . - * @member {string} [uri] Gets or sets the webhook uri. - * @member {date} [expiryTime] Gets or sets the expiry time. - * @member {date} [lastInvokedTime] Gets or sets the last invoked time. - * @member {object} [parameters] Gets or sets the parameters of the job that is - * created when the webhook calls the runbook it is associated with. - * @member {object} [runbook] Gets or sets the runbook the webhook is - * associated with. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [lastModifiedBy] Details of the user who last modified the - * Webhook - * @member {string} [description] Gets or sets the description. - */ -export interface Webhook extends ProxyResource { - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - lastInvokedTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; - creationTime?: Date; - lastModifiedTime?: Date; - lastModifiedBy?: string; - description?: string; -} - -/** - * @class - * Initializes a new instance of the WebhookUpdateParameters class. - * @constructor - * The parameters supplied to the update webhook operation. - * - * @member {string} [name] Gets or sets the name of the webhook. - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * webhook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {string} [description] Gets or sets the description of the webhook. - */ -export interface WebhookUpdateParameters { - name?: string; - isEnabled?: boolean; - runOn?: string; - parameters?: { [propertyName: string]: string }; - description?: string; -} - -/** - * @class - * Initializes a new instance of the WebhookCreateOrUpdateParameters class. - * @constructor - * The parameters supplied to the create or update webhook operation. - * - * @member {string} name Gets or sets the name of the webhook. - * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag of - * webhook. - * @member {string} [uri] Gets or sets the uri. - * @member {date} [expiryTime] Gets or sets the expiry time. - * @member {object} [parameters] Gets or sets the parameters of the job. - * @member {object} [runbook] Gets or sets the runbook. - * @member {string} [runbook.name] Gets or sets the name of the runbook. - * @member {string} [runOn] Gets or sets the name of the hybrid worker group - * the webhook job will run on. - */ -export interface WebhookCreateOrUpdateParameters { - name: string; - isEnabled?: boolean; - uri?: string; - expiryTime?: Date; - parameters?: { [propertyName: string]: string }; - runbook?: RunbookAssociationProperty; - runOn?: string; -} - -/** - * @class - * Initializes a new instance of the Watcher class. - * @constructor - * Definition of the watcher type. - * - * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at - * which the watcher is invoked. - * @member {string} [scriptName] Gets or sets the name of the script the - * watcher is attached to, i.e. the name of an existing runbook. - * @member {object} [scriptParameters] Gets or sets the parameters of the - * script. - * @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker - * group the watcher will run on. - * @member {string} [status] Gets the current status of the watcher. - * @member {date} [creationTime] Gets or sets the creation time. - * @member {date} [lastModifiedTime] Gets or sets the last modified time. - * @member {string} [lastModifiedBy] Details of the user who last modified the - * watcher. - * @member {string} [description] Gets or sets the description. - * @member {string} [etag] Gets or sets the etag of the resource. - */ -export interface Watcher extends TrackedResource { - executionFrequencyInSeconds?: number; - scriptName?: string; - scriptParameters?: { [propertyName: string]: string }; - scriptRunOn?: string; - readonly status?: string; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - readonly lastModifiedBy?: string; - description?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the WatcherUpdateParameters class. - * @constructor - * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency at - * which the watcher is invoked. - * @member {string} [name] Gets or sets the name of the resource. - */ -export interface WatcherUpdateParameters { - executionFrequencyInSeconds?: number; - name?: string; -} - -/** - * @class - * Initializes a new instance of the WindowsProperties class. - * @constructor - * Windows specific update configuration. - * - * @member {string} [includedUpdateClassifications] Update classification - * included in the software update configuration. A comma separated string with - * required values. Possible values include: 'Unclassified', 'Critical', - * 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', - * 'Tools', 'Updates' - * @member {array} [excludedKbNumbers] KB numbers excluded from the software - * update configuration. - * @member {array} [includedKbNumbers] KB numbers included from the software - * update configuration. - * @member {string} [rebootSetting] Reboot setting for the software update - * configuration. - */ -export interface WindowsProperties { - includedUpdateClassifications?: string; - excludedKbNumbers?: string[]; - includedKbNumbers?: string[]; - rebootSetting?: string; -} - -/** - * @class - * Initializes a new instance of the LinuxProperties class. - * @constructor - * Linux specific update configuration. - * - * @member {string} [includedPackageClassifications] Update classifications - * included in the software update configuration. Possible values include: - * 'Unclassified', 'Critical', 'Security', 'Other' - * @member {array} [excludedPackageNameMasks] packages excluded from the - * software update configuration. - * @member {array} [includedPackageNameMasks] packages included from the - * software update configuration. - * @member {string} [rebootSetting] Reboot setting for the software update - * configuration. - */ -export interface LinuxProperties { - includedPackageClassifications?: string; - excludedPackageNameMasks?: string[]; - includedPackageNameMasks?: string[]; - rebootSetting?: string; -} - -/** - * @class - * Initializes a new instance of the UpdateConfiguration class. - * @constructor - * Update specifc properties of the software update configuration. + * Update specifc properties of the software update configuration. * * @member {string} operatingSystem operating system of target machines. * Possible values include: 'Windows', 'Linux' @@ -2532,6 +2155,31 @@ export interface SourceControlSyncJobStreamById { value?: 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 Job class. @@ -2987,24 +2635,340 @@ export interface DscCompilationJob extends ProxyResource { /** * @class - * Initializes a new instance of the DscCompilationJobCreateParameters 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; +} + +/** + * @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 create compilation job operation. + * 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 {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} [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 DscCompilationJobCreateParameters { - configuration: DscConfigurationAssociationProperty; - parameters?: { [propertyName: string]: string }; - incrementNodeConfigurationBuild?: boolean; +export interface RunbookUpdateParameters { + description?: string; + logVerbose?: boolean; + logProgress?: boolean; + logActivityTrace?: number; name?: string; location?: string; tags?: { [propertyName: string]: string }; @@ -3012,102 +2976,138 @@ export interface DscCompilationJobCreateParameters { /** * @class - * Initializes a new instance of the DscNodeConfiguration class. + * Initializes a new instance of the RunbookDraftUndoEditResult class. * @constructor - * Definition of the dsc node configuration. + * The response model for the undoedit runbook operation. * - * @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 {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 DscNodeConfiguration extends ProxyResource { - lastModifiedTime?: Date; - creationTime?: Date; - configuration?: DscConfigurationAssociationProperty; - source?: string; - nodeCount?: number; - incrementNodeConfigurationBuild?: boolean; +export interface RunbookDraftUndoEditResult { + statusCode?: string; + requestId?: string; } /** * @class - * Initializes a new instance of the DscNodeConfigurationCreateOrUpdateParameters class. + * Initializes a new instance of the TestJobCreateParameters class. * @constructor - * The parameters supplied to the create or update node configuration - * operation. + * The parameters supplied to the create test job 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. + * @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 DscNodeConfigurationCreateOrUpdateParameters { - source: ContentSource; - configuration: DscConfigurationAssociationProperty; - incrementNodeConfigurationBuild?: boolean; - name?: string; - tags?: { [propertyName: string]: string }; +export interface TestJobCreateParameters { + parameters?: { [propertyName: string]: string }; + runOn?: string; } /** * @class - * Initializes a new instance of the NodeCountProperties class. + * Initializes a new instance of the TestJob class. * @constructor - * @member {number} [count] Gets the count for the name + * 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 NodeCountProperties { - count?: number; +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 NodeCount class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftProperties class. * @constructor - * Number of nodes based on the Filter + * The parameters supplied to the create or update dratft runbook properties. * - * @member {string} [name] Gets the name of a count type - * @member {object} [properties] - * @member {number} [properties.count] Gets the count for the name + * @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 NodeCount { - name?: string; - properties?: NodeCountProperties; +export interface RunbookCreateOrUpdateDraftProperties { + logVerbose?: boolean; + logProgress?: boolean; + runbookType: string; + draft: RunbookDraft; + description?: string; + logActivityTrace?: number; } /** * @class - * Initializes a new instance of the NodeCounts class. + * Initializes a new instance of the RunbookCreateOrUpdateDraftParameters class. * @constructor - * Gets the count of nodes by count type + * The parameters supplied to the create or update runbook operation. * - * @member {array} [value] Gets an array of counts - * @member {number} [totalCount] Gets the total number of records matching - * countType criteria. + * @member {string} runbookContent Content of the Runbook. */ -export interface NodeCounts { - value?: NodeCount[]; - totalCount?: number; +export interface RunbookCreateOrUpdateDraftParameters { + runbookContent: string; } @@ -3273,30 +3273,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. @@ -3393,6 +3369,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. @@ -3443,3 +3431,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 ee2fa5525b..fa50735938 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -71,17 +71,6 @@ exports.Module = require('./module'); exports.ModuleCreateOrUpdateParameters = require('./moduleCreateOrUpdateParameters'); exports.ModuleUpdateParameters = require('./moduleUpdateParameters'); exports.TypeField = require('./typeField'); -exports.JobStream = require('./jobStream'); -exports.RunbookParameter = require('./runbookParameter'); -exports.RunbookDraft = require('./runbookDraft'); -exports.Runbook = require('./runbook'); -exports.RunbookCreateOrUpdateParameters = require('./runbookCreateOrUpdateParameters'); -exports.RunbookUpdateParameters = require('./runbookUpdateParameters'); -exports.RunbookDraftUndoEditResult = require('./runbookDraftUndoEditResult'); -exports.TestJobCreateParameters = require('./testJobCreateParameters'); -exports.TestJob = require('./testJob'); -exports.RunbookCreateOrUpdateDraftProperties = require('./runbookCreateOrUpdateDraftProperties'); -exports.RunbookCreateOrUpdateDraftParameters = require('./runbookCreateOrUpdateDraftParameters'); exports.AdvancedScheduleMonthlyOccurrence = require('./advancedScheduleMonthlyOccurrence'); exports.AdvancedSchedule = require('./advancedSchedule'); exports.ScheduleCreateOrUpdateParameters = require('./scheduleCreateOrUpdateParameters'); @@ -117,6 +106,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'); @@ -140,6 +130,16 @@ 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.AutomationAccountListResult = require('./automationAccountListResult'); exports.OperationListResult = require('./operationListResult'); exports.StatisticsListResult = require('./statisticsListResult'); @@ -154,8 +154,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'); @@ -164,7 +162,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/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 42cb8888bd..ad8bd92920 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -4761,21 +4761,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. * @@ -4784,20 +4819,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. * @@ -4811,7 +4881,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Schedule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4819,27 +4889,37 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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 {string} runbookContent The runbook draft content. + * @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. * @@ -4848,22 +4928,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: string, 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 {string} runbookContent The runbook draft content. + * @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. * @@ -4877,7 +4966,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Schedule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -4885,25 +4974,26 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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: 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; + 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. * @@ -4912,20 +5002,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. * @@ -4939,7 +5029,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. * @@ -4947,27 +5037,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. * @@ -4980,17 +5069,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. * @@ -5018,20 +5106,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 @@ -5039,21 +5125,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 @@ -5066,7 +5150,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. * @@ -5074,29 +5158,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 {string} runbookContent The runbook draft content. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5105,22 +5183,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: string, 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 {string} runbookContent The runbook draft content. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5134,7 +5207,7 @@ export interface RunbookDraftOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {ScheduleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5142,26 +5215,48 @@ export interface RunbookDraftOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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: 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; + 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 {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. * @@ -5170,21 +5265,33 @@ export interface RunbookDraftOperations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + 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. * @@ -5198,7 +5305,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. * @@ -5206,34 +5313,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. * @@ -5242,20 +5351,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. * @@ -5269,7 +5388,7 @@ export interface RunbookOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {Variable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5277,25 +5396,26 @@ export interface RunbookOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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. * @@ -5304,20 +5424,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. * @@ -5331,7 +5451,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. * @@ -5339,90 +5459,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. * @@ -5431,84 +5547,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. * @@ -5522,7 +5629,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. * @@ -5530,47 +5637,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 @@ -5578,41 +5672,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 @@ -5625,7 +5697,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. * @@ -5633,26 +5705,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. * @@ -5665,16 +5736,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. * @@ -5702,18 +5773,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 @@ -5721,19 +5794,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 @@ -5746,7 +5821,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. * @@ -5754,23 +5829,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. * @@ -5779,17 +5879,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. * @@ -5803,7 +5928,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. * @@ -5811,38 +5936,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. * @@ -5851,23 +5980,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. * @@ -5881,7 +6023,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. * @@ -5889,27 +6031,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. @@ -5919,21 +6059,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. @@ -5948,7 +6086,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. * @@ -5956,20 +6094,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. @@ -5981,14 +6119,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. @@ -6005,7 +6143,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. * @@ -6013,45 +6151,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. * @@ -6060,30 +6211,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. * @@ -6097,7 +6261,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. * @@ -6105,26 +6269,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. * @@ -6133,20 +6297,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. * @@ -6160,7 +6324,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. * @@ -6168,26 +6332,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. * @@ -6196,20 +6367,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. * @@ -6223,7 +6401,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. * @@ -6231,25 +6409,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. * @@ -6262,16 +6441,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. * @@ -6299,19 +6478,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. * @@ -6324,16 +6503,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. * @@ -6361,63 +6540,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. * @@ -6426,55 +6561,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. * @@ -6488,7 +6588,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. * @@ -6496,73 +6596,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 * @@ -6573,7 +6650,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. * @@ -6581,26 +6658,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. * @@ -6609,20 +6683,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. * @@ -6636,7 +6707,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. * @@ -6644,166 +6715,302 @@ 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 {object} [options] Optional Parameters. + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters Request body. * - * @returns {Promise} A promise is returned + * @param {object} parameters.updateConfiguration update specific properties + * for the Software update configuration * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} parameters.updateConfiguration.operatingSystem operating + * system of target machines. Possible values include: 'Windows', 'Linux' * - * @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 {object} [parameters.updateConfiguration.windows] Windows specific + * update configuration. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @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} automationAccountName The name of the automation account. + * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB + * numbers excluded from the software update configuration. * - * @param {string} scheduleName The schedule name. + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.updateConfiguration.linux] Linux specific update + * configuration. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} + * [parameters.updateConfiguration.linux.includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {array} + * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages + * excluded from the software update configuration. * - * {Promise} A promise is returned. + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. * - * @resolve {null} - The deserialized result object. + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. * - * @reject {Error|ServiceError} - The error object. + * @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 * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of + * azure resource Ids for azure virtual machines targeted by the software + * update configuration. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List + * of names of non-azure machines targeted by the software update + * configuration. * - * {null} [result] - The deserialized result object if an error did not occur. + * @param {object} parameters.scheduleInfo Schedule information for the + * Software update configuration * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start + * time of the schedule. * - * {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; - - - /** - * Retrieve a list of schedules. + * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time + * of the schedule. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or + * sets the expiry time's offset in minutes. * - * @param {string} automationAccountName The name of the automation account. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of schedules. + * 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 {object} [options] Optional Parameters. + * @param {string} softwareUpdateConfigurationName The name of the software + * update configuration to be created. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters Request body. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {object} parameters.updateConfiguration update specific properties + * for 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 {string} parameters.updateConfiguration.operatingSystem operating + * system of target machines. Possible values include: 'Windows', 'Linux' * - * {Promise} A promise is returned. + * @param {object} [parameters.updateConfiguration.windows] Windows specific + * update configuration. * - * @resolve {ScheduleListResult} - The deserialized result object. + * @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' * - * @reject {Error|ServiceError} - The error object. + * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB + * numbers excluded from the software update configuration. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB + * numbers included from the software update configuration. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. * - * {ScheduleListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ScheduleListResult} for more information. + * @param {object} [parameters.updateConfiguration.linux] Linux specific update + * configuration. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} + * [parameters.updateConfiguration.linux.includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' * - * {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 schedules. + * @param {array} + * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages + * excluded from the software update configuration. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {array} + * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages + * included from the software update configuration. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for the software update configuration. * - * @param {object} [options.customHeaders] Headers that will be added to the - * 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 * - * @returns {Promise} A promise is returned + * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of + * azure resource Ids for azure virtual machines targeted by the software + * update configuration. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List + * of names of non-azure machines targeted by the software update + * configuration. * - * @reject {Error|ServiceError} - The error object. - */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve a list of schedules. + * @param {object} parameters.scheduleInfo Schedule information for the + * Software update configuration * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 * @@ -6814,7 +7021,7 @@ export interface ScheduleOperations { * * {Promise} A promise is returned. * - * @resolve {ScheduleListResult} - The deserialized result object. + * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6822,86 +7029,60 @@ 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. + * {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. */ - 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 { + 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; /** - * Create a variable. + * 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} 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 {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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getByNameWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a variable. + * 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} 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 {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 * @@ -6912,7 +7093,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6920,71 +7101,60 @@ 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. + * {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. */ - 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; + 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; /** - * Update a variable. + * 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} 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 {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. */ - updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: models.VariableUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update a variable. + * 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} 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 {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 * @@ -6995,7 +7165,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7003,51 +7173,56 @@ 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. + * {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. */ - 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; + 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; /** - * Delete the variable. + * Get all software update configurations for the account. * * @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. + * * @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, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the variable. + * Get all software update configurations for the account. * * @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. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7058,7 +7233,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7066,50 +7241,69 @@ 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. + * {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. */ - 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, 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 { /** - * Retrieve the variable identified by variable name. + * 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 name of variable. + * @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 * - * @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>; + getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the variable identified by variable name. + * 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 name of variable. + * @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 * @@ -7120,7 +7314,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {Variable} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationRun} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7128,20 +7322,21 @@ 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. + * {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. */ - 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; + 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; /** - * Retrieve a list of variables. + * Return list of software update configuration runs * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7149,19 +7344,32 @@ export interface VariableOperations { * * @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. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: 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>; /** - * Retrieve a list of variables. + * Return list of software update configuration runs * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7169,6 +7377,19 @@ export interface VariableOperations { * * @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 * @@ -7179,7 +7400,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {VariableListResult} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationRunListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7187,45 +7408,69 @@ 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. + * {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. */ - 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; + 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 { /** - * Retrieve a list of variables. + * Get a single software update configuration machine run by 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 {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. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getByIdWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of variables. + * Get a single software update configuration machine run by 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 {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 * @@ -7236,7 +7481,7 @@ export interface VariableOperations { * * {Promise} A promise is returned. * - * @resolve {VariableListResult} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationMachineRun} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7244,29 +7489,21 @@ 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. + * {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. */ - 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 { + 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; /** - * Generates a Uri for use in creating a webhook. + * Return list of software update configuration machine runs * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7274,19 +7511,32 @@ export interface WebhookOperations { * * @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. */ - generateUriWithHttpOperationResponse(resourceGroupName: string, automationAccountName: 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>; /** - * Generates a Uri for use in creating a webhook. + * Return list of software update configuration machine runs * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7294,6 +7544,19 @@ export interface WebhookOperations { * * @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 * @@ -7304,7 +7567,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {SoftwareUpdateConfigurationMachineRunListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7312,25 +7575,65 @@ 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. + * {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. */ - 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; + 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 { /** - * Delete the webhook by 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} webhookName The webhook name. + * @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] Gets or sets the repo url of the source + * control. + * + * @param {string} [parameters.branch] Gets or sets the repo branch of the + * source control. Include branch as empty string for VsoTfvc. + * + * @param {string} [parameters.folderPath] Gets or sets the folder path of the + * source control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source + * control. Default is false. + * + * @param {boolean} [parameters.publishRunbook] Gets or sets 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 {string} [parameters.securityToken] Gets or sets the authorization + * token for the repo of the source control. + * + * @param {string} [parameters.description] Gets or sets the user description + * of the source control. * * @param {object} [options] Optional Parameters. * @@ -7339,20 +7642,48 @@ 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. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the webhook by 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} webhookName The webhook name. + * @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] Gets or sets the repo url of the source + * control. + * + * @param {string} [parameters.branch] Gets or sets the repo branch of the + * source control. Include branch as empty string for VsoTfvc. + * + * @param {string} [parameters.folderPath] Gets or sets the folder path of the + * source control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source + * control. Default is false. + * + * @param {boolean} [parameters.publishRunbook] Gets or sets 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 {string} [parameters.securityToken] Gets or sets the authorization + * token for the repo of the source control. + * + * @param {string} [parameters.description] Gets or sets the user description + * of the source control. * * @param {object} [options] Optional Parameters. * @@ -7366,7 +7697,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7374,25 +7705,47 @@ 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. + * {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. */ - 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; + 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 the webhook identified by webhook name. + * Update 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 {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the update source + * control operation. + * + * @param {string} [parameters.branch] Gets or sets the repo branch of the + * source control. + * + * @param {string} [parameters.folderPath] Gets or sets the folder path of the + * source control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source + * control. Default is false. + * + * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish + * of the source control. Default is true. + * + * @param {string} [parameters.securityToken] Gets or sets the authorization + * token for the repo of the source control. + * + * @param {string} [parameters.description] Gets or sets the user description + * of the source control. * * @param {object} [options] Optional Parameters. * @@ -7401,20 +7754,41 @@ 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>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the webhook identified by webhook name. + * Update 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 {string} sourceControlName The source control name. + * + * @param {object} parameters The parameters supplied to the update source + * control operation. + * + * @param {string} [parameters.branch] Gets or sets the repo branch of the + * source control. + * + * @param {string} [parameters.folderPath] Gets or sets the folder path of the + * source control. Path must be relative. + * + * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source + * control. Default is false. + * + * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish + * of the source control. Default is true. + * + * @param {string} [parameters.securityToken] Gets or sets the authorization + * token for the repo of the source control. + * + * @param {string} [parameters.description] Gets or sets the user description + * of the source control. * * @param {object} [options] Optional Parameters. * @@ -7428,7 +7802,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7436,48 +7810,26 @@ 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. + * {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, 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; + 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; /** - * Create the webhook identified by webhook name. + * Delete the 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 {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 {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7486,42 +7838,20 @@ export interface WebhookOperations { * * @returns {Promise} A promise is returned * - * @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>; - - /** - * Create 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} 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. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Delete the source control. * - * @param {object} [parameters.runbook] Gets or sets the runbook. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} [parameters.runbook.name] Gets or sets the name of the - * runbook. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [parameters.runOn] Gets or sets the name of the hybrid - * worker group the webhook job will run on. + * @param {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7535,7 +7865,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7543,42 +7873,25 @@ 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. + * {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, 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; + 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; /** - * Update the webhook identified by webhook name. + * 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} 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} [parameters.description] Gets or sets the description of the - * webhook. + * @param {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7587,36 +7900,20 @@ 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, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the webhook identified by webhook name. + * 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} 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} [parameters.description] Gets or sets the description of the - * webhook. + * @param {string} sourceControlName The name of source control. * * @param {object} [options] Optional Parameters. * @@ -7630,7 +7927,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {Webhook} - The deserialized result object. + * @resolve {SourceControl} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7638,20 +7935,20 @@ 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. + * {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. */ - 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, 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; /** - * Retrieve a list of webhooks. + * Retrieve a list of source controls. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7666,14 +7963,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. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: 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 webhooks. + * Retrieve a list of source controls. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -7693,7 +7990,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {WebhookListResult} - The deserialized result object. + * @resolve {SourceControlListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7701,20 +7998,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. + * {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. */ - 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, 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 webhooks. + * Retrieve a list of source controls. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7726,14 +8024,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 controls. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7750,7 +8048,7 @@ export interface WebhookOperations { * * {Promise} A promise is returned. * - * @resolve {WebhookListResult} - The deserialized result object. + * @resolve {SourceControlListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7758,58 +8056,44 @@ 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. + * {SourceControlListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlListResult} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 + * SourceControlSyncJobOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface WatcherOperations { +export interface SourceControlSyncJobOperations { /** - * Create the watcher identified by watcher 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} 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} sourceControlName The source control name. * - * @param {string} [parameters.etag] Gets or sets the etag of the resource. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {object} [parameters.tags] Resource tags. + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. * - * @param {string} [parameters.location] The Azure Region where the resource - * lives + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. * * @param {object} [options] Optional Parameters. * @@ -7818,106 +8102,28 @@ 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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Create the watcher identified by watcher name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} watcherName The watcher name. - * - * @param {object} parameters The create or update parameters for watcher. - * - * @param {number} [parameters.executionFrequencyInSeconds] Gets or sets the - * frequency at which the watcher is invoked. - * - * @param {string} [parameters.scriptName] Gets or sets the name of the script - * the watcher is attached to, i.e. the name of an existing runbook. - * - * @param {object} [parameters.scriptParameters] Gets or sets the parameters of - * the script. - * - * @param {string} [parameters.scriptRunOn] Gets or sets the name of the hybrid - * worker group the watcher will run on. - * - * @param {string} [parameters.description] Gets or sets the description. - * - * @param {string} [parameters.etag] Gets or sets the etag of the resource. - * - * @param {object} [parameters.tags] Resource tags. - * - * @param {string} [parameters.location] The Azure Region where the resource - * lives - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Watcher} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Watcher} [result] - The deserialized result object if an error did not occur. - * See {@link Watcher} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: models.Watcher, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the watcher identified by watcher 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} watcherName The watcher name. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve the watcher identified by watcher name. + * @param {string} sourceControlName The source control name. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * - * @param {string} automationAccountName The name of the automation account. + * @param {object} parameters The parameters supplied to the create source + * control sync job operation. * - * @param {string} watcherName The watcher name. + * @param {string} [parameters.commitId] Sets the commit id of the source + * control sync job. * * @param {object} [options] Optional Parameters. * @@ -7931,7 +8137,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {Watcher} - The deserialized result object. + * @resolve {SourceControlSyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7939,33 +8145,28 @@ 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. + * {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. */ - 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; + 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 watcher identified by watcher 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} 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} sourceControlName The source control name. * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * @@ -7974,27 +8175,22 @@ 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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update the watcher identified by watcher 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} 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} sourceControlName The source control name. * - * @param {string} [parameters.name] Gets or sets the name of the resource. + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * @@ -8008,7 +8204,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {Watcher} - The deserialized result object. + * @resolve {SourceControlSyncJobById} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8016,51 +8212,56 @@ 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. + * {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, 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; + 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; /** - * Delete the watcher by name. + * 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} watcherName The watcher name. + * @param {string} sourceControlName The source control name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the watcher by name. + * 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} watcherName The watcher name. + * @param {string} sourceControlName The source control name. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8071,7 +8272,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8079,25 +8280,24 @@ 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. + * {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. */ - 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; + 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; /** - * 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. + * Retrieve a list of source control sync jobs. * - * @param {string} watcherName The watcher name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8106,20 +8306,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. */ - startWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume the watcher identified by watcher name. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of source control sync jobs. * - * @param {string} watcherName The watcher name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -8133,7 +8330,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SourceControlSyncJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8141,50 +8338,69 @@ 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. + * {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. */ - 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; + 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 { /** - * Resume 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 {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listBySyncJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Resume 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 {string} sourceControlName The source control name. + * + * @param {uuid} sourceControlSyncJobId The source control sync job id. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -8195,7 +8411,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8203,49 +8419,59 @@ 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. + * {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. */ - 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; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: ServiceCallback): void; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of watchers. + * 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 {object} [options] Optional Parameters. + * @param {string} sourceControlName The source control name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of watchers. + * 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 {object} [options] Optional Parameters. + * @param {string} sourceControlName The source control name. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {uuid} sourceControlSyncJobId The source control sync job id. + * + * @param {string} streamId The id of the sync job stream. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -8257,7 +8483,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {WatcherListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamById} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8265,20 +8491,21 @@ 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. + * {SourceControlSyncJobStreamById} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamById} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, 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; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Retrieve a list of watchers. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -8290,14 +8517,14 @@ 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. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listBySyncJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of watchers. + * Retrieve a list of sync job streams identified by sync job id. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -8314,7 +8541,7 @@ export interface WatcherOperations { * * {Promise} A promise is returned. * - * @resolve {WatcherListResult} - The deserialized result object. + * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8322,153 +8549,104 @@ 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. + * {SourceControlSyncJobStreamsListBySyncJob} [result] - The deserialized result object if an error did not occur. + * See {@link SourceControlSyncJobStreamsListBySyncJob} + * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccountNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback): void; - listByAutomationAccountNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listBySyncJobNext(nextPageLink: string, callback: ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * SoftwareUpdateConfigurations + * JobOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface SoftwareUpdateConfigurations { +export interface JobOperations { /** - * Create a new software update configuration with the name given in the URI. + * 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} 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} jobName The name of the job to be created. * - * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot - * setting for the software update configuration. + * @param {object} [options] Optional Parameters. * - * @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 {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of - * azure resource Ids for azure virtual machines targeted by the software - * update configuration. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List - * of names of non-azure machines targeted by the software update - * configuration. + * @returns {Promise} A promise is returned * - * @param {object} parameters.scheduleInfo Schedule information for the - * Software update configuration + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start - * time of the schedule. + * @reject {Error|ServiceError} - The error object. + */ + getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve the job output identified by job name. * - * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time - * of the schedule. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or - * sets the expiry time's offset in minutes. + * @param {string} automationAccountName The name of the automation account. * - * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value - * indicating whether this schedule is enabled. + * @param {string} jobName The name of the job to be created. * - * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run - * time of the schedule. + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets - * the next run time's offset in minutes. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval - * of the schedule. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the - * frequency of the schedule. Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time - * zone of the schedule. + * @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.advancedSchedule] Gets or sets the - * advanced schedule. + * {Promise} A promise is returned. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.weekDays] Days of - * the week that the job should execute on. + * @resolve {String} - The deserialized result object. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthDays] Days of - * the month that the job should execute on. Must be between 1 and 31. + * @reject {Error|ServiceError} - The error object. * - * @param {array} [parameters.scheduleInfo.advancedSchedule.monthlyOccurrences] - * Occurrences of days within a month. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {date} [parameters.scheduleInfo.creationTime] Gets or sets the - * creation time. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {date} [parameters.scheduleInfo.lastModifiedTime] Gets or sets the - * last modified time. + * {String} [result] - The deserialized result object if an error did not occur. * - * @param {string} [parameters.scheduleInfo.description] Gets or sets the - * description. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {object} [parameters.error] detailes of provisioning error + * {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; + + + /** + * Retrieve the runbook content of the job identified by job name. * - * @param {string} [parameters.error.code] Error code + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} [parameters.error.message] Error message indicating why the - * operation failed. + * @param {string} automationAccountName The name of the automation account. + * + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8480,138 +8658,156 @@ 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. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: models.SoftwareUpdateConfiguration, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a new software update configuration with the name given in the URI. + * 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} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} jobName The job name. * - * @param {object} parameters Request body. + * @param {object} [options] Optional Parameters. * - * @param {object} parameters.updateConfiguration update specific properties - * for the Software update configuration + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {string} parameters.updateConfiguration.operatingSystem operating - * system of target machines. Possible values include: 'Windows', 'Linux' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.updateConfiguration.windows] Windows specific - * update configuration. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @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' + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {array} [parameters.updateConfiguration.windows.excludedKbNumbers] KB - * numbers excluded from the software update configuration. + * {Promise} A promise is returned. * - * @param {array} [parameters.updateConfiguration.windows.includedKbNumbers] KB - * numbers included from the software update configuration. + * @resolve {String} - The deserialized result object. * - * @param {string} [parameters.updateConfiguration.windows.rebootSetting] - * Reboot setting for the software update configuration. + * @reject {Error|ServiceError} - The error object. * - * @param {object} [parameters.updateConfiguration.linux] Linux specific update - * configuration. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} - * [parameters.updateConfiguration.linux.includedPackageClassifications] Update - * classifications included in the software update configuration. Possible - * values include: 'Unclassified', 'Critical', 'Security', 'Other' + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {array} - * [parameters.updateConfiguration.linux.excludedPackageNameMasks] packages - * excluded from the software update configuration. + * {String} [result] - The deserialized result object if an error did not occur. * - * @param {array} - * [parameters.updateConfiguration.linux.includedPackageNameMasks] packages - * included from the software update configuration. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot - * setting for the software update configuration. + * {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; + + + /** + * Suspend the job identified by job name. * - * @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 {string} resourceGroupName Name of an Azure Resource group. * - * @param {array} [parameters.updateConfiguration.azureVirtualMachines] List of - * azure resource Ids for azure virtual machines targeted by the software - * update configuration. + * @param {string} automationAccountName The name of the automation account. * - * @param {array} [parameters.updateConfiguration.nonAzureComputerNames] List - * of names of non-azure machines targeted by the software update - * configuration. + * @param {string} jobName The job name. * - * @param {object} parameters.scheduleInfo Schedule information for the - * Software update configuration + * @param {object} [options] Optional Parameters. * - * @param {date} [parameters.scheduleInfo.startTime] Gets or sets the start - * time of the schedule. + * @param {string} [options.clientRequestId] Identifies this specific client + * request. * - * @param {date} [parameters.scheduleInfo.expiryTime] Gets or sets the end time - * of the schedule. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {number} [parameters.scheduleInfo.expiryTimeOffsetMinutes] Gets or - * sets the expiry time's offset in minutes. + * @returns {Promise} A promise is returned * - * @param {boolean} [parameters.scheduleInfo.isEnabled] Gets or sets a value - * indicating whether this schedule is enabled. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {date} [parameters.scheduleInfo.nextRun] Gets or sets the next run - * time of the schedule. + * @reject {Error|ServiceError} - The error object. + */ + suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Suspend the job identified by job name. * - * @param {number} [parameters.scheduleInfo.nextRunOffsetMinutes] Gets or sets - * the next run time's offset in minutes. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {number} [parameters.scheduleInfo.interval] Gets or sets the interval - * of the schedule. + * @param {string} automationAccountName The name of the automation account. * - * @param {string} [parameters.scheduleInfo.frequency] Gets or sets the - * frequency of the schedule. Possible values include: 'OneTime', 'Day', - * 'Hour', 'Week', 'Month' + * @param {string} jobName The job name. * - * @param {string} [parameters.scheduleInfo.timeZone] Gets or sets the time - * zone of the schedule. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.scheduleInfo.advancedSchedule] Gets or sets the - * advanced schedule. + * @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 {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + 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; + + + /** + * 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 {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. + */ + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Stop 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. * @@ -8628,7 +8824,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. * @@ -8636,28 +8832,25 @@ 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; + 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 a single software update configuration by name. + * Retrieve 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} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8669,21 +8862,20 @@ 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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration by name. + * Retrieve 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} softwareUpdateConfigurationName The name of the software - * update configuration to be created. + * @param {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8700,7 +8892,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfiguration} - The deserialized result object. + * @resolve {Job} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8708,28 +8900,40 @@ 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. + * {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. */ - 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; + 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; /** - * delete a specific software update configuration. + * 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 {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} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @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. * @@ -8741,21 +8945,34 @@ 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>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * delete a specific software update configuration. + * 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 {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} [parameters.parameters] Gets or sets the parameters of the + * job. + * + * @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. * @@ -8772,7 +8989,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Job} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8780,19 +8997,20 @@ 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. + * {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. */ - 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; + 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; /** - * Get all software update configurations for the account. + * Retrieve a list of jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -8800,24 +9018,24 @@ export interface SoftwareUpdateConfigurations { * * @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>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all software update configurations for the account. + * Retrieve a list of jobs. * * @param {string} resourceGroupName Name of an Azure Resource group. * @@ -8825,11 +9043,11 @@ export interface SoftwareUpdateConfigurations { * * @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 * @@ -8840,7 +9058,7 @@ export interface SoftwareUpdateConfigurations { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationListResult} - The deserialized result object. + * @resolve {JobListResultV2} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8848,37 +9066,26 @@ 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. + * {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. */ - 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 { + 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; /** - * Get a single software update configuration Run by Id. + * Resume the job identified by jobName. * * @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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8890,21 +9097,20 @@ 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>; + resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration Run by Id. + * Resume the job identified by jobName. * * @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 {string} jobName The job name. * * @param {object} [options] Optional Parameters. * @@ -8921,7 +9127,7 @@ export interface SoftwareUpdateConfigurationRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationRun} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -8929,74 +9135,50 @@ 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. + * {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. */ - 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; + 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; /** - * Return list of software update configuration runs - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of jobs. * - * @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. * * @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>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Return list of software update configuration runs - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of jobs. * - * @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. * * @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 * @@ -9007,7 +9189,7 @@ export interface SoftwareUpdateConfigurationRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationRunListResult} - The deserialized result object. + * @resolve {JobListResultV2} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9015,37 +9197,37 @@ 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. + * {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. */ - 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; + 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 - * SoftwareUpdateConfigurationMachineRuns + * JobStreamOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface SoftwareUpdateConfigurationMachineRuns { +export interface JobStreamOperations { /** - * Get a single software update configuration machine run by 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 {uuid} softwareUpdateConfigurationMachineRunId The Id of the software - * update configuration machine run. + * @param {string} jobName The job name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -9057,21 +9239,22 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * @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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get a single software update configuration machine run by 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 {uuid} softwareUpdateConfigurationMachineRunId The Id of the software - * update configuration machine run. + * @param {string} jobName The job name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -9088,7 +9271,7 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationMachineRun} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9096,74 +9279,61 @@ 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. + * {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. */ - 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; + 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; /** - * Return list of software update configuration machine runs + * 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. 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>; + listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Return list of software update configuration machine runs + * 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. 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 * @@ -9174,7 +9344,7 @@ export interface SoftwareUpdateConfigurationMachineRuns { * * {Promise} A promise is returned. * - * @resolve {SoftwareUpdateConfigurationMachineRunListResult} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9182,118 +9352,51 @@ 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. + * {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, 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 { + 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; /** - * Create 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 create or update - * source control operation. - * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. - * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. - * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. - * - * @param {boolean} [parameters.publishRunbook] Gets or sets 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 {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * Retrieve a list of jobs streams identified by job name. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: models.SourceControlCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByJobNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create 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 create or update - * source control operation. - * - * @param {string} [parameters.repoUrl] Gets or sets the repo url of the source - * control. - * - * @param {string} [parameters.branch] Gets or sets the repo branch of the - * source control. Include branch as empty string for VsoTfvc. - * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. - * - * @param {boolean} [parameters.publishRunbook] Gets or sets 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 {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. + * Retrieve a list of jobs streams identified by job name. * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. + * @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 * @@ -9304,7 +9407,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControl} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9312,48 +9415,34 @@ 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. + * {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. */ - 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; + 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 { /** - * Update a source control. + * Retrieve the automation agent registration information. * * @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] Gets or sets the repo branch of the - * source control. - * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. - * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. - * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. - * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -9361,42 +9450,19 @@ 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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update a source control. + * Retrieve the automation agent registration information. * * @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] Gets or sets the repo branch of the - * source control. - * - * @param {string} [parameters.folderPath] Gets or sets the folder path of the - * source control. Path must be relative. - * - * @param {boolean} [parameters.autoSync] Gets or sets auto async of the source - * control. Default is false. - * - * @param {boolean} [parameters.publishRunbook] Gets or sets the auto publish - * of the source control. Default is true. - * - * @param {string} [parameters.securityToken] Gets or sets the authorization - * token for the repo of the source control. - * - * @param {string} [parameters.description] Gets or sets the user description - * of the source control. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -9409,7 +9475,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControl} - The deserialized result object. + * @resolve {AgentRegistration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9417,26 +9483,30 @@ 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. + * {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. */ - 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; + 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; /** - * Delete the source control. + * 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 {string} sourceControlName The name of source control. + * @param {object} parameters The name of the agent registration key to be + * regenerated + * + * @param {string} parameters.keyName Gets or sets the agent registration key + * name - primary or secondary. Possible values include: 'primary', 'secondary' * * @param {object} [options] Optional Parameters. * @@ -9445,20 +9515,24 @@ 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. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + regenerateKeyWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the source control. + * 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 {string} sourceControlName The name of source control. + * @param {object} parameters The name of the agent registration key to be + * regenerated + * + * @param {string} parameters.keyName Gets or sets the agent registration key + * name - primary or secondary. Possible values include: 'primary', 'secondary' * * @param {object} [options] Optional Parameters. * @@ -9472,7 +9546,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {AgentRegistration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9480,25 +9554,35 @@ 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. + * {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. */ - 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; + 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 { /** - * Retrieve the source control identified by source control name. + * 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 {string} sourceControlName The name of source control. + * @param {string} nodeId The node id. * * @param {object} [options] Optional Parameters. * @@ -9507,20 +9591,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. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the source control identified by source control name. + * 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 {string} sourceControlName The name of source control. + * @param {string} nodeId The node id. * * @param {object} [options] Optional Parameters. * @@ -9534,7 +9618,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. * @@ -9542,50 +9626,50 @@ 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. */ - 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; + 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; /** - * Retrieve a list of source controls. + * 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 {object} [options] Optional Parameters. + * @param {string} nodeId The node id. * - * @param {string} [options.filter] The filter to apply on the 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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source controls. + * 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 {object} [options] Optional Parameters. + * @param {string} nodeId The node id. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9597,7 +9681,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlListResult} - The deserialized result object. + * @resolve {DscNode} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9605,24 +9689,37 @@ 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. + * {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. */ - 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; + 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; /** - * Retrieve a list of source controls. + * Update the dsc node. * - * @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 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 {object} [options] Optional Parameters. * @@ -9631,17 +9728,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. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: models.DscNodeUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of source controls. + * Update the dsc node. * - * @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 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 {object} [options] Optional Parameters. * @@ -9655,7 +9766,7 @@ export interface SourceControlOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlListResult} - The deserialized result object. + * @resolve {DscNode} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9663,76 +9774,62 @@ 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. + * {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. */ - 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 { + 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; /** - * Creates the sync job for a 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 source control name. + * @param {object} [options] Optional Parameters. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {object} parameters The parameters supplied to the create source - * control sync job operation. + * @param {number} [options.skip] The number of rows to skip. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {number} [options.top] The the number of rows to take. * - * @param {object} [options] Optional Parameters. + * @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, sourceControlName: string, sourceControlSyncJobId: string, parameters: models.SourceControlSyncJobCreateParameters, 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>; /** - * Creates the sync job for a 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 source control name. + * @param {object} [options] Optional Parameters. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {object} parameters The parameters supplied to the create source - * control sync job operation. + * @param {number} [options.skip] The number of rows to skip. * - * @param {string} [parameters.commitId] Sets the commit id of the source - * control sync job. + * @param {number} [options.top] The the number of rows to take. * - * @param {object} [options] Optional Parameters. + * @param {string} [options.inlinecount] Return total rows. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9744,7 +9841,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJob} - The deserialized result object. + * @resolve {DscNodeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9752,28 +9849,23 @@ 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. + * {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. */ - 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; + 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 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 a list of dsc nodes. * - * @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. * @@ -9782,22 +9874,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>; + listByAutomationAccountNextWithHttpOperationResponse(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 a list of dsc nodes. * - * @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,7 +9898,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobById} - The deserialized result object. + * @resolve {DscNodeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9819,27 +9906,35 @@ export interface SourceControlSyncJobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {SourceControlSyncJobById} [result] - The deserialized result object if an error did not occur. - * See {@link SourceControlSyncJobById} for more - * information. + * {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, 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; + 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 control sync jobs. + * 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} sourceControlName The source control name. + * @param {string} nodeId The parameters supplied to the list operation. * * @param {object} [options] Optional Parameters. * @@ -9850,20 +9945,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. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: 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 control sync jobs. + * 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} sourceControlName The source control name. + * @param {string} nodeId The parameters supplied to the list operation. * * @param {object} [options] Optional Parameters. * @@ -9879,7 +9974,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {DscNodeReportListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9887,24 +9982,29 @@ 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 + * {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, 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; + 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 control sync jobs. + * 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. * @@ -9913,17 +10013,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. */ - 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 control sync jobs. + * 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. * @@ -9937,7 +10042,7 @@ export interface SourceControlSyncJobOperations { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobListResult} - The deserialized result object. + * @resolve {DscNodeReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -9945,69 +10050,55 @@ 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. + * {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 - * SourceControlSyncJobStreams - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface SourceControlSyncJobStreams { + 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; /** - * Retrieve a list of sync job streams identified by sync job id. + * 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 {string} nodeId The Dsc node id. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} reportId The report 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. */ - listBySyncJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of sync job streams identified by sync job id. + * 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 {string} nodeId The Dsc node id. * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * @param {string} reportId The report 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 * @@ -10018,7 +10109,7 @@ export interface SourceControlSyncJobStreams { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobStreamsListBySyncJob} - The deserialized result object. + * @resolve {Object} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10026,31 +10117,22 @@ 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. + * {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. */ - 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; + 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 a sync job stream identified by stream id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * Retrieve the Dsc node report list by node id. * - * @param {string} streamId The id of the sync job stream. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10059,24 +10141,17 @@ 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>; + listByNodeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a sync job stream identified by stream id. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. - * - * @param {string} sourceControlName The source control name. - * - * @param {uuid} sourceControlSyncJobId The source control sync job id. + * Retrieve the Dsc node report list by node id. * - * @param {string} streamId The id of the sync job stream. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10090,7 +10165,7 @@ export interface SourceControlSyncJobStreams { * * {Promise} A promise is returned. * - * @resolve {SourceControlSyncJobStreamById} - The deserialized result object. + * @resolve {DscNodeReportListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10098,24 +10173,58 @@ 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 + * {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, 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; + 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 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. * @@ -10124,17 +10233,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>; + createWithHttpOperationResponse(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. * @@ -10148,7 +10282,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. * @@ -10156,67 +10290,51 @@ 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 { + 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 the job output identified by job name. + * Retrieve the Dsc configuration compilation 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} jobName The name of the job to be created. + * @param {string} compilationJobName The the DSC configuration 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. */ - getOutputWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job output identified by job name. + * Retrieve the Dsc configuration compilation 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} jobName The name of the job to be created. + * @param {string} compilationJobName The the DSC configuration 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 * @@ -10227,7 +10345,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {DscCompilationJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10235,55 +10353,50 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the runbook content of the job identified by job name. + * 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} jobName The job name. - * * @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. */ - getRunbookContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the runbook content of the job identified by job name. + * 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} jobName The job name. - * * @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 @@ -10295,7 +10408,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {String} - The deserialized result object. + * @resolve {DscCompilationJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10303,55 +10416,55 @@ export interface JobOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {String} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Suspend the job identified by job name. + * 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} jobName The job name. + * @param {uuid} jobId The job id. * - * @param {object} [options] Optional Parameters. + * @param {string} jobStreamId The job stream id. * - * @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. */ - suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getStreamWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Suspend the job identified by job name. + * 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} jobName The job name. + * @param {uuid} jobId The job id. * - * @param {object} [options] Optional Parameters. + * @param {string} jobStreamId The job stream id. * - * @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 @@ -10363,7 +10476,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10371,55 +10484,94 @@ 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. + * {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. */ - 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; + 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; /** - * Stop the job identified by jobName. + * 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} jobName The job 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.clientRequestId] Identifies this specific client - * request. + * @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. */ - stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stop the job identified by jobName. + * 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} jobName The job 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.clientRequestId] Identifies this specific client - * request. + * @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 @@ -10431,7 +10583,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DscCompilationJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10439,56 +10591,45 @@ 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. + * {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. */ - 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; + 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 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 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. */ - getWithHttpOperationResponse(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 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 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 * @@ -10499,7 +10640,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Job} - The deserialized result object. + * @resolve {DscCompilationJobListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10507,85 +10648,61 @@ 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. + * {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. */ - 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; + 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 { /** - * Create a job of the runbook. + * 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 {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} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @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. */ - createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: models.JobCreateParameters, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create a job of the runbook. + * 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 {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} [parameters.parameters] Gets or sets the parameters of the - * job. - * - * @param {string} [parameters.runOn] Gets or sets the runOn which specifies - * the group name where the job is to be executed. + * @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 * @@ -10596,7 +10713,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {Job} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10604,56 +10721,59 @@ 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. + * {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. */ - 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; + 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 { /** - * Retrieve a list of jobs. + * 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 {object} [options] Optional Parameters. - * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} nodeConfigurationName The Dsc node configuration name. * - * @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. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs. + * 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 {object} [options] Optional Parameters. - * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {string} nodeConfigurationName The Dsc node configuration name. * - * @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 @@ -10665,7 +10785,7 @@ export interface JobOperations { * * {Promise} A promise is returned. * - * @resolve {JobListResultV2} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10673,57 +10793,50 @@ 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. + * {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, 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; + 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; /** - * Resume 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. */ - resumeWithHttpOperationResponse(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>; /** - * Resume 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 * @@ -10734,7 +10847,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. * @@ -10742,49 +10855,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. */ - 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(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 a list of jobs. + * Create the node configuration identified by node configuration 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} 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 {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>; + createOrUpdateWithHttpOperationResponse(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} 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} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10796,7 +10982,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. * @@ -10804,69 +10990,62 @@ 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. */ - 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 { + 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; /** - * Retrieve the job stream identified by job stream id. + * 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} [options] Optional Parameters. * - * @param {string} jobStreamId The job stream id. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.skip] The number of rows to skip. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @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. */ - getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, 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>; /** - * Retrieve the job stream identified by job stream id. + * 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} [options] Optional Parameters. * - * @param {string} jobStreamId The job stream id. + * @param {string} [options.filter] The filter to apply on the operation. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.skip] The number of rows to skip. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @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 @@ -10878,7 +11057,7 @@ export interface JobStreamOperations { * * {Promise} A promise is returned. * - * @resolve {JobStream} - The deserialized result object. + * @resolve {DscNodeConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10886,124 +11065,124 @@ 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. + * {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. */ - 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; + 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 streams 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} 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 {string} resourceGroupName Name of an Azure Resource group. + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} [parameters.configuration.name] Gets or sets the name of the + * Dsc configuration. * - * @param {string} jobName The job name. + * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build + * version of NodeConfiguration is required. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.name] Name of the node configuration. * - * @param {string} [options.filter] The filter to apply on the operation. + * @param {object} [parameters.tags] Gets or sets the tags attached to the + * resource. * - * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of jobs streams 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 {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 - * - * @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 {JobStreamListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. + * @param {string} nodeConfigurationName The Dsc node configuration name. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} parameters The create or update parameters for + * configuration. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} parameters.source Gets or sets the source. * - * {JobStreamListResult} [result] - The deserialized result object if an error did not occur. - * See {@link JobStreamListResult} for more information. + * @param {object} [parameters.source.hash] Gets or sets the hash. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} parameters.source.hash.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. - */ - 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; - - - /** - * Retrieve a list of jobs streams identified by job name. + * @param {string} parameters.source.hash.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.source.type] Gets or sets the content source + * type. Possible values include: 'embeddedContent', 'uri' * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.source.value] Gets or sets the value of the + * content. This is based on the content source type. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. + * @param {string} [parameters.source.version] Gets or sets the version of the + * content. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters.configuration Gets or sets the configuration of + * the node. * - * @returns {Promise} A promise is returned + * @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. - */ - listByJobNextWithHttpOperationResponse(nextPageLink: string, options?: { clientRequestId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve a list of jobs streams identified by job name. + * @param {string} [parameters.name] Name of the node configuration. * - * @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. * - * @param {string} [options.clientRequestId] Identifies this specific client - * request. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11014,7 +11193,7 @@ export interface JobStreamOperations { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {DscNodeConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11022,33 +11201,23 @@ 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. + * {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. */ - 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 { + 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; /** - * Retrieve the automation agent registration information. - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of dsc node configurations. * - * @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. * @@ -11057,18 +11226,17 @@ 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>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the automation agent registration information. - * - * @param {string} resourceGroupName Name of an Azure Resource group. + * Retrieve a list of dsc node configurations. * - * @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. * @@ -11082,7 +11250,7 @@ export interface AgentRegistrationInformation { * * {Promise} A promise is returned. * - * @resolve {AgentRegistration} - The deserialized result object. + * @resolve {DscNodeConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11090,30 +11258,37 @@ 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. + * {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. */ - 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; +} + +/** + * @class + * NodeCountInformation + * __NOTE__: An instance of this class is automatically created for an + * instance of the AutomationClient. + */ +export interface NodeCountInformation { /** - * Regenerate a primary or secondary agent registration key + * Retrieve counts for Dsc Nodes. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {object} parameters The name of the agent registration key to be - * regenerated - * - * @param {string} parameters.keyName Gets or sets the agent registration key - * name - primary or secondary. Possible values include: 'primary', 'secondary' + * @param {string} countType The type of counts to retrieve. Possible values + * include: 'status', 'nodeconfiguration' * * @param {object} [options] Optional Parameters. * @@ -11122,24 +11297,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. */ - regenerateKeyWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, parameters: models.AgentRegistrationRegenerateKeyParameter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, countType: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Regenerate a primary or secondary agent registration key + * Retrieve counts for Dsc Nodes. * * @param {string} resourceGroupName Name of an Azure Resource group. * * @param {string} automationAccountName The name of the automation account. * - * @param {object} parameters The name of the agent registration key to be - * regenerated - * - * @param {string} parameters.keyName Gets or sets the agent registration key - * name - primary or secondary. Possible values include: 'primary', 'secondary' + * @param {string} countType The type of counts to retrieve. Possible values + * include: 'status', 'nodeconfiguration' * * @param {object} [options] Optional Parameters. * @@ -11153,7 +11325,7 @@ export interface AgentRegistrationInformation { * * {Promise} A promise is returned. * - * @resolve {AgentRegistration} - The deserialized result object. + * @resolve {NodeCounts} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11161,35 +11333,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. + * {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. */ - 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; + get(resourceGroupName: string, automationAccountName: string, countType: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, automationAccountName: string, countType: string, callback: ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, countType: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * DscNodeOperations + * RunbookDraftOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface DscNodeOperations { +export interface RunbookDraftOperations { /** - * Delete the dsc node identified by node 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} nodeId The node id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11198,20 +11370,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. */ - deleteMethodWithHttpOperationResponse(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>; /** - * Delete the dsc node identified by node 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} nodeId The node id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11225,7 +11397,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. * @@ -11233,26 +11405,27 @@ 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. */ - 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; + 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 the dsc node identified by node id. + * 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} nodeId The node id. + * @param {string} runbookName The runbook name. + * + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11261,20 +11434,22 @@ 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>; + replaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the dsc node identified by node id. + * 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} nodeId The node id. + * @param {string} runbookName The runbook name. + * + * @param {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11288,7 +11463,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. * @@ -11296,37 +11471,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; - + 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; - /** - * Update the dsc node. - * - * @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. + + /** + * Retrieve the runbook draft identified by runbook name. * - * @param {string} [dscNodeUpdateParameters.nodeId] Gets or sets the id of the - * dsc node. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {object} [dscNodeUpdateParameters.properties] + * @param {string} automationAccountName The name of the automation account. * - * @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. * @@ -11335,31 +11498,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 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} 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. * @@ -11373,7 +11525,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNode} - The deserialized result object. + * @resolve {RunbookDraft} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11381,62 +11533,50 @@ 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. + * {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. */ - 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. + * 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 {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} runbookName The runbook 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>; + undoEditWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc nodes. + * 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 {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} runbookName The runbook 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 @@ -11448,7 +11588,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeListResult} - The deserialized result object. + * @resolve {RunbookDraftUndoEditResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11456,23 +11596,29 @@ 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. + * {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. */ - 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; + 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; /** - * Retrieve a list of dsc nodes. + * Replaces the runbook draft content. * - * @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 {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11481,17 +11627,22 @@ 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. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginReplaceContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc nodes. + * Replaces the runbook draft content. * - * @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 {string} runbookContent The runbook draft content. * * @param {object} [options] Optional Parameters. * @@ -11505,7 +11656,7 @@ export interface DscNodeOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeListResult} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11513,64 +11664,61 @@ 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. + * {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. */ - 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; + 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 - * NodeReports + * RunbookOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface NodeReports { +export interface RunbookOperations { /** - * Retrieve the Dsc node report list 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 parameters supplied to the list operation. + * @param {string} runbookName The parameters supplied to the publish runbook + * operation. * * @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. */ - listByNodeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + publishWithHttpOperationResponse(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} 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 parameters supplied to the publish runbook + * operation. * * @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 * @@ -11581,7 +11729,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. * @@ -11589,29 +11737,25 @@ 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. */ - 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; + 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 report data by node id and report 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 Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11620,22 +11764,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>; + getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node report data by node id and report 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 Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11649,7 +11791,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {DscNodeReport} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11657,28 +11799,25 @@ 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. + * {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, 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; + 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 the Dsc node reports by node id and report id. + * 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 The Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11687,22 +11826,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. */ - getContentWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc node reports by node id and report id. + * 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 The Dsc node id. - * - * @param {string} reportId The report id. + * @param {string} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -11716,7 +11853,7 @@ export interface NodeReports { * * {Promise} A promise is returned. * - * @resolve {Object} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11724,108 +11861,84 @@ 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. + * {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. */ - 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; + 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 Dsc node report list by node id. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. + * Create the runbook identified by runbook name. * - * @reject {Error|ServiceError} - The error object. - */ - listByNodeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Retrieve the Dsc node report list by node id. + * @param {string} resourceGroupName Name of an Azure Resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} automationAccountName The name of the automation account. * - * @param {object} [options] Optional Parameters. + * @param {string} runbookName The runbook name. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters The create or update parameters for runbook. + * Provide either content link for a published runbook or draft, not both. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. * - * {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 {DscNodeReportListResult} - The deserialized result object. + * @param {object} [parameters.draft] Gets or sets the draft runbook + * properties. * - * @reject {Error|ServiceError} - The error object. + * @param {boolean} [parameters.draft.inEdit] Gets or sets whether runbook is + * in edit mode. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} [parameters.draft.draftContentLink] Gets or sets the draft + * runbook content link. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {date} [parameters.draft.creationTime] Gets or sets the creation time + * of the runbook draft. * - * {DscNodeReportListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DscNodeReportListResult} for more - * information. + * @param {date} [parameters.draft.lastModifiedTime] Gets or sets the last + * modified time of the runbook draft. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} [parameters.draft.parameters] Gets or sets the runbook draft + * parameters. * - * {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 { - - - /** - * Creates the Dsc compilation job of the configuration. + * @param {array} [parameters.draft.outputTypes] Gets or sets the runbook + * output types. * - * @param {string} resourceGroupName Name of an Azure Resource group. + * @param {object} [parameters.publishContentLink] Gets or sets the published + * runbook content link. * - * @param {string} automationAccountName The name of the automation account. + * @param {string} [parameters.publishContentLink.uri] Gets or sets the uri of + * the runbook content. * - * @param {string} compilationJobName The the DSC configuration Id. + * @param {object} [parameters.publishContentLink.contentHash] Gets or sets the + * hash. * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. + * @param {string} parameters.publishContentLink.contentHash.algorithm Gets or + * sets the content hash algorithm used to hash the content. * - * @param {object} parameters.configuration Gets or sets the configuration. + * @param {string} parameters.publishContentLink.contentHash.value Gets or sets + * expected hash value of the content. * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @param {string} [parameters.publishContentLink.version] Gets or sets the + * version of the content. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {number} [parameters.logActivityTrace] Gets or sets the + * activity-level tracing options of the runbook. * - * @param {string} [parameters.name] Gets or sets name of the resource. + * @param {string} [parameters.name] Gets or sets the name of the resource. * * @param {string} [parameters.location] Gets or sets the location of the * resource. @@ -11840,36 +11953,78 @@ 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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the Dsc compilation job of the configuration. + * 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} compilationJobName The the DSC configuration Id. + * @param {string} runbookName The runbook name. * - * @param {object} parameters The parameters supplied to the create compilation - * job operation. + * @param {object} parameters The create or update parameters for runbook. + * Provide either content link for a published runbook or draft, not both. * - * @param {object} parameters.configuration Gets or sets the configuration. + * @param {boolean} [parameters.logVerbose] Gets or sets verbose log option. * - * @param {string} [parameters.configuration.name] Gets or sets the name of the - * Dsc configuration. + * @param {boolean} [parameters.logProgress] Gets or sets progress log option. * - * @param {object} [parameters.parameters] Gets or sets the parameters of the - * job. + * @param {string} parameters.runbookType Gets or sets the type of the runbook. + * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {object} [parameters.draft] Gets or sets the draft runbook + * properties. * - * @param {string} [parameters.name] Gets or sets name of the resource. + * @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} parameters.publishContentLink.contentHash.value Gets or sets + * expected hash value of the content. + * + * @param {string} [parameters.publishContentLink.version] Gets or sets the + * version of the content. + * + * @param {string} [parameters.description] Gets or sets the description of the + * runbook. + * + * @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. @@ -11889,7 +12044,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11897,26 +12052,46 @@ 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. + * {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. */ - 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; + 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 configuration compilation job identified by job 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} compilationJobName The the DSC configuration Id. + * @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. * @@ -11925,20 +12100,40 @@ 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>; + updateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.RunbookUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the Dsc configuration compilation job identified by job 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} compilationJobName The the DSC configuration Id. + * @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. * @@ -11952,7 +12147,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {Runbook} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11960,50 +12155,50 @@ 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. + * {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. */ - 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; + 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 a list of dsc compilation jobs. + * Delete the runbook by 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} [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, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc compilation jobs. + * Delete the runbook by 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} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -12015,7 +12210,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJobListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12023,30 +12218,24 @@ 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. + * {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; + 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 job stream identified by job stream 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 {uuid} jobId The job id. - * - * @param {string} jobStreamId The job stream id. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -12054,23 +12243,19 @@ 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>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the job stream identified by job stream 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 {uuid} jobId The job id. - * - * @param {string} jobStreamId The job stream id. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -12083,7 +12268,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {JobStream} - The deserialized result object. + * @resolve {RunbookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12091,48 +12276,27 @@ 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. + * {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. */ - 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; + 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; /** - * Creates the Dsc compilation job of the configuration. + * Publish runbook draft. * * @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 {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -12141,42 +12305,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. */ - beginCreateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: models.DscCompilationJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginPublishWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates the Dsc compilation job of the configuration. + * Publish runbook draft. * * @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 {string} runbookName The parameters supplied to the publish runbook + * operation. * * @param {object} [options] Optional Parameters. * @@ -12190,7 +12333,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJob} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12198,20 +12341,19 @@ 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. + * {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. */ - 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; + 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; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve a list of runbooks. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -12223,14 +12365,14 @@ 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>; + listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc compilation jobs. + * Retrieve a list of runbooks. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -12247,7 +12389,7 @@ export interface DscCompilationJobOperations { * * {Promise} A promise is returned. * - * @resolve {DscCompilationJobListResult} - The deserialized result object. + * @resolve {RunbookListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12255,36 +12397,38 @@ 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. + * {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. */ - 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 - * DscCompilationJobStream + * TestJobStreams * __NOTE__: An instance of this class is automatically created for an * instance of the AutomationClient. */ -export interface DscCompilationJobStream { +export interface TestJobStreams { /** - * Retrieve all the job streams for the compilation Job. + * 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 {uuid} jobId The job id. + * @param {string} runbookName The runbook name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -12293,20 +12437,23 @@ 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>; + getWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve all the job streams for the compilation Job. + * 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 {uuid} jobId The job id. + * @param {string} runbookName The runbook name. + * + * @param {string} jobStreamId The job stream id. * * @param {object} [options] Optional Parameters. * @@ -12320,7 +12467,7 @@ export interface DscCompilationJobStream { * * {Promise} A promise is returned. * - * @resolve {JobStreamListResult} - The deserialized result object. + * @resolve {JobStream} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12328,60 +12475,55 @@ 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. + * {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. */ - 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 { + 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; /** - * Delete the Dsc node configurations by node configuration. + * 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} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook 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, nodeConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByTestJobWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Delete the Dsc node configurations by node configuration. + * 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} nodeConfigurationName The Dsc node configuration name. + * @param {string} runbookName The runbook 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 * @@ -12392,7 +12534,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12400,25 +12542,23 @@ export interface DscNodeConfigurationOperations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [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. */ - 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; + 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 Dsc node configurations by node configuration. - * - * @param {string} resourceGroupName Name of an Azure Resource group. - * - * @param {string} automationAccountName The name of the automation account. + * Retrieve a list of test job streams identified by runbook name. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12427,20 +12567,17 @@ 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>; + listByTestJobNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * 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. + * Retrieve a list of test job streams identified by runbook name. * - * @param {string} nodeConfigurationName The Dsc node configuration name. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12454,7 +12591,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfiguration} - The deserialized result object. + * @resolve {JobStreamListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12462,62 +12599,45 @@ 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. + * {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. */ - 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; + 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 { /** - * Create the node configuration identified by node configuration name. + * 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} 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 {string} runbookName The parameters supplied to the create test job + * operation. * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {object} parameters The parameters supplied to the create test job + * operation. * - * @param {string} [parameters.name] Name of the node configuration. + * @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. * @@ -12526,56 +12646,30 @@ 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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: models.TestJobCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create the node configuration identified by node configuration name. + * 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} 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 {string} runbookName The parameters supplied to the create test job + * operation. * - * @param {boolean} [parameters.incrementNodeConfigurationBuild] If a new build - * version of NodeConfiguration is required. + * @param {object} parameters The parameters supplied to the create test job + * operation. * - * @param {string} [parameters.name] Name of the node configuration. + * @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. * @@ -12589,7 +12683,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfiguration} - The deserialized result object. + * @resolve {TestJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12597,62 +12691,50 @@ 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. + * {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. */ - 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(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 node configurations. + * Retrieve the test job for the specified runbook. * * @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} runbookName The runbook 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, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc node configurations. + * Retrieve the test job for the specified runbook. * * @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} runbookName The runbook 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 @@ -12664,7 +12746,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfigurationListResult} - The deserialized result object. + * @resolve {TestJob} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12672,63 +12754,26 @@ 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. + * {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. */ - 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, 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; /** - * Create the node configuration identified by node configuration name. + * Resume 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 {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} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12737,56 +12782,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. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: models.DscNodeConfigurationCreateOrUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + resumeWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create the node configuration identified by node configuration name. + * Resume 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 {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} runbookName The runbook name. * * @param {object} [options] Optional Parameters. * @@ -12800,7 +12809,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. * @@ -12808,23 +12817,25 @@ 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. */ - 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(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; /** - * Retrieve a list of dsc node configurations. + * Stop the test job. * - * @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. * @@ -12833,17 +12844,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. */ - listByAutomationAccountNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve a list of dsc node configurations. + * Stop the test job. * - * @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. * @@ -12857,7 +12871,7 @@ export interface DscNodeConfigurationOperations { * * {Promise} A promise is returned. * - * @resolve {DscNodeConfigurationListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12865,35 +12879,26 @@ 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. + * {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 - * NodeCountInformation - * __NOTE__: An instance of this class is automatically created for an - * instance of the AutomationClient. - */ -export interface NodeCountInformation { + 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 counts for Dsc Nodes. + * Suspend the test job. * * @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 @@ -12901,19 +12906,21 @@ 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>; + suspendWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve counts for Dsc Nodes. + * Suspend the test job. * * @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 @@ -12926,7 +12933,7 @@ export interface NodeCountInformation { * * {Promise} A promise is returned. * - * @resolve {NodeCounts} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12934,14 +12941,13 @@ 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. + * {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, 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; + 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; } diff --git a/lib/services/automationManagement/lib/operations/index.js b/lib/services/automationManagement/lib/operations/index.js index d0a423140c..d033a685b9 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,7 @@ 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'); diff --git a/lib/services/automationManagement/lib/operations/nodeCountInformation.js b/lib/services/automationManagement/lib/operations/nodeCountInformation.js index d488b35e3d..4fa27d3144 100644 --- a/lib/services/automationManagement/lib/operations/nodeCountInformation.js +++ b/lib/services/automationManagement/lib/operations/nodeCountInformation.js @@ -21,6 +21,9 @@ const WebResource = msRest.WebResource; * * @param {string} automationAccountName The name of the automation account. * + * @param {string} countType The type of counts to retrieve. Possible values + * include: 'status', 'nodeconfiguration' + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -39,7 +42,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, automationAccountName, options, callback) { +function _get(resourceGroupName, automationAccountName, countType, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -72,8 +75,8 @@ function _get(resourceGroupName, automationAccountName, options, callback) { if (automationAccountName === null || automationAccountName === undefined || typeof automationAccountName.valueOf() !== 'string') { throw new Error('automationAccountName cannot be null or undefined and it must be of type string.'); } - if (this.client.countType1 === null || this.client.countType1 === undefined || typeof this.client.countType1.valueOf() !== 'string') { - throw new Error('this.client.countType1 cannot be null or undefined and it must be of type string.'); + if (countType === null || countType === undefined || typeof countType.valueOf() !== 'string') { + throw new Error('countType 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.'); @@ -90,7 +93,7 @@ function _get(resourceGroupName, automationAccountName, options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{automationAccountName}', encodeURIComponent(automationAccountName)); - requestUrl = requestUrl.replace('{countType}', encodeURIComponent(this.client.countType1)); + requestUrl = requestUrl.replace('{countType}', encodeURIComponent(countType)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -194,6 +197,9 @@ class NodeCountInformation { * * @param {string} automationAccountName The name of the automation account. * + * @param {string} countType The type of counts to retrieve. Possible values + * include: 'status', 'nodeconfiguration' + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -205,11 +211,11 @@ class NodeCountInformation { * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, automationAccountName, options) { + getWithHttpOperationResponse(resourceGroupName, automationAccountName, countType, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + self._get(resourceGroupName, automationAccountName, countType, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -226,6 +232,9 @@ class NodeCountInformation { * * @param {string} automationAccountName The name of the automation account. * + * @param {string} countType The type of counts to retrieve. Possible values + * include: 'status', 'nodeconfiguration' + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -253,7 +262,7 @@ class NodeCountInformation { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, automationAccountName, options, optionalCallback) { + get(resourceGroupName, automationAccountName, countType, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -262,14 +271,14 @@ class NodeCountInformation { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, automationAccountName, options, (err, result, request, response) => { + self._get(resourceGroupName, automationAccountName, countType, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, automationAccountName, options, optionalCallback); + return self._get(resourceGroupName, automationAccountName, countType, options, optionalCallback); } } diff --git a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js index 182c2feead..5cbd7d3afb 100644 --- a/lib/services/automationManagement/lib/operations/runbookDraftOperations.js +++ b/lib/services/automationManagement/lib/operations/runbookDraftOperations.js @@ -433,72 +433,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. * @@ -858,153 +792,6 @@ function _beginReplaceContent(resourceGroupName, automationAccountName, runbookN }); } -/** - * 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 - 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}/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; - } - 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); - }); -} - /** Class representing a RunbookDraftOperations. */ class RunbookDraftOperations { /** @@ -1016,10 +803,8 @@ class RunbookDraftOperations { this._getContent = _getContent; this._replaceContent = _replaceContent; this._get = _get; - this._publish = _publish; this._undoEdit = _undoEdit; this._beginReplaceContent = _beginReplaceContent; - this._beginPublish = _beginPublish; } /** @@ -1294,97 +1079,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. * @@ -1569,97 +1263,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 950f0a9d7d..fac52b2b64 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. * @@ -1113,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 = '2015-10-31'; + // 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. * @@ -1249,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. * @@ -1960,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. *