diff --git a/lib/services/automationManagement/lib/models/dscConfiguration.js b/lib/services/automationManagement/lib/models/dscConfiguration.js index 99f3b9ceef..90a122164d 100644 --- a/lib/services/automationManagement/lib/models/dscConfiguration.js +++ b/lib/services/automationManagement/lib/models/dscConfiguration.js @@ -41,6 +41,8 @@ class DscConfiguration extends models['TrackedResource'] { * @member {boolean} [logVerbose] Gets or sets verbose log option. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {number} [nodeConfigurationCount] Gets the number of compiled node + * configurations. * @member {string} [description] Gets or sets the description. * @member {string} [etag] Gets or sets the etag of the resource. */ @@ -173,6 +175,13 @@ class DscConfiguration extends models['TrackedResource'] { name: 'DateTime' } }, + nodeConfigurationCount: { + required: false, + serializedName: 'properties.nodeConfigurationCount', + type: { + name: 'Number' + } + }, description: { required: false, serializedName: 'properties.description', diff --git a/lib/services/automationManagement/lib/models/dscConfigurationListResult.js b/lib/services/automationManagement/lib/models/dscConfigurationListResult.js index 38653beb4a..0b3bded35b 100644 --- a/lib/services/automationManagement/lib/models/dscConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/dscConfigurationListResult.js @@ -17,6 +17,8 @@ class DscConfigurationListResult extends Array { /** * Create a DscConfigurationListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of configurations + * matching filter criteria. */ constructor() { super(); @@ -57,6 +59,13 @@ class DscConfigurationListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNode.js b/lib/services/automationManagement/lib/models/dscNode.js index 94a9a48fee..a93a8bd213 100644 --- a/lib/services/automationManagement/lib/models/dscNode.js +++ b/lib/services/automationManagement/lib/models/dscNode.js @@ -30,6 +30,8 @@ class DscNode extends models['ProxyResource'] { * @member {string} [status] Gets or sets the status of the node. * @member {string} [nodeId] Gets or sets the node id. * @member {string} [etag] Gets or sets the etag of the resource. + * @member {number} [totalCount] Gets the total number of records matching + * filter criteria. * @member {array} [extensionHandler] Gets or sets the list of * extensionHandler properties for a Node. */ @@ -131,6 +133,13 @@ class DscNode extends models['ProxyResource'] { name: 'String' } }, + totalCount: { + required: false, + serializedName: 'properties.totalCount', + type: { + name: 'Number' + } + }, extensionHandler: { required: false, serializedName: 'properties.extensionHandler', diff --git a/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js b/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js index 8cdad3ff3d..81811897c3 100644 --- a/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js +++ b/lib/services/automationManagement/lib/models/dscNodeConfigurationListResult.js @@ -17,6 +17,7 @@ class DscNodeConfigurationListResult extends Array { /** * Create a DscNodeConfigurationListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets or sets the total rows in query. */ constructor() { super(); @@ -57,6 +58,13 @@ class DscNodeConfigurationListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/dscNodeListResult.js b/lib/services/automationManagement/lib/models/dscNodeListResult.js index 800ae685e9..d53026beb1 100644 --- a/lib/services/automationManagement/lib/models/dscNodeListResult.js +++ b/lib/services/automationManagement/lib/models/dscNodeListResult.js @@ -17,6 +17,8 @@ class DscNodeListResult extends Array { /** * Create a DscNodeListResult. * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of nodes matching + * filter criteria. */ constructor() { super(); @@ -57,6 +59,13 @@ class DscNodeListResult extends Array { type: { name: 'String' } + }, + totalCount: { + required: false, + serializedName: 'totalCount', + type: { + name: 'Number' + } } } } diff --git a/lib/services/automationManagement/lib/models/index.d.ts b/lib/services/automationManagement/lib/models/index.d.ts index 89e74c1df6..60e57de9f5 100644 --- a/lib/services/automationManagement/lib/models/index.d.ts +++ b/lib/services/automationManagement/lib/models/index.d.ts @@ -670,6 +670,8 @@ export interface DscConfigurationParameter { * @member {boolean} [logVerbose] Gets or sets verbose log option. * @member {date} [creationTime] Gets or sets the creation time. * @member {date} [lastModifiedTime] Gets or sets the last modified time. + * @member {number} [nodeConfigurationCount] Gets the number of compiled node + * configurations. * @member {string} [description] Gets or sets the description. * @member {string} [etag] Gets or sets the etag of the resource. */ @@ -682,6 +684,7 @@ export interface DscConfiguration extends TrackedResource { logVerbose?: boolean; creationTime?: Date; lastModifiedTime?: Date; + nodeConfigurationCount?: number; description?: string; etag?: string; } @@ -2399,10 +2402,16 @@ 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. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ export interface WindowsProperties { includedUpdateClassifications?: string; excludedKbNumbers?: string[]; + includedKbNumbers?: string[]; + rebootSetting?: string; } /** @@ -2416,10 +2425,16 @@ 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. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ export interface LinuxProperties { includedPackageClassifications?: string; excludedPackageNameMasks?: string[]; + includedPackageNameMasks?: string[]; + rebootSetting?: string; } /** @@ -2438,12 +2453,20 @@ 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 {string} [windows.rebootSetting] Reboot setting for 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 {string} [linux.rebootSetting] Reboot setting for 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 @@ -2483,6 +2506,10 @@ 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 {string} [updateConfiguration.windows.rebootSetting] Reboot setting + * for the software update configuration. * @member {object} [updateConfiguration.linux] Linux specific update * configuration. * @member {string} [updateConfiguration.linux.includedPackageClassifications] @@ -2490,6 +2517,10 @@ 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 {string} [updateConfiguration.linux.rebootSetting] Reboot setting + * for 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 @@ -2910,25 +2941,25 @@ export interface SourceControlUpdateParameters { * @member {string} [name] Resource name. * @member {string} [type] Resource type. * @member {string} [id] Resource id. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the job. * Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' */ export interface SourceControlSyncJob { readonly name?: string; readonly type?: string; readonly id?: string; - sourceControlSyncJobId?: string; + syncJobId?: string; readonly creationTime?: Date; provisioningState?: string; readonly startTime?: Date; readonly endTime?: Date; - startedBy?: string; + startType?: string; } /** @@ -2944,20 +2975,6 @@ export interface SourceControlSyncJobCreateParameters { commitId?: string; } -/** - * @class - * Initializes a new instance of the SourceControlSyncJobByIdErrors class. - * @constructor - * Error details of the source control sync job. - * - * @member {string} [code] Gets the error code for the job. - * @member {string} [message] Gets the error message for the job. - */ -export interface SourceControlSyncJobByIdErrors { - code?: string; - message?: string; -} - /** * @class * Initializes a new instance of the SourceControlSyncJobById class. @@ -2965,27 +2982,26 @@ export interface SourceControlSyncJobByIdErrors { * Definition of the source control sync job. * * @member {string} [id] Gets the id of the job. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the job. * Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. - * @member {object} [errors] Error details of the source control sync job. - * @member {string} [errors.code] Gets the error code for the job. - * @member {string} [errors.message] Gets the error message for the job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' + * @member {string} [exception] Gets the exceptions that occured while running + * the sync job. */ export interface SourceControlSyncJobById { id?: string; - sourceControlSyncJobId?: string; + syncJobId?: string; readonly creationTime?: Date; provisioningState?: string; readonly startTime?: Date; readonly endTime?: Date; - startedBy?: string; - errors?: SourceControlSyncJobByIdErrors; + startType?: string; + exception?: string; } /** @@ -3004,6 +3020,8 @@ export interface SourceControlSyncJobById { * @member {string} [status] Gets or sets the status of the node. * @member {string} [nodeId] Gets or sets the node id. * @member {string} [etag] Gets or sets the etag of the resource. + * @member {number} [totalCount] Gets the total number of records matching + * filter criteria. * @member {array} [extensionHandler] Gets or sets the list of extensionHandler * properties for a Node. */ @@ -3016,6 +3034,7 @@ export interface DscNode extends ProxyResource { status?: string; nodeId?: string; etag?: string; + totalCount?: number; extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; } @@ -3151,6 +3170,8 @@ export interface CredentialListResult extends Array { * The response model for the list configuration operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of configurations + * matching filter criteria. */ export interface DscConfigurationListResult extends Array { nextLink?: string; @@ -3317,6 +3338,8 @@ export interface JobListResultV2 extends Array { * The response model for the list dsc nodes operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets the total number of nodes matching filter + * criteria. */ export interface DscNodeListResult extends Array { nextLink?: string; @@ -3353,6 +3376,7 @@ export interface DscCompilationJobListResult extends Array { * The response model for the list job operation. * * @member {string} [nextLink] Gets or sets the next link. + * @member {number} [totalCount] Gets or sets the total rows in query. */ export interface DscNodeConfigurationListResult extends Array { nextLink?: string; diff --git a/lib/services/automationManagement/lib/models/index.js b/lib/services/automationManagement/lib/models/index.js index 41afad26d8..67610d8ee5 100644 --- a/lib/services/automationManagement/lib/models/index.js +++ b/lib/services/automationManagement/lib/models/index.js @@ -133,7 +133,6 @@ exports.SourceControl = require('./sourceControl'); exports.SourceControlUpdateParameters = require('./sourceControlUpdateParameters'); exports.SourceControlSyncJob = require('./sourceControlSyncJob'); exports.SourceControlSyncJobCreateParameters = require('./sourceControlSyncJobCreateParameters'); -exports.SourceControlSyncJobByIdErrors = require('./sourceControlSyncJobByIdErrors'); exports.SourceControlSyncJobById = require('./sourceControlSyncJobById'); exports.DscNode = require('./dscNode'); exports.DscNodeConfiguration = require('./dscNodeConfiguration'); diff --git a/lib/services/automationManagement/lib/models/linuxProperties.js b/lib/services/automationManagement/lib/models/linuxProperties.js index 3e25b2be22..7e2ed8c7a0 100644 --- a/lib/services/automationManagement/lib/models/linuxProperties.js +++ b/lib/services/automationManagement/lib/models/linuxProperties.js @@ -22,6 +22,10 @@ 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. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ constructor() { } @@ -60,6 +64,27 @@ class LinuxProperties { } } } + }, + includedPackageNameMasks: { + required: false, + serializedName: 'includedPackageNameMasks', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + rebootSetting: { + required: false, + serializedName: 'rebootSetting', + type: { + name: 'String' + } } } } diff --git a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js index a93fc66152..527abe3dc8 100644 --- a/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js +++ b/lib/services/automationManagement/lib/models/softwareUpdateConfiguration.js @@ -37,6 +37,10 @@ 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 {string} [updateConfiguration.windows.rebootSetting] Reboot + * setting for the software update configuration. * @member {object} [updateConfiguration.linux] Linux specific update * configuration. * @member {string} @@ -45,6 +49,10 @@ 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 {string} [updateConfiguration.linux.rebootSetting] Reboot setting + * for 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/sourceControlSyncJob.js b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js index 77494ea6a2..c6f4813bc5 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJob.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJob.js @@ -20,14 +20,14 @@ class SourceControlSyncJob { * @member {string} [name] Resource name. * @member {string} [type] Resource type. * @member {string} [id] Resource id. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the * job. Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' */ constructor() { } @@ -70,9 +70,9 @@ class SourceControlSyncJob { name: 'String' } }, - sourceControlSyncJobId: { + syncJobId: { required: false, - serializedName: 'properties.sourceControlSyncJobId', + serializedName: 'properties.syncJobId', type: { name: 'String' } @@ -108,9 +108,9 @@ class SourceControlSyncJob { name: 'DateTime' } }, - startedBy: { + startType: { required: false, - serializedName: 'properties.startedBy', + serializedName: 'properties.startType', type: { name: 'String' } diff --git a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js index 5936289484..b5399aa84d 100644 --- a/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js +++ b/lib/services/automationManagement/lib/models/sourceControlSyncJobById.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Definition of the source control sync job. * @@ -20,17 +18,16 @@ class SourceControlSyncJobById { /** * Create a SourceControlSyncJobById. * @member {string} [id] Gets the id of the job. - * @member {string} [sourceControlSyncJobId] Gets the source control sync job - * id. + * @member {string} [syncJobId] Gets the source control sync job id. * @member {date} [creationTime] Gets the creation time of the job. * @member {string} [provisioningState] Gets the provisioning state of the * job. Possible values include: 'Completed', 'Failed', 'Running' * @member {date} [startTime] Gets the start time of the job. * @member {date} [endTime] Gets the end time of the job. - * @member {string} [startedBy] Gets the user who started the sync job. - * @member {object} [errors] Error details of the source control sync job. - * @member {string} [errors.code] Gets the error code for the job. - * @member {string} [errors.message] Gets the error message for the job. + * @member {string} [startType] Gets the type of start for the sync job. + * Possible values include: 'AutoSync', 'ManualSync' + * @member {string} [exception] Gets the exceptions that occured while + * running the sync job. */ constructor() { } @@ -56,9 +53,9 @@ class SourceControlSyncJobById { name: 'String' } }, - sourceControlSyncJobId: { + syncJobId: { required: false, - serializedName: 'properties.sourceControlSyncJobId', + serializedName: 'properties.syncJobId', type: { name: 'String' } @@ -94,19 +91,18 @@ class SourceControlSyncJobById { name: 'DateTime' } }, - startedBy: { + startType: { required: false, - serializedName: 'properties.startedBy', + serializedName: 'properties.startType', type: { name: 'String' } }, - errors: { + exception: { required: false, - serializedName: 'properties.errors', + serializedName: 'properties.exception', type: { - name: 'Composite', - className: 'SourceControlSyncJobByIdErrors' + name: 'String' } } } diff --git a/lib/services/automationManagement/lib/models/updateConfiguration.js b/lib/services/automationManagement/lib/models/updateConfiguration.js index 49842befcc..5154e25af8 100644 --- a/lib/services/automationManagement/lib/models/updateConfiguration.js +++ b/lib/services/automationManagement/lib/models/updateConfiguration.js @@ -29,12 +29,20 @@ 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 {string} [windows.rebootSetting] Reboot setting for 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 {string} [linux.rebootSetting] Reboot setting for 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..85d1fd77a8 100644 --- a/lib/services/automationManagement/lib/models/windowsProperties.js +++ b/lib/services/automationManagement/lib/models/windowsProperties.js @@ -24,6 +24,10 @@ 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. + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. */ constructor() { } @@ -62,6 +66,27 @@ class WindowsProperties { } } } + }, + includedKbNumbers: { + required: false, + serializedName: 'includedKbNumbers', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + rebootSetting: { + required: false, + serializedName: 'rebootSetting', + type: { + name: 'String' + } } } } diff --git a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js index 8fb422a481..9e0561afa8 100644 --- a/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscConfigurationOperations.js @@ -960,6 +960,14 @@ function _getContent(resourceGroupName, automationAccountName, configurationName * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -987,6 +995,10 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (!callback) { throw new Error('callback cannot be null.'); } + let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2015-10-31'; // Validate try { @@ -1013,6 +1025,18 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { + throw new Error('filter must be of type string.'); + } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount must be of type string.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -1028,6 +1052,18 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (filter !== null && filter !== undefined) { + queryParameters.push('$filter=' + encodeURIComponent(filter)); + } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -1875,6 +1911,14 @@ class DscConfigurationOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1907,6 +1951,14 @@ class DscConfigurationOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js b/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js index 5726a49f1e..788298eb6b 100644 --- a/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js +++ b/lib/services/automationManagement/lib/operations/dscNodeConfigurationOperations.js @@ -461,6 +461,12 @@ function _createOrUpdate(resourceGroupName, automationAccountName, nodeConfigura * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -489,6 +495,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('callback cannot be null.'); } let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2018-01-15'; // Validate try { @@ -518,6 +527,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount must be of type string.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -536,6 +554,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined) { queryParameters.push('$filter=' + encodeURIComponent(filter)); } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -1362,6 +1389,12 @@ class DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1396,6 +1429,12 @@ class DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/dscNodeOperations.js b/lib/services/automationManagement/lib/operations/dscNodeOperations.js index 16dd2a39b7..3b28a08e33 100644 --- a/lib/services/automationManagement/lib/operations/dscNodeOperations.js +++ b/lib/services/automationManagement/lib/operations/dscNodeOperations.js @@ -551,6 +551,12 @@ function _update(resourceGroupName, automationAccountName, nodeId, dscNodeUpdate * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -578,6 +584,9 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti throw new Error('callback cannot be null.'); } let filter = (options && options.filter !== undefined) ? options.filter : undefined; + let skip = (options && options.skip !== undefined) ? options.skip : undefined; + let top = (options && options.top !== undefined) ? options.top : undefined; + let inlinecount = (options && options.inlinecount !== undefined) ? options.inlinecount : undefined; let apiVersion = '2018-01-15'; // Validate try { @@ -604,6 +613,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined && typeof filter.valueOf() !== 'string') { throw new Error('filter must be of type string.'); } + if (skip !== null && skip !== undefined && typeof skip !== 'number') { + throw new Error('skip must be of type number.'); + } + if (top !== null && top !== undefined && typeof top !== 'number') { + throw new Error('top must be of type number.'); + } + if (inlinecount !== null && inlinecount !== undefined && typeof inlinecount.valueOf() !== 'string') { + throw new Error('inlinecount must be of type string.'); + } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -624,6 +642,15 @@ function _listByAutomationAccount(resourceGroupName, automationAccountName, opti if (filter !== null && filter !== undefined) { queryParameters.push('$filter=' + encodeURIComponent(filter)); } + if (skip !== null && skip !== undefined) { + queryParameters.push('$skip=' + encodeURIComponent(skip.toString())); + } + if (top !== null && top !== undefined) { + queryParameters.push('$top=' + encodeURIComponent(top.toString())); + } + if (inlinecount !== null && inlinecount !== undefined) { + queryParameters.push('$inlinecount=' + encodeURIComponent(inlinecount)); + } queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1165,6 +1192,12 @@ class DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1199,6 +1232,12 @@ class DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/automationManagement/lib/operations/index.d.ts b/lib/services/automationManagement/lib/operations/index.d.ts index 294f1fdcfa..9839e76a37 100644 --- a/lib/services/automationManagement/lib/operations/index.d.ts +++ b/lib/services/automationManagement/lib/operations/index.d.ts @@ -2975,6 +2975,14 @@ export interface DscConfigurationOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2984,7 +2992,7 @@ export interface DscConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of configurations. @@ -2995,6 +3003,14 @@ export interface DscConfigurationOperations { * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] The filter to apply on the operation. + * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3021,9 +3037,9 @@ export interface DscConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -7796,6 +7812,12 @@ 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 {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -7808,6 +7830,13 @@ 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 {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for 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 @@ -7926,6 +7955,12 @@ 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 {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -7938,6 +7973,13 @@ 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 {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for 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 @@ -10617,6 +10659,12 @@ export interface DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10626,7 +10674,7 @@ export interface DscNodeOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of dsc nodes. @@ -10639,6 +10687,12 @@ export interface DscNodeOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10664,9 +10718,9 @@ export interface DscNodeOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -11841,6 +11895,12 @@ export interface DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11850,7 +11910,7 @@ export interface DscNodeConfigurationOperations { * * @reject {Error|ServiceError} - The error object. */ - listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByAutomationAccountWithHttpOperationResponse(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve a list of dsc node configurations. @@ -11863,6 +11923,12 @@ export interface DscNodeConfigurationOperations { * * @param {string} [options.filter] The filter to apply on the operation. * + * @param {number} [options.skip] The number of rows to skip. + * + * @param {number} [options.top] The the number of rows to take. + * + * @param {string} [options.inlinecount] Return total rows. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11889,9 +11955,9 @@ export interface DscNodeConfigurationOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback): void; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: { filter? : string, skip? : number, top? : number, inlinecount? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js index a23fd6b9da..60620e732a 100644 --- a/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js +++ b/lib/services/automationManagement/lib/operations/softwareUpdateConfigurations.js @@ -45,6 +45,12 @@ 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 {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -57,6 +63,13 @@ 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 {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for 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 +893,12 @@ 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 {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -892,6 +911,13 @@ 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 {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for 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 +1048,12 @@ 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 {string} [parameters.updateConfiguration.windows.rebootSetting] + * Reboot setting for the software update configuration. + * * @param {object} [parameters.updateConfiguration.linux] Linux specific update * configuration. * @@ -1034,6 +1066,13 @@ 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 {string} [parameters.updateConfiguration.linux.rebootSetting] Reboot + * setting for 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