diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index d009886ed9..cbbcbf1ba8 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -1605,6 +1605,21 @@ export interface AzureQueryProperties { tagSettings?: TagSettingsProperties; } +/** + * @class + * Initializes a new instance of the NonAzureQueryProperties class. + * @constructor + * Non Azure query for the update configuration. + * + * @member {string} [functionAlias] Log Analytics Saved Search name. + * @member {string} [workspaceId] Workspace Id for Log Analytics in which the + * saved Search is resided. + */ +export interface NonAzureQueryProperties { + functionAlias?: string; + workspaceId?: string; +} + /** * @class * Initializes a new instance of the TargetProperties class. @@ -1613,9 +1628,12 @@ export interface AzureQueryProperties { * * @member {array} [azureQueries] List of Azure queries in the software update * configuration. + * @member {array} [nonAzureQueries] List of non Azure queries in the software + * update configuration. */ export interface TargetProperties { azureQueries?: AzureQueryProperties[]; + nonAzureQueries?: NonAzureQueryProperties[]; } /** @@ -1659,6 +1677,8 @@ export interface TargetProperties { * configuration. * @member {array} [targets.azureQueries] List of Azure queries in the software * update configuration. + * @member {array} [targets.nonAzureQueries] List of non Azure queries in the + * software update configuration. */ export interface UpdateConfiguration { operatingSystem: string; @@ -1753,6 +1773,8 @@ export interface SoftwareUpdateConfigurationTasks { * software update configuration. * @member {array} [updateConfiguration.targets.azureQueries] List of Azure * queries in the software update configuration. + * @member {array} [updateConfiguration.targets.nonAzureQueries] List of non + * Azure queries in the software update configuration. * @member {object} scheduleInfo Schedule information for the Software update * configuration * @member {date} [scheduleInfo.startTime] Gets or sets the start time of the diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 85c4b02cba..68b867e395 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -90,6 +90,7 @@ exports.WindowsProperties = require('./windowsProperties'); exports.LinuxProperties = require('./linuxProperties'); exports.TagSettingsProperties = require('./tagSettingsProperties'); exports.AzureQueryProperties = require('./azureQueryProperties'); +exports.NonAzureQueryProperties = require('./nonAzureQueryProperties'); exports.TargetProperties = require('./targetProperties'); exports.UpdateConfiguration = require('./updateConfiguration'); exports.TaskProperties = require('./taskProperties'); diff --git a/lib/services/automationManagement/lib/models/nonAzureQueryProperties.js b/lib/services/automationManagement/lib/models/nonAzureQueryProperties.js new file mode 100644 index 0000000000..177a1111c3 --- /dev/null +++ b/lib/services/automationManagement/lib/models/nonAzureQueryProperties.js @@ -0,0 +1,61 @@ +/* + * 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'; + +/** + * Non Azure query for the update configuration. + * + */ +class NonAzureQueryProperties { + /** + * Create a NonAzureQueryProperties. + * @member {string} [functionAlias] Log Analytics Saved Search name. + * @member {string} [workspaceId] Workspace Id for Log Analytics in which the + * saved Search is resided. + */ + constructor() { + } + + /** + * Defines the metadata of NonAzureQueryProperties + * + * @returns {object} metadata of NonAzureQueryProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'NonAzureQueryProperties', + type: { + name: 'Composite', + className: 'NonAzureQueryProperties', + modelProperties: { + functionAlias: { + required: false, + serializedName: 'functionAlias', + type: { + name: 'String' + } + }, + workspaceId: { + required: false, + serializedName: 'workspaceId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = NonAzureQueryProperties; diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js index bd43fae64e..da5cfce0f0 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js @@ -65,6 +65,8 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] { * software update configuration. * @member {array} [updateConfiguration.targets.azureQueries] List of Azure * queries in the software update configuration. + * @member {array} [updateConfiguration.targets.nonAzureQueries] List of non + * Azure queries in the software update configuration. * @member {object} scheduleInfo Schedule information for the Software update * configuration * @member {date} [scheduleInfo.startTime] Gets or sets the start time of the diff --git a/lib/services/automationManagement/lib/models/targetProperties.js b/lib/services/automationManagement/lib/models/targetProperties.js index f7ecd24f08..531247f87b 100644 --- a/lib/services/automationManagement/lib/models/targetProperties.js +++ b/lib/services/automationManagement/lib/models/targetProperties.js @@ -19,6 +19,8 @@ class TargetProperties { * Create a TargetProperties. * @member {array} [azureQueries] List of Azure queries in the software * update configuration. + * @member {array} [nonAzureQueries] List of non Azure queries in the + * software update configuration. */ constructor() { } @@ -51,6 +53,21 @@ class TargetProperties { } } } + }, + nonAzureQueries: { + required: false, + serializedName: 'nonAzureQueries', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NonAzureQueryPropertiesElementType', + type: { + name: 'Composite', + className: 'NonAzureQueryProperties' + } + } + } } } } diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 968d6bf540..1f245bf7a4 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -52,6 +52,8 @@ class UpdateConfiguration { * configuration. * @member {array} [targets.azureQueries] List of Azure queries in the * software update configuration. + * @member {array} [targets.nonAzureQueries] List of non Azure queries in the + * software update configuration. */ constructor() { } diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 18e715f896..9c5c977292 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -6811,6 +6811,9 @@ export interface SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.targets.azureQueries] List of * Azure queries in the software update configuration. * + * @param {array} [parameters.updateConfiguration.targets.nonAzureQueries] List + * of non Azure queries in the software update configuration. + * * @param {object} parameters.scheduleInfo Schedule information for the * Software update configuration * @@ -6973,6 +6976,9 @@ export interface SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.targets.azureQueries] List of * Azure queries in the software update configuration. * + * @param {array} [parameters.updateConfiguration.targets.nonAzureQueries] List + * of non Azure queries in the software update configuration. + * * @param {object} parameters.scheduleInfo Schedule information for the * Software update configuration * diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index 47a4d23a64..aea88cd091 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -88,6 +88,9 @@ const WebResource = msRest.WebResource; * @param {array} [parameters.updateConfiguration.targets.azureQueries] List of * Azure queries in the software update configuration. * + * @param {array} [parameters.updateConfiguration.targets.nonAzureQueries] List + * of non Azure queries in the software update configuration. + * * @param {object} parameters.scheduleInfo Schedule information for the * Software update configuration * @@ -959,6 +962,9 @@ class SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.targets.azureQueries] List of * Azure queries in the software update configuration. * + * @param {array} [parameters.updateConfiguration.targets.nonAzureQueries] List + * of non Azure queries in the software update configuration. + * * @param {object} parameters.scheduleInfo Schedule information for the * Software update configuration * @@ -1133,6 +1139,9 @@ class SoftwareUpdateConfigurations { * @param {array} [parameters.updateConfiguration.targets.azureQueries] List of * Azure queries in the software update configuration. * + * @param {array} [parameters.updateConfiguration.targets.nonAzureQueries] List + * of non Azure queries in the software update configuration. + * * @param {object} parameters.scheduleInfo Schedule information for the * Software update configuration *