From 4a506caa46171b0a308c53292f26065d4d21665b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 25 Apr 2018 22:23:12 -0700 Subject: [PATCH] [AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdateConfiguration changes to support Inclusion (#2795) * Generated from 09707ce51ff1db6cbca968a32e7080d691b9c099 SoftwareUpdateConfiguration Changes to support Inclusion * Generated from f5aaeaf28f08380d2d58718fdbb31584d0a00c72 Removed NotSelected * Generated from f5aaeaf28f08380d2d58718fdbb31584d0a00c72 Removed NotSelected --- .../lib/models/index.d.ts | 14 +++++++++++++ .../lib/models/linuxProperties.js | 16 ++++++++++++++ .../lib/models/softwareUpdateConfiguration.js | 4 ++++ .../lib/models/updateConfiguration.js | 4 ++++ .../lib/models/windowsProperties.js | 16 ++++++++++++++ .../lib/operations/index.d.ts | 14 +++++++++++++ .../softwareUpdateConfigurations.js | 21 +++++++++++++++++++ 7 files changed, 89 insertions(+) diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 7c58f23443..9bcc660051 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -2391,10 +2391,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[]; } /** @@ -2408,10 +2411,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[]; } /** @@ -2430,12 +2436,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 @@ -2475,6 +2485,8 @@ 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] @@ -2482,6 +2494,8 @@ export interface UpdateConfiguration { * 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 diff --git a/lib/services/automationManagement/lib/models/linuxProperties.js b/lib/services/automationManagement/lib/models/linuxProperties.js index 3e25b2be22..82e7421b85 100644 --- a/lib/services/automationManagement/lib/models/linuxProperties.js +++ b/lib/services/automationManagement/lib/models/linuxProperties.js @@ -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() { } @@ -60,6 +62,20 @@ class LinuxProperties { } } } + }, + includedPackageNameMasks: { + required: false, + serializedName: 'includedPackageNameMasks', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js index a93fc66152..cfb5e0141d 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js @@ -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} @@ -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 diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 49842befcc..ba72805c21 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -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 diff --git a/lib/services/automationManagement/lib/models/windowsProperties.js b/lib/services/automationManagement/lib/models/windowsProperties.js index d58407607d..70d8281493 100644 --- a/lib/services/automationManagement/lib/models/windowsProperties.js +++ b/lib/services/automationManagement/lib/models/windowsProperties.js @@ -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() { } @@ -62,6 +64,20 @@ class WindowsProperties { } } } + }, + includedKbNumbers: { + required: false, + serializedName: 'includedKbNumbers', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 2c974517eb..779c5c2bd5 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -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. * @@ -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 @@ -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. * @@ -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 diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index a23fd6b9da..f4e310731e 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -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. * @@ -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 @@ -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. * @@ -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 @@ -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. * @@ -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