Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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: 11 additions & 3 deletions lib/services/websiteManagement2/lib/webSiteManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ export default class WebSiteManagementClient extends AzureServiceClient {
* @param {boolean} [options.xenonWorkersEnabled] Specify <code>true</code> if
* you want to filter to only regions that support Xenon workers.
*
* @param {boolean} [options.linuxDynamicWorkersEnabled] Specify
* <code>true</code> 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
*
Expand All @@ -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<HttpOperationResponse<models.GeoRegionCollection>>;
listGeoRegionsWithHttpOperationResponse(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.GeoRegionCollection>>;

/**
* @summary Get a list of available geographical regions.
Expand All @@ -654,6 +658,10 @@ export default class WebSiteManagementClient extends AzureServiceClient {
* @param {boolean} [options.xenonWorkersEnabled] Specify <code>true</code> if
* you want to filter to only regions that support Xenon workers.
*
* @param {boolean} [options.linuxDynamicWorkersEnabled] Specify
* <code>true</code> 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
*
Expand All @@ -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<models.GeoRegionCollection>;
listGeoRegions(options?: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise<models.GeoRegionCollection>;
listGeoRegions(callback: ServiceCallback<models.GeoRegionCollection>): void;
listGeoRegions(options: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.GeoRegionCollection>): void;
listGeoRegions(options: { sku? : string, linuxWorkersEnabled? : boolean, xenonWorkersEnabled? : boolean, linuxDynamicWorkersEnabled? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.GeoRegionCollection>): void;


/**
Expand Down
19 changes: 19 additions & 0 deletions lib/services/websiteManagement2/lib/webSiteManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,10 @@ function _getSubscriptionDeploymentLocations(options, callback) {
* @param {boolean} [options.xenonWorkersEnabled] Specify <code>true</code> if
* you want to filter to only regions that support Xenon workers.
*
* @param {boolean} [options.linuxDynamicWorkersEnabled] Specify
* <code>true</code> 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
*
Expand Down Expand Up @@ -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') {
Expand All @@ -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.');
}
Expand Down Expand Up @@ -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('&');
Expand Down Expand Up @@ -4036,6 +4047,10 @@ class WebSiteManagementClient extends ServiceClient {
* @param {boolean} [options.xenonWorkersEnabled] Specify <code>true</code> if
* you want to filter to only regions that support Xenon workers.
*
* @param {boolean} [options.linuxDynamicWorkersEnabled] Specify
* <code>true</code> 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
*
Expand Down Expand Up @@ -4076,6 +4091,10 @@ class WebSiteManagementClient extends ServiceClient {
* @param {boolean} [options.xenonWorkersEnabled] Specify <code>true</code> if
* you want to filter to only regions that support Xenon workers.
*
* @param {boolean} [options.linuxDynamicWorkersEnabled] Specify
* <code>true</code> 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
*
Expand Down
2 changes: 1 addition & 1 deletion lib/services/websiteManagement2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down