Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR automation/resource-manager] Swagger change for Update configuration dynamic group Saved Search Query #4492

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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[];
}

/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions lib/services/automationManagement/lib/models/targetProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -51,6 +53,21 @@ class TargetProperties {
}
}
}
},
nonAzureQueries: {
required: false,
serializedName: 'nonAzureQueries',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'NonAzureQueryPropertiesElementType',
type: {
name: 'Composite',
className: 'NonAzureQueryProperties'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down
6 changes: 6 additions & 0 deletions lib/services/automationManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down