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

[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdateConfiguration changes to support Inclusion #2795

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
14 changes: 14 additions & 0 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2395,10 +2395,13 @@ export interface JobCollectionItem extends ProxyResource {
* 'Tools', 'Updates'
* @member {array} [excludedKbNumbers] KB numbers excluded from the software
* update configuration.
* @member {array} [includedKbNumbers] KB numbers included from the software
* update configuration.
*/
export interface WindowsProperties {
includedUpdateClassifications?: string;
excludedKbNumbers?: string[];
includedKbNumbers?: string[];
}

/**
Expand All @@ -2412,10 +2415,13 @@ export interface WindowsProperties {
* 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [includedPackageNameMasks] packages included from the
* software update configuration.
*/
export interface LinuxProperties {
includedPackageClassifications?: string;
excludedPackageNameMasks?: string[];
includedPackageNameMasks?: string[];
}

/**
Expand All @@ -2434,12 +2440,16 @@ export interface LinuxProperties {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [windows.excludedKbNumbers] KB numbers excluded from the
* software update configuration.
* @member {array} [windows.includedKbNumbers] KB numbers included from the
* software update configuration.
* @member {object} [linux] Linux specific update configuration.
* @member {string} [linux.includedPackageClassifications] Update
* classifications included in the software update configuration. Possible
* values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [linux.excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [linux.includedPackageNameMasks] packages included from the
* software update configuration.
* @member {moment.duration} [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
Expand Down Expand Up @@ -2479,13 +2489,17 @@ export interface UpdateConfiguration {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers
* excluded from the software update configuration.
* @member {array} [updateConfiguration.windows.includedKbNumbers] KB numbers
* included from the software update configuration.
* @member {object} [updateConfiguration.linux] Linux specific update
* configuration.
* @member {string} [updateConfiguration.linux.includedPackageClassifications]
* Update classifications included in the software update configuration.
* Possible values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [updateConfiguration.linux.excludedPackageNameMasks]
* packages excluded from the software update configuration.
* @member {array} [updateConfiguration.linux.includedPackageNameMasks]
* packages included from the software update configuration.
* @member {moment.duration} [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
Expand Down
16 changes: 16 additions & 0 deletions lib/services/automationManagement/lib/models/linuxProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class LinuxProperties {
* 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [excludedPackageNameMasks] packages excluded from the
* software update configuration.
* @member {array} [includedPackageNameMasks] packages included from the
* software update configuration.
*/
constructor() {
}
Expand Down Expand Up @@ -60,6 +62,20 @@ class LinuxProperties {
}
}
}
},
includedPackageNameMasks: {
required: false,
serializedName: 'includedPackageNameMasks',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [updateConfiguration.windows.excludedKbNumbers] KB numbers
* excluded from the software update configuration.
* @member {array} [updateConfiguration.windows.includedKbNumbers] KB numbers
* included from the software update configuration.
* @member {object} [updateConfiguration.linux] Linux specific update
* configuration.
* @member {string}
Expand All @@ -45,6 +47,8 @@ class SoftwareUpdateConfiguration extends models['BaseResource'] {
* values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [updateConfiguration.linux.excludedPackageNameMasks]
* packages excluded from the software update configuration.
* @member {array} [updateConfiguration.linux.includedPackageNameMasks]
* packages included from the software update configuration.
* @member {moment.duration} [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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ class UpdateConfiguration {
* 'ServicePack', 'Definition', 'Tools', 'Updates'
* @member {array} [windows.excludedKbNumbers] KB numbers excluded from the
* software update configuration.
* @member {array} [windows.includedKbNumbers] KB numbers included from the
* software update configuration.
* @member {object} [linux] Linux specific update configuration.
* @member {string} [linux.includedPackageClassifications] Update
* classifications included in the software update configuration. Possible
* values include: 'Unclassified', 'Critical', 'Security', 'Other'
* @member {array} [linux.excludedPackageNameMasks] packages excluded from
* the software update configuration.
* @member {array} [linux.includedPackageNameMasks] packages included from
* the software update configuration.
* @member {moment.duration} [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
Expand Down
16 changes: 16 additions & 0 deletions lib/services/automationManagement/lib/models/windowsProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class WindowsProperties {
* 'Tools', 'Updates'
* @member {array} [excludedKbNumbers] KB numbers excluded from the software
* update configuration.
* @member {array} [includedKbNumbers] KB numbers included from the software
* update configuration.
*/
constructor() {
}
Expand Down Expand Up @@ -62,6 +64,20 @@ class WindowsProperties {
}
}
}
},
includedKbNumbers: {
required: false,
serializedName: 'includedKbNumbers',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions lib/services/automationManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7788,6 +7788,9 @@ export interface SoftwareUpdateConfigurations {
* @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 {object} [parameters.updateConfiguration.linux] Linux specific update
* configuration.
*
Expand All @@ -7800,6 +7803,10 @@ export interface SoftwareUpdateConfigurations {
* [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 {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
Expand Down Expand Up @@ -7918,6 +7925,9 @@ export interface SoftwareUpdateConfigurations {
* @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 {object} [parameters.updateConfiguration.linux] Linux specific update
* configuration.
*
Expand All @@ -7930,6 +7940,10 @@ export interface SoftwareUpdateConfigurations {
* [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 {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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const WebResource = msRest.WebResource;
* @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 {object} [parameters.updateConfiguration.linux] Linux specific update
* configuration.
*
Expand All @@ -57,6 +60,10 @@ const WebResource = msRest.WebResource;
* [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 {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
Expand Down Expand Up @@ -880,6 +887,9 @@ class SoftwareUpdateConfigurations {
* @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 {object} [parameters.updateConfiguration.linux] Linux specific update
* configuration.
*
Expand All @@ -892,6 +902,10 @@ class SoftwareUpdateConfigurations {
* [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 {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
Expand Down Expand Up @@ -1022,6 +1036,9 @@ class SoftwareUpdateConfigurations {
* @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 {object} [parameters.updateConfiguration.linux] Linux specific update
* configuration.
*
Expand All @@ -1034,6 +1051,10 @@ class SoftwareUpdateConfigurations {
* [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 {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
Expand Down