diff --git a/lib/services/websiteManagement2/lib/webSiteManagementClient.d.ts b/lib/services/websiteManagement2/lib/webSiteManagementClient.d.ts index b002ae2982..a8ea986272 100644 --- a/lib/services/websiteManagement2/lib/webSiteManagementClient.d.ts +++ b/lib/services/websiteManagement2/lib/webSiteManagementClient.d.ts @@ -626,6 +626,10 @@ export default class WebSiteManagementClient extends AzureServiceClient { * @param {boolean} [options.xenonWorkersEnabled] Specify true if * you want to filter to only regions that support Xenon workers. * + * @param {boolean} [options.linuxDynamicWorkersEnabled] Specify + * true if you want to filter to only regions that support Linux + * Consumption Workers. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -635,7 +639,7 @@ export default class WebSiteManagementClient extends AzureServiceClient { * * @reject {Error|ServiceError} - The error object. */ - listGeoRegionsWithHttpOperationResponse(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + listGeoRegionsWithHttpOperationResponse(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * @summary Get a list of available geographical regions. @@ -654,6 +658,10 @@ export default class WebSiteManagementClient extends AzureServiceClient { * @param {boolean} [options.xenonWorkersEnabled] Specify true if * you want to filter to only regions that support Xenon workers. * + * @param {boolean} [options.linuxDynamicWorkersEnabled] Specify + * true if you want to filter to only regions that support Linux + * Consumption Workers. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -679,9 +687,9 @@ export default class WebSiteManagementClient extends AzureServiceClient { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listGeoRegions(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + listGeoRegions(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; listGeoRegions(callback: ServiceCallback): void; - listGeoRegions(options: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listGeoRegions(options: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/websiteManagement2/lib/webSiteManagementClient.js b/lib/services/websiteManagement2/lib/webSiteManagementClient.js index 923ca148c2..72bc864f4b 100644 --- a/lib/services/websiteManagement2/lib/webSiteManagementClient.js +++ b/lib/services/websiteManagement2/lib/webSiteManagementClient.js @@ -1245,6 +1245,10 @@ function _getSubscriptionDeploymentLocations(options, callback) { * @param {boolean} [options.xenonWorkersEnabled] Specify true if * you want to filter to only regions that support Xenon workers. * + * @param {boolean} [options.linuxDynamicWorkersEnabled] Specify + * true if you want to filter to only regions that support Linux + * Consumption Workers. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1274,6 +1278,7 @@ function _listGeoRegions(options, callback) { let sku = (options && options.sku !== undefined) ? options.sku : undefined; let linuxWorkersEnabled = (options && options.linuxWorkersEnabled !== undefined) ? options.linuxWorkersEnabled : undefined; let xenonWorkersEnabled = (options && options.xenonWorkersEnabled !== undefined) ? options.xenonWorkersEnabled : undefined; + let linuxDynamicWorkersEnabled = (options && options.linuxDynamicWorkersEnabled !== undefined) ? options.linuxDynamicWorkersEnabled : undefined; // Validate try { if (sku !== null && sku !== undefined && typeof sku.valueOf() !== 'string') { @@ -1285,6 +1290,9 @@ function _listGeoRegions(options, callback) { if (xenonWorkersEnabled !== null && xenonWorkersEnabled !== undefined && typeof xenonWorkersEnabled !== 'boolean') { throw new Error('xenonWorkersEnabled must be of type boolean.'); } + if (linuxDynamicWorkersEnabled !== null && linuxDynamicWorkersEnabled !== undefined && typeof linuxDynamicWorkersEnabled !== 'boolean') { + throw new Error('linuxDynamicWorkersEnabled must be of type boolean.'); + } if (this.subscriptionId === null || this.subscriptionId === undefined || typeof this.subscriptionId.valueOf() !== 'string') { throw new Error('this.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -1312,6 +1320,9 @@ function _listGeoRegions(options, callback) { if (xenonWorkersEnabled !== null && xenonWorkersEnabled !== undefined) { queryParameters.push('xenonWorkersEnabled=' + encodeURIComponent(xenonWorkersEnabled.toString())); } + if (linuxDynamicWorkersEnabled !== null && linuxDynamicWorkersEnabled !== undefined) { + queryParameters.push('linuxDynamicWorkersEnabled=' + encodeURIComponent(linuxDynamicWorkersEnabled.toString())); + } queryParameters.push('api-version=' + encodeURIComponent(this.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -4036,6 +4047,10 @@ class WebSiteManagementClient extends ServiceClient { * @param {boolean} [options.xenonWorkersEnabled] Specify true if * you want to filter to only regions that support Xenon workers. * + * @param {boolean} [options.linuxDynamicWorkersEnabled] Specify + * true if you want to filter to only regions that support Linux + * Consumption Workers. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4076,6 +4091,10 @@ class WebSiteManagementClient extends ServiceClient { * @param {boolean} [options.xenonWorkersEnabled] Specify true if * you want to filter to only regions that support Xenon workers. * + * @param {boolean} [options.linuxDynamicWorkersEnabled] Specify + * true if you want to filter to only regions that support Linux + * Consumption Workers. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/websiteManagement2/package.json b/lib/services/websiteManagement2/package.json index 7a88c74fbd..7621e86f87 100644 --- a/lib/services/websiteManagement2/package.json +++ b/lib/services/websiteManagement2/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/webSiteManagementClient.js", "types": "./lib/webSiteManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/websiteManagement2", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"