diff --git a/lib/services/automationManagement/lib/models/azureQueryProperties.js b/lib/services/automationManagement/lib/models/azureQueryProperties.js index d856eb6ce2..bb3695d9ef 100644 --- a/lib/services/automationManagement/lib/models/azureQueryProperties.js +++ b/lib/services/automationManagement/lib/models/azureQueryProperties.js @@ -18,7 +18,7 @@ class AzureQueryProperties { /** * Create a AzureQueryProperties. * @member {array} [scope] List of Subscription or Resource Group ARM Ids. - * @member {array} [location] List of locations to scope the query to. + * @member {array} [locations] List of locations to scope the query to. * @member {object} [tagSettings] Tag settings for the VM. * @member {object} [tagSettings.tags] Dictionary of tags with its list of * values. @@ -56,9 +56,9 @@ class AzureQueryProperties { } } }, - location: { + locations: { required: false, - serializedName: 'location', + serializedName: 'locations', type: { name: 'Sequence', element: { diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 3a5278d0e2..202dde51dd 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -1592,7 +1592,7 @@ export interface TagSettingsProperties { * Azure query for the update configuration. * * @member {array} [scope] List of Subscription or Resource Group ARM Ids. - * @member {array} [location] List of locations to scope the query to. + * @member {array} [locations] List of locations to scope the query to. * @member {object} [tagSettings] Tag settings for the VM. * @member {object} [tagSettings.tags] Dictionary of tags with its list of * values. @@ -1601,7 +1601,7 @@ export interface TagSettingsProperties { */ export interface AzureQueryProperties { scope?: string[]; - location?: string[]; + locations?: string[]; tagSettings?: TagSettingsProperties; } @@ -1670,6 +1670,40 @@ export interface UpdateConfiguration { targets?: TargetProperties; } +/** + * @class + * Initializes a new instance of the TaskProperties class. + * @constructor + * Task properties of the software update configuration. + * + * @member {object} [parameters] Gets or sets the parameters of the task. + * @member {string} [source] Gets or sets the name of the runbook. + */ +export interface TaskProperties { + parameters?: { [propertyName: string]: string }; + source?: string; +} + +/** + * @class + * Initializes a new instance of the SoftwareUpdateConfigurationTasks class. + * @constructor + * Task properties of the software update configuration. + * + * @member {object} [preTask] Pre task properties. + * @member {object} [preTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [preTask.source] Gets or sets the name of the runbook. + * @member {object} [postTask] Post task properties. + * @member {object} [postTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [postTask.source] Gets or sets the name of the runbook. + */ +export interface SoftwareUpdateConfigurationTasks { + preTask?: TaskProperties; + postTask?: TaskProperties; +} + /** * @class * Initializes a new instance of the SoftwareUpdateConfiguration class. @@ -1755,18 +1789,30 @@ export interface UpdateConfiguration { * @member {string} [scheduleInfo.description] Gets or sets the description. * @member {string} [provisioningState] Provisioning state for the software * update configuration, which only appears in the response. - * @member {object} [error] detailes of provisioning error + * @member {object} [error] Details of provisioning error * @member {string} [error.code] Error code * @member {string} [error.message] Error message indicating why the operation * failed. - * @member {date} [creationTime] Creation time of theresource, which only + * @member {date} [creationTime] Creation time of the resource, which only * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the + * @member {string} [createdBy] CreatedBy property, which only appears in the * response. * @member {date} [lastModifiedTime] Last time resource was modified, which * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * @member {string} [lastModifiedBy] LastModifiedBy property, which only * appears in the response. + * @member {object} [tasks] Tasks information for the Software update + * configuration. + * @member {object} [tasks.preTask] Pre task properties. + * @member {object} [tasks.preTask.parameters] Gets or sets the parameters of + * the task. + * @member {string} [tasks.preTask.source] Gets or sets the name of the + * runbook. + * @member {object} [tasks.postTask] Post task properties. + * @member {object} [tasks.postTask.parameters] Gets or sets the parameters of + * the task. + * @member {string} [tasks.postTask.source] Gets or sets the name of the + * runbook. */ export interface SoftwareUpdateConfiguration extends BaseResource { readonly name?: string; @@ -1780,6 +1826,7 @@ export interface SoftwareUpdateConfiguration extends BaseResource { readonly createdBy?: string; readonly lastModifiedTime?: Date; readonly lastModifiedBy?: string; + tasks?: SoftwareUpdateConfigurationTasks; } /** @@ -1866,6 +1913,42 @@ export interface UpdateConfigurationNavigation { readonly name?: string; } +/** + * @class + * Initializes a new instance of the SoftareUpdateConfigurationRunTaskProperties class. + * @constructor + * Task properties of the software update configuration. + * + * @member {string} [status] The status of the task. + * @member {string} [source] The name of the source of the task. + * @member {string} [jobId] The job id of the task. + */ +export interface SoftareUpdateConfigurationRunTaskProperties { + status?: string; + source?: string; + jobId?: string; +} + +/** + * @class + * Initializes a new instance of the SoftareUpdateConfigurationRunTasks class. + * @constructor + * Software update configuration run tasks model. + * + * @member {object} [preTask] Pre task properties. + * @member {string} [preTask.status] The status of the task. + * @member {string} [preTask.source] The name of the source of the task. + * @member {string} [preTask.jobId] The job id of the task. + * @member {object} [postTask] Post task properties. + * @member {string} [postTask.status] The status of the task. + * @member {string} [postTask.source] The name of the source of the task. + * @member {string} [postTask.jobId] The job id of the task. + */ +export interface SoftareUpdateConfigurationRunTasks { + preTask?: SoftareUpdateConfigurationRunTaskProperties; + postTask?: SoftareUpdateConfigurationRunTaskProperties; +} + /** * @class * Initializes a new instance of the SoftwareUpdateConfigurationRun class. @@ -1879,11 +1962,11 @@ export interface UpdateConfigurationNavigation { * @member {string} [softwareUpdateConfiguration.name] Name of the software * update configuration triggered the software update configuration run * @member {string} [status] Status of the software update configuration run. - * @member {string} [configuredDuration] configured duration for the software + * @member {string} [configuredDuration] Configured duration for the software * update configuration run. * @member {string} [osType] Operating system target of the software update * configuration triggered this run - * @member {date} [startTime] Etart time of the software update configuration + * @member {date} [startTime] Start time of the software update configuration * run. * @member {date} [endTime] End time of the software update configuration run. * @member {number} [computerCount] Number of computers in the software update @@ -1891,12 +1974,22 @@ export interface UpdateConfigurationNavigation { * @member {number} [failedCount] Number of computers with failed status. * @member {date} [creationTime] Creation time of theresource, which only * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the + * @member {string} [createdBy] CreatedBy property, which only appears in the * response. * @member {date} [lastModifiedTime] Last time resource was modified, which * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * @member {string} [lastModifiedBy] LastModifiedBy property, which only * appears in the response. + * @member {object} [tasks] Software update configuration tasks triggered in + * this run + * @member {object} [tasks.preTask] Pre task properties. + * @member {string} [tasks.preTask.status] The status of the task. + * @member {string} [tasks.preTask.source] The name of the source of the task. + * @member {string} [tasks.preTask.jobId] The job id of the task. + * @member {object} [tasks.postTask] Post task properties. + * @member {string} [tasks.postTask.status] The status of the task. + * @member {string} [tasks.postTask.source] The name of the source of the task. + * @member {string} [tasks.postTask.jobId] The job id of the task. */ export interface SoftwareUpdateConfigurationRun { readonly name?: string; @@ -1913,6 +2006,7 @@ export interface SoftwareUpdateConfigurationRun { readonly createdBy?: string; readonly lastModifiedTime?: Date; readonly lastModifiedBy?: string; + tasks?: SoftareUpdateConfigurationRunTasks; } /** @@ -1985,6 +2079,10 @@ export interface JobNavigation { * only appears in the response. * @member {string} [lastModifiedBy] lastModifiedBy property, which only * appears in the response. + * @member {object} [error] detailes of provisioning error + * @member {string} [error.code] Error code + * @member {string} [error.message] Error message indicating why the operation + * failed. */ export interface SoftwareUpdateConfigurationMachineRun { readonly name?: string; @@ -2004,6 +2102,7 @@ export interface SoftwareUpdateConfigurationMachineRun { readonly createdBy?: string; readonly lastModifiedTime?: Date; readonly lastModifiedBy?: string; + error?: ErrorResponse; } /** diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index c5ae1ffd9a..85c4b02cba 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -92,11 +92,15 @@ exports.TagSettingsProperties = require('./tagSettingsProperties'); exports.AzureQueryProperties = require('./azureQueryProperties'); exports.TargetProperties = require('./targetProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); +exports.TaskProperties = require('./taskProperties'); +exports.SoftwareUpdateConfigurationTasks = require('./softwareUpdateConfigurationTasks'); exports.SoftwareUpdateConfiguration = require('./softwareUpdateConfiguration'); exports.CollectionItemUpdateConfiguration = require('./collectionItemUpdateConfiguration'); exports.SoftwareUpdateConfigurationCollectionItem = require('./softwareUpdateConfigurationCollectionItem'); exports.SoftwareUpdateConfigurationListResult = require('./softwareUpdateConfigurationListResult'); exports.UpdateConfigurationNavigation = require('./updateConfigurationNavigation'); +exports.SoftareUpdateConfigurationRunTaskProperties = require('./softareUpdateConfigurationRunTaskProperties'); +exports.SoftareUpdateConfigurationRunTasks = require('./softareUpdateConfigurationRunTasks'); exports.SoftwareUpdateConfigurationRun = require('./softwareUpdateConfigurationRun'); exports.SoftwareUpdateConfigurationRunListResult = require('./softwareUpdateConfigurationRunListResult'); exports.JobNavigation = require('./jobNavigation'); diff --git a/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTaskProperties.js b/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTaskProperties.js new file mode 100644 index 0000000000..e712560135 --- /dev/null +++ b/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTaskProperties.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Task properties of the software update configuration. + * + */ +class SoftareUpdateConfigurationRunTaskProperties { + /** + * Create a SoftareUpdateConfigurationRunTaskProperties. + * @member {string} [status] The status of the task. + * @member {string} [source] The name of the source of the task. + * @member {string} [jobId] The job id of the task. + */ + constructor() { + } + + /** + * Defines the metadata of SoftareUpdateConfigurationRunTaskProperties + * + * @returns {object} metadata of SoftareUpdateConfigurationRunTaskProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'softareUpdateConfigurationRunTaskProperties', + type: { + name: 'Composite', + className: 'SoftareUpdateConfigurationRunTaskProperties', + modelProperties: { + status: { + required: false, + serializedName: 'status', + type: { + name: 'String' + } + }, + source: { + required: false, + serializedName: 'source', + type: { + name: 'String' + } + }, + jobId: { + required: false, + serializedName: 'jobId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SoftareUpdateConfigurationRunTaskProperties; diff --git a/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTasks.js b/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTasks.js new file mode 100644 index 0000000000..c75a06edd2 --- /dev/null +++ b/lib/services/automationManagement/lib/models/softareUpdateConfigurationRunTasks.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Software update configuration run tasks model. + * + */ +class SoftareUpdateConfigurationRunTasks { + /** + * Create a SoftareUpdateConfigurationRunTasks. + * @member {object} [preTask] Pre task properties. + * @member {string} [preTask.status] The status of the task. + * @member {string} [preTask.source] The name of the source of the task. + * @member {string} [preTask.jobId] The job id of the task. + * @member {object} [postTask] Post task properties. + * @member {string} [postTask.status] The status of the task. + * @member {string} [postTask.source] The name of the source of the task. + * @member {string} [postTask.jobId] The job id of the task. + */ + constructor() { + } + + /** + * Defines the metadata of SoftareUpdateConfigurationRunTasks + * + * @returns {object} metadata of SoftareUpdateConfigurationRunTasks + * + */ + mapper() { + return { + required: false, + serializedName: 'softareUpdateConfigurationRunTasks', + type: { + name: 'Composite', + className: 'SoftareUpdateConfigurationRunTasks', + modelProperties: { + preTask: { + required: false, + serializedName: 'preTask', + type: { + name: 'Composite', + className: 'SoftareUpdateConfigurationRunTaskProperties' + } + }, + postTask: { + required: false, + serializedName: 'postTask', + type: { + name: 'Composite', + className: 'SoftareUpdateConfigurationRunTaskProperties' + } + } + } + } + }; + } +} + +module.exports = SoftareUpdateConfigurationRunTasks; diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js index c115a62c0e..bd43fae64e 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js @@ -102,18 +102,30 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { * @member {string} [scheduleInfo.description] Gets or sets the description. * @member {string} [provisioningState] Provisioning state for the software * update configuration, which only appears in the response. - * @member {object} [error] detailes of provisioning error + * @member {object} [error] Details of provisioning error * @member {string} [error.code] Error code * @member {string} [error.message] Error message indicating why the * operation failed. - * @member {date} [creationTime] Creation time of theresource, which only + * @member {date} [creationTime] Creation time of the resource, which only * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the + * @member {string} [createdBy] CreatedBy property, which only appears in the * response. * @member {date} [lastModifiedTime] Last time resource was modified, which * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * @member {string} [lastModifiedBy] LastModifiedBy property, which only * appears in the response. + * @member {object} [tasks] Tasks information for the Software update + * configuration. + * @member {object} [tasks.preTask] Pre task properties. + * @member {object} [tasks.preTask.parameters] Gets or sets the parameters of + * the task. + * @member {string} [tasks.preTask.source] Gets or sets the name of the + * runbook. + * @member {object} [tasks.postTask] Post task properties. + * @member {object} [tasks.postTask.parameters] Gets or sets the parameters + * of the task. + * @member {string} [tasks.postTask.source] Gets or sets the name of the + * runbook. */ constructor() { super(); @@ -222,6 +234,14 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { type: { name: 'String' } + }, + tasks: { + required: false, + serializedName: 'properties.tasks', + type: { + name: 'Composite', + className: 'SoftwareUpdateConfigurationTasks' + } } } } diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js index 487ab39571..cb3ac1ac8a 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationMachineRun.js @@ -53,6 +53,10 @@ class SoftwareUpdateConfigurationMachineRun { * only appears in the response. * @member {string} [lastModifiedBy] lastModifiedBy property, which only * appears in the response. + * @member {object} [error] detailes of provisioning error + * @member {string} [error.code] Error code + * @member {string} [error.message] Error message indicating why the + * operation failed. */ constructor() { } @@ -210,6 +214,14 @@ class SoftwareUpdateConfigurationMachineRun { type: { name: 'String' } + }, + error: { + required: false, + serializedName: 'properties.error', + type: { + name: 'Composite', + className: 'ErrorResponse' + } } } } diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js index f3a93db89d..f49cb6456b 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationRun.js @@ -24,11 +24,11 @@ class SoftwareUpdateConfigurationRun { * @member {string} [softwareUpdateConfiguration.name] Name of the software * update configuration triggered the software update configuration run * @member {string} [status] Status of the software update configuration run. - * @member {string} [configuredDuration] configured duration for the software + * @member {string} [configuredDuration] Configured duration for the software * update configuration run. * @member {string} [osType] Operating system target of the software update * configuration triggered this run - * @member {date} [startTime] Etart time of the software update configuration + * @member {date} [startTime] Start time of the software update configuration * run. * @member {date} [endTime] End time of the software update configuration * run. @@ -37,12 +37,24 @@ class SoftwareUpdateConfigurationRun { * @member {number} [failedCount] Number of computers with failed status. * @member {date} [creationTime] Creation time of theresource, which only * appears in the response. - * @member {string} [createdBy] createdBy property, which only appears in the + * @member {string} [createdBy] CreatedBy property, which only appears in the * response. * @member {date} [lastModifiedTime] Last time resource was modified, which * only appears in the response. - * @member {string} [lastModifiedBy] lastModifiedBy property, which only + * @member {string} [lastModifiedBy] LastModifiedBy property, which only * appears in the response. + * @member {object} [tasks] Software update configuration tasks triggered in + * this run + * @member {object} [tasks.preTask] Pre task properties. + * @member {string} [tasks.preTask.status] The status of the task. + * @member {string} [tasks.preTask.source] The name of the source of the + * task. + * @member {string} [tasks.preTask.jobId] The job id of the task. + * @member {object} [tasks.postTask] Post task properties. + * @member {string} [tasks.postTask.status] The status of the task. + * @member {string} [tasks.postTask.source] The name of the source of the + * task. + * @member {string} [tasks.postTask.jobId] The job id of the task. */ constructor() { } @@ -176,6 +188,14 @@ class SoftwareUpdateConfigurationRun { type: { name: 'String' } + }, + tasks: { + required: false, + serializedName: 'properties.tasks', + type: { + name: 'Composite', + className: 'SoftareUpdateConfigurationRunTasks' + } } } } diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfigurationTasks.js b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationTasks.js new file mode 100644 index 0000000000..4d0eb02e60 --- /dev/null +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfigurationTasks.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Task properties of the software update configuration. + * + */ +class SoftwareUpdateConfigurationTasks { + /** + * Create a SoftwareUpdateConfigurationTasks. + * @member {object} [preTask] Pre task properties. + * @member {object} [preTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [preTask.source] Gets or sets the name of the runbook. + * @member {object} [postTask] Post task properties. + * @member {object} [postTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [postTask.source] Gets or sets the name of the runbook. + */ + constructor() { + } + + /** + * Defines the metadata of SoftwareUpdateConfigurationTasks + * + * @returns {object} metadata of SoftwareUpdateConfigurationTasks + * + */ + mapper() { + return { + required: false, + serializedName: 'softwareUpdateConfigurationTasks', + type: { + name: 'Composite', + className: 'SoftwareUpdateConfigurationTasks', + modelProperties: { + preTask: { + required: false, + serializedName: 'preTask', + type: { + name: 'Composite', + className: 'TaskProperties' + } + }, + postTask: { + required: false, + serializedName: 'postTask', + type: { + name: 'Composite', + className: 'TaskProperties' + } + } + } + } + }; + } +} + +module.exports = SoftwareUpdateConfigurationTasks; diff --git a/lib/services/automationManagement/lib/models/taskProperties.js b/lib/services/automationManagement/lib/models/taskProperties.js new file mode 100644 index 0000000000..b8ca86eef9 --- /dev/null +++ b/lib/services/automationManagement/lib/models/taskProperties.js @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Task properties of the software update configuration. + * + */ +class TaskProperties { + /** + * Create a TaskProperties. + * @member {object} [parameters] Gets or sets the parameters of the task. + * @member {string} [source] Gets or sets the name of the runbook. + */ + constructor() { + } + + /** + * Defines the metadata of TaskProperties + * + * @returns {object} metadata of TaskProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'taskProperties', + type: { + name: 'Composite', + className: 'TaskProperties', + modelProperties: { + parameters: { + required: false, + serializedName: 'parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + source: { + required: false, + serializedName: 'source', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = TaskProperties; diff --git a/lib/services/automationManagement/lib/models/tasksProperties.js b/lib/services/automationManagement/lib/models/tasksProperties.js new file mode 100644 index 0000000000..28ab394343 --- /dev/null +++ b/lib/services/automationManagement/lib/models/tasksProperties.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Task properties of the software update configuration. + * + */ +class TasksProperties { + /** + * Create a TasksProperties. + * @member {object} [preTask] Pre task object. + * @member {object} [preTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [preTask.source] Gets or sets the name of the runbook. + * @member {object} [postTask] Post task object. + * @member {object} [postTask.parameters] Gets or sets the parameters of the + * task. + * @member {string} [postTask.source] Gets or sets the name of the runbook. + */ + constructor() { + } + + /** + * Defines the metadata of TasksProperties + * + * @returns {object} metadata of TasksProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'tasksProperties', + type: { + name: 'Composite', + className: 'TasksProperties', + modelProperties: { + preTask: { + required: false, + serializedName: 'preTask', + type: { + name: 'Composite', + className: 'TaskProperties' + } + }, + postTask: { + required: false, + serializedName: 'postTask', + type: { + name: 'Composite', + className: 'TaskProperties' + } + } + } + } + }; + } +} + +module.exports = TasksProperties; diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 3af7e176c9..09e8d488da 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -6863,13 +6863,26 @@ export interface SoftwareUpdateConfigurations { * @param {string} [parameters.scheduleInfo.description] Gets or sets the * description. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {object} [parameters.error] Details of provisioning error * * @param {string} [parameters.error.code] Error code * * @param {string} [parameters.error.message] Error message indicating why the * operation failed. * + * @param {object} [parameters.tasks] Tasks information for the Software update + * configuration. + * + * @param {object} [parameters.tasks.preTask] Pre task properties. + * + * @param {object} [parameters.tasks.postTask] Post task properties. + * + * @param {object} [parameters.tasks.postTask.parameters] Gets or sets the + * parameters of the task. + * + * @param {string} [parameters.tasks.postTask.source] Gets or sets the name of + * the runbook. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.clientRequestId] Identifies this specific client @@ -7012,13 +7025,26 @@ export interface SoftwareUpdateConfigurations { * @param {string} [parameters.scheduleInfo.description] Gets or sets the * description. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {object} [parameters.error] Details of provisioning error * * @param {string} [parameters.error.code] Error code * * @param {string} [parameters.error.message] Error message indicating why the * operation failed. * + * @param {object} [parameters.tasks] Tasks information for the Software update + * configuration. + * + * @param {object} [parameters.tasks.preTask] Pre task properties. + * + * @param {object} [parameters.tasks.postTask] Post task properties. + * + * @param {object} [parameters.tasks.postTask.parameters] Gets or sets the + * parameters of the task. + * + * @param {string} [parameters.tasks.postTask.source] Gets or sets the name of + * the runbook. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.clientRequestId] Identifies this specific client @@ -7364,7 +7390,7 @@ export interface SoftwareUpdateConfigurationRuns { * 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 + * @param {string} [options.skip] Number of entries you skip before returning * results * * @param {string} [options.top] Maximum number of entries returned in the @@ -7397,7 +7423,7 @@ export interface SoftwareUpdateConfigurationRuns { * 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 + * @param {string} [options.skip] Number of entries you skip before returning * results * * @param {string} [options.top] Maximum number of entries returned in the diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js index ae6f3084d5..3d53b77bd5 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurationRuns.js @@ -206,7 +206,7 @@ function _getById(resourceGroupName, automationAccountName, softwareUpdateConfig * 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 + * @param {string} [options.skip] Number of entries you skip before returning * results * * @param {string} [options.top] Maximum number of entries returned in the @@ -517,7 +517,7 @@ class SoftwareUpdateConfigurationRuns { * 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 + * @param {string} [options.skip] Number of entries you skip before returning * results * * @param {string} [options.top] Maximum number of entries returned in the @@ -562,7 +562,7 @@ class SoftwareUpdateConfigurationRuns { * 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 + * @param {string} [options.skip] Number of entries you skip before returning * results * * @param {string} [options.top] Maximum number of entries returned in the diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index d54b2a451d..47a4d23a64 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -140,13 +140,26 @@ const WebResource = msRest.WebResource; * @param {string} [parameters.scheduleInfo.description] Gets or sets the * description. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {object} [parameters.error] Details of provisioning error * * @param {string} [parameters.error.code] Error code * * @param {string} [parameters.error.message] Error message indicating why the * operation failed. * + * @param {object} [parameters.tasks] Tasks information for the Software update + * configuration. + * + * @param {object} [parameters.tasks.preTask] Pre task properties. + * + * @param {object} [parameters.tasks.postTask] Post task properties. + * + * @param {object} [parameters.tasks.postTask.parameters] Gets or sets the + * parameters of the task. + * + * @param {string} [parameters.tasks.postTask.source] Gets or sets the name of + * the runbook. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.clientRequestId] Identifies this specific client @@ -998,13 +1011,26 @@ class SoftwareUpdateConfigurations { * @param {string} [parameters.scheduleInfo.description] Gets or sets the * description. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {object} [parameters.error] Details of provisioning error * * @param {string} [parameters.error.code] Error code * * @param {string} [parameters.error.message] Error message indicating why the * operation failed. * + * @param {object} [parameters.tasks] Tasks information for the Software update + * configuration. + * + * @param {object} [parameters.tasks.preTask] Pre task properties. + * + * @param {object} [parameters.tasks.postTask] Post task properties. + * + * @param {object} [parameters.tasks.postTask.parameters] Gets or sets the + * parameters of the task. + * + * @param {string} [parameters.tasks.postTask.source] Gets or sets the name of + * the runbook. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.clientRequestId] Identifies this specific client @@ -1159,13 +1185,26 @@ class SoftwareUpdateConfigurations { * @param {string} [parameters.scheduleInfo.description] Gets or sets the * description. * - * @param {object} [parameters.error] detailes of provisioning error + * @param {object} [parameters.error] Details of provisioning error * * @param {string} [parameters.error.code] Error code * * @param {string} [parameters.error.message] Error message indicating why the * operation failed. * + * @param {object} [parameters.tasks] Tasks information for the Software update + * configuration. + * + * @param {object} [parameters.tasks.preTask] Pre task properties. + * + * @param {object} [parameters.tasks.postTask] Post task properties. + * + * @param {object} [parameters.tasks.postTask.parameters] Gets or sets the + * parameters of the task. + * + * @param {string} [parameters.tasks.postTask.source] Gets or sets the name of + * the runbook. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.clientRequestId] Identifies this specific client diff --git a/lib/services/automationManagement/package.json b/lib/services/automationManagement/package.json index f36532cd4c..3e4a4cbfa7 100644 --- a/lib/services/automationManagement/package.json +++ b/lib/services/automationManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-automation", "author": "Microsoft Corporation", "description": "AutomationClient Library with typescript type definitions for node", - "version": "8.1.0-preview", + "version": "9.0.0-preview", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"