diff --git a/lib/services/websiteManagement2/lib/models/appServiceEnvironment.js b/lib/services/websiteManagement2/lib/models/appServiceEnvironment.js
index af47066e3f..f700716e96 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceEnvironment.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceEnvironment.js
@@ -97,6 +97,12 @@ class AppServiceEnvironment {
* behavior of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to
* whitelist on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
constructor() {
}
@@ -434,6 +440,27 @@ class AppServiceEnvironment {
}
}
}
+ },
+ hasLinuxWorkers: {
+ required: false,
+ serializedName: 'hasLinuxWorkers',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ sslCertKeyVaultId: {
+ required: false,
+ serializedName: 'sslCertKeyVaultId',
+ type: {
+ name: 'String'
+ }
+ },
+ sslCertKeyVaultSecretName: {
+ required: false,
+ serializedName: 'sslCertKeyVaultSecretName',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
index 990549c0b2..ab454a36fc 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
@@ -99,6 +99,12 @@ class AppServiceEnvironmentPatchResource extends models['ProxyOnlyResource'] {
* behavior of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to
* whitelist on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
constructor() {
super();
@@ -468,6 +474,27 @@ class AppServiceEnvironmentPatchResource extends models['ProxyOnlyResource'] {
}
}
}
+ },
+ hasLinuxWorkers: {
+ required: false,
+ serializedName: 'properties.hasLinuxWorkers',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ sslCertKeyVaultId: {
+ required: false,
+ serializedName: 'properties.sslCertKeyVaultId',
+ type: {
+ name: 'String'
+ }
+ },
+ sslCertKeyVaultSecretName: {
+ required: false,
+ serializedName: 'properties.sslCertKeyVaultSecretName',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentResource.js b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentResource.js
index 458a7a0309..462a7c2f8b 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentResource.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentResource.js
@@ -99,6 +99,12 @@ class AppServiceEnvironmentResource extends models['Resource'] {
* behavior of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to
* whitelist on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
constructor() {
super();
@@ -489,6 +495,27 @@ class AppServiceEnvironmentResource extends models['Resource'] {
}
}
}
+ },
+ hasLinuxWorkers: {
+ required: false,
+ serializedName: 'properties.hasLinuxWorkers',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ sslCertKeyVaultId: {
+ required: false,
+ serializedName: 'properties.sslCertKeyVaultId',
+ type: {
+ name: 'String'
+ }
+ },
+ sslCertKeyVaultSecretName: {
+ required: false,
+ serializedName: 'properties.sslCertKeyVaultSecretName',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/appServicePlan.js b/lib/services/websiteManagement2/lib/models/appServicePlan.js
index b8ecc0f0b9..79f4b30d7d 100644
--- a/lib/services/websiteManagement2/lib/models/appServicePlan.js
+++ b/lib/services/websiteManagement2/lib/models/appServicePlan.js
@@ -20,7 +20,6 @@ const models = require('./index');
class AppServicePlan extends models['Resource'] {
/**
* Create a AppServicePlan.
- * @member {string} appServicePlanName Name for the App Service plan.
* @member {string} [workerTierName] Target worker tier assigned to the App
* Service plan.
* @member {string} [status] App Service plan status. Possible values
@@ -49,9 +48,13 @@ class AppServicePlan extends models['Resource'] {
* owns spot instances.
* @member {date} [spotExpirationTime] The time when the server farm expires.
* Valid only if it is a spot server farm.
+ * @member {date} [freeOfferExpirationTime] The time when the server farm
+ * free offer expires.
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan true
,
* false
otherwise. Default value: false .
+ * @member {boolean} [isXenon] If Hyper-V container app service plan
+ * true
, false
otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
* @member {string} [provisioningState] Provisioning state of the App Service
@@ -148,13 +151,6 @@ class AppServicePlan extends models['Resource'] {
}
}
},
- appServicePlanName: {
- required: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
workerTierName: {
required: false,
serializedName: 'properties.workerTierName',
@@ -240,6 +236,13 @@ class AppServicePlan extends models['Resource'] {
name: 'DateTime'
}
},
+ freeOfferExpirationTime: {
+ required: false,
+ serializedName: 'properties.freeOfferExpirationTime',
+ type: {
+ name: 'DateTime'
+ }
+ },
resourceGroup: {
required: false,
readOnly: true,
@@ -256,6 +259,14 @@ class AppServicePlan extends models['Resource'] {
name: 'Boolean'
}
},
+ isXenon: {
+ required: false,
+ serializedName: 'properties.isXenon',
+ defaultValue: false,
+ type: {
+ name: 'Boolean'
+ }
+ },
targetWorkerCount: {
required: false,
serializedName: 'properties.targetWorkerCount',
diff --git a/lib/services/websiteManagement2/lib/models/appServicePlanCollection.js b/lib/services/websiteManagement2/lib/models/appServicePlanCollection.js
index 620bda3ea5..74827eafd6 100644
--- a/lib/services/websiteManagement2/lib/models/appServicePlanCollection.js
+++ b/lib/services/websiteManagement2/lib/models/appServicePlanCollection.js
@@ -53,6 +53,7 @@ class AppServicePlanCollection extends Array {
},
nextLink: {
required: false,
+ readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
diff --git a/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js b/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
index e08905aeec..bbeaed4a8f 100644
--- a/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
@@ -20,8 +20,6 @@ const models = require('./index');
class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
/**
* Create a AppServicePlanPatchResource.
- * @member {string} appServicePlanPatchResourceName Name for the App Service
- * plan.
* @member {string} [workerTierName] Target worker tier assigned to the App
* Service plan.
* @member {string} [status] App Service plan status. Possible values
@@ -50,9 +48,13 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
* owns spot instances.
* @member {date} [spotExpirationTime] The time when the server farm expires.
* Valid only if it is a spot server farm.
+ * @member {date} [freeOfferExpirationTime] The time when the server farm
+ * free offer expires.
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan true
,
* false
otherwise. Default value: false .
+ * @member {boolean} [isXenon] If Hyper-V container app service plan
+ * true
, false
otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
* @member {string} [provisioningState] Provisioning state of the App Service
@@ -108,13 +110,6 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- appServicePlanPatchResourceName: {
- required: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
workerTierName: {
required: false,
serializedName: 'properties.workerTierName',
@@ -200,6 +195,13 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
name: 'DateTime'
}
},
+ freeOfferExpirationTime: {
+ required: false,
+ serializedName: 'properties.freeOfferExpirationTime',
+ type: {
+ name: 'DateTime'
+ }
+ },
resourceGroup: {
required: false,
readOnly: true,
@@ -216,6 +218,14 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
+ isXenon: {
+ required: false,
+ serializedName: 'properties.isXenon',
+ defaultValue: false,
+ type: {
+ name: 'Boolean'
+ }
+ },
targetWorkerCount: {
required: false,
serializedName: 'properties.targetWorkerCount',
diff --git a/lib/services/websiteManagement2/lib/models/backupRequest.js b/lib/services/websiteManagement2/lib/models/backupRequest.js
index dba65bf110..c7b5da3f97 100644
--- a/lib/services/websiteManagement2/lib/models/backupRequest.js
+++ b/lib/services/websiteManagement2/lib/models/backupRequest.js
@@ -20,7 +20,6 @@ const models = require('./index');
class BackupRequest extends models['ProxyOnlyResource'] {
/**
* Create a BackupRequest.
- * @member {string} backupRequestName Name of the backup.
* @member {boolean} [enabled] True if the backup schedule is enabled (must
* be included in that case), false if the backup schedule should be
* disabled.
@@ -44,8 +43,6 @@ class BackupRequest extends models['ProxyOnlyResource'] {
* @member {date} [backupSchedule.lastExecutionTime] Last time when this
* schedule was triggered.
* @member {array} [databases] Databases included in the backup.
- * @member {string} [backupRequestType] Type of the backup. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
*/
constructor() {
super();
@@ -96,13 +93,6 @@ class BackupRequest extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- backupRequestName: {
- required: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
enabled: {
required: false,
serializedName: 'properties.enabled',
@@ -139,14 +129,6 @@ class BackupRequest extends models['ProxyOnlyResource'] {
}
}
}
- },
- backupRequestType: {
- required: false,
- serializedName: 'properties.type',
- type: {
- name: 'Enum',
- allowedValues: [ 'Default', 'Clone', 'Relocation', 'Snapshot' ]
- }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/billingMeter.js b/lib/services/websiteManagement2/lib/models/billingMeter.js
index 14229378b7..aba6effb23 100644
--- a/lib/services/websiteManagement2/lib/models/billingMeter.js
+++ b/lib/services/websiteManagement2/lib/models/billingMeter.js
@@ -26,7 +26,8 @@ class BillingMeter extends models['ProxyOnlyResource'] {
* @member {string} [shortName] Short Name from App Service Azure pricing
* Page
* @member {string} [friendlyName] Friendly name of the meter
- * @member {string} [resourceType] App Service resource type meter used for
+ * @member {string} [resourceType] App Service ResourceType meter used for
+ * @member {string} [osType] App Service OS type meter used for
*/
constructor() {
super();
@@ -111,6 +112,13 @@ class BillingMeter extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ osType: {
+ required: false,
+ serializedName: 'properties.osType',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/certificate.js b/lib/services/websiteManagement2/lib/models/certificate.js
index 200bd1eaf4..f7b9f4da55 100644
--- a/lib/services/websiteManagement2/lib/models/certificate.js
+++ b/lib/services/websiteManagement2/lib/models/certificate.js
@@ -50,7 +50,6 @@ class Certificate extends models['Resource'] {
* 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
* 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
* 'Unknown'
- * @member {string} [geoRegion] Region of the certificate.
* @member {string} [serverFarmId] Resource ID of the associated App Service
* plan, formatted as:
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
@@ -273,14 +272,6 @@ class Certificate extends models['Resource'] {
allowedValues: [ 'Initialized', 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', 'Unknown' ]
}
},
- geoRegion: {
- required: false,
- readOnly: true,
- serializedName: 'properties.geoRegion',
- type: {
- name: 'String'
- }
- },
serverFarmId: {
required: false,
serializedName: 'properties.serverFarmId',
diff --git a/lib/services/websiteManagement2/lib/models/certificateOrderAction.js b/lib/services/websiteManagement2/lib/models/certificateOrderAction.js
index fc3635e0c7..123fb2ad46 100644
--- a/lib/services/websiteManagement2/lib/models/certificateOrderAction.js
+++ b/lib/services/websiteManagement2/lib/models/certificateOrderAction.js
@@ -20,8 +20,8 @@ const models = require('./index');
class CertificateOrderAction extends models['ProxyOnlyResource'] {
/**
* Create a CertificateOrderAction.
- * @member {string} [certificateOrderActionType] Action type. Possible values
- * include: 'CertificateIssued', 'CertificateOrderCanceled',
+ * @member {string} [actionType] Action type. Possible values include:
+ * 'CertificateIssued', 'CertificateOrderCanceled',
* 'CertificateOrderCreated', 'CertificateRevoked',
* 'DomainValidationComplete', 'FraudDetected', 'OrgNameChange',
* 'OrgValidationComplete', 'SanDrop', 'FraudCleared', 'CertificateExpired',
@@ -78,9 +78,10 @@ class CertificateOrderAction extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- certificateOrderActionType: {
+ actionType: {
required: false,
- serializedName: 'properties.type',
+ readOnly: true,
+ serializedName: 'properties.actionType',
type: {
name: 'Enum',
allowedValues: [ 'CertificateIssued', 'CertificateOrderCanceled', 'CertificateOrderCreated', 'CertificateRevoked', 'DomainValidationComplete', 'FraudDetected', 'OrgNameChange', 'OrgValidationComplete', 'SanDrop', 'FraudCleared', 'CertificateExpired', 'CertificateExpirationWarning', 'FraudDocumentationRequired', 'Unknown' ]
@@ -88,6 +89,7 @@ class CertificateOrderAction extends models['ProxyOnlyResource'] {
},
createdAt: {
required: false,
+ readOnly: true,
serializedName: 'properties.createdAt',
type: {
name: 'DateTime'
diff --git a/lib/services/websiteManagement2/lib/models/certificatePatchResource.js b/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
index e68d49ee1a..708ccf5cf0 100644
--- a/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
@@ -50,7 +50,6 @@ class CertificatePatchResource extends models['ProxyOnlyResource'] {
* 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
* 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
* 'Unknown'
- * @member {string} [geoRegion] Region of the certificate.
* @member {string} [serverFarmId] Resource ID of the associated App Service
* plan, formatted as:
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
@@ -252,14 +251,6 @@ class CertificatePatchResource extends models['ProxyOnlyResource'] {
allowedValues: [ 'Initialized', 'WaitingOnCertificateOrder', 'Succeeded', 'CertificateOrderFailed', 'OperationNotPermittedOnKeyVault', 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', 'Unknown' ]
}
},
- geoRegion: {
- required: false,
- readOnly: true,
- serializedName: 'properties.geoRegion',
- type: {
- name: 'String'
- }
- },
serverFarmId: {
required: false,
serializedName: 'properties.serverFarmId',
diff --git a/lib/services/websiteManagement2/lib/models/cloningInfo.js b/lib/services/websiteManagement2/lib/models/cloningInfo.js
index 868a356c16..971b705122 100644
--- a/lib/services/websiteManagement2/lib/models/cloningInfo.js
+++ b/lib/services/websiteManagement2/lib/models/cloningInfo.js
@@ -46,8 +46,6 @@ class CloningInfo {
* @member {string} [trafficManagerProfileName] Name of Traffic Manager
* profile to create. This is only needed if Traffic Manager profile does not
* already exist.
- * @member {boolean} [ignoreQuotas] true
if quotas should be
- * ignored; otherwise, false
.
*/
constructor() {
}
@@ -142,13 +140,6 @@ class CloningInfo {
type: {
name: 'String'
}
- },
- ignoreQuotas: {
- required: false,
- serializedName: 'ignoreQuotas',
- type: {
- name: 'Boolean'
- }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/continuousWebJob.js b/lib/services/websiteManagement2/lib/models/continuousWebJob.js
index ffba08bca7..7ae4000f49 100644
--- a/lib/services/websiteManagement2/lib/models/continuousWebJob.js
+++ b/lib/services/websiteManagement2/lib/models/continuousWebJob.js
@@ -24,12 +24,10 @@ class ContinuousWebJob extends models['ProxyOnlyResource'] {
* 'Initializing', 'Starting', 'Running', 'PendingRestart', 'Stopped'
* @member {string} [detailedStatus] Detailed status.
* @member {string} [logUrl] Log URL.
- * @member {string} [continuousWebJobName] Job name. Used as job identifier
- * in ARM resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include:
+ * @member {string} [webJobType] Job type. Possible values include:
* 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
@@ -94,29 +92,21 @@ class ContinuousWebJob extends models['ProxyOnlyResource'] {
},
detailedStatus: {
required: false,
- serializedName: 'properties.detailedStatus',
+ serializedName: 'properties.detailed_status',
type: {
name: 'String'
}
},
logUrl: {
required: false,
- serializedName: 'properties.logUrl',
- type: {
- name: 'String'
- }
- },
- continuousWebJobName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
+ serializedName: 'properties.log_url',
type: {
name: 'String'
}
},
runCommand: {
required: false,
- serializedName: 'properties.runCommand',
+ serializedName: 'properties.run_command',
type: {
name: 'String'
}
@@ -130,14 +120,14 @@ class ContinuousWebJob extends models['ProxyOnlyResource'] {
},
extraInfoUrl: {
required: false,
- serializedName: 'properties.extraInfoUrl',
+ serializedName: 'properties.extra_info_url',
type: {
name: 'String'
}
},
- jobType: {
+ webJobType: {
required: false,
- serializedName: 'properties.jobType',
+ serializedName: 'properties.web_job_type',
type: {
name: 'Enum',
allowedValues: [ 'Continuous', 'Triggered' ]
@@ -152,7 +142,7 @@ class ContinuousWebJob extends models['ProxyOnlyResource'] {
},
usingSdk: {
required: false,
- serializedName: 'properties.usingSdk',
+ serializedName: 'properties.using_sdk',
type: {
name: 'Boolean'
}
diff --git a/lib/services/websiteManagement2/lib/models/continuousWebJobCollection.js b/lib/services/websiteManagement2/lib/models/continuousWebJobCollection.js
index 99a440181a..5d82a581b7 100644
--- a/lib/services/websiteManagement2/lib/models/continuousWebJobCollection.js
+++ b/lib/services/websiteManagement2/lib/models/continuousWebJobCollection.js
@@ -53,6 +53,7 @@ class ContinuousWebJobCollection extends Array {
},
nextLink: {
required: false,
+ readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
diff --git a/lib/services/websiteManagement2/lib/models/csmOperationDescription.js b/lib/services/websiteManagement2/lib/models/csmOperationDescription.js
index 9375a0b953..a1d904e61f 100644
--- a/lib/services/websiteManagement2/lib/models/csmOperationDescription.js
+++ b/lib/services/websiteManagement2/lib/models/csmOperationDescription.js
@@ -29,6 +29,7 @@ class CsmOperationDescription {
* @member {object} [properties]
* @member {object} [properties.serviceSpecification]
* @member {array} [properties.serviceSpecification.metricSpecifications]
+ * @member {array} [properties.serviceSpecification.logSpecifications]
*/
constructor() {
}
diff --git a/lib/services/websiteManagement2/lib/models/csmOperationDescriptionProperties.js b/lib/services/websiteManagement2/lib/models/csmOperationDescriptionProperties.js
index 77631076bc..bf869cb952 100644
--- a/lib/services/websiteManagement2/lib/models/csmOperationDescriptionProperties.js
+++ b/lib/services/websiteManagement2/lib/models/csmOperationDescriptionProperties.js
@@ -21,6 +21,7 @@ class CsmOperationDescriptionProperties {
* Create a CsmOperationDescriptionProperties.
* @member {object} [serviceSpecification]
* @member {array} [serviceSpecification.metricSpecifications]
+ * @member {array} [serviceSpecification.logSpecifications]
*/
constructor() {
}
diff --git a/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js b/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js
new file mode 100644
index 0000000000..715d8d3e51
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js
@@ -0,0 +1,108 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * Details about restoring a deleted app.
+ *
+ * @extends models['ProxyOnlyResource']
+ */
+class DeletedAppRestoreRequest extends models['ProxyOnlyResource'] {
+ /**
+ * Create a DeletedAppRestoreRequest.
+ * @member {string} [deletedSiteId] ARM resource ID of the deleted app.
+ * Example:
+ * /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}
+ * @member {boolean} [recoverConfiguration] If true, deleted site
+ * configuration, in addition to content, will be restored.
+ * @member {string} [snapshotTime] Point in time to restore the deleted app
+ * from, formatted as a DateTime string.
+ * If unspecified, default value is the time that the app was deleted.
+ */
+ constructor() {
+ super();
+ }
+
+ /**
+ * Defines the metadata of DeletedAppRestoreRequest
+ *
+ * @returns {object} metadata of DeletedAppRestoreRequest
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'DeletedAppRestoreRequest',
+ type: {
+ name: 'Composite',
+ className: 'DeletedAppRestoreRequest',
+ modelProperties: {
+ id: {
+ required: false,
+ readOnly: true,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ readOnly: true,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ kind: {
+ required: false,
+ serializedName: 'kind',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ readOnly: true,
+ serializedName: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ deletedSiteId: {
+ required: false,
+ serializedName: 'properties.deletedSiteId',
+ type: {
+ name: 'String'
+ }
+ },
+ recoverConfiguration: {
+ required: false,
+ serializedName: 'properties.recoverConfiguration',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ snapshotTime: {
+ required: false,
+ serializedName: 'properties.snapshotTime',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = DeletedAppRestoreRequest;
diff --git a/lib/services/websiteManagement2/lib/models/deletedSite.js b/lib/services/websiteManagement2/lib/models/deletedSite.js
index 265245476b..e076b9bc7a 100644
--- a/lib/services/websiteManagement2/lib/models/deletedSite.js
+++ b/lib/services/websiteManagement2/lib/models/deletedSite.js
@@ -17,12 +17,12 @@
class DeletedSite {
/**
* Create a DeletedSite.
- * @member {number} [id] Numeric id for the deleted site
+ * @member {number} [deletedSiteId] Numeric id for the deleted site
* @member {string} [deletedTimestamp] Time in UTC when the app was deleted.
* @member {string} [subscription] Subscription containing the deleted site
* @member {string} [resourceGroup] ResourceGroup that contained the deleted
* site
- * @member {string} [name] Name of the deleted site
+ * @member {string} [deletedSiteName] Name of the deleted site
* @member {string} [slot] Slot of the deleted site
*/
constructor() {
@@ -42,9 +42,10 @@ class DeletedSite {
name: 'Composite',
className: 'DeletedSite',
modelProperties: {
- id: {
+ deletedSiteId: {
required: false,
- serializedName: 'id',
+ readOnly: true,
+ serializedName: 'deletedSiteId',
type: {
name: 'Number'
}
@@ -73,10 +74,10 @@ class DeletedSite {
name: 'String'
}
},
- name: {
+ deletedSiteName: {
required: false,
readOnly: true,
- serializedName: 'name',
+ serializedName: 'deletedSiteName',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/deployment.js b/lib/services/websiteManagement2/lib/models/deployment.js
index 052aab349d..f8fdc08349 100644
--- a/lib/services/websiteManagement2/lib/models/deployment.js
+++ b/lib/services/websiteManagement2/lib/models/deployment.js
@@ -20,7 +20,6 @@ const models = require('./index');
class Deployment extends models['ProxyOnlyResource'] {
/**
* Create a Deployment.
- * @member {string} [deploymentId] Identifier for deployment.
* @member {number} [status] Deployment status.
* @member {string} [message] Details about deployment status.
* @member {string} [author] Who authored the deployment.
@@ -81,13 +80,6 @@ class Deployment extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- deploymentId: {
- required: false,
- serializedName: 'properties.id',
- type: {
- name: 'String'
- }
- },
status: {
required: false,
serializedName: 'properties.status',
@@ -118,21 +110,21 @@ class Deployment extends models['ProxyOnlyResource'] {
},
authorEmail: {
required: false,
- serializedName: 'properties.authorEmail',
+ serializedName: 'properties.author_email',
type: {
name: 'String'
}
},
startTime: {
required: false,
- serializedName: 'properties.startTime',
+ serializedName: 'properties.start_time',
type: {
name: 'DateTime'
}
},
endTime: {
required: false,
- serializedName: 'properties.endTime',
+ serializedName: 'properties.end_time',
type: {
name: 'DateTime'
}
diff --git a/lib/services/websiteManagement2/lib/models/diagnosticData.js b/lib/services/websiteManagement2/lib/models/diagnosticData.js
index e583cf9598..f3b0662a2e 100644
--- a/lib/services/websiteManagement2/lib/models/diagnosticData.js
+++ b/lib/services/websiteManagement2/lib/models/diagnosticData.js
@@ -25,9 +25,8 @@ class DiagnosticData {
* @member {array} [table.rows] Raw row values
* @member {object} [renderingProperties] Properties that describe how the
* table should be rendered
- * @member {string} [renderingProperties.renderingType] Rendering Type.
- * Possible values include: 'NoGraph', 'Table', 'TimeSeries',
- * 'TimeSeriesPerInstance'
+ * @member {string} [renderingProperties.type] Rendering Type. Possible
+ * values include: 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
* @member {string} [renderingProperties.title] Title of data
* @member {string} [renderingProperties.description] Description of the data
* that will help it be interpreted
diff --git a/lib/services/websiteManagement2/lib/models/functionEnvelope.js b/lib/services/websiteManagement2/lib/models/functionEnvelope.js
index d7389e080d..de01948153 100644
--- a/lib/services/websiteManagement2/lib/models/functionEnvelope.js
+++ b/lib/services/websiteManagement2/lib/models/functionEnvelope.js
@@ -20,7 +20,6 @@ const models = require('./index');
class FunctionEnvelope extends models['ProxyOnlyResource'] {
/**
* Create a FunctionEnvelope.
- * @member {string} [functionEnvelopeName] Function name.
* @member {string} [functionAppId] Function App ID.
* @member {string} [scriptRootPathHref] Script root path URI.
* @member {string} [scriptHref] Script URI.
@@ -81,46 +80,37 @@ class FunctionEnvelope extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- functionEnvelopeName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
functionAppId: {
required: false,
- readOnly: true,
- serializedName: 'properties.functionAppId',
+ serializedName: 'properties.function_app_id',
type: {
name: 'String'
}
},
scriptRootPathHref: {
required: false,
- serializedName: 'properties.scriptRootPathHref',
+ serializedName: 'properties.script_root_path_href',
type: {
name: 'String'
}
},
scriptHref: {
required: false,
- serializedName: 'properties.scriptHref',
+ serializedName: 'properties.script_href',
type: {
name: 'String'
}
},
configHref: {
required: false,
- serializedName: 'properties.configHref',
+ serializedName: 'properties.config_href',
type: {
name: 'String'
}
},
secretsFileHref: {
required: false,
- serializedName: 'properties.secretsFileHref',
+ serializedName: 'properties.secrets_file_href',
type: {
name: 'String'
}
@@ -155,7 +145,7 @@ class FunctionEnvelope extends models['ProxyOnlyResource'] {
},
testData: {
required: false,
- serializedName: 'properties.testData',
+ serializedName: 'properties.test_data',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/functionSecrets.js b/lib/services/websiteManagement2/lib/models/functionSecrets.js
index 6c33bce188..89769cbd49 100644
--- a/lib/services/websiteManagement2/lib/models/functionSecrets.js
+++ b/lib/services/websiteManagement2/lib/models/functionSecrets.js
@@ -81,7 +81,7 @@ class FunctionSecrets extends models['ProxyOnlyResource'] {
},
triggerUrl: {
required: false,
- serializedName: 'properties.triggerUrl',
+ serializedName: 'properties.trigger_url',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/geoRegion.js b/lib/services/websiteManagement2/lib/models/geoRegion.js
index bf004ffc2e..6488f76da4 100644
--- a/lib/services/websiteManagement2/lib/models/geoRegion.js
+++ b/lib/services/websiteManagement2/lib/models/geoRegion.js
@@ -20,7 +20,6 @@ const models = require('./index');
class GeoRegion extends models['ProxyOnlyResource'] {
/**
* Create a GeoRegion.
- * @member {string} [geoRegionName] Region name.
* @member {string} [description] Region description.
* @member {string} [displayName] Display name for region.
*/
@@ -73,14 +72,6 @@ class GeoRegion extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- geoRegionName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
description: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/index.d.ts b/lib/services/websiteManagement2/lib/models/index.d.ts
index 1ad4b42f71..9687aabe5c 100644
--- a/lib/services/websiteManagement2/lib/models/index.d.ts
+++ b/lib/services/websiteManagement2/lib/models/index.d.ts
@@ -344,18 +344,18 @@ export interface CertificateEmail extends ProxyOnlyResource {
* @constructor
* Certificate order action.
*
- * @member {string} [certificateOrderActionType] Action type. Possible values
- * include: 'CertificateIssued', 'CertificateOrderCanceled',
- * 'CertificateOrderCreated', 'CertificateRevoked', 'DomainValidationComplete',
- * 'FraudDetected', 'OrgNameChange', 'OrgValidationComplete', 'SanDrop',
- * 'FraudCleared', 'CertificateExpired', 'CertificateExpirationWarning',
+ * @member {string} [actionType] Action type. Possible values include:
+ * 'CertificateIssued', 'CertificateOrderCanceled', 'CertificateOrderCreated',
+ * 'CertificateRevoked', 'DomainValidationComplete', 'FraudDetected',
+ * 'OrgNameChange', 'OrgValidationComplete', 'SanDrop', 'FraudCleared',
+ * 'CertificateExpired', 'CertificateExpirationWarning',
* 'FraudDocumentationRequired', 'Unknown'
* @member {date} [createdAt] Time at which the certificate action was
* performed.
*/
export interface CertificateOrderAction extends ProxyOnlyResource {
- certificateOrderActionType?: string;
- createdAt?: Date;
+ readonly actionType?: string;
+ readonly createdAt?: Date;
}
/**
@@ -429,8 +429,6 @@ export interface SiteSealRequest {
* Virtual Network route contract used to pass routing information for a
* Virtual Network.
*
- * @member {string} [vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
* @member {string} [startAddress] The starting address for this route. This
* may also include a CIDR notation, in which case the end address must not be
* specified.
@@ -446,7 +444,6 @@ export interface SiteSealRequest {
* Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC'
*/
export interface VnetRoute extends ProxyOnlyResource {
- vnetRouteName?: string;
startAddress?: string;
endAddress?: string;
routeType?: string;
@@ -501,71 +498,31 @@ export interface VnetGateway extends ProxyOnlyResource {
* @constructor
* User crendentials used for publishing activity.
*
- * @member {string} [userName] Username
* @member {string} publishingUserName Username used for publishing.
* @member {string} [publishingPassword] Password used for publishing.
* @member {string} [publishingPasswordHash] Password hash used for publishing.
* @member {string} [publishingPasswordHashSalt] Password hash salt used for
* publishing.
+ * @member {string} [scmUri] Url of SCM site.
*/
export interface User extends ProxyOnlyResource {
- userName?: string;
publishingUserName: string;
publishingPassword?: string;
publishingPasswordHash?: string;
publishingPasswordHashSalt?: string;
+ scmUri?: string;
}
/**
* @class
- * Initializes a new instance of the SnapshotRecoveryTarget class.
- * @constructor
- * Specifies the web app that snapshot contents will be written to.
- *
- * @member {string} [location] Geographical location of the target web app,
- * e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [id] ARM resource ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- */
-export interface SnapshotRecoveryTarget {
- location?: string;
- id?: string;
-}
-
-/**
- * @class
- * Initializes a new instance of the SnapshotRecoveryRequest class.
+ * Initializes a new instance of the Snapshot class.
* @constructor
- * Details about app recovery operation.
+ * A snapshot of an app.
*
- * @member {string} [snapshotTime] Point in time in which the app recovery
- * should be attempted, formatted as a DateTime string.
- * @member {object} [recoveryTarget] Specifies the web app that snapshot
- * contents will be written to.
- * @member {string} [recoveryTarget.location] Geographical location of the
- * target web app, e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [recoveryTarget.id] ARM resource ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- * @member {boolean} overwrite If true
the recovery operation can
- * overwrite source app; otherwise, false
.
- * @member {boolean} [recoverConfiguration] If true, site configuration, in
- * addition to content, will be reverted.
- * @member {boolean} [ignoreConflictingHostNames] If true, custom hostname
- * conflicts will be ignored when recovering to a target web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
+ * @member {string} [time] The time the snapshot was taken.
*/
-export interface SnapshotRecoveryRequest extends ProxyOnlyResource {
- snapshotTime?: string;
- recoveryTarget?: SnapshotRecoveryTarget;
- overwrite: boolean;
- recoverConfiguration?: boolean;
- ignoreConflictingHostNames?: boolean;
+export interface Snapshot extends ProxyOnlyResource {
+ readonly time?: string;
}
/**
@@ -582,45 +539,24 @@ export interface ResourceMetricAvailability {
readonly retention?: string;
}
-/**
- * @class
- * Initializes a new instance of the ResourceMetricName class.
- * @constructor
- * Name of a metric for any resource .
- *
- * @member {string} [value] metric name value.
- * @member {string} [localizedValue] Localized metric name value.
- */
-export interface ResourceMetricName {
- readonly value?: string;
- readonly localizedValue?: string;
-}
-
/**
* @class
* Initializes a new instance of the ResourceMetricDefinition class.
* @constructor
* Metadata for the metrics.
*
- * @member {object} [resourceMetricDefinitionName] Name of the metric.
- * @member {string} [resourceMetricDefinitionName.value] metric name value.
- * @member {string} [resourceMetricDefinitionName.localizedValue] Localized
- * metric name value.
* @member {string} [unit] Unit of the metric.
* @member {string} [primaryAggregationType] Primary aggregation type.
* @member {array} [metricAvailabilities] List of time grains supported for the
* metric together with retention period.
* @member {string} [resourceUri] Resource URI.
- * @member {string} [resourceMetricDefinitionId] Resource ID.
* @member {object} [properties] Resource metric definition properties.
*/
export interface ResourceMetricDefinition extends ProxyOnlyResource {
- readonly resourceMetricDefinitionName?: ResourceMetricName;
readonly unit?: string;
readonly primaryAggregationType?: string;
readonly metricAvailabilities?: ResourceMetricAvailability[];
readonly resourceUri?: string;
- readonly resourceMetricDefinitionId?: string;
readonly properties?: { [propertyName: string]: string };
}
@@ -716,14 +652,17 @@ export interface HybridConnection extends ProxyOnlyResource {
* Managed service identity.
*
* @member {string} [type] Type of managed service identity. Possible values
- * include: 'SystemAssigned'
+ * include: 'SystemAssigned', 'UserAssigned'
* @member {string} [tenantId] Tenant of managed service identity.
* @member {string} [principalId] Principal Id of managed service identity.
+ * @member {array} [identityIds] Array of UserAssigned managed service
+ * identities.
*/
export interface ManagedServiceIdentity {
type?: string;
readonly tenantId?: string;
readonly principalId?: string;
+ identityIds?: string[];
}
/**
@@ -780,8 +719,6 @@ export interface SlotSwapStatus {
* @member {string} [trafficManagerProfileName] Name of Traffic Manager profile
* to create. This is only needed if Traffic Manager profile does not already
* exist.
- * @member {boolean} [ignoreQuotas] true
if quotas should be
- * ignored; otherwise, false
.
*/
export interface CloningInfo {
correlationId?: string;
@@ -794,7 +731,6 @@ export interface CloningInfo {
configureLoadBalancing?: boolean;
trafficManagerProfileId?: string;
trafficManagerProfileName?: string;
- ignoreQuotas?: boolean;
}
/**
@@ -820,12 +756,27 @@ export interface HostingEnvironmentProfile {
* IP security restriction on an app.
*
* @member {string} ipAddress IP address the security restriction is valid for.
+ * It can be in form of pure ipv4 address (required SubnetMask property) or
+ * CIDR notation such as ipv4/mask (leading bit match). For CIDR,
+ * SubnetMask property must not be specified.
* @member {string} [subnetMask] Subnet mask for the range of IP addresses the
* restriction is valid for.
+ * @member {string} [action] Allow or Deny access for this IP range.
+ * @member {string} [tag] Defines what this IP filter will be used for. This is
+ * to support IP filtering on proxies. Possible values include: 'Default',
+ * 'XffProxy'
+ * @member {number} [priority] Priority of IP restriction rule.
+ * @member {string} [name] IP restriction rule name.
+ * @member {string} [description] IP restriction rule description.
*/
export interface IpSecurityRestriction {
ipAddress: string;
subnetMask?: string;
+ action?: string;
+ tag?: string;
+ priority?: number;
+ name?: string;
+ description?: string;
}
/**
@@ -1187,6 +1138,7 @@ export interface NameValuePair {
* @member {string} [pythonVersion] Version of Python.
* @member {string} [nodeVersion] Version of Node.js.
* @member {string} [linuxFxVersion] Linux App Framework and version
+ * @member {string} [windowsFxVersion] Xenon App Framework and version
* @member {boolean} [requestTracingEnabled] true
if request
* tracing is enabled; otherwise, false
.
* @member {date} [requestTracingExpirationTime] Request tracing expiration
@@ -1297,12 +1249,19 @@ export interface NameValuePair {
* @member {string} [autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [localMySqlEnabled] true
to enable local
* MySQL; otherwise, false
. Default value: false .
+ * @member {number} [managedServiceIdentityId] Managed Service Identity Id
+ * @member {number} [xManagedServiceIdentityId] Explicit Managed Service
+ * Identity Id
* @member {array} [ipSecurityRestrictions] IP security restrictions.
* @member {boolean} [http20Enabled] Http20Enabled: configures a web site to
* allow clients to connect over http2.0. Default value: true .
* @member {string} [minTlsVersion] MinTlsVersion: configures the minimum
* version of TLS required for SSL requests. Possible values include: '1.0',
* '1.1', '1.2'
+ * @member {string} [ftpsState] State of FTP / FTPS service. Possible values
+ * include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [reservedInstanceCount] Number of reserved instances.
+ * This setting only applies to the Consumption Plan
*/
export interface SiteConfig {
numberOfWorkers?: number;
@@ -1312,6 +1271,7 @@ export interface SiteConfig {
pythonVersion?: string;
nodeVersion?: string;
linuxFxVersion?: string;
+ windowsFxVersion?: string;
requestTracingEnabled?: boolean;
requestTracingExpirationTime?: Date;
remoteDebuggingEnabled?: boolean;
@@ -1347,9 +1307,13 @@ export interface SiteConfig {
apiDefinition?: ApiDefinitionInfo;
autoSwapSlotName?: string;
localMySqlEnabled?: boolean;
+ managedServiceIdentityId?: number;
+ xManagedServiceIdentityId?: number;
ipSecurityRestrictions?: IpSecurityRestriction[];
http20Enabled?: boolean;
minTlsVersion?: string;
+ ftpsState?: string;
+ reservedInstanceCount?: number;
}
/**
@@ -1405,6 +1369,7 @@ export interface HostNameSslState {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] true
if reserved; otherwise,
* false
. Default value: false .
+ * @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in UTC.
* Read-only.
* @member {object} [siteConfig] Configuration of the app.
@@ -1415,6 +1380,8 @@ export interface HostNameSslState {
* @member {string} [siteConfig.pythonVersion] Version of Python.
* @member {string} [siteConfig.nodeVersion] Version of Node.js.
* @member {string} [siteConfig.linuxFxVersion] Linux App Framework and version
+ * @member {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
* @member {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
* @member {date} [siteConfig.requestTracingExpirationTime] Request tracing
@@ -1536,6 +1503,10 @@ export interface HostNameSslState {
* @member {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [siteConfig.localMySqlEnabled] true
to enable
* local MySQL; otherwise, false
.
+ * @member {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ * @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
@@ -1543,6 +1514,11 @@ export interface HostNameSslState {
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
+ * @member {string} [siteConfig.ftpsState] State of FTP / FTPS service.
+ * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
* @member {array} [trafficManagerHostNames] Azure Traffic Manager hostnames
* associated with the app. Read-only.
* @member {boolean} [scmSiteAlsoStopped] true
to stop SCM (KUDU)
@@ -1613,29 +1589,6 @@ export interface HostNameSslState {
* @member {string} [cloningInfo.trafficManagerProfileName] Name of Traffic
* Manager profile to create. This is only needed if Traffic Manager profile
* does not already exist.
- * @member {boolean} [cloningInfo.ignoreQuotas] true
if quotas
- * should be ignored; otherwise, false
.
- * @member {object} [snapshotInfo] If specified during app creation, the app is
- * created from a previous snapshot.
- * @member {string} [snapshotInfo.snapshotTime] Point in time in which the app
- * recovery should be attempted, formatted as a DateTime string.
- * @member {object} [snapshotInfo.recoveryTarget] Specifies the web app that
- * snapshot contents will be written to.
- * @member {string} [snapshotInfo.recoveryTarget.location] Geographical
- * location of the target web app, e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [snapshotInfo.recoveryTarget.id] ARM resource ID of the
- * target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- * @member {boolean} [snapshotInfo.overwrite] If true
the recovery
- * operation can overwrite source app; otherwise, false
.
- * @member {boolean} [snapshotInfo.recoverConfiguration] If true, site
- * configuration, in addition to content, will be reverted.
- * @member {boolean} [snapshotInfo.ignoreConflictingHostNames] If true, custom
- * hostname conflicts will be ignored when recovering to a target web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
* @member {string} [resourceGroup] Name of the resource group the app belongs
* to. Read-only.
* @member {boolean} [isDefaultContainer] true
if the app is a
@@ -1654,10 +1607,12 @@ export interface HostNameSslState {
* http requests
* @member {object} [identity]
* @member {string} [identity.type] Type of managed service identity. Possible
- * values include: 'SystemAssigned'
+ * values include: 'SystemAssigned', 'UserAssigned'
* @member {string} [identity.tenantId] Tenant of managed service identity.
* @member {string} [identity.principalId] Principal Id of managed service
* identity.
+ * @member {array} [identity.identityIds] Array of UserAssigned managed service
+ * identities.
*/
export interface Site extends Resource {
readonly state?: string;
@@ -1670,6 +1625,7 @@ export interface Site extends Resource {
hostNameSslStates?: HostNameSslState[];
serverFarmId?: string;
reserved?: boolean;
+ isXenon?: boolean;
readonly lastModifiedTimeUtc?: Date;
siteConfig?: SiteConfig;
readonly trafficManagerHostNames?: string[];
@@ -1686,7 +1642,6 @@ export interface Site extends Resource {
readonly suspendedTill?: Date;
readonly maxNumberOfWorkers?: number;
cloningInfo?: CloningInfo;
- snapshotInfo?: SnapshotRecoveryRequest;
readonly resourceGroup?: string;
readonly isDefaultContainer?: boolean;
readonly defaultHostName?: string;
@@ -1776,7 +1731,6 @@ export interface SkuDescription {
* @constructor
* App Service plan.
*
- * @member {string} appServicePlanName Name for the App Service plan.
* @member {string} [workerTierName] Target worker tier assigned to the App
* Service plan.
* @member {string} [status] App Service plan status. Possible values include:
@@ -1804,9 +1758,13 @@ export interface SkuDescription {
* spot instances.
* @member {date} [spotExpirationTime] The time when the server farm expires.
* Valid only if it is a spot server farm.
+ * @member {date} [freeOfferExpirationTime] The time when the server farm free
+ * offer expires.
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan true
,
* false
otherwise. Default value: false .
+ * @member {boolean} [isXenon] If Hyper-V container app service plan
+ * true
, false
otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
* @member {string} [provisioningState] Provisioning state of the App Service
@@ -1834,7 +1792,6 @@ export interface SkuDescription {
* manager enabled?
*/
export interface AppServicePlan extends Resource {
- appServicePlanName: string;
workerTierName?: string;
readonly status?: string;
readonly subscription?: string;
@@ -1846,14 +1803,78 @@ export interface AppServicePlan extends Resource {
readonly numberOfSites?: number;
isSpot?: boolean;
spotExpirationTime?: Date;
+ freeOfferExpirationTime?: Date;
readonly resourceGroup?: string;
reserved?: boolean;
+ isXenon?: boolean;
targetWorkerCount?: number;
targetWorkerSizeId?: number;
readonly provisioningState?: string;
sku?: SkuDescription;
}
+/**
+ * @class
+ * Initializes a new instance of the DefaultErrorResponseErrorDetailsItem class.
+ * @constructor
+ * Detailed errors.
+ *
+ * @member {string} [code] Standardized string to programmatically identify the
+ * error.
+ * @member {string} [message] Detailed error description and debugging
+ * information.
+ * @member {string} [target] Detailed error description and debugging
+ * information.
+ */
+export interface DefaultErrorResponseErrorDetailsItem {
+ readonly code?: string;
+ readonly message?: string;
+ readonly target?: string;
+}
+
+/**
+ * @class
+ * Initializes a new instance of the DefaultErrorResponseError class.
+ * @constructor
+ * Error model.
+ *
+ * @member {string} [code] Standardized string to programmatically identify the
+ * error.
+ * @member {string} [message] Detailed error description and debugging
+ * information.
+ * @member {string} [target] Detailed error description and debugging
+ * information.
+ * @member {array} [details]
+ * @member {string} [innererror] More information to debug error.
+ */
+export interface DefaultErrorResponseError {
+ readonly code?: string;
+ readonly message?: string;
+ readonly target?: string;
+ details?: DefaultErrorResponseErrorDetailsItem[];
+ readonly innererror?: string;
+}
+
+/**
+ * @class
+ * Initializes a new instance of the DefaultErrorResponse class.
+ * @constructor
+ * App Service error response.
+ *
+ * @member {object} [error] Error model.
+ * @member {string} [error.code] Standardized string to programmatically
+ * identify the error.
+ * @member {string} [error.message] Detailed error description and debugging
+ * information.
+ * @member {string} [error.target] Detailed error description and debugging
+ * information.
+ * @member {array} [error.details]
+ * @member {string} [error.innererror] More information to debug error.
+ */
+export interface DefaultErrorResponse {
+ readonly error?: DefaultErrorResponseError;
+}
+
/**
* @class
* Initializes a new instance of the NameIdentifier class.
@@ -1866,6 +1887,22 @@ export interface NameIdentifier {
name?: string;
}
+/**
+ * @class
+ * Initializes a new instance of the LogSpecification class.
+ * @constructor
+ * Log Definition of a single resource metric.
+ *
+ * @member {string} [name]
+ * @member {string} [displayName]
+ * @member {string} [blobDuration]
+ */
+export interface LogSpecification {
+ name?: string;
+ displayName?: string;
+ blobDuration?: string;
+}
+
/**
* @class
* Initializes a new instance of the MetricAvailability class.
@@ -1947,9 +1984,11 @@ export interface MetricSpecification {
* Resource metrics service provided by Microsoft.Insights resource provider.
*
* @member {array} [metricSpecifications]
+ * @member {array} [logSpecifications]
*/
export interface ServiceSpecification {
metricSpecifications?: MetricSpecification[];
+ logSpecifications?: LogSpecification[];
}
/**
@@ -1960,6 +1999,7 @@ export interface ServiceSpecification {
*
* @member {object} [serviceSpecification]
* @member {array} [serviceSpecification.metricSpecifications]
+ * @member {array} [serviceSpecification.logSpecifications]
*/
export interface CsmOperationDescriptionProperties {
serviceSpecification?: ServiceSpecification;
@@ -1999,6 +2039,7 @@ export interface CsmOperationDisplay {
* @member {object} [properties]
* @member {object} [properties.serviceSpecification]
* @member {array} [properties.serviceSpecification.metricSpecifications]
+ * @member {array} [properties.serviceSpecification.logSpecifications]
*/
export interface CsmOperationDescription {
name?: string;
@@ -2498,21 +2539,6 @@ export interface DomainRecommendationSearchParameters {
maxDomainRecommendations?: number;
}
-/**
- * @class
- * Initializes a new instance of the ErrorResponse class.
- * @constructor
- * Error Response.
- *
- * @member {string} [code] Error code.
- * @member {string} [message] Error message indicating why the operation
- * failed.
- */
-export interface ErrorResponse {
- code?: string;
- message?: string;
-}
-
/**
* @class
* Initializes a new instance of the TldLegalAgreement class.
@@ -2537,12 +2563,10 @@ export interface TldLegalAgreement {
* @constructor
* A top level domain object.
*
- * @member {string} [domainName] Name of the top level domain.
* @member {boolean} [privacy] If true
, then the top level domain
* supports domain privacy; otherwise, false
.
*/
export interface TopLevelDomain extends ProxyOnlyResource {
- readonly domainName?: string;
privacy?: boolean;
}
@@ -2600,7 +2624,6 @@ export interface TopLevelDomainAgreementOption {
* 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
* 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
* 'Unknown'
- * @member {string} [geoRegion] Region of the certificate.
* @member {string} [serverFarmId] Resource ID of the associated App Service
* plan, formatted as:
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
@@ -2624,7 +2647,6 @@ export interface Certificate extends Resource {
keyVaultId?: string;
keyVaultSecretName?: string;
readonly keyVaultSecretStatus?: string;
- readonly geoRegion?: string;
serverFarmId?: string;
}
@@ -2664,7 +2686,6 @@ export interface Certificate extends Resource {
* 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist',
* 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey',
* 'Unknown'
- * @member {string} [geoRegion] Region of the certificate.
* @member {string} [serverFarmId] Resource ID of the associated App Service
* plan, formatted as:
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
@@ -2688,7 +2709,6 @@ export interface CertificatePatchResource extends ProxyOnlyResource {
keyVaultId?: string;
keyVaultSecretName?: string;
readonly keyVaultSecretStatus?: string;
- readonly geoRegion?: string;
serverFarmId?: string;
}
@@ -2766,7 +2786,7 @@ export interface VirtualIPMapping {
* @member {string} [computeMode] Shared/dedicated workers. Possible values
* include: 'Shared', 'Dedicated', 'Dynamic'
* @member {string} [workerSize] Size of the machines. Possible values include:
- * 'Default', 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3'
+ * 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default'
* @member {number} [workerSizeId] Size ID of machines:
* 0 - Small
* 1 - Medium
@@ -2777,6 +2797,7 @@ export interface VirtualIPMapping {
* @member {boolean} [isApplicableForAllComputeModes] true
if
* capacity is applicable for all apps; otherwise, false
.
* @member {string} [siteMode] Shared or Dedicated.
+ * @member {boolean} [isLinux] Is this a linux stamp capacity
*/
export interface StampCapacity {
name?: string;
@@ -2789,6 +2810,7 @@ export interface StampCapacity {
excludeFromCapacityAllocation?: boolean;
isApplicableForAllComputeModes?: boolean;
siteMode?: string;
+ isLinux?: boolean;
}
/**
@@ -2893,6 +2915,12 @@ export interface NetworkAccessControlEntry {
* of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to whitelist
* on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
export interface AppServiceEnvironment {
name: string;
@@ -2931,6 +2959,9 @@ export interface AppServiceEnvironment {
dynamicCacheEnabled?: boolean;
clusterSettings?: NameValuePair[];
userWhitelistedIpRanges?: string[];
+ hasLinuxWorkers?: boolean;
+ sslCertKeyVaultId?: string;
+ sslCertKeyVaultSecretName?: string;
}
/**
@@ -2969,6 +3000,29 @@ export interface CsmUsageQuota {
name?: LocalizableString;
}
+/**
+ * @class
+ * Initializes a new instance of the DeletedSite class.
+ * @constructor
+ * A deleted app.
+ *
+ * @member {number} [deletedSiteId] Numeric id for the deleted site
+ * @member {string} [deletedTimestamp] Time in UTC when the app was deleted.
+ * @member {string} [subscription] Subscription containing the deleted site
+ * @member {string} [resourceGroup] ResourceGroup that contained the deleted
+ * site
+ * @member {string} [deletedSiteName] Name of the deleted site
+ * @member {string} [slot] Slot of the deleted site
+ */
+export interface DeletedSite {
+ readonly deletedSiteId?: number;
+ readonly deletedTimestamp?: string;
+ readonly subscription?: string;
+ readonly resourceGroup?: string;
+ readonly deletedSiteName?: string;
+ readonly slot?: string;
+}
+
/**
* @class
* Initializes a new instance of the ErrorEntity class.
@@ -2991,68 +3045,6 @@ export interface ErrorEntity {
message?: string;
}
-/**
- * @class
- * Initializes a new instance of the DefaultErrorResponseErrorDetailsItem class.
- * @constructor
- * Detailed errors.
- *
- * @member {string} [code] Standardized string to programmatically identify the
- * error.
- * @member {string} [message] Detailed error description and debugging
- * information.
- * @member {string} [target] Detailed error description and debugging
- * information.
- */
-export interface DefaultErrorResponseErrorDetailsItem {
- readonly code?: string;
- readonly message?: string;
- readonly target?: string;
-}
-
-/**
- * @class
- * Initializes a new instance of the DefaultErrorResponseError class.
- * @constructor
- * Error model.
- *
- * @member {string} [code] Standardized string to programmatically identify the
- * error.
- * @member {string} [message] Detailed error description and debugging
- * information.
- * @member {string} [target] Detailed error description and debugging
- * information.
- * @member {array} [details]
- * @member {string} [innererror] More information to debug error.
- */
-export interface DefaultErrorResponseError {
- readonly code?: string;
- readonly message?: string;
- readonly target?: string;
- details?: DefaultErrorResponseErrorDetailsItem[];
- readonly innererror?: string;
-}
-
-/**
- * @class
- * Initializes a new instance of the DefaultErrorResponse class.
- * @constructor
- * App Service error response.
- *
- * @member {object} [error] Error model.
- * @member {string} [error.code] Standardized string to programmatically
- * identify the error.
- * @member {string} [error.message] Detailed error description and debugging
- * information.
- * @member {string} [error.target] Detailed error description and debugging
- * information.
- * @member {array} [error.details]
- * @member {string} [error.innererror] More information to debug error.
- */
-export interface DefaultErrorResponse {
- readonly error?: DefaultErrorResponseError;
-}
-
/**
* @class
* Initializes a new instance of the Operation class.
@@ -3081,6 +3073,20 @@ export interface Operation {
geoMasterOperationId?: string;
}
+/**
+ * @class
+ * Initializes a new instance of the ResourceMetricName class.
+ * @constructor
+ * Name of a metric for any resource .
+ *
+ * @member {string} [value] metric name value.
+ * @member {string} [localizedValue] Localized metric name value.
+ */
+export interface ResourceMetricName {
+ readonly value?: string;
+ readonly localizedValue?: string;
+}
+
/**
* @class
* Initializes a new instance of the ResourceMetricProperty class.
@@ -3149,29 +3155,6 @@ export interface ResourceMetric {
readonly properties?: ResourceMetricProperty[];
}
-/**
- * @class
- * Initializes a new instance of the DeletedSite class.
- * @constructor
- * A deleted app.
- *
- * @member {number} [id] Numeric id for the deleted site
- * @member {string} [deletedTimestamp] Time in UTC when the app was deleted.
- * @member {string} [subscription] Subscription containing the deleted site
- * @member {string} [resourceGroup] ResourceGroup that contained the deleted
- * site
- * @member {string} [name] Name of the deleted site
- * @member {string} [slot] Slot of the deleted site
- */
-export interface DeletedSite {
- id?: number;
- readonly deletedTimestamp?: string;
- readonly subscription?: string;
- readonly resourceGroup?: string;
- readonly name?: string;
- readonly slot?: string;
-}
-
/**
* @class
* Initializes a new instance of the Solution class.
@@ -3448,14 +3431,14 @@ export interface DetectorInfo {
* @constructor
* Instructions for rendering the data
*
- * @member {string} [renderingType] Rendering Type. Possible values include:
- * 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
+ * @member {string} [type] Rendering Type. Possible values include: 'NoGraph',
+ * 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
* @member {string} [title] Title of data
* @member {string} [description] Description of the data that will help it be
* interpreted
*/
export interface Rendering {
- renderingType?: string;
+ type?: string;
title?: string;
description?: string;
}
@@ -3472,9 +3455,8 @@ export interface Rendering {
* @member {array} [table.rows] Raw row values
* @member {object} [renderingProperties] Properties that describe how the
* table should be rendered
- * @member {string} [renderingProperties.renderingType] Rendering Type.
- * Possible values include: 'NoGraph', 'Table', 'TimeSeries',
- * 'TimeSeriesPerInstance'
+ * @member {string} [renderingProperties.type] Rendering Type. Possible values
+ * include: 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
* @member {string} [renderingProperties.title] Title of data
* @member {string} [renderingProperties.description] Description of the data
* that will help it be interpreted
@@ -3661,9 +3643,13 @@ export interface ApplicationStack {
* @member {string} [channels] List of channels that this recommendation can
* apply. Possible values include: 'Notification', 'Api', 'Email', 'Webhook',
* 'All'
- * @member {array} [tags] The list of category tags that this recommendation
- * belongs to.
+ * @member {array} [categoryTags] The list of category tags that this
+ * recommendation belongs to.
* @member {string} [actionName] Name of action recommended by this object.
+ * @member {number} [enabled] True if this recommendation is still valid (i.e.
+ * "actionable"). False if it is invalid.
+ * @member {array} [states] The list of states of this recommendation. If it's
+ * null then it shoud be considered "Active".
* @member {date} [startTime] The beginning time in UTC of a range that the
* recommendation refers to.
* @member {date} [endTime] The end time in UTC of a range that the
@@ -3693,8 +3679,10 @@ export interface Recommendation extends ProxyOnlyResource {
message?: string;
level?: string;
channels?: string;
- tags?: string[];
+ readonly categoryTags?: string[];
actionName?: string;
+ enabled?: number;
+ states?: string[];
startTime?: Date;
endTime?: Date;
nextNotificationTime?: Date;
@@ -3713,7 +3701,7 @@ export interface Recommendation extends ProxyOnlyResource {
* @constructor
* Represents a recommendation rule that the recommendation engine can perform.
*
- * @member {string} [recommendationRuleName] Unique name of the rule.
+ * @member {string} [recommendationName] Unique name of the rule.
* @member {string} [displayName] UI friendly name of the rule.
* @member {string} [message] Localized name of the rule (Good for UI).
* @member {uuid} [recommendationId] Recommendation ID of an associated
@@ -3728,7 +3716,8 @@ export interface Recommendation extends ProxyOnlyResource {
* @member {string} [channels] List of available channels that this rule
* applies. Possible values include: 'Notification', 'Api', 'Email', 'Webhook',
* 'All'
- * @member {array} [tags] An array of category tags that the rule contains.
+ * @member {array} [categoryTags] The list of category tags that this
+ * recommendation rule belongs to.
* @member {boolean} [isDynamic] True if this is associated with a dynamically
* added rule
* @member {string} [extensionName] Extension name of the portal if exists.
@@ -3739,7 +3728,7 @@ export interface Recommendation extends ProxyOnlyResource {
* associated with the rule. Applicable to dynamic rule only.
*/
export interface RecommendationRule extends ProxyOnlyResource {
- recommendationRuleName?: string;
+ recommendationName?: string;
displayName?: string;
message?: string;
recommendationId?: string;
@@ -3747,29 +3736,13 @@ export interface RecommendationRule extends ProxyOnlyResource {
actionName?: string;
level?: string;
channels?: string;
- tags?: string[];
+ readonly categoryTags?: string[];
isDynamic?: boolean;
extensionName?: string;
bladeName?: string;
forwardLink?: string;
}
-/**
- * @class
- * Initializes a new instance of the ResourceHealthMetadata class.
- * @constructor
- * Used for getting ResourceHealthCheck settings.
- *
- * @member {string} [category] The category that the resource matches in the
- * RHC Policy File
- * @member {boolean} [signalAvailability] Is there a health signal for the
- * resource
- */
-export interface ResourceHealthMetadata extends ProxyOnlyResource {
- category?: string;
- signalAvailability?: boolean;
-}
-
/**
* @class
* Initializes a new instance of the BillingMeter class.
@@ -3781,7 +3754,8 @@ export interface ResourceHealthMetadata extends ProxyOnlyResource {
* @member {string} [billingLocation] Azure Location of billable resource
* @member {string} [shortName] Short Name from App Service Azure pricing Page
* @member {string} [friendlyName] Friendly name of the meter
- * @member {string} [resourceType] App Service resource type meter used for
+ * @member {string} [resourceType] App Service ResourceType meter used for
+ * @member {string} [osType] App Service OS type meter used for
*/
export interface BillingMeter extends ProxyOnlyResource {
meterId?: string;
@@ -3789,6 +3763,7 @@ export interface BillingMeter extends ProxyOnlyResource {
shortName?: string;
friendlyName?: string;
resourceType?: string;
+ osType?: string;
}
/**
@@ -3812,12 +3787,10 @@ export interface CsmMoveResourceEnvelope {
* @constructor
* Geographical region.
*
- * @member {string} [geoRegionName] Region name.
* @member {string} [description] Region description.
* @member {string} [displayName] Display name for region.
*/
export interface GeoRegion extends ProxyOnlyResource {
- readonly geoRegionName?: string;
readonly description?: string;
readonly displayName?: string;
}
@@ -3897,7 +3870,6 @@ export interface GlobalCsmSkuDescription {
* @member {string} [sku] Premier add on SKU.
* @member {string} [product] Premier add on offer Product.
* @member {string} [vendor] Premier add on offer Vendor.
- * @member {string} [premierAddOnOfferName] Premier add on offer Name.
* @member {boolean} [promoCodeRequired] true
if promotion code is
* required; otherwise, false
.
* @member {number} [quota] Premier add on offer Quota.
@@ -3913,7 +3885,6 @@ export interface PremierAddOnOffer extends ProxyOnlyResource {
sku?: string;
product?: string;
vendor?: string;
- premierAddOnOfferName?: string;
promoCodeRequired?: boolean;
quota?: number;
webHostingPlanRestrictions?: string;
@@ -3987,14 +3958,12 @@ export interface SkuInfos {
* @constructor
* The source control OAuth token.
*
- * @member {string} [sourceControlName] Name or source control type.
* @member {string} [token] OAuth access token.
* @member {string} [tokenSecret] OAuth access token secret.
* @member {string} [refreshToken] OAuth refresh token.
* @member {date} [expirationTime] OAuth token expiration.
*/
export interface SourceControl extends ProxyOnlyResource {
- sourceControlName?: string;
token?: string;
tokenSecret?: string;
refreshToken?: string;
@@ -4022,6 +3991,8 @@ export interface SourceControl extends ProxyOnlyResource {
* of VM's).
* @member {string} [hostingEnvironment] Name of App Service Environment where
* app or App Service plan should be created.
+ * @member {boolean} [isXenon] true
if App Service plan is running
+ * as a windows container
*/
export interface ValidateRequest {
name: string;
@@ -4033,6 +4004,7 @@ export interface ValidateRequest {
isSpot?: boolean;
capacity?: number;
hostingEnvironment?: string;
+ isXenon?: boolean;
}
/**
@@ -4320,7 +4292,6 @@ export interface BackupSchedule {
* @constructor
* Description of a backup which will be performed.
*
- * @member {string} backupRequestName Name of the backup.
* @member {boolean} [enabled] True if the backup schedule is enabled (must be
* included in that case), false if the backup schedule should be disabled.
* @member {string} storageAccountUrl SAS URL to the container.
@@ -4343,16 +4314,12 @@ export interface BackupSchedule {
* @member {date} [backupSchedule.lastExecutionTime] Last time when this
* schedule was triggered.
* @member {array} [databases] Databases included in the backup.
- * @member {string} [backupRequestType] Type of the backup. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
*/
export interface BackupRequest extends ProxyOnlyResource {
- backupRequestName: string;
enabled?: boolean;
storageAccountUrl: string;
backupSchedule?: BackupSchedule;
databases?: DatabaseBackupSetting[];
- backupRequestType?: string;
}
/**
@@ -4393,13 +4360,11 @@ export interface ConnectionStringDictionary extends ProxyOnlyResource {
* 'Initializing', 'Starting', 'Running', 'PendingRestart', 'Stopped'
* @member {string} [detailedStatus] Detailed status.
* @member {string} [logUrl] Log URL.
- * @member {string} [continuousWebJobName] Job name. Used as job identifier in
- * ARM resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include: 'Continuous',
- * 'Triggered'
+ * @member {string} [webJobType] Job type. Possible values include:
+ * 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
* @member {object} [settings] Job settings.
@@ -4408,11 +4373,10 @@ export interface ContinuousWebJob extends ProxyOnlyResource {
status?: string;
detailedStatus?: string;
logUrl?: string;
- readonly continuousWebJobName?: string;
runCommand?: string;
url?: string;
extraInfoUrl?: string;
- jobType?: string;
+ webJobType?: string;
error?: string;
usingSdk?: boolean;
settings?: { [propertyName: string]: any };
@@ -4503,13 +4467,33 @@ export interface CustomHostnameAnalysisResult extends ProxyOnlyResource {
alternateTxtRecords?: string[];
}
+/**
+ * @class
+ * Initializes a new instance of the DeletedAppRestoreRequest class.
+ * @constructor
+ * Details about restoring a deleted app.
+ *
+ * @member {string} [deletedSiteId] ARM resource ID of the deleted app.
+ * Example:
+ * /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}
+ * @member {boolean} [recoverConfiguration] If true, deleted site
+ * configuration, in addition to content, will be restored.
+ * @member {string} [snapshotTime] Point in time to restore the deleted app
+ * from, formatted as a DateTime string.
+ * If unspecified, default value is the time that the app was deleted.
+ */
+export interface DeletedAppRestoreRequest extends ProxyOnlyResource {
+ deletedSiteId?: string;
+ recoverConfiguration?: boolean;
+ snapshotTime?: string;
+}
+
/**
* @class
* Initializes a new instance of the Deployment class.
* @constructor
* User crendentials used for publishing activity.
*
- * @member {string} [deploymentId] Identifier for deployment.
* @member {number} [status] Deployment status.
* @member {string} [message] Details about deployment status.
* @member {string} [author] Who authored the deployment.
@@ -4522,7 +4506,6 @@ export interface CustomHostnameAnalysisResult extends ProxyOnlyResource {
* @member {string} [details] Details on deployment.
*/
export interface Deployment extends ProxyOnlyResource {
- deploymentId?: string;
status?: number;
message?: string;
author?: string;
@@ -4575,7 +4558,6 @@ export interface FileSystemHttpLogsConfig {
* @constructor
* Web Job Information.
*
- * @member {string} [functionEnvelopeName] Function name.
* @member {string} [functionAppId] Function App ID.
* @member {string} [scriptRootPathHref] Script root path URI.
* @member {string} [scriptHref] Script URI.
@@ -4588,8 +4570,7 @@ export interface FileSystemHttpLogsConfig {
* Portal.
*/
export interface FunctionEnvelope extends ProxyOnlyResource {
- readonly functionEnvelopeName?: string;
- readonly functionAppId?: string;
+ functionAppId?: string;
scriptRootPathHref?: string;
scriptHref?: string;
configHref?: string;
@@ -4867,13 +4848,11 @@ export interface NetworkFeatures extends ProxyOnlyResource {
* @member {string} [instanceName] Name of the server on which the measurement
* is made.
* @member {number} [value] Value of counter at a certain time.
- * @member {number} [coreCount] Core Count of worker. Not a data member
*/
export interface PerfMonSample {
time?: Date;
instanceName?: string;
value?: number;
- coreCount?: number;
}
/**
@@ -4928,9 +4907,6 @@ export interface PerfMonResponse {
* @member {string} [sku] Premier add on SKU.
* @member {string} [product] Premier add on Product.
* @member {string} [vendor] Premier add on Vendor.
- * @member {string} [premierAddOnName] Premier add on Name.
- * @member {string} [premierAddOnLocation] Premier add on Location.
- * @member {object} [premierAddOnTags] Premier add on Tags.
* @member {string} [marketplacePublisher] Premier add on Marketplace
* publisher.
* @member {string} [marketplaceOffer] Premier add on Marketplace offer.
@@ -4939,20 +4915,88 @@ export interface PremierAddOn extends Resource {
sku?: string;
product?: string;
vendor?: string;
- premierAddOnName?: string;
- premierAddOnLocation?: string;
- premierAddOnTags?: { [propertyName: string]: string };
marketplacePublisher?: string;
marketplaceOffer?: string;
}
+/**
+ * @class
+ * Initializes a new instance of the PremierAddOnPatchResource class.
+ * @constructor
+ * ARM resource for a PremierAddOn.
+ *
+ * @member {string} [sku] Premier add on SKU.
+ * @member {string} [product] Premier add on Product.
+ * @member {string} [vendor] Premier add on Vendor.
+ * @member {string} [marketplacePublisher] Premier add on Marketplace
+ * publisher.
+ * @member {string} [marketplaceOffer] Premier add on Marketplace offer.
+ */
+export interface PremierAddOnPatchResource extends ProxyOnlyResource {
+ sku?: string;
+ product?: string;
+ vendor?: string;
+ marketplacePublisher?: string;
+ marketplaceOffer?: string;
+}
+
+/**
+ * @class
+ * Initializes a new instance of the PrivateAccessSubnet class.
+ * @constructor
+ * Description of a Virtual Network subnet that is useable for private site
+ * access.
+ *
+ * @member {string} [name] The name of the subnet.
+ * @member {number} [key] The key (ID) of the subnet.
+ */
+export interface PrivateAccessSubnet {
+ name?: string;
+ key?: number;
+}
+
+/**
+ * @class
+ * Initializes a new instance of the PrivateAccessVirtualNetwork class.
+ * @constructor
+ * Description of a Virtual Network that is useable for private site access.
+ *
+ * @member {string} [name] The name of the Virtual Network.
+ * @member {number} [key] The key (ID) of the Virtual Network.
+ * @member {string} [resourceId] The ARM uri of the Virtual Network
+ * @member {array} [subnets] A List of subnets that access is allowed to on
+ * this Virtual Network. An empty array (but not null) is interpreted to mean
+ * that all subnets are allowed within this Virtual Network.
+ */
+export interface PrivateAccessVirtualNetwork {
+ name?: string;
+ key?: number;
+ resourceId?: string;
+ subnets?: PrivateAccessSubnet[];
+}
+
+/**
+ * @class
+ * Initializes a new instance of the PrivateAccess class.
+ * @constructor
+ * Description of the parameters of Private Access for a Web Site.
+ *
+ * @member {boolean} [enabled] Whether private access is enabled or not.
+ * @member {array} [virtualNetworks] The Virtual Networks (and subnets) allowed
+ * to access the site privately.
+ */
+export interface PrivateAccess extends ProxyOnlyResource {
+ enabled?: boolean;
+ virtualNetworks?: PrivateAccessVirtualNetwork[];
+}
+
/**
* @class
* Initializes a new instance of the ProcessThreadInfo class.
* @constructor
* Process Thread Information.
*
- * @member {number} [processThreadInfoId] ARM Identifier for deployment.
+ * @member {number} [identifier] Site extension ID.
* @member {string} [href] HRef URI.
* @member {string} [process] Process URI.
* @member {string} [startAddress] Start address.
@@ -4967,7 +5011,7 @@ export interface PremierAddOn extends Resource {
* @member {string} [waitReason] Wait reason.
*/
export interface ProcessThreadInfo extends ProxyOnlyResource {
- processThreadInfoId?: number;
+ readonly identifier?: number;
href?: string;
process?: string;
startAddress?: string;
@@ -5021,10 +5065,10 @@ export interface ProcessModuleInfo extends ProxyOnlyResource {
* @constructor
* Process Information.
*
- * @member {number} [processInfoId] ARM Identifier for deployment.
- * @member {string} [processInfoName] Deployment name.
+ * @member {number} [identifier] ARM Identifier for deployment.
+ * @member {string} [deploymentName] Deployment name.
* @member {string} [href] HRef URI.
- * @member {string} [miniDump] Minidump URI.
+ * @member {string} [minidump] Minidump URI.
* @member {boolean} [isProfileRunning] Is profile running?
* @member {boolean} [isIisProfileRunning] Is the IIS Profile running?
* @member {number} [iisProfileTimeoutInSeconds] IIS Profile timeout (seconds).
@@ -5040,29 +5084,29 @@ export interface ProcessModuleInfo extends ProxyOnlyResource {
* @member {number} [moduleCount] Module count.
* @member {number} [threadCount] Thread count.
* @member {date} [startTime] Start time.
- * @member {string} [totalProcessorTime] Total CPU time.
- * @member {string} [userProcessorTime] User CPU time.
- * @member {string} [privilegedProcessorTime] Privileged CPU time.
- * @member {number} [workingSet64] Working set.
- * @member {number} [peakWorkingSet64] Peak working set.
- * @member {number} [privateMemorySize64] Private memory size.
- * @member {number} [virtualMemorySize64] Virtual memory size.
- * @member {number} [peakVirtualMemorySize64] Peak virtual memory usage.
- * @member {number} [pagedSystemMemorySize64] Paged system memory.
- * @member {number} [nonpagedSystemMemorySize64] Non-paged system memory.
- * @member {number} [pagedMemorySize64] Paged memory.
- * @member {number} [peakPagedMemorySize64] Peak paged memory.
+ * @member {string} [totalCpuTime] Total CPU time.
+ * @member {string} [userCpuTime] User CPU time.
+ * @member {string} [privilegedCpuTime] Privileged CPU time.
+ * @member {number} [workingSet] Working set.
+ * @member {number} [peakWorkingSet] Peak working set.
+ * @member {number} [privateMemory] Private memory size.
+ * @member {number} [virtualMemory] Virtual memory size.
+ * @member {number} [peakVirtualMemory] Peak virtual memory usage.
+ * @member {number} [pagedSystemMemory] Paged system memory.
+ * @member {number} [nonPagedSystemMemory] Non-paged system memory.
+ * @member {number} [pagedMemory] Paged memory.
+ * @member {number} [peakPagedMemory] Peak paged memory.
* @member {date} [timeStamp] Time stamp.
* @member {object} [environmentVariables] List of environment variables.
* @member {boolean} [isScmSite] Is this the SCM site?
- * @member {boolean} [isWebJob] Is this a Web Job?
+ * @member {boolean} [isWebjob] Is this a Web Job?
* @member {string} [description] Description of process.
*/
export interface ProcessInfo extends ProxyOnlyResource {
- processInfoId?: number;
- processInfoName?: string;
+ readonly identifier?: number;
+ deploymentName?: string;
href?: string;
- miniDump?: string;
+ minidump?: string;
isProfileRunning?: boolean;
isIisProfileRunning?: boolean;
iisProfileTimeoutInSeconds?: number;
@@ -5078,22 +5122,22 @@ export interface ProcessInfo extends ProxyOnlyResource {
moduleCount?: number;
threadCount?: number;
startTime?: Date;
- totalProcessorTime?: string;
- userProcessorTime?: string;
- privilegedProcessorTime?: string;
- workingSet64?: number;
- peakWorkingSet64?: number;
- privateMemorySize64?: number;
- virtualMemorySize64?: number;
- peakVirtualMemorySize64?: number;
- pagedSystemMemorySize64?: number;
- nonpagedSystemMemorySize64?: number;
- pagedMemorySize64?: number;
- peakPagedMemorySize64?: number;
+ totalCpuTime?: string;
+ userCpuTime?: string;
+ privilegedCpuTime?: string;
+ workingSet?: number;
+ peakWorkingSet?: number;
+ privateMemory?: number;
+ virtualMemory?: number;
+ peakVirtualMemory?: number;
+ pagedSystemMemory?: number;
+ nonPagedSystemMemory?: number;
+ pagedMemory?: number;
+ peakPagedMemory?: number;
timeStamp?: Date;
environmentVariables?: { [propertyName: string]: string };
isScmSite?: boolean;
- isWebJob?: boolean;
+ isWebjob?: boolean;
description?: string;
}
@@ -5139,7 +5183,8 @@ export interface PublicCertificate extends ProxyOnlyResource {
* @member {string} [appServicePlan] Specify app service plan that will own
* restored site.
* @member {string} [operationType] Operation type. Possible values include:
- * 'Default', 'Clone', 'Relocation', 'Snapshot'. Default value: 'Default' .
+ * 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'. Default value:
+ * 'Default' .
* @member {boolean} [adjustConnectionStrings] true
if
* SiteConfig.ConnectionStrings should be set in new app; otherwise,
* false
.
@@ -5160,19 +5205,6 @@ export interface RestoreRequest extends ProxyOnlyResource {
hostingEnvironment?: string;
}
-/**
- * @class
- * Initializes a new instance of the RestoreResponse class.
- * @constructor
- * Response for an app restore request.
- *
- * @member {string} [operationId] When server starts the restore process, it
- * will return an operation ID identifying that particular restore operation.
- */
-export interface RestoreResponse extends ProxyOnlyResource {
- readonly operationId?: string;
-}
-
/**
* @class
* Initializes a new instance of the SiteAuthSettings class.
@@ -5232,6 +5264,8 @@ export interface RestoreResponse extends ProxyOnlyResource {
* This URI is a case-sensitive identifier for the token issuer.
* More information on OpenID Connect Discovery:
* http://openid.net/specs/openid-connect-discovery-1_0.html
+ * @member {boolean} [validateIssuer] Gets a value indicating whether the
+ * issuer should be a valid HTTPS url and be validated as such.
* @member {array} [allowedAudiences] Allowed audience values to consider when
* validating JWTs issued by
* Azure Active Directory. Note that the ClientID
value is always
@@ -5307,6 +5341,7 @@ export interface SiteAuthSettings extends ProxyOnlyResource {
clientId?: string;
clientSecret?: string;
issuer?: string;
+ validateIssuer?: boolean;
allowedAudiences?: string[];
additionalLoginParams?: string[];
googleClientId?: string;
@@ -5373,6 +5408,7 @@ export interface SiteCloneability {
* @member {string} [pythonVersion] Version of Python.
* @member {string} [nodeVersion] Version of Node.js.
* @member {string} [linuxFxVersion] Linux App Framework and version
+ * @member {string} [windowsFxVersion] Xenon App Framework and version
* @member {boolean} [requestTracingEnabled] true
if request
* tracing is enabled; otherwise, false
.
* @member {date} [requestTracingExpirationTime] Request tracing expiration
@@ -5483,12 +5519,19 @@ export interface SiteCloneability {
* @member {string} [autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [localMySqlEnabled] true
to enable local
* MySQL; otherwise, false
. Default value: false .
+ * @member {number} [managedServiceIdentityId] Managed Service Identity Id
+ * @member {number} [xManagedServiceIdentityId] Explicit Managed Service
+ * Identity Id
* @member {array} [ipSecurityRestrictions] IP security restrictions.
* @member {boolean} [http20Enabled] Http20Enabled: configures a web site to
* allow clients to connect over http2.0. Default value: true .
* @member {string} [minTlsVersion] MinTlsVersion: configures the minimum
* version of TLS required for SSL requests. Possible values include: '1.0',
* '1.1', '1.2'
+ * @member {string} [ftpsState] State of FTP / FTPS service. Possible values
+ * include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [reservedInstanceCount] Number of reserved instances.
+ * This setting only applies to the Consumption Plan
*/
export interface SiteConfigResource extends ProxyOnlyResource {
numberOfWorkers?: number;
@@ -5498,6 +5541,7 @@ export interface SiteConfigResource extends ProxyOnlyResource {
pythonVersion?: string;
nodeVersion?: string;
linuxFxVersion?: string;
+ windowsFxVersion?: string;
requestTracingEnabled?: boolean;
requestTracingExpirationTime?: Date;
remoteDebuggingEnabled?: boolean;
@@ -5533,9 +5577,13 @@ export interface SiteConfigResource extends ProxyOnlyResource {
apiDefinition?: ApiDefinitionInfo;
autoSwapSlotName?: string;
localMySqlEnabled?: boolean;
+ managedServiceIdentityId?: number;
+ xManagedServiceIdentityId?: number;
ipSecurityRestrictions?: IpSecurityRestriction[];
http20Enabled?: boolean;
minTlsVersion?: string;
+ ftpsState?: string;
+ reservedInstanceCount?: number;
}
/**
@@ -5545,11 +5593,11 @@ export interface SiteConfigResource extends ProxyOnlyResource {
* A snapshot of a web app configuration.
*
* @member {date} [time] The time the snapshot was taken.
- * @member {number} [siteConfigurationSnapshotInfoId] The id of the snapshot
+ * @member {number} [snapshotId] The id of the snapshot
*/
export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource {
readonly time?: Date;
- readonly siteConfigurationSnapshotInfoId?: number;
+ readonly snapshotId?: number;
}
/**
@@ -5558,10 +5606,10 @@ export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource {
* @constructor
* Site Extension Information.
*
- * @member {string} [siteExtensionInfoId] Site extension ID.
- * @member {string} [title] Site extension title.
- * @member {string} [siteExtensionInfoType] Site extension type. Possible
- * values include: 'Gallery', 'WebRoot'
+ * @member {string} [extensionId] Site extension ID.
+ * @member {string} [title]
+ * @member {string} [extensionType] Site extension type. Possible values
+ * include: 'Gallery', 'WebRoot'
* @member {string} [summary] Summary description.
* @member {string} [description] Detailed description.
* @member {string} [version] Version information.
@@ -5571,7 +5619,8 @@ export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource {
* @member {string} [licenseUrl] License URL.
* @member {string} [feedUrl] Feed URL.
* @member {array} [authors] List of authors.
- * @member {string} [installationArgs] Installer command line parameters.
+ * @member {string} [installerCommandLineParams] Installer command line
+ * parameters.
* @member {date} [publishedDateTime] Published timestamp.
* @member {number} [downloadCount] Count of downloads.
* @member {boolean} [localIsLatestVersion] true
if the local
@@ -5582,9 +5631,9 @@ export interface SiteConfigurationSnapshotInfo extends ProxyOnlyResource {
* @member {string} [comment] Site Extension comment.
*/
export interface SiteExtensionInfo extends ProxyOnlyResource {
- siteExtensionInfoId?: string;
+ extensionId?: string;
title?: string;
- siteExtensionInfoType?: string;
+ extensionType?: string;
summary?: string;
description?: string;
version?: string;
@@ -5594,7 +5643,7 @@ export interface SiteExtensionInfo extends ProxyOnlyResource {
licenseUrl?: string;
feedUrl?: string;
authors?: string[];
- installationArgs?: string;
+ installerCommandLineParams?: string;
publishedDateTime?: Date;
downloadCount?: number;
localIsLatestVersion?: boolean;
@@ -5708,6 +5757,7 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] true
if reserved; otherwise,
* false
. Default value: false .
+ * @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in UTC.
* Read-only.
* @member {object} [siteConfig] Configuration of the app.
@@ -5718,6 +5768,8 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {string} [siteConfig.pythonVersion] Version of Python.
* @member {string} [siteConfig.nodeVersion] Version of Node.js.
* @member {string} [siteConfig.linuxFxVersion] Linux App Framework and version
+ * @member {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
* @member {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
* @member {date} [siteConfig.requestTracingExpirationTime] Request tracing
@@ -5839,6 +5891,10 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [siteConfig.localMySqlEnabled] true
to enable
* local MySQL; otherwise, false
.
+ * @member {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ * @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
@@ -5846,6 +5902,11 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
+ * @member {string} [siteConfig.ftpsState] State of FTP / FTPS service.
+ * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
* @member {array} [trafficManagerHostNames] Azure Traffic Manager hostnames
* associated with the app. Read-only.
* @member {boolean} [scmSiteAlsoStopped] true
to stop SCM (KUDU)
@@ -5916,29 +5977,6 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {string} [cloningInfo.trafficManagerProfileName] Name of Traffic
* Manager profile to create. This is only needed if Traffic Manager profile
* does not already exist.
- * @member {boolean} [cloningInfo.ignoreQuotas] true
if quotas
- * should be ignored; otherwise, false
.
- * @member {object} [snapshotInfo] If specified during app creation, the app is
- * created from a previous snapshot.
- * @member {string} [snapshotInfo.snapshotTime] Point in time in which the app
- * recovery should be attempted, formatted as a DateTime string.
- * @member {object} [snapshotInfo.recoveryTarget] Specifies the web app that
- * snapshot contents will be written to.
- * @member {string} [snapshotInfo.recoveryTarget.location] Geographical
- * location of the target web app, e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [snapshotInfo.recoveryTarget.id] ARM resource ID of the
- * target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- * @member {boolean} [snapshotInfo.overwrite] If true
the recovery
- * operation can overwrite source app; otherwise, false
.
- * @member {boolean} [snapshotInfo.recoverConfiguration] If true, site
- * configuration, in addition to content, will be reverted.
- * @member {boolean} [snapshotInfo.ignoreConflictingHostNames] If true, custom
- * hostname conflicts will be ignored when recovering to a target web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
* @member {string} [resourceGroup] Name of the resource group the app belongs
* to. Read-only.
* @member {boolean} [isDefaultContainer] true
if the app is a
@@ -5967,6 +6005,7 @@ export interface SitePatchResource extends ProxyOnlyResource {
hostNameSslStates?: HostNameSslState[];
serverFarmId?: string;
reserved?: boolean;
+ isXenon?: boolean;
readonly lastModifiedTimeUtc?: Date;
siteConfig?: SiteConfig;
readonly trafficManagerHostNames?: string[];
@@ -5983,7 +6022,6 @@ export interface SitePatchResource extends ProxyOnlyResource {
readonly suspendedTill?: Date;
readonly maxNumberOfWorkers?: number;
cloningInfo?: CloningInfo;
- snapshotInfo?: SnapshotRecoveryRequest;
readonly resourceGroup?: string;
readonly isDefaultContainer?: boolean;
readonly defaultHostName?: string;
@@ -6054,8 +6092,8 @@ export interface SlotConfigNamesResource extends ProxyOnlyResource {
* @constructor
* A setting difference between two deployment slots of an app.
*
- * @member {string} [slotDifferenceType] Type of the difference: Information,
- * Warning or Error.
+ * @member {string} [level] Level of the difference: Information, Warning or
+ * Error.
* @member {string} [settingType] The type of the setting: General, AppSetting
* or ConnectionString.
* @member {string} [diffRule] Rule that describes how to process the setting
@@ -6068,7 +6106,7 @@ export interface SlotConfigNamesResource extends ProxyOnlyResource {
* @member {string} [description] Description of the setting difference.
*/
export interface SlotDifference extends ProxyOnlyResource {
- readonly slotDifferenceType?: string;
+ readonly level?: string;
readonly settingType?: string;
readonly diffRule?: string;
readonly settingName?: string;
@@ -6079,14 +6117,55 @@ export interface SlotDifference extends ProxyOnlyResource {
/**
* @class
- * Initializes a new instance of the Snapshot class.
+ * Initializes a new instance of the SnapshotRecoverySource class.
* @constructor
- * A snapshot of an app.
+ * Specifies the web app that snapshot contents will be retrieved from.
*
- * @member {string} [time] The time the snapshot was taken.
+ * @member {string} [location] Geographical location of the source web app,
+ * e.g. SouthEastAsia, SouthCentralUS
+ * @member {string} [id] ARM resource ID of the source app.
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
+ * for production slots and
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
+ * for other slots.
*/
-export interface Snapshot extends ProxyOnlyResource {
- readonly time?: string;
+export interface SnapshotRecoverySource {
+ location?: string;
+ id?: string;
+}
+
+/**
+ * @class
+ * Initializes a new instance of the SnapshotRestoreRequest class.
+ * @constructor
+ * Details about app recovery operation.
+ *
+ * @member {string} [snapshotTime] Point in time in which the app restore
+ * should be done, formatted as a DateTime string.
+ * @member {object} [recoverySource] Optional. Specifies the web app that
+ * snapshot contents will be retrieved from.
+ * If empty, the targeted web app will be used as the source.
+ * @member {string} [recoverySource.location] Geographical location of the
+ * source web app, e.g. SouthEastAsia, SouthCentralUS
+ * @member {string} [recoverySource.id] ARM resource ID of the source app.
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
+ * for production slots and
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
+ * for other slots.
+ * @member {boolean} overwrite If true
the restore operation can
+ * overwrite source app; otherwise, false
.
+ * @member {boolean} [recoverConfiguration] If true, site configuration, in
+ * addition to content, will be reverted.
+ * @member {boolean} [ignoreConflictingHostNames] If true, custom hostname
+ * conflicts will be ignored when recovering to a target web app.
+ * This setting is only necessary when RecoverConfiguration is enabled.
+ */
+export interface SnapshotRestoreRequest extends ProxyOnlyResource {
+ snapshotTime?: string;
+ recoverySource?: SnapshotRecoverySource;
+ overwrite: boolean;
+ recoverConfiguration?: boolean;
+ ignoreConflictingHostNames?: boolean;
}
/**
@@ -6136,14 +6215,32 @@ export interface StringDictionary extends ProxyOnlyResource {
properties?: { [propertyName: string]: string };
}
+/**
+ * @class
+ * Initializes a new instance of the SwiftVirtualNetwork class.
+ * @constructor
+ * Swift Virtual Network Contract. This is used to enable the new Swift way of
+ * doing virtual network integration.
+ *
+ * @member {string} [subnetResourceId] The Virtual Network subnet's resource
+ * ID. This is the subnet that this Web App will join. This subnet must have a
+ * delegation to Microsoft.Web/serverFarms defined first.
+ * @member {boolean} [swiftSupported] A flag that specifies if the scale unit
+ * this Web App is on supports Swift integration.
+ */
+export interface SwiftVirtualNetwork extends ProxyOnlyResource {
+ subnetResourceId?: string;
+ swiftSupported?: boolean;
+}
+
/**
* @class
* Initializes a new instance of the TriggeredJobRun class.
* @constructor
* Triggered Web Job Run Information.
*
- * @member {string} [triggeredJobRunId] Job ID.
- * @member {string} [triggeredJobRunName] Job name.
+ * @member {string} [webJobId] Job ID.
+ * @member {string} [webJobName] Job name.
* @member {string} [status] Job status. Possible values include: 'Success',
* 'Failed', 'Error'
* @member {date} [startTime] Start time.
@@ -6156,8 +6253,8 @@ export interface StringDictionary extends ProxyOnlyResource {
* @member {string} [trigger] Job trigger.
*/
export interface TriggeredJobRun extends ProxyOnlyResource {
- triggeredJobRunId?: string;
- readonly triggeredJobRunName?: string;
+ webJobId?: string;
+ webJobName?: string;
status?: string;
startTime?: Date;
endTime?: Date;
@@ -6176,10 +6273,10 @@ export interface TriggeredJobRun extends ProxyOnlyResource {
* Triggered Web Job History. List of Triggered Web Job Run Information
* elements.
*
- * @member {array} [triggeredJobRuns] List of triggered web job runs.
+ * @member {array} [runs] List of triggered web job runs.
*/
export interface TriggeredJobHistory extends ProxyOnlyResource {
- triggeredJobRuns?: TriggeredJobRun[];
+ runs?: TriggeredJobRun[];
}
/**
@@ -6189,8 +6286,8 @@ export interface TriggeredJobHistory extends ProxyOnlyResource {
* Triggered Web Job Information.
*
* @member {object} [latestRun] Latest job run information.
- * @member {string} [latestRun.triggeredJobRunId] Job ID.
- * @member {string} [latestRun.triggeredJobRunName] Job name.
+ * @member {string} [latestRun.webJobId] Job ID.
+ * @member {string} [latestRun.webJobName] Job name.
* @member {string} [latestRun.status] Job status. Possible values include:
* 'Success', 'Failed', 'Error'
* @member {date} [latestRun.startTime] Start time.
@@ -6203,13 +6300,11 @@ export interface TriggeredJobHistory extends ProxyOnlyResource {
* @member {string} [latestRun.trigger] Job trigger.
* @member {string} [historyUrl] History URL.
* @member {string} [schedulerLogsUrl] Scheduler Logs URL.
- * @member {string} [triggeredWebJobName] Job name. Used as job identifier in
- * ARM resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include: 'Continuous',
- * 'Triggered'
+ * @member {string} [webJobType] Job type. Possible values include:
+ * 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
* @member {object} [settings] Job settings.
@@ -6218,11 +6313,10 @@ export interface TriggeredWebJob extends ProxyOnlyResource {
latestRun?: TriggeredJobRun;
historyUrl?: string;
schedulerLogsUrl?: string;
- readonly triggeredWebJobName?: string;
runCommand?: string;
url?: string;
extraInfoUrl?: string;
- jobType?: string;
+ webJobType?: string;
error?: string;
usingSdk?: boolean;
settings?: { [propertyName: string]: any };
@@ -6234,23 +6328,20 @@ export interface TriggeredWebJob extends ProxyOnlyResource {
* @constructor
* Web Job Information.
*
- * @member {string} [webJobName] Job name. Used as job identifier in ARM
- * resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include: 'Continuous',
- * 'Triggered'
+ * @member {string} [webJobType] Job type. Possible values include:
+ * 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
* @member {object} [settings] Job settings.
*/
export interface WebJob extends ProxyOnlyResource {
- readonly webJobName?: string;
runCommand?: string;
url?: string;
extraInfoUrl?: string;
- jobType?: string;
+ webJobType?: string;
error?: string;
usingSdk?: boolean;
settings?: { [propertyName: string]: any };
@@ -6360,6 +6451,12 @@ export interface AddressResponse {
* of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to whitelist
* on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
export interface AppServiceEnvironmentResource extends Resource {
appServiceEnvironmentResourceName: string;
@@ -6398,6 +6495,9 @@ export interface AppServiceEnvironmentResource extends Resource {
dynamicCacheEnabled?: boolean;
clusterSettings?: NameValuePair[];
userWhitelistedIpRanges?: string[];
+ hasLinuxWorkers?: boolean;
+ sslCertKeyVaultId?: string;
+ sslCertKeyVaultSecretName?: string;
}
/**
@@ -6484,6 +6584,12 @@ export interface AppServiceEnvironmentResource extends Resource {
* of the App Service Environment.
* @member {array} [userWhitelistedIpRanges] User added ip ranges to whitelist
* on ASE db
+ * @member {boolean} [hasLinuxWorkers] Flag that displays whether an ASE has
+ * linux workers or not
+ * @member {string} [sslCertKeyVaultId] Key Vault ID for ILB App Service
+ * Environment default SSL certificate
+ * @member {string} [sslCertKeyVaultSecretName] Key Vault Secret Name for ILB
+ * App Service Environment default SSL certificate
*/
export interface AppServiceEnvironmentPatchResource extends ProxyOnlyResource {
appServiceEnvironmentPatchResourceName: string;
@@ -6522,6 +6628,9 @@ export interface AppServiceEnvironmentPatchResource extends ProxyOnlyResource {
dynamicCacheEnabled?: boolean;
clusterSettings?: NameValuePair[];
userWhitelistedIpRanges?: string[];
+ hasLinuxWorkers?: boolean;
+ sslCertKeyVaultId?: string;
+ sslCertKeyVaultSecretName?: string;
}
/**
@@ -6558,7 +6667,6 @@ export interface MetricAvailabilily {
* @constructor
* Metadata for a metric.
*
- * @member {string} [metricDefinitionName] Name of the metric.
* @member {string} [unit] Unit of the metric.
* @member {string} [primaryAggregationType] Primary aggregation type.
* @member {array} [metricAvailabilities] List of time grains supported for the
@@ -6566,7 +6674,6 @@ export interface MetricAvailabilily {
* @member {string} [displayName] Friendly name shown in the UI.
*/
export interface MetricDefinition extends ProxyOnlyResource {
- readonly metricDefinitionName?: string;
readonly unit?: string;
readonly primaryAggregationType?: string;
readonly metricAvailabilities?: MetricAvailabilily[];
@@ -6623,7 +6730,6 @@ export interface SkuInfo {
* Usage of the quota resource.
*
* @member {string} [displayName] Friendly name shown in the UI.
- * @member {string} [usageName] Name of the quota.
* @member {string} [resourceName] Name of the quota resource.
* @member {string} [unit] Units of measurement for the quota resource.
* @member {number} [currentValue] The current value of the resource counter.
@@ -6635,7 +6741,6 @@ export interface SkuInfo {
*/
export interface Usage extends ProxyOnlyResource {
readonly displayName?: string;
- readonly usageName?: string;
readonly resourceName?: string;
readonly unit?: string;
readonly currentValue?: number;
@@ -6695,8 +6800,6 @@ export interface WorkerPoolResource extends ProxyOnlyResource {
* @constructor
* ARM resource for a app service plan.
*
- * @member {string} appServicePlanPatchResourceName Name for the App Service
- * plan.
* @member {string} [workerTierName] Target worker tier assigned to the App
* Service plan.
* @member {string} [status] App Service plan status. Possible values include:
@@ -6724,9 +6827,13 @@ export interface WorkerPoolResource extends ProxyOnlyResource {
* spot instances.
* @member {date} [spotExpirationTime] The time when the server farm expires.
* Valid only if it is a spot server farm.
+ * @member {date} [freeOfferExpirationTime] The time when the server farm free
+ * offer expires.
* @member {string} [resourceGroup] Resource group of the App Service plan.
* @member {boolean} [reserved] If Linux app service plan true
,
* false
otherwise. Default value: false .
+ * @member {boolean} [isXenon] If Hyper-V container app service plan
+ * true
, false
otherwise. Default value: false .
* @member {number} [targetWorkerCount] Scaling worker count.
* @member {number} [targetWorkerSizeId] Scaling worker size ID.
* @member {string} [provisioningState] Provisioning state of the App Service
@@ -6734,7 +6841,6 @@ export interface WorkerPoolResource extends ProxyOnlyResource {
* 'InProgress', 'Deleting'
*/
export interface AppServicePlanPatchResource extends ProxyOnlyResource {
- appServicePlanPatchResourceName: string;
workerTierName?: string;
readonly status?: string;
readonly subscription?: string;
@@ -6746,8 +6852,10 @@ export interface AppServicePlanPatchResource extends ProxyOnlyResource {
readonly numberOfSites?: number;
isSpot?: boolean;
spotExpirationTime?: Date;
+ freeOfferExpirationTime?: Date;
readonly resourceGroup?: string;
reserved?: boolean;
+ isXenon?: boolean;
targetWorkerCount?: number;
targetWorkerSizeId?: number;
readonly provisioningState?: string;
@@ -6963,25 +7071,25 @@ export interface RecommendationCollection extends Array {
/**
* @class
- * Initializes a new instance of the ResourceHealthMetadataCollection class.
+ * Initializes a new instance of the SourceControlCollection class.
* @constructor
- * Collection of resource health metadata.
+ * Collection of source controls.
*
* @member {string} [nextLink] Link to next page of resources.
*/
-export interface ResourceHealthMetadataCollection extends Array {
+export interface SourceControlCollection extends Array {
readonly nextLink?: string;
}
/**
* @class
- * Initializes a new instance of the SourceControlCollection class.
+ * Initializes a new instance of the BillingMeterCollection class.
* @constructor
- * Collection of source controls.
+ * Collection of Billing Meters
*
* @member {string} [nextLink] Link to next page of resources.
*/
-export interface SourceControlCollection extends Array {
+export interface BillingMeterCollection extends Array {
readonly nextLink?: string;
}
@@ -7021,18 +7129,6 @@ export interface PremierAddOnOfferCollection extends Array {
readonly nextLink?: string;
}
-/**
- * @class
- * Initializes a new instance of the BillingMeterCollection class.
- * @constructor
- * Collection of Billing Meters
- *
- * @member {string} [nextLink] Link to next page of resources.
- */
-export interface BillingMeterCollection extends Array {
- readonly nextLink?: string;
-}
-
/**
* @class
* Initializes a new instance of the WebAppCollection class.
@@ -7091,7 +7187,7 @@ export interface SiteConfigurationSnapshotInfoCollection extends Array {
- nextLink?: string;
+ readonly nextLink?: string;
}
/**
@@ -7380,7 +7476,7 @@ export interface UsageCollection extends Array {
* @member {string} [nextLink] Link to next page of resources.
*/
export interface AppServicePlanCollection extends Array {
- nextLink?: string;
+ readonly nextLink?: string;
}
/**
diff --git a/lib/services/websiteManagement2/lib/models/index.js b/lib/services/websiteManagement2/lib/models/index.js
index 2e4f391d06..af3e9c3c98 100644
--- a/lib/services/websiteManagement2/lib/models/index.js
+++ b/lib/services/websiteManagement2/lib/models/index.js
@@ -36,10 +36,8 @@ exports.VnetRoute = require('./vnetRoute');
exports.VnetInfo = require('./vnetInfo');
exports.VnetGateway = require('./vnetGateway');
exports.User = require('./user');
-exports.SnapshotRecoveryTarget = require('./snapshotRecoveryTarget');
-exports.SnapshotRecoveryRequest = require('./snapshotRecoveryRequest');
+exports.Snapshot = require('./snapshot');
exports.ResourceMetricAvailability = require('./resourceMetricAvailability');
-exports.ResourceMetricName = require('./resourceMetricName');
exports.ResourceMetricDefinition = require('./resourceMetricDefinition');
exports.PushSettings = require('./pushSettings');
exports.Identifier = require('./identifier');
@@ -75,7 +73,11 @@ exports.Capability = require('./capability');
exports.SkuCapacity = require('./skuCapacity');
exports.SkuDescription = require('./skuDescription');
exports.AppServicePlan = require('./appServicePlan');
+exports.DefaultErrorResponseErrorDetailsItem = require('./defaultErrorResponseErrorDetailsItem');
+exports.DefaultErrorResponseError = require('./defaultErrorResponseError');
+exports.DefaultErrorResponse = require('./defaultErrorResponse');
exports.NameIdentifier = require('./nameIdentifier');
+exports.LogSpecification = require('./logSpecification');
exports.MetricAvailability = require('./metricAvailability');
exports.Dimension = require('./dimension');
exports.MetricSpecification = require('./metricSpecification');
@@ -93,7 +95,6 @@ exports.DomainControlCenterSsoRequest = require('./domainControlCenterSsoRequest
exports.DomainOwnershipIdentifier = require('./domainOwnershipIdentifier');
exports.DomainPatchResource = require('./domainPatchResource');
exports.DomainRecommendationSearchParameters = require('./domainRecommendationSearchParameters');
-exports.ErrorResponse = require('./errorResponse');
exports.TldLegalAgreement = require('./tldLegalAgreement');
exports.TopLevelDomain = require('./topLevelDomain');
exports.TopLevelDomainAgreementOption = require('./topLevelDomainAgreementOption');
@@ -107,15 +108,13 @@ exports.NetworkAccessControlEntry = require('./networkAccessControlEntry');
exports.AppServiceEnvironment = require('./appServiceEnvironment');
exports.LocalizableString = require('./localizableString');
exports.CsmUsageQuota = require('./csmUsageQuota');
+exports.DeletedSite = require('./deletedSite');
exports.ErrorEntity = require('./errorEntity');
-exports.DefaultErrorResponseErrorDetailsItem = require('./defaultErrorResponseErrorDetailsItem');
-exports.DefaultErrorResponseError = require('./defaultErrorResponseError');
-exports.DefaultErrorResponse = require('./defaultErrorResponse');
exports.Operation = require('./operation');
+exports.ResourceMetricName = require('./resourceMetricName');
exports.ResourceMetricProperty = require('./resourceMetricProperty');
exports.ResourceMetricValue = require('./resourceMetricValue');
exports.ResourceMetric = require('./resourceMetric');
-exports.DeletedSite = require('./deletedSite');
exports.Solution = require('./solution');
exports.DetectorAbnormalTimePeriod = require('./detectorAbnormalTimePeriod');
exports.AbnormalTimePeriod = require('./abnormalTimePeriod');
@@ -140,7 +139,6 @@ exports.StackMajorVersion = require('./stackMajorVersion');
exports.ApplicationStack = require('./applicationStack');
exports.Recommendation = require('./recommendation');
exports.RecommendationRule = require('./recommendationRule');
-exports.ResourceHealthMetadata = require('./resourceHealthMetadata');
exports.BillingMeter = require('./billingMeter');
exports.CsmMoveResourceEnvelope = require('./csmMoveResourceEnvelope');
exports.GeoRegion = require('./geoRegion');
@@ -173,6 +171,7 @@ exports.ContinuousWebJob = require('./continuousWebJob');
exports.CsmPublishingProfileOptions = require('./csmPublishingProfileOptions');
exports.CsmSlotEntity = require('./csmSlotEntity');
exports.CustomHostnameAnalysisResult = require('./customHostnameAnalysisResult');
+exports.DeletedAppRestoreRequest = require('./deletedAppRestoreRequest');
exports.Deployment = require('./deployment');
exports.EnabledConfig = require('./enabledConfig');
exports.FileSystemHttpLogsConfig = require('./fileSystemHttpLogsConfig');
@@ -192,12 +191,15 @@ exports.PerfMonSample = require('./perfMonSample');
exports.PerfMonSet = require('./perfMonSet');
exports.PerfMonResponse = require('./perfMonResponse');
exports.PremierAddOn = require('./premierAddOn');
+exports.PremierAddOnPatchResource = require('./premierAddOnPatchResource');
+exports.PrivateAccessSubnet = require('./privateAccessSubnet');
+exports.PrivateAccessVirtualNetwork = require('./privateAccessVirtualNetwork');
+exports.PrivateAccess = require('./privateAccess');
exports.ProcessThreadInfo = require('./processThreadInfo');
exports.ProcessModuleInfo = require('./processModuleInfo');
exports.ProcessInfo = require('./processInfo');
exports.PublicCertificate = require('./publicCertificate');
exports.RestoreRequest = require('./restoreRequest');
-exports.RestoreResponse = require('./restoreResponse');
exports.SiteAuthSettings = require('./siteAuthSettings');
exports.SiteCloneabilityCriterion = require('./siteCloneabilityCriterion');
exports.SiteCloneability = require('./siteCloneability');
@@ -211,10 +213,12 @@ exports.SitePhpErrorLogFlag = require('./sitePhpErrorLogFlag');
exports.SiteSourceControl = require('./siteSourceControl');
exports.SlotConfigNamesResource = require('./slotConfigNamesResource');
exports.SlotDifference = require('./slotDifference');
-exports.Snapshot = require('./snapshot');
+exports.SnapshotRecoverySource = require('./snapshotRecoverySource');
+exports.SnapshotRestoreRequest = require('./snapshotRestoreRequest');
exports.StorageMigrationOptions = require('./storageMigrationOptions');
exports.StorageMigrationResponse = require('./storageMigrationResponse');
exports.StringDictionary = require('./stringDictionary');
+exports.SwiftVirtualNetwork = require('./swiftVirtualNetwork');
exports.TriggeredJobRun = require('./triggeredJobRun');
exports.TriggeredJobHistory = require('./triggeredJobHistory');
exports.TriggeredWebJob = require('./triggeredWebJob');
@@ -246,12 +250,11 @@ exports.DiagnosticAnalysisCollection = require('./diagnosticAnalysisCollection')
exports.DiagnosticDetectorCollection = require('./diagnosticDetectorCollection');
exports.ApplicationStackCollection = require('./applicationStackCollection');
exports.RecommendationCollection = require('./recommendationCollection');
-exports.ResourceHealthMetadataCollection = require('./resourceHealthMetadataCollection');
exports.SourceControlCollection = require('./sourceControlCollection');
+exports.BillingMeterCollection = require('./billingMeterCollection');
exports.GeoRegionCollection = require('./geoRegionCollection');
exports.IdentifierCollection = require('./identifierCollection');
exports.PremierAddOnOfferCollection = require('./premierAddOnOfferCollection');
-exports.BillingMeterCollection = require('./billingMeterCollection');
exports.WebAppCollection = require('./webAppCollection');
exports.BackupItemCollection = require('./backupItemCollection');
exports.SiteConfigResourceCollection = require('./siteConfigResourceCollection');
diff --git a/lib/services/websiteManagement2/lib/models/ipSecurityRestriction.js b/lib/services/websiteManagement2/lib/models/ipSecurityRestriction.js
index c9589edfc8..7442dc0ebd 100644
--- a/lib/services/websiteManagement2/lib/models/ipSecurityRestriction.js
+++ b/lib/services/websiteManagement2/lib/models/ipSecurityRestriction.js
@@ -19,8 +19,18 @@ class IpSecurityRestriction {
* Create a IpSecurityRestriction.
* @member {string} ipAddress IP address the security restriction is valid
* for.
+ * It can be in form of pure ipv4 address (required SubnetMask property) or
+ * CIDR notation such as ipv4/mask (leading bit match). For CIDR,
+ * SubnetMask property must not be specified.
* @member {string} [subnetMask] Subnet mask for the range of IP addresses
* the restriction is valid for.
+ * @member {string} [action] Allow or Deny access for this IP range.
+ * @member {string} [tag] Defines what this IP filter will be used for. This
+ * is to support IP filtering on proxies. Possible values include: 'Default',
+ * 'XffProxy'
+ * @member {number} [priority] Priority of IP restriction rule.
+ * @member {string} [name] IP restriction rule name.
+ * @member {string} [description] IP restriction rule description.
*/
constructor() {
}
@@ -52,6 +62,42 @@ class IpSecurityRestriction {
type: {
name: 'String'
}
+ },
+ action: {
+ required: false,
+ serializedName: 'action',
+ type: {
+ name: 'String'
+ }
+ },
+ tag: {
+ required: false,
+ serializedName: 'tag',
+ type: {
+ name: 'Enum',
+ allowedValues: [ 'Default', 'XffProxy' ]
+ }
+ },
+ priority: {
+ required: false,
+ serializedName: 'priority',
+ type: {
+ name: 'Number'
+ }
+ },
+ name: {
+ required: false,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ description: {
+ required: false,
+ serializedName: 'description',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/logSpecification.js b/lib/services/websiteManagement2/lib/models/logSpecification.js
new file mode 100644
index 0000000000..afeeeca8e1
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/logSpecification.js
@@ -0,0 +1,68 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+/**
+ * Log Definition of a single resource metric.
+ *
+ */
+class LogSpecification {
+ /**
+ * Create a LogSpecification.
+ * @member {string} [name]
+ * @member {string} [displayName]
+ * @member {string} [blobDuration]
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of LogSpecification
+ *
+ * @returns {object} metadata of LogSpecification
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'LogSpecification',
+ type: {
+ name: 'Composite',
+ className: 'LogSpecification',
+ modelProperties: {
+ name: {
+ required: false,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ displayName: {
+ required: false,
+ serializedName: 'displayName',
+ type: {
+ name: 'String'
+ }
+ },
+ blobDuration: {
+ required: false,
+ serializedName: 'blobDuration',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = LogSpecification;
diff --git a/lib/services/websiteManagement2/lib/models/managedServiceIdentity.js b/lib/services/websiteManagement2/lib/models/managedServiceIdentity.js
index 1b38e8c693..1729031497 100644
--- a/lib/services/websiteManagement2/lib/models/managedServiceIdentity.js
+++ b/lib/services/websiteManagement2/lib/models/managedServiceIdentity.js
@@ -18,9 +18,11 @@ class ManagedServiceIdentity {
/**
* Create a ManagedServiceIdentity.
* @member {string} [type] Type of managed service identity. Possible values
- * include: 'SystemAssigned'
+ * include: 'SystemAssigned', 'UserAssigned'
* @member {string} [tenantId] Tenant of managed service identity.
* @member {string} [principalId] Principal Id of managed service identity.
+ * @member {array} [identityIds] Array of UserAssigned managed service
+ * identities.
*/
constructor() {
}
@@ -61,6 +63,20 @@ class ManagedServiceIdentity {
type: {
name: 'String'
}
+ },
+ identityIds: {
+ required: false,
+ serializedName: 'identityIds',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/metricDefinition.js b/lib/services/websiteManagement2/lib/models/metricDefinition.js
index 7ef23aa4c1..e42fa83b2a 100644
--- a/lib/services/websiteManagement2/lib/models/metricDefinition.js
+++ b/lib/services/websiteManagement2/lib/models/metricDefinition.js
@@ -20,7 +20,6 @@ const models = require('./index');
class MetricDefinition extends models['ProxyOnlyResource'] {
/**
* Create a MetricDefinition.
- * @member {string} [metricDefinitionName] Name of the metric.
* @member {string} [unit] Unit of the metric.
* @member {string} [primaryAggregationType] Primary aggregation type.
* @member {array} [metricAvailabilities] List of time grains supported for
@@ -76,14 +75,6 @@ class MetricDefinition extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- metricDefinitionName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
unit: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/perfMonSample.js b/lib/services/websiteManagement2/lib/models/perfMonSample.js
index f7882a7d2e..e88148d9b9 100644
--- a/lib/services/websiteManagement2/lib/models/perfMonSample.js
+++ b/lib/services/websiteManagement2/lib/models/perfMonSample.js
@@ -21,7 +21,6 @@ class PerfMonSample {
* @member {string} [instanceName] Name of the server on which the
* measurement is made.
* @member {number} [value] Value of counter at a certain time.
- * @member {number} [coreCount] Core Count of worker. Not a data member
*/
constructor() {
}
@@ -60,13 +59,6 @@ class PerfMonSample {
type: {
name: 'Number'
}
- },
- coreCount: {
- required: false,
- serializedName: 'coreCount',
- type: {
- name: 'Number'
- }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/premierAddOn.js b/lib/services/websiteManagement2/lib/models/premierAddOn.js
index ac3d6c9e2f..c0db87d43b 100644
--- a/lib/services/websiteManagement2/lib/models/premierAddOn.js
+++ b/lib/services/websiteManagement2/lib/models/premierAddOn.js
@@ -23,9 +23,6 @@ class PremierAddOn extends models['Resource'] {
* @member {string} [sku] Premier add on SKU.
* @member {string} [product] Premier add on Product.
* @member {string} [vendor] Premier add on Vendor.
- * @member {string} [premierAddOnName] Premier add on Name.
- * @member {string} [premierAddOnLocation] Premier add on Location.
- * @member {object} [premierAddOnTags] Premier add on Tags.
* @member {string} [marketplacePublisher] Premier add on Marketplace
* publisher.
* @member {string} [marketplaceOffer] Premier add on Marketplace offer.
@@ -121,34 +118,6 @@ class PremierAddOn extends models['Resource'] {
name: 'String'
}
},
- premierAddOnName: {
- required: false,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
- premierAddOnLocation: {
- required: false,
- serializedName: 'properties.location',
- type: {
- name: 'String'
- }
- },
- premierAddOnTags: {
- required: false,
- serializedName: 'properties.tags',
- type: {
- name: 'Dictionary',
- value: {
- required: false,
- serializedName: 'StringElementType',
- type: {
- name: 'String'
- }
- }
- }
- },
marketplacePublisher: {
required: false,
serializedName: 'properties.marketplacePublisher',
diff --git a/lib/services/websiteManagement2/lib/models/premierAddOnOffer.js b/lib/services/websiteManagement2/lib/models/premierAddOnOffer.js
index 2252e8969a..919328a6d8 100644
--- a/lib/services/websiteManagement2/lib/models/premierAddOnOffer.js
+++ b/lib/services/websiteManagement2/lib/models/premierAddOnOffer.js
@@ -23,7 +23,6 @@ class PremierAddOnOffer extends models['ProxyOnlyResource'] {
* @member {string} [sku] Premier add on SKU.
* @member {string} [product] Premier add on offer Product.
* @member {string} [vendor] Premier add on offer Vendor.
- * @member {string} [premierAddOnOfferName] Premier add on offer Name.
* @member {boolean} [promoCodeRequired] true
if promotion code
* is required; otherwise, false
.
* @member {number} [quota] Premier add on offer Quota.
@@ -105,13 +104,6 @@ class PremierAddOnOffer extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- premierAddOnOfferName: {
- required: false,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
promoCodeRequired: {
required: false,
serializedName: 'properties.promoCodeRequired',
diff --git a/lib/services/websiteManagement2/lib/models/premierAddOnPatchResource.js b/lib/services/websiteManagement2/lib/models/premierAddOnPatchResource.js
new file mode 100644
index 0000000000..9c9e00fe7f
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/premierAddOnPatchResource.js
@@ -0,0 +1,120 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * ARM resource for a PremierAddOn.
+ *
+ * @extends models['ProxyOnlyResource']
+ */
+class PremierAddOnPatchResource extends models['ProxyOnlyResource'] {
+ /**
+ * Create a PremierAddOnPatchResource.
+ * @member {string} [sku] Premier add on SKU.
+ * @member {string} [product] Premier add on Product.
+ * @member {string} [vendor] Premier add on Vendor.
+ * @member {string} [marketplacePublisher] Premier add on Marketplace
+ * publisher.
+ * @member {string} [marketplaceOffer] Premier add on Marketplace offer.
+ */
+ constructor() {
+ super();
+ }
+
+ /**
+ * Defines the metadata of PremierAddOnPatchResource
+ *
+ * @returns {object} metadata of PremierAddOnPatchResource
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'PremierAddOnPatchResource',
+ type: {
+ name: 'Composite',
+ className: 'PremierAddOnPatchResource',
+ modelProperties: {
+ id: {
+ required: false,
+ readOnly: true,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ readOnly: true,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ kind: {
+ required: false,
+ serializedName: 'kind',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ readOnly: true,
+ serializedName: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ sku: {
+ required: false,
+ serializedName: 'properties.sku',
+ type: {
+ name: 'String'
+ }
+ },
+ product: {
+ required: false,
+ serializedName: 'properties.product',
+ type: {
+ name: 'String'
+ }
+ },
+ vendor: {
+ required: false,
+ serializedName: 'properties.vendor',
+ type: {
+ name: 'String'
+ }
+ },
+ marketplacePublisher: {
+ required: false,
+ serializedName: 'properties.marketplacePublisher',
+ type: {
+ name: 'String'
+ }
+ },
+ marketplaceOffer: {
+ required: false,
+ serializedName: 'properties.marketplaceOffer',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = PremierAddOnPatchResource;
diff --git a/lib/services/websiteManagement2/lib/models/privateAccess.js b/lib/services/websiteManagement2/lib/models/privateAccess.js
new file mode 100644
index 0000000000..b85b137319
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/privateAccess.js
@@ -0,0 +1,104 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * Description of the parameters of Private Access for a Web Site.
+ *
+ * @extends models['ProxyOnlyResource']
+ */
+class PrivateAccess extends models['ProxyOnlyResource'] {
+ /**
+ * Create a PrivateAccess.
+ * @member {boolean} [enabled] Whether private access is enabled or not.
+ * @member {array} [virtualNetworks] The Virtual Networks (and subnets)
+ * allowed to access the site privately.
+ */
+ constructor() {
+ super();
+ }
+
+ /**
+ * Defines the metadata of PrivateAccess
+ *
+ * @returns {object} metadata of PrivateAccess
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'PrivateAccess',
+ type: {
+ name: 'Composite',
+ className: 'PrivateAccess',
+ modelProperties: {
+ id: {
+ required: false,
+ readOnly: true,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ readOnly: true,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ kind: {
+ required: false,
+ serializedName: 'kind',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ readOnly: true,
+ serializedName: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ enabled: {
+ required: false,
+ serializedName: 'properties.enabled',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ virtualNetworks: {
+ required: false,
+ serializedName: 'properties.virtualNetworks',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'PrivateAccessVirtualNetworkElementType',
+ type: {
+ name: 'Composite',
+ className: 'PrivateAccessVirtualNetwork'
+ }
+ }
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = PrivateAccess;
diff --git a/lib/services/websiteManagement2/lib/models/privateAccessSubnet.js b/lib/services/websiteManagement2/lib/models/privateAccessSubnet.js
new file mode 100644
index 0000000000..8390dc0093
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/privateAccessSubnet.js
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+/**
+ * Description of a Virtual Network subnet that is useable for private site
+ * access.
+ *
+ */
+class PrivateAccessSubnet {
+ /**
+ * Create a PrivateAccessSubnet.
+ * @member {string} [name] The name of the subnet.
+ * @member {number} [key] The key (ID) of the subnet.
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of PrivateAccessSubnet
+ *
+ * @returns {object} metadata of PrivateAccessSubnet
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'PrivateAccessSubnet',
+ type: {
+ name: 'Composite',
+ className: 'PrivateAccessSubnet',
+ modelProperties: {
+ name: {
+ required: false,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ key: {
+ required: false,
+ serializedName: 'key',
+ type: {
+ name: 'Number'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = PrivateAccessSubnet;
diff --git a/lib/services/websiteManagement2/lib/models/privateAccessVirtualNetwork.js b/lib/services/websiteManagement2/lib/models/privateAccessVirtualNetwork.js
new file mode 100644
index 0000000000..635dd40054
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/privateAccessVirtualNetwork.js
@@ -0,0 +1,88 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * Description of a Virtual Network that is useable for private site access.
+ *
+ */
+class PrivateAccessVirtualNetwork {
+ /**
+ * Create a PrivateAccessVirtualNetwork.
+ * @member {string} [name] The name of the Virtual Network.
+ * @member {number} [key] The key (ID) of the Virtual Network.
+ * @member {string} [resourceId] The ARM uri of the Virtual Network
+ * @member {array} [subnets] A List of subnets that access is allowed to on
+ * this Virtual Network. An empty array (but not null) is interpreted to mean
+ * that all subnets are allowed within this Virtual Network.
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of PrivateAccessVirtualNetwork
+ *
+ * @returns {object} metadata of PrivateAccessVirtualNetwork
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'PrivateAccessVirtualNetwork',
+ type: {
+ name: 'Composite',
+ className: 'PrivateAccessVirtualNetwork',
+ modelProperties: {
+ name: {
+ required: false,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ key: {
+ required: false,
+ serializedName: 'key',
+ type: {
+ name: 'Number'
+ }
+ },
+ resourceId: {
+ required: false,
+ serializedName: 'resourceId',
+ type: {
+ name: 'String'
+ }
+ },
+ subnets: {
+ required: false,
+ serializedName: 'subnets',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'PrivateAccessSubnetElementType',
+ type: {
+ name: 'Composite',
+ className: 'PrivateAccessSubnet'
+ }
+ }
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = PrivateAccessVirtualNetwork;
diff --git a/lib/services/websiteManagement2/lib/models/processInfo.js b/lib/services/websiteManagement2/lib/models/processInfo.js
index 094583fabf..1fc4d90c98 100644
--- a/lib/services/websiteManagement2/lib/models/processInfo.js
+++ b/lib/services/websiteManagement2/lib/models/processInfo.js
@@ -20,10 +20,10 @@ const models = require('./index');
class ProcessInfo extends models['ProxyOnlyResource'] {
/**
* Create a ProcessInfo.
- * @member {number} [processInfoId] ARM Identifier for deployment.
- * @member {string} [processInfoName] Deployment name.
+ * @member {number} [identifier] ARM Identifier for deployment.
+ * @member {string} [deploymentName] Deployment name.
* @member {string} [href] HRef URI.
- * @member {string} [miniDump] Minidump URI.
+ * @member {string} [minidump] Minidump URI.
* @member {boolean} [isProfileRunning] Is profile running?
* @member {boolean} [isIisProfileRunning] Is the IIS Profile running?
* @member {number} [iisProfileTimeoutInSeconds] IIS Profile timeout
@@ -40,22 +40,22 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
* @member {number} [moduleCount] Module count.
* @member {number} [threadCount] Thread count.
* @member {date} [startTime] Start time.
- * @member {string} [totalProcessorTime] Total CPU time.
- * @member {string} [userProcessorTime] User CPU time.
- * @member {string} [privilegedProcessorTime] Privileged CPU time.
- * @member {number} [workingSet64] Working set.
- * @member {number} [peakWorkingSet64] Peak working set.
- * @member {number} [privateMemorySize64] Private memory size.
- * @member {number} [virtualMemorySize64] Virtual memory size.
- * @member {number} [peakVirtualMemorySize64] Peak virtual memory usage.
- * @member {number} [pagedSystemMemorySize64] Paged system memory.
- * @member {number} [nonpagedSystemMemorySize64] Non-paged system memory.
- * @member {number} [pagedMemorySize64] Paged memory.
- * @member {number} [peakPagedMemorySize64] Peak paged memory.
+ * @member {string} [totalCpuTime] Total CPU time.
+ * @member {string} [userCpuTime] User CPU time.
+ * @member {string} [privilegedCpuTime] Privileged CPU time.
+ * @member {number} [workingSet] Working set.
+ * @member {number} [peakWorkingSet] Peak working set.
+ * @member {number} [privateMemory] Private memory size.
+ * @member {number} [virtualMemory] Virtual memory size.
+ * @member {number} [peakVirtualMemory] Peak virtual memory usage.
+ * @member {number} [pagedSystemMemory] Paged system memory.
+ * @member {number} [nonPagedSystemMemory] Non-paged system memory.
+ * @member {number} [pagedMemory] Paged memory.
+ * @member {number} [peakPagedMemory] Peak paged memory.
* @member {date} [timeStamp] Time stamp.
* @member {object} [environmentVariables] List of environment variables.
* @member {boolean} [isScmSite] Is this the SCM site?
- * @member {boolean} [isWebJob] Is this a Web Job?
+ * @member {boolean} [isWebjob] Is this a Web Job?
* @member {string} [description] Description of process.
*/
constructor() {
@@ -107,16 +107,17 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- processInfoId: {
+ identifier: {
required: false,
- serializedName: 'properties.id',
+ readOnly: true,
+ serializedName: 'properties.identifier',
type: {
name: 'Number'
}
},
- processInfoName: {
+ deploymentName: {
required: false,
- serializedName: 'properties.name',
+ serializedName: 'properties.deployment_name',
type: {
name: 'String'
}
@@ -128,30 +129,30 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- miniDump: {
+ minidump: {
required: false,
- serializedName: 'properties.miniDump',
+ serializedName: 'properties.minidump',
type: {
name: 'String'
}
},
isProfileRunning: {
required: false,
- serializedName: 'properties.isProfileRunning',
+ serializedName: 'properties.is_profile_running',
type: {
name: 'Boolean'
}
},
isIisProfileRunning: {
required: false,
- serializedName: 'properties.isIisProfileRunning',
+ serializedName: 'properties.is_iis_profile_running',
type: {
name: 'Boolean'
}
},
iisProfileTimeoutInSeconds: {
required: false,
- serializedName: 'properties.iisProfileTimeoutInSeconds',
+ serializedName: 'properties.iis_profile_timeout_in_seconds',
type: {
name: 'Number'
}
@@ -194,7 +195,7 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
},
openFileHandles: {
required: false,
- serializedName: 'properties.openFileHandles',
+ serializedName: 'properties.open_file_handles',
type: {
name: 'Sequence',
element: {
@@ -223,147 +224,147 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
},
fileName: {
required: false,
- serializedName: 'properties.fileName',
+ serializedName: 'properties.file_name',
type: {
name: 'String'
}
},
commandLine: {
required: false,
- serializedName: 'properties.commandLine',
+ serializedName: 'properties.command_line',
type: {
name: 'String'
}
},
userName: {
required: false,
- serializedName: 'properties.userName',
+ serializedName: 'properties.user_name',
type: {
name: 'String'
}
},
handleCount: {
required: false,
- serializedName: 'properties.handleCount',
+ serializedName: 'properties.handle_count',
type: {
name: 'Number'
}
},
moduleCount: {
required: false,
- serializedName: 'properties.moduleCount',
+ serializedName: 'properties.module_count',
type: {
name: 'Number'
}
},
threadCount: {
required: false,
- serializedName: 'properties.threadCount',
+ serializedName: 'properties.thread_count',
type: {
name: 'Number'
}
},
startTime: {
required: false,
- serializedName: 'properties.startTime',
+ serializedName: 'properties.start_time',
type: {
name: 'DateTime'
}
},
- totalProcessorTime: {
+ totalCpuTime: {
required: false,
- serializedName: 'properties.totalProcessorTime',
+ serializedName: 'properties.total_cpu_time',
type: {
name: 'String'
}
},
- userProcessorTime: {
+ userCpuTime: {
required: false,
- serializedName: 'properties.userProcessorTime',
+ serializedName: 'properties.user_cpu_time',
type: {
name: 'String'
}
},
- privilegedProcessorTime: {
+ privilegedCpuTime: {
required: false,
- serializedName: 'properties.privilegedProcessorTime',
+ serializedName: 'properties.privileged_cpu_time',
type: {
name: 'String'
}
},
- workingSet64: {
+ workingSet: {
required: false,
- serializedName: 'properties.workingSet64',
+ serializedName: 'properties.working_set',
type: {
name: 'Number'
}
},
- peakWorkingSet64: {
+ peakWorkingSet: {
required: false,
- serializedName: 'properties.peakWorkingSet64',
+ serializedName: 'properties.peak_working_set',
type: {
name: 'Number'
}
},
- privateMemorySize64: {
+ privateMemory: {
required: false,
- serializedName: 'properties.privateMemorySize64',
+ serializedName: 'properties.private_memory',
type: {
name: 'Number'
}
},
- virtualMemorySize64: {
+ virtualMemory: {
required: false,
- serializedName: 'properties.virtualMemorySize64',
+ serializedName: 'properties.virtual_memory',
type: {
name: 'Number'
}
},
- peakVirtualMemorySize64: {
+ peakVirtualMemory: {
required: false,
- serializedName: 'properties.peakVirtualMemorySize64',
+ serializedName: 'properties.peak_virtual_memory',
type: {
name: 'Number'
}
},
- pagedSystemMemorySize64: {
+ pagedSystemMemory: {
required: false,
- serializedName: 'properties.pagedSystemMemorySize64',
+ serializedName: 'properties.paged_system_memory',
type: {
name: 'Number'
}
},
- nonpagedSystemMemorySize64: {
+ nonPagedSystemMemory: {
required: false,
- serializedName: 'properties.nonpagedSystemMemorySize64',
+ serializedName: 'properties.non_paged_system_memory',
type: {
name: 'Number'
}
},
- pagedMemorySize64: {
+ pagedMemory: {
required: false,
- serializedName: 'properties.pagedMemorySize64',
+ serializedName: 'properties.paged_memory',
type: {
name: 'Number'
}
},
- peakPagedMemorySize64: {
+ peakPagedMemory: {
required: false,
- serializedName: 'properties.peakPagedMemorySize64',
+ serializedName: 'properties.peak_paged_memory',
type: {
name: 'Number'
}
},
timeStamp: {
required: false,
- serializedName: 'properties.timeStamp',
+ serializedName: 'properties.time_stamp',
type: {
name: 'DateTime'
}
},
environmentVariables: {
required: false,
- serializedName: 'properties.environmentVariables',
+ serializedName: 'properties.environment_variables',
type: {
name: 'Dictionary',
value: {
@@ -377,14 +378,14 @@ class ProcessInfo extends models['ProxyOnlyResource'] {
},
isScmSite: {
required: false,
- serializedName: 'properties.isScmSite',
+ serializedName: 'properties.is_scm_site',
type: {
name: 'Boolean'
}
},
- isWebJob: {
+ isWebjob: {
required: false,
- serializedName: 'properties.isWebJob',
+ serializedName: 'properties.is_webjob',
type: {
name: 'Boolean'
}
diff --git a/lib/services/websiteManagement2/lib/models/processModuleInfo.js b/lib/services/websiteManagement2/lib/models/processModuleInfo.js
index 54334a64cf..610d4bf843 100644
--- a/lib/services/websiteManagement2/lib/models/processModuleInfo.js
+++ b/lib/services/websiteManagement2/lib/models/processModuleInfo.js
@@ -84,14 +84,14 @@ class ProcessModuleInfo extends models['ProxyOnlyResource'] {
},
baseAddress: {
required: false,
- serializedName: 'properties.baseAddress',
+ serializedName: 'properties.base_address',
type: {
name: 'String'
}
},
fileName: {
required: false,
- serializedName: 'properties.fileName',
+ serializedName: 'properties.file_name',
type: {
name: 'String'
}
@@ -105,28 +105,28 @@ class ProcessModuleInfo extends models['ProxyOnlyResource'] {
},
filePath: {
required: false,
- serializedName: 'properties.filePath',
+ serializedName: 'properties.file_path',
type: {
name: 'String'
}
},
moduleMemorySize: {
required: false,
- serializedName: 'properties.moduleMemorySize',
+ serializedName: 'properties.module_memory_size',
type: {
name: 'Number'
}
},
fileVersion: {
required: false,
- serializedName: 'properties.fileVersion',
+ serializedName: 'properties.file_version',
type: {
name: 'String'
}
},
fileDescription: {
required: false,
- serializedName: 'properties.fileDescription',
+ serializedName: 'properties.file_description',
type: {
name: 'String'
}
@@ -140,14 +140,14 @@ class ProcessModuleInfo extends models['ProxyOnlyResource'] {
},
productVersion: {
required: false,
- serializedName: 'properties.productVersion',
+ serializedName: 'properties.product_version',
type: {
name: 'String'
}
},
isDebug: {
required: false,
- serializedName: 'properties.isDebug',
+ serializedName: 'properties.is_debug',
type: {
name: 'Boolean'
}
diff --git a/lib/services/websiteManagement2/lib/models/processThreadInfo.js b/lib/services/websiteManagement2/lib/models/processThreadInfo.js
index ec227556b0..3594604e66 100644
--- a/lib/services/websiteManagement2/lib/models/processThreadInfo.js
+++ b/lib/services/websiteManagement2/lib/models/processThreadInfo.js
@@ -20,7 +20,7 @@ const models = require('./index');
class ProcessThreadInfo extends models['ProxyOnlyResource'] {
/**
* Create a ProcessThreadInfo.
- * @member {number} [processThreadInfoId] ARM Identifier for deployment.
+ * @member {number} [identifier] Site extension ID.
* @member {string} [href] HRef URI.
* @member {string} [process] Process URI.
* @member {string} [startAddress] Start address.
@@ -83,9 +83,10 @@ class ProcessThreadInfo extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- processThreadInfoId: {
+ identifier: {
required: false,
- serializedName: 'properties.id',
+ readOnly: true,
+ serializedName: 'properties.identifier',
type: {
name: 'Number'
}
@@ -106,56 +107,56 @@ class ProcessThreadInfo extends models['ProxyOnlyResource'] {
},
startAddress: {
required: false,
- serializedName: 'properties.startAddress',
+ serializedName: 'properties.start_address',
type: {
name: 'String'
}
},
currentPriority: {
required: false,
- serializedName: 'properties.currentPriority',
+ serializedName: 'properties.current_priority',
type: {
name: 'Number'
}
},
priorityLevel: {
required: false,
- serializedName: 'properties.priorityLevel',
+ serializedName: 'properties.priority_level',
type: {
name: 'String'
}
},
basePriority: {
required: false,
- serializedName: 'properties.basePriority',
+ serializedName: 'properties.base_priority',
type: {
name: 'Number'
}
},
startTime: {
required: false,
- serializedName: 'properties.startTime',
+ serializedName: 'properties.start_time',
type: {
name: 'DateTime'
}
},
totalProcessorTime: {
required: false,
- serializedName: 'properties.totalProcessorTime',
+ serializedName: 'properties.total_processor_time',
type: {
name: 'String'
}
},
userProcessorTime: {
required: false,
- serializedName: 'properties.userProcessorTime',
+ serializedName: 'properties.user_processor_time',
type: {
name: 'String'
}
},
priviledgedProcessorTime: {
required: false,
- serializedName: 'properties.priviledgedProcessorTime',
+ serializedName: 'properties.priviledged_processor_time',
type: {
name: 'String'
}
@@ -169,7 +170,7 @@ class ProcessThreadInfo extends models['ProxyOnlyResource'] {
},
waitReason: {
required: false,
- serializedName: 'properties.waitReason',
+ serializedName: 'properties.wait_reason',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/recommendation.js b/lib/services/websiteManagement2/lib/models/recommendation.js
index 665993eaba..8f61433673 100644
--- a/lib/services/websiteManagement2/lib/models/recommendation.js
+++ b/lib/services/websiteManagement2/lib/models/recommendation.js
@@ -38,9 +38,13 @@ class Recommendation extends models['ProxyOnlyResource'] {
* @member {string} [channels] List of channels that this recommendation can
* apply. Possible values include: 'Notification', 'Api', 'Email', 'Webhook',
* 'All'
- * @member {array} [tags] The list of category tags that this recommendation
- * belongs to.
+ * @member {array} [categoryTags] The list of category tags that this
+ * recommendation belongs to.
* @member {string} [actionName] Name of action recommended by this object.
+ * @member {number} [enabled] True if this recommendation is still valid
+ * (i.e. "actionable"). False if it is invalid.
+ * @member {array} [states] The list of states of this recommendation. If
+ * it's null then it shoud be considered "Active".
* @member {date} [startTime] The beginning time in UTC of a range that the
* recommendation refers to.
* @member {date} [endTime] The end time in UTC of a range that the
@@ -174,9 +178,10 @@ class Recommendation extends models['ProxyOnlyResource'] {
allowedValues: [ 'Notification', 'Api', 'Email', 'Webhook', 'All' ]
}
},
- tags: {
+ categoryTags: {
required: false,
- serializedName: 'properties.tags',
+ readOnly: true,
+ serializedName: 'properties.categoryTags',
type: {
name: 'Sequence',
element: {
@@ -195,6 +200,27 @@ class Recommendation extends models['ProxyOnlyResource'] {
name: 'String'
}
},
+ enabled: {
+ required: false,
+ serializedName: 'properties.enabled',
+ type: {
+ name: 'Number'
+ }
+ },
+ states: {
+ required: false,
+ serializedName: 'properties.states',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
startTime: {
required: false,
serializedName: 'properties.startTime',
diff --git a/lib/services/websiteManagement2/lib/models/recommendationRule.js b/lib/services/websiteManagement2/lib/models/recommendationRule.js
index 6e35b0c290..98fedcaa74 100644
--- a/lib/services/websiteManagement2/lib/models/recommendationRule.js
+++ b/lib/services/websiteManagement2/lib/models/recommendationRule.js
@@ -20,7 +20,7 @@ const models = require('./index');
class RecommendationRule extends models['ProxyOnlyResource'] {
/**
* Create a RecommendationRule.
- * @member {string} [recommendationRuleName] Unique name of the rule.
+ * @member {string} [recommendationName] Unique name of the rule.
* @member {string} [displayName] UI friendly name of the rule.
* @member {string} [message] Localized name of the rule (Good for UI).
* @member {uuid} [recommendationId] Recommendation ID of an associated
@@ -35,7 +35,8 @@ class RecommendationRule extends models['ProxyOnlyResource'] {
* @member {string} [channels] List of available channels that this rule
* applies. Possible values include: 'Notification', 'Api', 'Email',
* 'Webhook', 'All'
- * @member {array} [tags] An array of category tags that the rule contains.
+ * @member {array} [categoryTags] The list of category tags that this
+ * recommendation rule belongs to.
* @member {boolean} [isDynamic] True if this is associated with a
* dynamically added rule
* @member {string} [extensionName] Extension name of the portal if exists.
@@ -94,9 +95,9 @@ class RecommendationRule extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- recommendationRuleName: {
+ recommendationName: {
required: false,
- serializedName: 'properties.name',
+ serializedName: 'properties.recommendationName',
type: {
name: 'String'
}
@@ -152,9 +153,10 @@ class RecommendationRule extends models['ProxyOnlyResource'] {
allowedValues: [ 'Notification', 'Api', 'Email', 'Webhook', 'All' ]
}
},
- tags: {
+ categoryTags: {
required: false,
- serializedName: 'properties.tags',
+ readOnly: true,
+ serializedName: 'properties.categoryTags',
type: {
name: 'Sequence',
element: {
diff --git a/lib/services/websiteManagement2/lib/models/rendering.js b/lib/services/websiteManagement2/lib/models/rendering.js
index 09e9783dbb..a2dd117840 100644
--- a/lib/services/websiteManagement2/lib/models/rendering.js
+++ b/lib/services/websiteManagement2/lib/models/rendering.js
@@ -17,7 +17,7 @@
class Rendering {
/**
* Create a Rendering.
- * @member {string} [renderingType] Rendering Type. Possible values include:
+ * @member {string} [type] Rendering Type. Possible values include:
* 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'
* @member {string} [title] Title of data
* @member {string} [description] Description of the data that will help it
@@ -40,9 +40,9 @@ class Rendering {
name: 'Composite',
className: 'Rendering',
modelProperties: {
- renderingType: {
+ type: {
required: false,
- serializedName: 'renderingType',
+ serializedName: 'type',
type: {
name: 'Enum',
allowedValues: [ 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance' ]
diff --git a/lib/services/websiteManagement2/lib/models/resourceMetricDefinition.js b/lib/services/websiteManagement2/lib/models/resourceMetricDefinition.js
index 86464c5423..8dbe89e1bf 100644
--- a/lib/services/websiteManagement2/lib/models/resourceMetricDefinition.js
+++ b/lib/services/websiteManagement2/lib/models/resourceMetricDefinition.js
@@ -20,16 +20,11 @@ const models = require('./index');
class ResourceMetricDefinition extends models['ProxyOnlyResource'] {
/**
* Create a ResourceMetricDefinition.
- * @member {object} [resourceMetricDefinitionName] Name of the metric.
- * @member {string} [resourceMetricDefinitionName.value] metric name value.
- * @member {string} [resourceMetricDefinitionName.localizedValue] Localized
- * metric name value.
* @member {string} [unit] Unit of the metric.
* @member {string} [primaryAggregationType] Primary aggregation type.
* @member {array} [metricAvailabilities] List of time grains supported for
* the metric together with retention period.
* @member {string} [resourceUri] Resource URI.
- * @member {string} [resourceMetricDefinitionId] Resource ID.
* @member {object} [properties] Resource metric definition properties.
*/
constructor() {
@@ -81,15 +76,6 @@ class ResourceMetricDefinition extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- resourceMetricDefinitionName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'Composite',
- className: 'ResourceMetricName'
- }
- },
unit: {
required: false,
readOnly: true,
@@ -130,14 +116,6 @@ class ResourceMetricDefinition extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- resourceMetricDefinitionId: {
- required: false,
- readOnly: true,
- serializedName: 'properties.id',
- type: {
- name: 'String'
- }
- },
properties: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/restoreRequest.js b/lib/services/websiteManagement2/lib/models/restoreRequest.js
index ed24bafc6a..7ae8aa728c 100644
--- a/lib/services/websiteManagement2/lib/models/restoreRequest.js
+++ b/lib/services/websiteManagement2/lib/models/restoreRequest.js
@@ -39,7 +39,8 @@ class RestoreRequest extends models['ProxyOnlyResource'] {
* @member {string} [appServicePlan] Specify app service plan that will own
* restored site.
* @member {string} [operationType] Operation type. Possible values include:
- * 'Default', 'Clone', 'Relocation', 'Snapshot'. Default value: 'Default' .
+ * 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'. Default value:
+ * 'Default' .
* @member {boolean} [adjustConnectionStrings] true
if
* SiteConfig.ConnectionStrings should be set in new app; otherwise,
* false
.
@@ -167,7 +168,7 @@ class RestoreRequest extends models['ProxyOnlyResource'] {
defaultValue: 'Default',
type: {
name: 'Enum',
- allowedValues: [ 'Default', 'Clone', 'Relocation', 'Snapshot' ]
+ allowedValues: [ 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS' ]
}
},
adjustConnectionStrings: {
diff --git a/lib/services/websiteManagement2/lib/models/serviceSpecification.js b/lib/services/websiteManagement2/lib/models/serviceSpecification.js
index ebb2a7b9a3..77a9cb816e 100644
--- a/lib/services/websiteManagement2/lib/models/serviceSpecification.js
+++ b/lib/services/websiteManagement2/lib/models/serviceSpecification.js
@@ -20,6 +20,7 @@ class ServiceSpecification {
/**
* Create a ServiceSpecification.
* @member {array} [metricSpecifications]
+ * @member {array} [logSpecifications]
*/
constructor() {
}
@@ -52,6 +53,21 @@ class ServiceSpecification {
}
}
}
+ },
+ logSpecifications: {
+ required: false,
+ serializedName: 'logSpecifications',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'LogSpecificationElementType',
+ type: {
+ name: 'Composite',
+ className: 'LogSpecification'
+ }
+ }
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/site.js b/lib/services/websiteManagement2/lib/models/site.js
index daa121c8ae..154c30bf71 100644
--- a/lib/services/websiteManagement2/lib/models/site.js
+++ b/lib/services/websiteManagement2/lib/models/site.js
@@ -42,6 +42,7 @@ class Site extends models['Resource'] {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] true
if reserved; otherwise,
* false
. Default value: false .
+ * @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in
* UTC. Read-only.
* @member {object} [siteConfig] Configuration of the app.
@@ -53,6 +54,8 @@ class Site extends models['Resource'] {
* @member {string} [siteConfig.nodeVersion] Version of Node.js.
* @member {string} [siteConfig.linuxFxVersion] Linux App Framework and
* version
+ * @member {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
* @member {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
* @member {date} [siteConfig.requestTracingExpirationTime] Request tracing
@@ -179,6 +182,10 @@ class Site extends models['Resource'] {
* @member {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [siteConfig.localMySqlEnabled] true
to
* enable local MySQL; otherwise, false
.
+ * @member {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ * @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
@@ -186,6 +193,11 @@ class Site extends models['Resource'] {
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
+ * @member {string} [siteConfig.ftpsState] State of FTP / FTPS service.
+ * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
* @member {array} [trafficManagerHostNames] Azure Traffic Manager hostnames
* associated with the app. Read-only.
* @member {boolean} [scmSiteAlsoStopped] true
to stop SCM
@@ -257,31 +269,6 @@ class Site extends models['Resource'] {
* @member {string} [cloningInfo.trafficManagerProfileName] Name of Traffic
* Manager profile to create. This is only needed if Traffic Manager profile
* does not already exist.
- * @member {boolean} [cloningInfo.ignoreQuotas] true
if quotas
- * should be ignored; otherwise, false
.
- * @member {object} [snapshotInfo] If specified during app creation, the app
- * is created from a previous snapshot.
- * @member {string} [snapshotInfo.snapshotTime] Point in time in which the
- * app recovery should be attempted, formatted as a DateTime string.
- * @member {object} [snapshotInfo.recoveryTarget] Specifies the web app that
- * snapshot contents will be written to.
- * @member {string} [snapshotInfo.recoveryTarget.location] Geographical
- * location of the target web app, e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [snapshotInfo.recoveryTarget.id] ARM resource ID of the
- * target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- * @member {boolean} [snapshotInfo.overwrite] If true
the
- * recovery operation can overwrite source app; otherwise,
- * false
.
- * @member {boolean} [snapshotInfo.recoverConfiguration] If true, site
- * configuration, in addition to content, will be reverted.
- * @member {boolean} [snapshotInfo.ignoreConflictingHostNames] If true,
- * custom hostname conflicts will be ignored when recovering to a target web
- * app.
- * This setting is only necessary when RecoverConfiguration is enabled.
* @member {string} [resourceGroup] Name of the resource group the app
* belongs to. Read-only.
* @member {boolean} [isDefaultContainer] true
if the app is a
@@ -300,10 +287,12 @@ class Site extends models['Resource'] {
* http requests
* @member {object} [identity]
* @member {string} [identity.type] Type of managed service identity.
- * Possible values include: 'SystemAssigned'
+ * Possible values include: 'SystemAssigned', 'UserAssigned'
* @member {string} [identity.tenantId] Tenant of managed service identity.
* @member {string} [identity.principalId] Principal Id of managed service
* identity.
+ * @member {array} [identity.identityIds] Array of UserAssigned managed
+ * service identities.
*/
constructor() {
super();
@@ -476,6 +465,14 @@ class Site extends models['Resource'] {
name: 'Boolean'
}
},
+ isXenon: {
+ required: false,
+ serializedName: 'properties.isXenon',
+ defaultValue: false,
+ type: {
+ name: 'Boolean'
+ }
+ },
lastModifiedTimeUtc: {
required: false,
readOnly: true,
@@ -606,14 +603,6 @@ class Site extends models['Resource'] {
className: 'CloningInfo'
}
},
- snapshotInfo: {
- required: false,
- serializedName: 'properties.snapshotInfo',
- type: {
- name: 'Composite',
- className: 'SnapshotRecoveryRequest'
- }
- },
resourceGroup: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/siteAuthSettings.js b/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
index 977f86f4dc..f35b25393d 100644
--- a/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
+++ b/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
@@ -74,6 +74,8 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
* This URI is a case-sensitive identifier for the token issuer.
* More information on OpenID Connect Discovery:
* http://openid.net/specs/openid-connect-discovery-1_0.html
+ * @member {boolean} [validateIssuer] Gets a value indicating whether the
+ * issuer should be a valid HTTPS url and be validated as such.
* @member {array} [allowedAudiences] Allowed audience values to consider
* when validating JWTs issued by
* Azure Active Directory. Note that the ClientID
value is
@@ -266,6 +268,13 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
name: 'String'
}
},
+ validateIssuer: {
+ required: false,
+ serializedName: 'properties.validateIssuer',
+ type: {
+ name: 'Boolean'
+ }
+ },
allowedAudiences: {
required: false,
serializedName: 'properties.allowedAudiences',
diff --git a/lib/services/websiteManagement2/lib/models/siteConfig.js b/lib/services/websiteManagement2/lib/models/siteConfig.js
index 6dd3a24a75..9d2438791d 100644
--- a/lib/services/websiteManagement2/lib/models/siteConfig.js
+++ b/lib/services/websiteManagement2/lib/models/siteConfig.js
@@ -27,6 +27,7 @@ class SiteConfig {
* @member {string} [pythonVersion] Version of Python.
* @member {string} [nodeVersion] Version of Node.js.
* @member {string} [linuxFxVersion] Linux App Framework and version
+ * @member {string} [windowsFxVersion] Xenon App Framework and version
* @member {boolean} [requestTracingEnabled] true
if request
* tracing is enabled; otherwise, false
.
* @member {date} [requestTracingExpirationTime] Request tracing expiration
@@ -140,12 +141,19 @@ class SiteConfig {
* @member {string} [autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [localMySqlEnabled] true
to enable local
* MySQL; otherwise, false
. Default value: false .
+ * @member {number} [managedServiceIdentityId] Managed Service Identity Id
+ * @member {number} [xManagedServiceIdentityId] Explicit Managed Service
+ * Identity Id
* @member {array} [ipSecurityRestrictions] IP security restrictions.
* @member {boolean} [http20Enabled] Http20Enabled: configures a web site to
* allow clients to connect over http2.0. Default value: true .
* @member {string} [minTlsVersion] MinTlsVersion: configures the minimum
* version of TLS required for SSL requests. Possible values include: '1.0',
* '1.1', '1.2'
+ * @member {string} [ftpsState] State of FTP / FTPS service. Possible values
+ * include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [reservedInstanceCount] Number of reserved instances.
+ * This setting only applies to the Consumption Plan
*/
constructor() {
}
@@ -221,6 +229,13 @@ class SiteConfig {
name: 'String'
}
},
+ windowsFxVersion: {
+ required: false,
+ serializedName: 'windowsFxVersion',
+ type: {
+ name: 'String'
+ }
+ },
requestTracingEnabled: {
required: false,
serializedName: 'requestTracingEnabled',
@@ -509,6 +524,20 @@ class SiteConfig {
name: 'Boolean'
}
},
+ managedServiceIdentityId: {
+ required: false,
+ serializedName: 'managedServiceIdentityId',
+ type: {
+ name: 'Number'
+ }
+ },
+ xManagedServiceIdentityId: {
+ required: false,
+ serializedName: 'xManagedServiceIdentityId',
+ type: {
+ name: 'Number'
+ }
+ },
ipSecurityRestrictions: {
required: false,
serializedName: 'ipSecurityRestrictions',
@@ -538,6 +567,24 @@ class SiteConfig {
type: {
name: 'String'
}
+ },
+ ftpsState: {
+ required: false,
+ serializedName: 'ftpsState',
+ type: {
+ name: 'String'
+ }
+ },
+ reservedInstanceCount: {
+ required: false,
+ serializedName: 'reservedInstanceCount',
+ constraints: {
+ InclusiveMaximum: 10,
+ InclusiveMinimum: 0
+ },
+ type: {
+ name: 'Number'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/siteConfigResource.js b/lib/services/websiteManagement2/lib/models/siteConfigResource.js
index 247ba84dc6..c4f86d257f 100644
--- a/lib/services/websiteManagement2/lib/models/siteConfigResource.js
+++ b/lib/services/websiteManagement2/lib/models/siteConfigResource.js
@@ -28,6 +28,7 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @member {string} [pythonVersion] Version of Python.
* @member {string} [nodeVersion] Version of Node.js.
* @member {string} [linuxFxVersion] Linux App Framework and version
+ * @member {string} [windowsFxVersion] Xenon App Framework and version
* @member {boolean} [requestTracingEnabled] true
if request
* tracing is enabled; otherwise, false
.
* @member {date} [requestTracingExpirationTime] Request tracing expiration
@@ -141,12 +142,19 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @member {string} [autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [localMySqlEnabled] true
to enable local
* MySQL; otherwise, false
. Default value: false .
+ * @member {number} [managedServiceIdentityId] Managed Service Identity Id
+ * @member {number} [xManagedServiceIdentityId] Explicit Managed Service
+ * Identity Id
* @member {array} [ipSecurityRestrictions] IP security restrictions.
* @member {boolean} [http20Enabled] Http20Enabled: configures a web site to
* allow clients to connect over http2.0. Default value: true .
* @member {string} [minTlsVersion] MinTlsVersion: configures the minimum
* version of TLS required for SSL requests. Possible values include: '1.0',
* '1.1', '1.2'
+ * @member {string} [ftpsState] State of FTP / FTPS service. Possible values
+ * include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [reservedInstanceCount] Number of reserved instances.
+ * This setting only applies to the Consumption Plan
*/
constructor() {
super();
@@ -254,6 +262,13 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
name: 'String'
}
},
+ windowsFxVersion: {
+ required: false,
+ serializedName: 'properties.windowsFxVersion',
+ type: {
+ name: 'String'
+ }
+ },
requestTracingEnabled: {
required: false,
serializedName: 'properties.requestTracingEnabled',
@@ -542,6 +557,20 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
+ managedServiceIdentityId: {
+ required: false,
+ serializedName: 'properties.managedServiceIdentityId',
+ type: {
+ name: 'Number'
+ }
+ },
+ xManagedServiceIdentityId: {
+ required: false,
+ serializedName: 'properties.xManagedServiceIdentityId',
+ type: {
+ name: 'Number'
+ }
+ },
ipSecurityRestrictions: {
required: false,
serializedName: 'properties.ipSecurityRestrictions',
@@ -571,6 +600,24 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ ftpsState: {
+ required: false,
+ serializedName: 'properties.ftpsState',
+ type: {
+ name: 'String'
+ }
+ },
+ reservedInstanceCount: {
+ required: false,
+ serializedName: 'properties.reservedInstanceCount',
+ constraints: {
+ InclusiveMaximum: 10,
+ InclusiveMinimum: 0
+ },
+ type: {
+ name: 'Number'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/siteConfigurationSnapshotInfo.js b/lib/services/websiteManagement2/lib/models/siteConfigurationSnapshotInfo.js
index ab201777eb..1317cb4e81 100644
--- a/lib/services/websiteManagement2/lib/models/siteConfigurationSnapshotInfo.js
+++ b/lib/services/websiteManagement2/lib/models/siteConfigurationSnapshotInfo.js
@@ -21,7 +21,7 @@ class SiteConfigurationSnapshotInfo extends models['ProxyOnlyResource'] {
/**
* Create a SiteConfigurationSnapshotInfo.
* @member {date} [time] The time the snapshot was taken.
- * @member {number} [siteConfigurationSnapshotInfoId] The id of the snapshot
+ * @member {number} [snapshotId] The id of the snapshot
*/
constructor() {
super();
@@ -80,10 +80,10 @@ class SiteConfigurationSnapshotInfo extends models['ProxyOnlyResource'] {
name: 'DateTime'
}
},
- siteConfigurationSnapshotInfoId: {
+ snapshotId: {
required: false,
readOnly: true,
- serializedName: 'properties.id',
+ serializedName: 'properties.snapshotId',
type: {
name: 'Number'
}
diff --git a/lib/services/websiteManagement2/lib/models/siteExtensionInfo.js b/lib/services/websiteManagement2/lib/models/siteExtensionInfo.js
index 8cd1cf009f..a0293ee225 100644
--- a/lib/services/websiteManagement2/lib/models/siteExtensionInfo.js
+++ b/lib/services/websiteManagement2/lib/models/siteExtensionInfo.js
@@ -20,10 +20,10 @@ const models = require('./index');
class SiteExtensionInfo extends models['ProxyOnlyResource'] {
/**
* Create a SiteExtensionInfo.
- * @member {string} [siteExtensionInfoId] Site extension ID.
- * @member {string} [title] Site extension title.
- * @member {string} [siteExtensionInfoType] Site extension type. Possible
- * values include: 'Gallery', 'WebRoot'
+ * @member {string} [extensionId] Site extension ID.
+ * @member {string} [title]
+ * @member {string} [extensionType] Site extension type. Possible values
+ * include: 'Gallery', 'WebRoot'
* @member {string} [summary] Summary description.
* @member {string} [description] Detailed description.
* @member {string} [version] Version information.
@@ -33,7 +33,8 @@ class SiteExtensionInfo extends models['ProxyOnlyResource'] {
* @member {string} [licenseUrl] License URL.
* @member {string} [feedUrl] Feed URL.
* @member {array} [authors] List of authors.
- * @member {string} [installationArgs] Installer command line parameters.
+ * @member {string} [installerCommandLineParams] Installer command line
+ * parameters.
* @member {date} [publishedDateTime] Published timestamp.
* @member {number} [downloadCount] Count of downloads.
* @member {boolean} [localIsLatestVersion] true
if the local
@@ -92,9 +93,9 @@ class SiteExtensionInfo extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- siteExtensionInfoId: {
+ extensionId: {
required: false,
- serializedName: 'properties.id',
+ serializedName: 'properties.extension_id',
type: {
name: 'String'
}
@@ -106,9 +107,9 @@ class SiteExtensionInfo extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- siteExtensionInfoType: {
+ extensionType: {
required: false,
- serializedName: 'properties.type',
+ serializedName: 'properties.extension_type',
type: {
name: 'Enum',
allowedValues: [ 'Gallery', 'WebRoot' ]
@@ -137,35 +138,35 @@ class SiteExtensionInfo extends models['ProxyOnlyResource'] {
},
extensionUrl: {
required: false,
- serializedName: 'properties.extensionUrl',
+ serializedName: 'properties.extension_url',
type: {
name: 'String'
}
},
projectUrl: {
required: false,
- serializedName: 'properties.projectUrl',
+ serializedName: 'properties.project_url',
type: {
name: 'String'
}
},
iconUrl: {
required: false,
- serializedName: 'properties.iconUrl',
+ serializedName: 'properties.icon_url',
type: {
name: 'String'
}
},
licenseUrl: {
required: false,
- serializedName: 'properties.licenseUrl',
+ serializedName: 'properties.license_url',
type: {
name: 'String'
}
},
feedUrl: {
required: false,
- serializedName: 'properties.feedUrl',
+ serializedName: 'properties.feed_url',
type: {
name: 'String'
}
@@ -184,44 +185,44 @@ class SiteExtensionInfo extends models['ProxyOnlyResource'] {
}
}
},
- installationArgs: {
+ installerCommandLineParams: {
required: false,
- serializedName: 'properties.installationArgs',
+ serializedName: 'properties.installer_command_line_params',
type: {
name: 'String'
}
},
publishedDateTime: {
required: false,
- serializedName: 'properties.publishedDateTime',
+ serializedName: 'properties.published_date_time',
type: {
name: 'DateTime'
}
},
downloadCount: {
required: false,
- serializedName: 'properties.downloadCount',
+ serializedName: 'properties.download_count',
type: {
name: 'Number'
}
},
localIsLatestVersion: {
required: false,
- serializedName: 'properties.localIsLatestVersion',
+ serializedName: 'properties.local_is_latest_version',
type: {
name: 'Boolean'
}
},
localPath: {
required: false,
- serializedName: 'properties.localPath',
+ serializedName: 'properties.local_path',
type: {
name: 'String'
}
},
installedDateTime: {
required: false,
- serializedName: 'properties.installedDateTime',
+ serializedName: 'properties.installed_date_time',
type: {
name: 'DateTime'
}
diff --git a/lib/services/websiteManagement2/lib/models/siteInstance.js b/lib/services/websiteManagement2/lib/models/siteInstance.js
index 850f9772ca..72635c8844 100644
--- a/lib/services/websiteManagement2/lib/models/siteInstance.js
+++ b/lib/services/websiteManagement2/lib/models/siteInstance.js
@@ -74,7 +74,7 @@ class SiteInstance extends models['ProxyOnlyResource'] {
siteInstanceName: {
required: false,
readOnly: true,
- serializedName: 'properties.name',
+ serializedName: 'properties.siteInstanceName',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/sitePatchResource.js b/lib/services/websiteManagement2/lib/models/sitePatchResource.js
index 91322a206d..575bc5a043 100644
--- a/lib/services/websiteManagement2/lib/models/sitePatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/sitePatchResource.js
@@ -42,6 +42,7 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @member {boolean} [reserved] true
if reserved; otherwise,
* false
. Default value: false .
+ * @member {boolean} [isXenon] Hyper-V sandbox. Default value: false .
* @member {date} [lastModifiedTimeUtc] Last time the app was modified, in
* UTC. Read-only.
* @member {object} [siteConfig] Configuration of the app.
@@ -53,6 +54,8 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {string} [siteConfig.nodeVersion] Version of Node.js.
* @member {string} [siteConfig.linuxFxVersion] Linux App Framework and
* version
+ * @member {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
* @member {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
* @member {date} [siteConfig.requestTracingExpirationTime] Request tracing
@@ -179,6 +182,10 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
* @member {boolean} [siteConfig.localMySqlEnabled] true
to
* enable local MySQL; otherwise, false
.
+ * @member {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ * @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
* restrictions.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
@@ -186,6 +193,11 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
+ * @member {string} [siteConfig.ftpsState] State of FTP / FTPS service.
+ * Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ * @member {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
* @member {array} [trafficManagerHostNames] Azure Traffic Manager hostnames
* associated with the app. Read-only.
* @member {boolean} [scmSiteAlsoStopped] true
to stop SCM
@@ -257,31 +269,6 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {string} [cloningInfo.trafficManagerProfileName] Name of Traffic
* Manager profile to create. This is only needed if Traffic Manager profile
* does not already exist.
- * @member {boolean} [cloningInfo.ignoreQuotas] true
if quotas
- * should be ignored; otherwise, false
.
- * @member {object} [snapshotInfo] If specified during app creation, the app
- * is created from a previous snapshot.
- * @member {string} [snapshotInfo.snapshotTime] Point in time in which the
- * app recovery should be attempted, formatted as a DateTime string.
- * @member {object} [snapshotInfo.recoveryTarget] Specifies the web app that
- * snapshot contents will be written to.
- * @member {string} [snapshotInfo.recoveryTarget.location] Geographical
- * location of the target web app, e.g. SouthEastAsia, SouthCentralUS
- * @member {string} [snapshotInfo.recoveryTarget.id] ARM resource ID of the
- * target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- * @member {boolean} [snapshotInfo.overwrite] If true
the
- * recovery operation can overwrite source app; otherwise,
- * false
.
- * @member {boolean} [snapshotInfo.recoverConfiguration] If true, site
- * configuration, in addition to content, will be reverted.
- * @member {boolean} [snapshotInfo.ignoreConflictingHostNames] If true,
- * custom hostname conflicts will be ignored when recovering to a target web
- * app.
- * This setting is only necessary when RecoverConfiguration is enabled.
* @member {string} [resourceGroup] Name of the resource group the app
* belongs to. Read-only.
* @member {boolean} [isDefaultContainer] true
if the app is a
@@ -449,6 +436,14 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
+ isXenon: {
+ required: false,
+ serializedName: 'properties.isXenon',
+ defaultValue: false,
+ type: {
+ name: 'Boolean'
+ }
+ },
lastModifiedTimeUtc: {
required: false,
readOnly: true,
@@ -579,14 +574,6 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
className: 'CloningInfo'
}
},
- snapshotInfo: {
- required: false,
- serializedName: 'properties.snapshotInfo',
- type: {
- name: 'Composite',
- className: 'SnapshotRecoveryRequest'
- }
- },
resourceGroup: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/slotDifference.js b/lib/services/websiteManagement2/lib/models/slotDifference.js
index f20bdff1da..49d154fc4c 100644
--- a/lib/services/websiteManagement2/lib/models/slotDifference.js
+++ b/lib/services/websiteManagement2/lib/models/slotDifference.js
@@ -20,8 +20,8 @@ const models = require('./index');
class SlotDifference extends models['ProxyOnlyResource'] {
/**
* Create a SlotDifference.
- * @member {string} [slotDifferenceType] Type of the difference: Information,
- * Warning or Error.
+ * @member {string} [level] Level of the difference: Information, Warning or
+ * Error.
* @member {string} [settingType] The type of the setting: General,
* AppSetting or ConnectionString.
* @member {string} [diffRule] Rule that describes how to process the setting
@@ -82,10 +82,10 @@ class SlotDifference extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- slotDifferenceType: {
+ level: {
required: false,
readOnly: true,
- serializedName: 'properties.type',
+ serializedName: 'properties.level',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/snapshotRecoverySource.js b/lib/services/websiteManagement2/lib/models/snapshotRecoverySource.js
new file mode 100644
index 0000000000..e545007e99
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/snapshotRecoverySource.js
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+/**
+ * Specifies the web app that snapshot contents will be retrieved from.
+ *
+ */
+class SnapshotRecoverySource {
+ /**
+ * Create a SnapshotRecoverySource.
+ * @member {string} [location] Geographical location of the source web app,
+ * e.g. SouthEastAsia, SouthCentralUS
+ * @member {string} [id] ARM resource ID of the source app.
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
+ * for production slots and
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
+ * for other slots.
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of SnapshotRecoverySource
+ *
+ * @returns {object} metadata of SnapshotRecoverySource
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'SnapshotRecoverySource',
+ type: {
+ name: 'Composite',
+ className: 'SnapshotRecoverySource',
+ modelProperties: {
+ location: {
+ required: false,
+ serializedName: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ id: {
+ required: false,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = SnapshotRecoverySource;
diff --git a/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js b/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js
new file mode 100644
index 0000000000..ad5d840c8a
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js
@@ -0,0 +1,134 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * Details about app recovery operation.
+ *
+ * @extends models['ProxyOnlyResource']
+ */
+class SnapshotRestoreRequest extends models['ProxyOnlyResource'] {
+ /**
+ * Create a SnapshotRestoreRequest.
+ * @member {string} [snapshotTime] Point in time in which the app restore
+ * should be done, formatted as a DateTime string.
+ * @member {object} [recoverySource] Optional. Specifies the web app that
+ * snapshot contents will be retrieved from.
+ * If empty, the targeted web app will be used as the source.
+ * @member {string} [recoverySource.location] Geographical location of the
+ * source web app, e.g. SouthEastAsia, SouthCentralUS
+ * @member {string} [recoverySource.id] ARM resource ID of the source app.
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
+ * for production slots and
+ * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
+ * for other slots.
+ * @member {boolean} overwrite If true
the restore operation can
+ * overwrite source app; otherwise, false
.
+ * @member {boolean} [recoverConfiguration] If true, site configuration, in
+ * addition to content, will be reverted.
+ * @member {boolean} [ignoreConflictingHostNames] If true, custom hostname
+ * conflicts will be ignored when recovering to a target web app.
+ * This setting is only necessary when RecoverConfiguration is enabled.
+ */
+ constructor() {
+ super();
+ }
+
+ /**
+ * Defines the metadata of SnapshotRestoreRequest
+ *
+ * @returns {object} metadata of SnapshotRestoreRequest
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'SnapshotRestoreRequest',
+ type: {
+ name: 'Composite',
+ className: 'SnapshotRestoreRequest',
+ modelProperties: {
+ id: {
+ required: false,
+ readOnly: true,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ readOnly: true,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ kind: {
+ required: false,
+ serializedName: 'kind',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ readOnly: true,
+ serializedName: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ snapshotTime: {
+ required: false,
+ serializedName: 'properties.snapshotTime',
+ type: {
+ name: 'String'
+ }
+ },
+ recoverySource: {
+ required: false,
+ serializedName: 'properties.recoverySource',
+ type: {
+ name: 'Composite',
+ className: 'SnapshotRecoverySource'
+ }
+ },
+ overwrite: {
+ required: true,
+ serializedName: 'properties.overwrite',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ recoverConfiguration: {
+ required: false,
+ serializedName: 'properties.recoverConfiguration',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ ignoreConflictingHostNames: {
+ required: false,
+ serializedName: 'properties.ignoreConflictingHostNames',
+ type: {
+ name: 'Boolean'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = SnapshotRestoreRequest;
diff --git a/lib/services/websiteManagement2/lib/models/sourceControl.js b/lib/services/websiteManagement2/lib/models/sourceControl.js
index 0c0d72a318..3e7a294e88 100644
--- a/lib/services/websiteManagement2/lib/models/sourceControl.js
+++ b/lib/services/websiteManagement2/lib/models/sourceControl.js
@@ -20,7 +20,6 @@ const models = require('./index');
class SourceControl extends models['ProxyOnlyResource'] {
/**
* Create a SourceControl.
- * @member {string} [sourceControlName] Name or source control type.
* @member {string} [token] OAuth access token.
* @member {string} [tokenSecret] OAuth access token secret.
* @member {string} [refreshToken] OAuth refresh token.
@@ -75,13 +74,6 @@ class SourceControl extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- sourceControlName: {
- required: false,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
token: {
required: false,
serializedName: 'properties.token',
diff --git a/lib/services/websiteManagement2/lib/models/stampCapacity.js b/lib/services/websiteManagement2/lib/models/stampCapacity.js
index 8cb844d445..9227735918 100644
--- a/lib/services/websiteManagement2/lib/models/stampCapacity.js
+++ b/lib/services/websiteManagement2/lib/models/stampCapacity.js
@@ -26,7 +26,7 @@ class StampCapacity {
* @member {string} [computeMode] Shared/dedicated workers. Possible values
* include: 'Shared', 'Dedicated', 'Dynamic'
* @member {string} [workerSize] Size of the machines. Possible values
- * include: 'Default', 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3'
+ * include: 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default'
* @member {number} [workerSizeId] Size ID of machines:
* 0 - Small
* 1 - Medium
@@ -37,6 +37,7 @@ class StampCapacity {
* @member {boolean} [isApplicableForAllComputeModes] true
if
* capacity is applicable for all apps; otherwise, false
.
* @member {string} [siteMode] Shared or Dedicated.
+ * @member {boolean} [isLinux] Is this a linux stamp capacity
*/
constructor() {
}
@@ -96,7 +97,7 @@ class StampCapacity {
serializedName: 'workerSize',
type: {
name: 'Enum',
- allowedValues: [ 'Default', 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3' ]
+ allowedValues: [ 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default' ]
}
},
workerSizeId: {
@@ -126,6 +127,13 @@ class StampCapacity {
type: {
name: 'String'
}
+ },
+ isLinux: {
+ required: false,
+ serializedName: 'isLinux',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/swiftVirtualNetwork.js b/lib/services/websiteManagement2/lib/models/swiftVirtualNetwork.js
new file mode 100644
index 0000000000..7001e790fd
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/swiftVirtualNetwork.js
@@ -0,0 +1,99 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+'use strict';
+
+const models = require('./index');
+
+/**
+ * Swift Virtual Network Contract. This is used to enable the new Swift way of
+ * doing virtual network integration.
+ *
+ * @extends models['ProxyOnlyResource']
+ */
+class SwiftVirtualNetwork extends models['ProxyOnlyResource'] {
+ /**
+ * Create a SwiftVirtualNetwork.
+ * @member {string} [subnetResourceId] The Virtual Network subnet's resource
+ * ID. This is the subnet that this Web App will join. This subnet must have
+ * a delegation to Microsoft.Web/serverFarms defined first.
+ * @member {boolean} [swiftSupported] A flag that specifies if the scale unit
+ * this Web App is on supports Swift integration.
+ */
+ constructor() {
+ super();
+ }
+
+ /**
+ * Defines the metadata of SwiftVirtualNetwork
+ *
+ * @returns {object} metadata of SwiftVirtualNetwork
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'SwiftVirtualNetwork',
+ type: {
+ name: 'Composite',
+ className: 'SwiftVirtualNetwork',
+ modelProperties: {
+ id: {
+ required: false,
+ readOnly: true,
+ serializedName: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ readOnly: true,
+ serializedName: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ kind: {
+ required: false,
+ serializedName: 'kind',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ readOnly: true,
+ serializedName: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ subnetResourceId: {
+ required: false,
+ serializedName: 'properties.subnetResourceId',
+ type: {
+ name: 'String'
+ }
+ },
+ swiftSupported: {
+ required: false,
+ serializedName: 'properties.swiftSupported',
+ type: {
+ name: 'Boolean'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = SwiftVirtualNetwork;
diff --git a/lib/services/websiteManagement2/lib/models/topLevelDomain.js b/lib/services/websiteManagement2/lib/models/topLevelDomain.js
index 76d8577eaf..d5e0a3c95c 100644
--- a/lib/services/websiteManagement2/lib/models/topLevelDomain.js
+++ b/lib/services/websiteManagement2/lib/models/topLevelDomain.js
@@ -20,7 +20,6 @@ const models = require('./index');
class TopLevelDomain extends models['ProxyOnlyResource'] {
/**
* Create a TopLevelDomain.
- * @member {string} [domainName] Name of the top level domain.
* @member {boolean} [privacy] If true
, then the top level
* domain supports domain privacy; otherwise, false
.
*/
@@ -73,14 +72,6 @@ class TopLevelDomain extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- domainName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
privacy: {
required: false,
serializedName: 'properties.privacy',
diff --git a/lib/services/websiteManagement2/lib/models/triggeredJobHistory.js b/lib/services/websiteManagement2/lib/models/triggeredJobHistory.js
index dda09c1cae..7623db0417 100644
--- a/lib/services/websiteManagement2/lib/models/triggeredJobHistory.js
+++ b/lib/services/websiteManagement2/lib/models/triggeredJobHistory.js
@@ -21,7 +21,7 @@ const models = require('./index');
class TriggeredJobHistory extends models['ProxyOnlyResource'] {
/**
* Create a TriggeredJobHistory.
- * @member {array} [triggeredJobRuns] List of triggered web job runs.
+ * @member {array} [runs] List of triggered web job runs.
*/
constructor() {
super();
@@ -72,9 +72,9 @@ class TriggeredJobHistory extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- triggeredJobRuns: {
+ runs: {
required: false,
- serializedName: 'properties.triggeredJobRuns',
+ serializedName: 'properties.runs',
type: {
name: 'Sequence',
element: {
diff --git a/lib/services/websiteManagement2/lib/models/triggeredJobRun.js b/lib/services/websiteManagement2/lib/models/triggeredJobRun.js
index dafb649e30..ef4774b6e4 100644
--- a/lib/services/websiteManagement2/lib/models/triggeredJobRun.js
+++ b/lib/services/websiteManagement2/lib/models/triggeredJobRun.js
@@ -20,8 +20,8 @@ const models = require('./index');
class TriggeredJobRun extends models['ProxyOnlyResource'] {
/**
* Create a TriggeredJobRun.
- * @member {string} [triggeredJobRunId] Job ID.
- * @member {string} [triggeredJobRunName] Job name.
+ * @member {string} [webJobId] Job ID.
+ * @member {string} [webJobName] Job name.
* @member {string} [status] Job status. Possible values include: 'Success',
* 'Failed', 'Error'
* @member {date} [startTime] Start time.
@@ -82,17 +82,16 @@ class TriggeredJobRun extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- triggeredJobRunId: {
+ webJobId: {
required: false,
- serializedName: 'properties.id',
+ serializedName: 'properties.web_job_id',
type: {
name: 'String'
}
},
- triggeredJobRunName: {
+ webJobName: {
required: false,
- readOnly: true,
- serializedName: 'properties.name',
+ serializedName: 'properties.web_job_name',
type: {
name: 'String'
}
@@ -107,14 +106,14 @@ class TriggeredJobRun extends models['ProxyOnlyResource'] {
},
startTime: {
required: false,
- serializedName: 'properties.startTime',
+ serializedName: 'properties.start_time',
type: {
name: 'DateTime'
}
},
endTime: {
required: false,
- serializedName: 'properties.endTime',
+ serializedName: 'properties.end_time',
type: {
name: 'DateTime'
}
@@ -128,14 +127,14 @@ class TriggeredJobRun extends models['ProxyOnlyResource'] {
},
outputUrl: {
required: false,
- serializedName: 'properties.outputUrl',
+ serializedName: 'properties.output_url',
type: {
name: 'String'
}
},
errorUrl: {
required: false,
- serializedName: 'properties.errorUrl',
+ serializedName: 'properties.error_url',
type: {
name: 'String'
}
@@ -149,7 +148,7 @@ class TriggeredJobRun extends models['ProxyOnlyResource'] {
},
jobName: {
required: false,
- serializedName: 'properties.jobName',
+ serializedName: 'properties.job_name',
type: {
name: 'String'
}
diff --git a/lib/services/websiteManagement2/lib/models/triggeredWebJob.js b/lib/services/websiteManagement2/lib/models/triggeredWebJob.js
index 076ffffe05..b062eb3eb4 100644
--- a/lib/services/websiteManagement2/lib/models/triggeredWebJob.js
+++ b/lib/services/websiteManagement2/lib/models/triggeredWebJob.js
@@ -21,8 +21,8 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
/**
* Create a TriggeredWebJob.
* @member {object} [latestRun] Latest job run information.
- * @member {string} [latestRun.triggeredJobRunId] Job ID.
- * @member {string} [latestRun.triggeredJobRunName] Job name.
+ * @member {string} [latestRun.webJobId] Job ID.
+ * @member {string} [latestRun.webJobName] Job name.
* @member {string} [latestRun.status] Job status. Possible values include:
* 'Success', 'Failed', 'Error'
* @member {date} [latestRun.startTime] Start time.
@@ -35,12 +35,10 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
* @member {string} [latestRun.trigger] Job trigger.
* @member {string} [historyUrl] History URL.
* @member {string} [schedulerLogsUrl] Scheduler Logs URL.
- * @member {string} [triggeredWebJobName] Job name. Used as job identifier in
- * ARM resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include:
+ * @member {string} [webJobType] Job type. Possible values include:
* 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
@@ -97,7 +95,7 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
},
latestRun: {
required: false,
- serializedName: 'properties.latestRun',
+ serializedName: 'properties.latest_run',
type: {
name: 'Composite',
className: 'TriggeredJobRun'
@@ -105,29 +103,21 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
},
historyUrl: {
required: false,
- serializedName: 'properties.historyUrl',
+ serializedName: 'properties.history_url',
type: {
name: 'String'
}
},
schedulerLogsUrl: {
required: false,
- serializedName: 'properties.schedulerLogsUrl',
- type: {
- name: 'String'
- }
- },
- triggeredWebJobName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
+ serializedName: 'properties.scheduler_logs_url',
type: {
name: 'String'
}
},
runCommand: {
required: false,
- serializedName: 'properties.runCommand',
+ serializedName: 'properties.run_command',
type: {
name: 'String'
}
@@ -141,14 +131,14 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
},
extraInfoUrl: {
required: false,
- serializedName: 'properties.extraInfoUrl',
+ serializedName: 'properties.extra_info_url',
type: {
name: 'String'
}
},
- jobType: {
+ webJobType: {
required: false,
- serializedName: 'properties.jobType',
+ serializedName: 'properties.web_job_type',
type: {
name: 'Enum',
allowedValues: [ 'Continuous', 'Triggered' ]
@@ -163,7 +153,7 @@ class TriggeredWebJob extends models['ProxyOnlyResource'] {
},
usingSdk: {
required: false,
- serializedName: 'properties.usingSdk',
+ serializedName: 'properties.using_sdk',
type: {
name: 'Boolean'
}
diff --git a/lib/services/websiteManagement2/lib/models/usage.js b/lib/services/websiteManagement2/lib/models/usage.js
index a8bb508dd5..b030fdbfde 100644
--- a/lib/services/websiteManagement2/lib/models/usage.js
+++ b/lib/services/websiteManagement2/lib/models/usage.js
@@ -21,7 +21,6 @@ class Usage extends models['ProxyOnlyResource'] {
/**
* Create a Usage.
* @member {string} [displayName] Friendly name shown in the UI.
- * @member {string} [usageName] Name of the quota.
* @member {string} [resourceName] Name of the quota resource.
* @member {string} [unit] Units of measurement for the quota resource.
* @member {number} [currentValue] The current value of the resource counter.
@@ -88,14 +87,6 @@ class Usage extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- usageName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
resourceName: {
required: false,
readOnly: true,
diff --git a/lib/services/websiteManagement2/lib/models/user.js b/lib/services/websiteManagement2/lib/models/user.js
index 8f3d0fbad6..ec8071fce3 100644
--- a/lib/services/websiteManagement2/lib/models/user.js
+++ b/lib/services/websiteManagement2/lib/models/user.js
@@ -20,13 +20,13 @@ const models = require('./index');
class User extends models['ProxyOnlyResource'] {
/**
* Create a User.
- * @member {string} [userName] Username
* @member {string} publishingUserName Username used for publishing.
* @member {string} [publishingPassword] Password used for publishing.
* @member {string} [publishingPasswordHash] Password hash used for
* publishing.
* @member {string} [publishingPasswordHashSalt] Password hash salt used for
* publishing.
+ * @member {string} [scmUri] Url of SCM site.
*/
constructor() {
super();
@@ -77,13 +77,6 @@ class User extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- userName: {
- required: false,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
publishingUserName: {
required: true,
serializedName: 'properties.publishingUserName',
@@ -111,6 +104,13 @@ class User extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ scmUri: {
+ required: false,
+ serializedName: 'properties.scmUri',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/validateRequest.js b/lib/services/websiteManagement2/lib/models/validateRequest.js
index 479983a00f..3ca18ee528 100644
--- a/lib/services/websiteManagement2/lib/models/validateRequest.js
+++ b/lib/services/websiteManagement2/lib/models/validateRequest.js
@@ -33,6 +33,8 @@ class ValidateRequest {
* (number of VM's).
* @member {string} [hostingEnvironment] Name of App Service Environment
* where app or App Service plan should be created.
+ * @member {boolean} [isXenon] true
if App Service plan is
+ * running as a windows container
*/
constructor() {
}
@@ -116,6 +118,13 @@ class ValidateRequest {
type: {
name: 'String'
}
+ },
+ isXenon: {
+ required: false,
+ serializedName: 'properties.isXenon',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/vnetRoute.js b/lib/services/websiteManagement2/lib/models/vnetRoute.js
index 5df4cf5959..5dfe8a762e 100644
--- a/lib/services/websiteManagement2/lib/models/vnetRoute.js
+++ b/lib/services/websiteManagement2/lib/models/vnetRoute.js
@@ -21,8 +21,6 @@ const models = require('./index');
class VnetRoute extends models['ProxyOnlyResource'] {
/**
* Create a VnetRoute.
- * @member {string} [vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
* @member {string} [startAddress] The starting address for this route. This
* may also include a CIDR notation, in which case the end address must not
* be specified.
@@ -86,13 +84,6 @@ class VnetRoute extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- vnetRouteName: {
- required: false,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
startAddress: {
required: false,
serializedName: 'properties.startAddress',
diff --git a/lib/services/websiteManagement2/lib/models/webJob.js b/lib/services/websiteManagement2/lib/models/webJob.js
index 8f2ed44730..071625ad9b 100644
--- a/lib/services/websiteManagement2/lib/models/webJob.js
+++ b/lib/services/websiteManagement2/lib/models/webJob.js
@@ -20,12 +20,10 @@ const models = require('./index');
class WebJob extends models['ProxyOnlyResource'] {
/**
* Create a WebJob.
- * @member {string} [webJobName] Job name. Used as job identifier in ARM
- * resource URI.
* @member {string} [runCommand] Run command.
* @member {string} [url] Job URL.
* @member {string} [extraInfoUrl] Extra Info URL.
- * @member {string} [jobType] Job type. Possible values include:
+ * @member {string} [webJobType] Job type. Possible values include:
* 'Continuous', 'Triggered'
* @member {string} [error] Error information.
* @member {boolean} [usingSdk] Using SDK?
@@ -80,17 +78,9 @@ class WebJob extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- webJobName: {
- required: false,
- readOnly: true,
- serializedName: 'properties.name',
- type: {
- name: 'String'
- }
- },
runCommand: {
required: false,
- serializedName: 'properties.runCommand',
+ serializedName: 'properties.run_command',
type: {
name: 'String'
}
@@ -104,14 +94,14 @@ class WebJob extends models['ProxyOnlyResource'] {
},
extraInfoUrl: {
required: false,
- serializedName: 'properties.extraInfoUrl',
+ serializedName: 'properties.extra_info_url',
type: {
name: 'String'
}
},
- jobType: {
+ webJobType: {
required: false,
- serializedName: 'properties.jobType',
+ serializedName: 'properties.web_job_type',
type: {
name: 'Enum',
allowedValues: [ 'Continuous', 'Triggered' ]
@@ -126,7 +116,7 @@ class WebJob extends models['ProxyOnlyResource'] {
},
usingSdk: {
required: false,
- serializedName: 'properties.usingSdk',
+ serializedName: 'properties.using_sdk',
type: {
name: 'Boolean'
}
diff --git a/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js b/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
index 66ac67f507..c61d1b4c3d 100644
--- a/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
+++ b/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
@@ -48,12 +48,14 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -66,7 +68,7 @@ function _list(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -108,12 +110,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -211,7 +214,6 @@ function _validatePurchaseInformation(appServiceCertificateOrder, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (appServiceCertificateOrder === null || appServiceCertificateOrder === undefined) {
@@ -220,6 +222,9 @@ function _validatePurchaseInformation(appServiceCertificateOrder, options, callb
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -232,7 +237,7 @@ function _validatePurchaseInformation(appServiceCertificateOrder, options, callb
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -348,7 +353,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -371,6 +375,9 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -384,7 +391,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -426,12 +433,13 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -505,7 +513,6 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -531,6 +538,9 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -545,7 +555,7 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -587,12 +597,13 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -777,7 +788,6 @@ function _deleteMethod(resourceGroupName, certificateOrderName, options, callbac
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -803,6 +813,9 @@ function _deleteMethod(resourceGroupName, certificateOrderName, options, callbac
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -817,7 +830,7 @@ function _deleteMethod(resourceGroupName, certificateOrderName, options, callbac
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -948,7 +961,6 @@ function _update(resourceGroupName, certificateOrderName, certificateDistinguish
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -977,6 +989,9 @@ function _update(resourceGroupName, certificateOrderName, certificateDistinguish
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -991,7 +1006,7 @@ function _update(resourceGroupName, certificateOrderName, certificateDistinguish
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1047,12 +1062,13 @@ function _update(resourceGroupName, certificateOrderName, certificateDistinguish
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1143,7 +1159,6 @@ function _listCertificates(resourceGroupName, certificateOrderName, options, cal
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1169,6 +1184,9 @@ function _listCertificates(resourceGroupName, certificateOrderName, options, cal
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1183,7 +1201,7 @@ function _listCertificates(resourceGroupName, certificateOrderName, options, cal
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1225,12 +1243,13 @@ function _listCertificates(resourceGroupName, certificateOrderName, options, cal
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1306,7 +1325,6 @@ function _getCertificate(resourceGroupName, certificateOrderName, name, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1335,6 +1353,9 @@ function _getCertificate(resourceGroupName, certificateOrderName, name, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1350,7 +1371,7 @@ function _getCertificate(resourceGroupName, certificateOrderName, name, options,
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1392,12 +1413,13 @@ function _getCertificate(resourceGroupName, certificateOrderName, name, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1569,7 +1591,6 @@ function _deleteCertificate(resourceGroupName, certificateOrderName, name, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1598,6 +1619,9 @@ function _deleteCertificate(resourceGroupName, certificateOrderName, name, optio
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1613,7 +1637,7 @@ function _deleteCertificate(resourceGroupName, certificateOrderName, name, optio
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1729,7 +1753,6 @@ function _updateCertificate(resourceGroupName, certificateOrderName, name, keyVa
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1761,6 +1784,9 @@ function _updateCertificate(resourceGroupName, certificateOrderName, name, keyVa
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1776,7 +1802,7 @@ function _updateCertificate(resourceGroupName, certificateOrderName, name, keyVa
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1832,12 +1858,13 @@ function _updateCertificate(resourceGroupName, certificateOrderName, name, keyVa
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1944,7 +1971,6 @@ function _reissue(resourceGroupName, certificateOrderName, reissueCertificateOrd
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1973,6 +1999,9 @@ function _reissue(resourceGroupName, certificateOrderName, reissueCertificateOrd
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1987,7 +2016,7 @@ function _reissue(resourceGroupName, certificateOrderName, reissueCertificateOrd
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2116,7 +2145,6 @@ function _renew(resourceGroupName, certificateOrderName, renewCertificateOrderRe
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2145,6 +2173,9 @@ function _renew(resourceGroupName, certificateOrderName, renewCertificateOrderRe
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2159,7 +2190,7 @@ function _renew(resourceGroupName, certificateOrderName, renewCertificateOrderRe
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2275,7 +2306,6 @@ function _resendEmail(resourceGroupName, certificateOrderName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2301,6 +2331,9 @@ function _resendEmail(resourceGroupName, certificateOrderName, options, callback
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2315,7 +2348,7 @@ function _resendEmail(resourceGroupName, certificateOrderName, options, callback
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2420,7 +2453,6 @@ function _resendRequestEmails(resourceGroupName, certificateOrderName, options,
throw new Error('callback cannot be null.');
}
let name = (options && options.name !== undefined) ? options.name : undefined;
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2446,6 +2478,9 @@ function _resendRequestEmails(resourceGroupName, certificateOrderName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
+ }
if (name !== null && name !== undefined && typeof name.valueOf() !== 'string') {
throw new Error('name must be of type string.');
}
@@ -2468,7 +2503,7 @@ function _resendRequestEmails(resourceGroupName, certificateOrderName, options,
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2592,7 +2627,6 @@ function _retrieveSiteSeal(resourceGroupName, certificateOrderName, siteSealRequ
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2621,6 +2655,9 @@ function _retrieveSiteSeal(resourceGroupName, certificateOrderName, siteSealRequ
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2635,7 +2672,7 @@ function _retrieveSiteSeal(resourceGroupName, certificateOrderName, siteSealRequ
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2691,12 +2728,13 @@ function _retrieveSiteSeal(resourceGroupName, certificateOrderName, siteSealRequ
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2768,7 +2806,6 @@ function _verifyDomainOwnership(resourceGroupName, certificateOrderName, options
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2794,6 +2831,9 @@ function _verifyDomainOwnership(resourceGroupName, certificateOrderName, options
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2808,7 +2848,7 @@ function _verifyDomainOwnership(resourceGroupName, certificateOrderName, options
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2910,7 +2950,6 @@ function _retrieveCertificateActions(resourceGroupName, name, options, callback)
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2936,6 +2975,9 @@ function _retrieveCertificateActions(resourceGroupName, name, options, callback)
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2950,7 +2992,7 @@ function _retrieveCertificateActions(resourceGroupName, name, options, callback)
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2992,12 +3034,13 @@ function _retrieveCertificateActions(resourceGroupName, name, options, callback)
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3083,7 +3126,6 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3109,6 +3151,9 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3123,7 +3168,7 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3165,12 +3210,13 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3289,7 +3335,6 @@ function _beginCreateOrUpdate(resourceGroupName, certificateOrderName, certifica
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3318,6 +3363,9 @@ function _beginCreateOrUpdate(resourceGroupName, certificateOrderName, certifica
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3332,7 +3380,7 @@ function _beginCreateOrUpdate(resourceGroupName, certificateOrderName, certifica
requestUrl = requestUrl.replace('{certificateOrderName}', encodeURIComponent(certificateOrderName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3388,12 +3436,13 @@ function _beginCreateOrUpdate(resourceGroupName, certificateOrderName, certifica
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3500,7 +3549,6 @@ function _beginCreateOrUpdateCertificate(resourceGroupName, certificateOrderName
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3532,6 +3580,9 @@ function _beginCreateOrUpdateCertificate(resourceGroupName, certificateOrderName
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3547,7 +3598,7 @@ function _beginCreateOrUpdateCertificate(resourceGroupName, certificateOrderName
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3603,12 +3654,13 @@ function _beginCreateOrUpdateCertificate(resourceGroupName, certificateOrderName
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3750,12 +3802,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3880,12 +3933,13 @@ function _listByResourceGroupNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4010,12 +4064,13 @@ function _listCertificatesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js b/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
index ad008a5ab6..4e8dcefbed 100644
--- a/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
+++ b/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
@@ -48,12 +48,14 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -66,7 +68,7 @@ function _list(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -108,12 +110,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -185,7 +188,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -208,6 +210,9 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -221,7 +226,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -263,12 +268,13 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -342,7 +348,6 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -368,6 +373,9 @@ function _get(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -382,7 +390,7 @@ function _get(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -424,12 +432,13 @@ function _get(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -549,6 +558,15 @@ function _get(resourceGroupName, name, options, callback) {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -780,6 +798,15 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -811,7 +838,6 @@ function _update(resourceGroupName, name, hostingEnvironmentEnvelope, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -840,6 +866,9 @@ function _update(resourceGroupName, name, hostingEnvironmentEnvelope, options, c
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -854,7 +883,7 @@ function _update(resourceGroupName, name, hostingEnvironmentEnvelope, options, c
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1008,7 +1037,6 @@ function _listCapacities(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1034,6 +1062,9 @@ function _listCapacities(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1048,7 +1079,7 @@ function _listCapacities(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1090,12 +1121,13 @@ function _listCapacities(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1168,7 +1200,6 @@ function _listVips(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1194,6 +1225,9 @@ function _listVips(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1208,7 +1242,7 @@ function _listVips(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1250,12 +1284,13 @@ function _listVips(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1290,6 +1325,93 @@ function _listVips(resourceGroupName, name, options, callback) {
});
}
+
+/**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} vnetInfo Details for the new virtual network.
+ *
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
+ *
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} callback - The callback.
+ *
+ * @returns {function} callback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+function _changeVnet(resourceGroupName, name, vnetInfo, options, callback) {
+ /* jshint validthis: true */
+ let client = this.client;
+ if(!callback && typeof options === 'function') {
+ callback = options;
+ options = null;
+ }
+
+ if (!callback) {
+ throw new Error('callback cannot be null.');
+ }
+
+ // Send request
+ this.beginChangeVnet(resourceGroupName, name, vnetInfo, options, (err, parsedResult, httpRequest, response) => {
+ if (err) return callback(err);
+
+ let initialResult = new msRest.HttpOperationResponse();
+ initialResult.request = httpRequest;
+ initialResult.response = response;
+ initialResult.body = response.body;
+ client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => {
+ if (err) return callback(err);
+
+ // Create Result
+ let result = null;
+
+ httpRequest = pollingResult.request;
+ response = pollingResult.response;
+ let responseBody = pollingResult.body;
+ if (responseBody === '') responseBody = null;
+
+ // Deserialize Response
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['WebAppCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError.request = msRest.stripRequest(httpRequest);
+ deserializationError.response = msRest.stripResponse(response);
+ return callback(deserializationError);
+ }
+
+ return callback(null, result, httpRequest, response);
+ });
+ });
+}
+
/**
* @summary Get diagnostic information for an App Service Environment.
*
@@ -1327,7 +1449,6 @@ function _listDiagnostics(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1353,6 +1474,9 @@ function _listDiagnostics(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1367,7 +1491,7 @@ function _listDiagnostics(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1409,12 +1533,13 @@ function _listDiagnostics(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1504,7 +1629,6 @@ function _getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1533,6 +1657,9 @@ function _getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1548,7 +1675,7 @@ function _getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options,
requestUrl = requestUrl.replace('{diagnosticsName}', encodeURIComponent(diagnosticsName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1590,12 +1717,13 @@ function _getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1668,7 +1796,6 @@ function _listMetricDefinitions(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1694,6 +1821,9 @@ function _listMetricDefinitions(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1708,7 +1838,7 @@ function _listMetricDefinitions(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1750,12 +1880,13 @@ function _listMetricDefinitions(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1840,7 +1971,6 @@ function _listMetrics(resourceGroupName, name, options, callback) {
}
let details = (options && options.details !== undefined) ? options.details : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1872,6 +2002,9 @@ function _listMetrics(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1892,7 +2025,7 @@ function _listMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1934,12 +2067,13 @@ function _listMetrics(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2012,7 +2146,6 @@ function _listMultiRolePools(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2038,6 +2171,9 @@ function _listMultiRolePools(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2052,7 +2188,7 @@ function _listMultiRolePools(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2094,12 +2230,13 @@ function _listMultiRolePools(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2172,7 +2309,6 @@ function _getMultiRolePool(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2198,6 +2334,9 @@ function _getMultiRolePool(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2212,7 +2351,7 @@ function _getMultiRolePool(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2254,12 +2393,13 @@ function _getMultiRolePool(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2517,7 +2657,6 @@ function _updateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, op
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2546,6 +2685,9 @@ function _updateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, op
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2560,7 +2702,7 @@ function _updateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, op
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2716,7 +2858,6 @@ function _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, in
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2745,6 +2886,9 @@ function _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, in
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2760,7 +2904,7 @@ function _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, in
requestUrl = requestUrl.replace('{instance}', encodeURIComponent(instance));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2802,12 +2946,13 @@ function _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, in
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2889,7 +3034,6 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
throw new Error('callback cannot be null.');
}
let details = (options && options.details !== undefined) ? options.details : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2921,6 +3065,9 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2939,7 +3086,7 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
if (details !== null && details !== undefined) {
queryParameters.push('details=' + encodeURIComponent(details.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2981,12 +3128,13 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3061,7 +3209,6 @@ function _listMultiRoleMetricDefinitions(resourceGroupName, name, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3087,6 +3234,9 @@ function _listMultiRoleMetricDefinitions(resourceGroupName, name, options, callb
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3101,7 +3251,7 @@ function _listMultiRoleMetricDefinitions(resourceGroupName, name, options, callb
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3143,12 +3293,13 @@ function _listMultiRoleMetricDefinitions(resourceGroupName, name, options, callb
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3242,7 +3393,6 @@ function _listMultiRoleMetrics(resourceGroupName, name, options, callback) {
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
let details = (options && options.details !== undefined) ? options.details : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3283,6 +3433,9 @@ function _listMultiRoleMetrics(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3312,7 +3465,7 @@ function _listMultiRoleMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3354,12 +3507,13 @@ function _listMultiRoleMetrics(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3432,7 +3586,6 @@ function _listMultiRolePoolSkus(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3458,6 +3611,9 @@ function _listMultiRolePoolSkus(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3472,7 +3628,7 @@ function _listMultiRolePoolSkus(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3514,12 +3670,13 @@ function _listMultiRolePoolSkus(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3593,7 +3750,6 @@ function _listMultiRoleUsages(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3619,6 +3775,9 @@ function _listMultiRoleUsages(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3633,7 +3792,7 @@ function _listMultiRoleUsages(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3675,12 +3834,13 @@ function _listMultiRoleUsages(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3753,7 +3913,6 @@ function _listOperations(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3779,6 +3938,9 @@ function _listOperations(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3793,7 +3955,7 @@ function _listOperations(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3835,12 +3997,13 @@ function _listOperations(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3926,7 +4089,6 @@ function _reboot(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3952,6 +4114,9 @@ function _reboot(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3966,7 +4131,7 @@ function _reboot(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4151,7 +4316,6 @@ function _listAppServicePlans(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4177,6 +4341,9 @@ function _listAppServicePlans(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4191,7 +4358,7 @@ function _listAppServicePlans(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4233,12 +4400,13 @@ function _listAppServicePlans(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4315,7 +4483,6 @@ function _listWebApps(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let propertiesToInclude = (options && options.propertiesToInclude !== undefined) ? options.propertiesToInclude : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4344,6 +4511,9 @@ function _listWebApps(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4361,7 +4531,7 @@ function _listWebApps(resourceGroupName, name, options, callback) {
if (propertiesToInclude !== null && propertiesToInclude !== undefined) {
queryParameters.push('propertiesToInclude=' + encodeURIComponent(propertiesToInclude));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4403,12 +4573,13 @@ function _listWebApps(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4570,7 +4741,6 @@ function _listUsages(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4599,6 +4769,9 @@ function _listUsages(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4616,7 +4789,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4658,12 +4831,13 @@ function _listUsages(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4736,7 +4910,6 @@ function _listWorkerPools(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4762,6 +4935,9 @@ function _listWorkerPools(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4776,7 +4952,7 @@ function _listWorkerPools(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4818,12 +4994,13 @@ function _listWorkerPools(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4898,7 +5075,6 @@ function _getWorkerPool(resourceGroupName, name, workerPoolName, options, callba
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4927,6 +5103,9 @@ function _getWorkerPool(resourceGroupName, name, workerPoolName, options, callba
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4942,7 +5121,7 @@ function _getWorkerPool(resourceGroupName, name, workerPoolName, options, callba
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4984,12 +5163,13 @@ function _getWorkerPool(resourceGroupName, name, workerPoolName, options, callba
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5251,7 +5431,6 @@ function _updateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEn
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5283,6 +5462,9 @@ function _updateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEn
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -5298,7 +5480,7 @@ function _updateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEn
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5456,7 +5638,6 @@ function _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, worke
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5488,6 +5669,9 @@ function _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, worke
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -5504,7 +5688,7 @@ function _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, worke
requestUrl = requestUrl.replace('{instance}', encodeURIComponent(instance));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5546,12 +5730,13 @@ function _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, worke
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5642,7 +5827,6 @@ function _listWorkerPoolInstanceMetrics(resourceGroupName, name, workerPoolName,
}
let details = (options && options.details !== undefined) ? options.details : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5680,6 +5864,9 @@ function _listWorkerPoolInstanceMetrics(resourceGroupName, name, workerPoolName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -5702,7 +5889,7 @@ function _listWorkerPoolInstanceMetrics(resourceGroupName, name, workerPoolName,
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5744,12 +5931,13 @@ function _listWorkerPoolInstanceMetrics(resourceGroupName, name, workerPoolName,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5826,7 +6014,6 @@ function _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5855,6 +6042,9 @@ function _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -5870,7 +6060,7 @@ function _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5912,12 +6102,13 @@ function _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6006,7 +6197,6 @@ function _listWebWorkerMetrics(resourceGroupName, name, workerPoolName, options,
}
let details = (options && options.details !== undefined) ? options.details : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6041,6 +6231,9 @@ function _listWebWorkerMetrics(resourceGroupName, name, workerPoolName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -6062,7 +6255,7 @@ function _listWebWorkerMetrics(resourceGroupName, name, workerPoolName, options,
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6104,12 +6297,13 @@ function _listWebWorkerMetrics(resourceGroupName, name, workerPoolName, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6184,7 +6378,6 @@ function _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6213,6 +6406,9 @@ function _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options, c
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -6228,7 +6424,7 @@ function _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options, c
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6270,12 +6466,13 @@ function _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options, c
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6350,7 +6547,6 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6379,6 +6575,9 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -6394,7 +6593,7 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6436,12 +6635,13 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6560,6 +6760,15 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -6595,7 +6804,6 @@ function _beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelop
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6624,6 +6832,9 @@ function _beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelop
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -6638,7 +6849,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelop
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6793,7 +7004,6 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let forceDelete = (options && options.forceDelete !== undefined) ? options.forceDelete : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6822,6 +7032,9 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -6839,7 +7052,7 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
if (forceDelete !== null && forceDelete !== undefined) {
queryParameters.push('forceDelete=' + encodeURIComponent(forceDelete.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6905,30 +7118,233 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
}
/**
- * @summary Create or update a multi-role pool.
+ * @summary Move an App Service Environment to a different VNET.
*
- * Create or update a multi-role pool.
+ * Move an App Service Environment to a different VNET.
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
*
* @param {string} name Name of the App Service Environment.
*
- * @param {object} multiRolePoolEnvelope Properties of the multi-role pool.
+ * @param {object} vnetInfo Details for the new virtual network.
*
- * @param {number} [multiRolePoolEnvelope.workerSizeId] Worker size ID for
- * referencing this worker pool.
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
*
- * @param {string} [multiRolePoolEnvelope.computeMode] Shared or dedicated app
- * hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic'
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
*
- * @param {string} [multiRolePoolEnvelope.workerSize] VM size of the worker
- * pool instances.
+ * @param {object} [options] Optional Parameters.
*
- * @param {number} [multiRolePoolEnvelope.workerCount] Number of instances in
- * the worker pool.
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
*
- * @param {object} [multiRolePoolEnvelope.sku]
+ * @param {function} callback - The callback.
+ *
+ * @returns {function} callback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+function _beginChangeVnet(resourceGroupName, name, vnetInfo, options, callback) {
+ /* jshint validthis: true */
+ let client = this.client;
+ if(!callback && typeof options === 'function') {
+ callback = options;
+ options = null;
+ }
+ if (!callback) {
+ throw new Error('callback cannot be null.');
+ }
+ // Validate
+ try {
+ if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
+ throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
+ }
+ if (resourceGroupName !== null && resourceGroupName !== undefined) {
+ if (resourceGroupName.length > 90)
+ {
+ throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
+ }
+ if (resourceGroupName.length < 1)
+ {
+ throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
+ }
+ if (resourceGroupName.match(/^[-\w\._\(\)]+[^\.]$/) === null)
+ {
+ throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+[^\.]$/');
+ }
+ }
+ if (name === null || name === undefined || typeof name.valueOf() !== 'string') {
+ throw new Error('name cannot be null or undefined and it must be of type string.');
+ }
+ if (vnetInfo === null || vnetInfo === undefined) {
+ throw new Error('vnetInfo cannot be null or undefined.');
+ }
+ 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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
+ }
+ } catch (error) {
+ return callback(error);
+ }
+
+ // Construct URL
+ let baseUrl = this.client.baseUri;
+ let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork';
+ requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
+ requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
+ requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
+ let queryParameters = [];
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ if (queryParameters.length > 0) {
+ requestUrl += '?' + queryParameters.join('&');
+ }
+
+ // Create HTTP transport objects
+ let httpRequest = new WebResource();
+ httpRequest.method = 'POST';
+ httpRequest.url = requestUrl;
+ httpRequest.headers = {};
+ // Set Headers
+ httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
+ if (this.client.generateClientRequestId) {
+ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
+ }
+ if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
+ httpRequest.headers['accept-language'] = this.client.acceptLanguage;
+ }
+ if(options) {
+ for(let headerName in options['customHeaders']) {
+ if (options['customHeaders'].hasOwnProperty(headerName)) {
+ httpRequest.headers[headerName] = options['customHeaders'][headerName];
+ }
+ }
+ }
+ // Serialize Request
+ let requestContent = null;
+ let requestModel = null;
+ try {
+ if (vnetInfo !== null && vnetInfo !== undefined) {
+ let requestModelMapper = new client.models['VirtualNetworkProfile']().mapper();
+ requestModel = client.serialize(requestModelMapper, vnetInfo, 'vnetInfo');
+ requestContent = JSON.stringify(requestModel);
+ }
+ } catch (error) {
+ let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` +
+ `payload - ${JSON.stringify(vnetInfo, null, 2)}.`);
+ return callback(serializationError);
+ }
+ httpRequest.body = requestContent;
+ // Send Request
+ return client.pipeline(httpRequest, (err, response, responseBody) => {
+ if (err) {
+ return callback(err);
+ }
+ let statusCode = response.statusCode;
+ if (statusCode !== 200 && statusCode !== 202) {
+ let error = new Error(responseBody);
+ error.statusCode = response.statusCode;
+ error.request = msRest.stripRequest(httpRequest);
+ error.response = msRest.stripResponse(response);
+ if (responseBody === '') responseBody = null;
+ let parsedErrorResponse;
+ try {
+ parsedErrorResponse = JSON.parse(responseBody);
+ if (parsedErrorResponse) {
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
+ }
+ if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
+ error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
+ }
+ } catch (defaultError) {
+ error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` +
+ `- "${responseBody}" for the default response.`;
+ return callback(error);
+ }
+ return callback(error);
+ }
+ // Create Result
+ let result = null;
+ if (responseBody === '') responseBody = null;
+ // Deserialize Response
+ if (statusCode === 200) {
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['WebAppCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError.request = msRest.stripRequest(httpRequest);
+ deserializationError.response = msRest.stripResponse(response);
+ return callback(deserializationError);
+ }
+ }
+ // Deserialize Response
+ if (statusCode === 202) {
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['WebAppCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError1.request = msRest.stripRequest(httpRequest);
+ deserializationError1.response = msRest.stripResponse(response);
+ return callback(deserializationError1);
+ }
+ }
+
+ return callback(null, result, httpRequest, response);
+ });
+}
+
+/**
+ * @summary Create or update a multi-role pool.
+ *
+ * Create or update a multi-role pool.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} multiRolePoolEnvelope Properties of the multi-role pool.
+ *
+ * @param {number} [multiRolePoolEnvelope.workerSizeId] Worker size ID for
+ * referencing this worker pool.
+ *
+ * @param {string} [multiRolePoolEnvelope.computeMode] Shared or dedicated app
+ * hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic'
+ *
+ * @param {string} [multiRolePoolEnvelope.workerSize] VM size of the worker
+ * pool instances.
+ *
+ * @param {number} [multiRolePoolEnvelope.workerCount] Number of instances in
+ * the worker pool.
+ *
+ * @param {object} [multiRolePoolEnvelope.sku]
*
* @param {string} [multiRolePoolEnvelope.sku.name] Name of the resource SKU.
*
@@ -6994,7 +7410,6 @@ function _beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoo
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7023,6 +7438,9 @@ function _beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoo
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -7037,7 +7455,7 @@ function _beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoo
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7188,7 +7606,6 @@ function _beginResume(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7214,6 +7631,9 @@ function _beginResume(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -7228,7 +7648,7 @@ function _beginResume(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7270,12 +7690,13 @@ function _beginResume(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -7365,7 +7786,6 @@ function _beginSuspend(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7391,6 +7811,9 @@ function _beginSuspend(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -7405,7 +7828,7 @@ function _beginSuspend(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7447,12 +7870,13 @@ function _beginSuspend(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -7596,7 +8020,6 @@ function _beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7628,6 +8051,9 @@ function _beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -7643,7 +8069,7 @@ function _beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName,
requestUrl = requestUrl.replace('{workerPoolName}', encodeURIComponent(workerPoolName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7846,12 +8272,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -7976,12 +8403,13 @@ function _listByResourceGroupNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8108,12 +8536,13 @@ function _listCapacitiesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8148,6 +8577,85 @@ function _listCapacitiesNext(nextPageLink, options, callback) {
});
}
+
+/**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} callback - The callback.
+ *
+ * @returns {function} callback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+function _changeVnetNext(nextPageLink, options, callback) {
+ /* jshint validthis: true */
+ let client = this.client;
+ if(!callback && typeof options === 'function') {
+ callback = options;
+ options = null;
+ }
+
+ if (!callback) {
+ throw new Error('callback cannot be null.');
+ }
+
+ // Send request
+ this.beginChangeVnetNext(nextPageLink, options, (err, parsedResult, httpRequest, response) => {
+ if (err) return callback(err);
+
+ let initialResult = new msRest.HttpOperationResponse();
+ initialResult.request = httpRequest;
+ initialResult.response = response;
+ initialResult.body = response.body;
+ client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => {
+ if (err) return callback(err);
+
+ // Create Result
+ let result = null;
+
+ httpRequest = pollingResult.request;
+ response = pollingResult.response;
+ let responseBody = pollingResult.body;
+ if (responseBody === '') responseBody = null;
+
+ // Deserialize Response
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['WebAppCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError.request = msRest.stripRequest(httpRequest);
+ deserializationError.response = msRest.stripResponse(response);
+ return callback(deserializationError);
+ }
+
+ return callback(null, result, httpRequest, response);
+ });
+ });
+}
+
/**
* @summary Get global metrics of an App Service Environment.
*
@@ -8238,12 +8746,13 @@ function _listMetricsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8367,12 +8876,13 @@ function _listMultiRolePoolsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8499,12 +9009,13 @@ function _listMultiRolePoolInstanceMetricDefinitionsNext(nextPageLink, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8631,12 +9142,13 @@ function _listMultiRolePoolInstanceMetricsNext(nextPageLink, options, callback)
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8762,12 +9274,13 @@ function _listMultiRoleMetricDefinitionsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -8892,12 +9405,13 @@ function _listMultiRoleMetricsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9021,12 +9535,13 @@ function _listMultiRolePoolSkusNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9151,12 +9666,13 @@ function _listMultiRoleUsagesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9360,12 +9876,13 @@ function _listAppServicePlansNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9489,12 +10006,13 @@ function _listWebAppsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9628,14 +10146,144 @@ function _suspendNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link CsmUsageQuotaCollection} for more
- * information.
+ * See {@link CsmUsageQuotaCollection} for more
+ * information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+function _listUsagesNext(nextPageLink, options, callback) {
+ /* jshint validthis: true */
+ let client = this.client;
+ if(!callback && typeof options === 'function') {
+ callback = options;
+ options = null;
+ }
+ if (!callback) {
+ throw new Error('callback cannot be null.');
+ }
+ // Validate
+ try {
+ if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
+ throw new Error('nextPageLink cannot be null or undefined and it 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.');
+ }
+ } catch (error) {
+ return callback(error);
+ }
+
+ // Construct URL
+ let requestUrl = '{nextLink}';
+ requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
+
+ // Create HTTP transport objects
+ let httpRequest = new WebResource();
+ httpRequest.method = 'GET';
+ httpRequest.url = requestUrl;
+ httpRequest.headers = {};
+ // Set Headers
+ httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
+ if (this.client.generateClientRequestId) {
+ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
+ }
+ if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
+ httpRequest.headers['accept-language'] = this.client.acceptLanguage;
+ }
+ if(options) {
+ for(let headerName in options['customHeaders']) {
+ if (options['customHeaders'].hasOwnProperty(headerName)) {
+ httpRequest.headers[headerName] = options['customHeaders'][headerName];
+ }
+ }
+ }
+ httpRequest.body = null;
+ // Send Request
+ return client.pipeline(httpRequest, (err, response, responseBody) => {
+ if (err) {
+ return callback(err);
+ }
+ let statusCode = response.statusCode;
+ if (statusCode !== 200) {
+ let error = new Error(responseBody);
+ error.statusCode = response.statusCode;
+ error.request = msRest.stripRequest(httpRequest);
+ error.response = msRest.stripResponse(response);
+ if (responseBody === '') responseBody = null;
+ let parsedErrorResponse;
+ try {
+ parsedErrorResponse = JSON.parse(responseBody);
+ if (parsedErrorResponse) {
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
+ }
+ if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
+ error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
+ }
+ } catch (defaultError) {
+ error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` +
+ `- "${responseBody}" for the default response.`;
+ return callback(error);
+ }
+ return callback(error);
+ }
+ // Create Result
+ let result = null;
+ if (responseBody === '') responseBody = null;
+ // Deserialize Response
+ if (statusCode === 200) {
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['CsmUsageQuotaCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError.request = msRest.stripRequest(httpRequest);
+ deserializationError.response = msRest.stripResponse(response);
+ return callback(deserializationError);
+ }
+ }
+
+ return callback(null, result, httpRequest, response);
+ });
+}
+
+/**
+ * @summary Get all worker pools of an App Service Environment.
+ *
+ * Get all worker pools of an App Service Environment.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} callback - The callback.
+ *
+ * @returns {function} callback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WorkerPoolCollection} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listUsagesNext(nextPageLink, options, callback) {
+function _listWorkerPoolsNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -9698,12 +10346,13 @@ function _listUsagesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9723,7 +10372,7 @@ function _listUsagesNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['CsmUsageQuotaCollection']().mapper();
+ let resultMapper = new client.models['WorkerPoolCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -9739,9 +10388,11 @@ function _listUsagesNext(nextPageLink, options, callback) {
}
/**
- * @summary Get all worker pools of an App Service Environment.
+ * @summary Get metric definitions for a specific instance of a worker pool of
+ * an App Service Environment.
*
- * Get all worker pools of an App Service Environment.
+ * Get metric definitions for a specific instance of a worker pool of an App
+ * Service Environment.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -9758,13 +10409,14 @@ function _listUsagesNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link WorkerPoolCollection} for more information.
+ * See {@link ResourceMetricDefinitionCollection} for more
+ * information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWorkerPoolsNext(nextPageLink, options, callback) {
+function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -9827,12 +10479,13 @@ function _listWorkerPoolsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9852,7 +10505,7 @@ function _listWorkerPoolsNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['WorkerPoolCollection']().mapper();
+ let resultMapper = new client.models['ResourceMetricDefinitionCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -9868,12 +10521,12 @@ function _listWorkerPoolsNext(nextPageLink, options, callback) {
}
/**
- * @summary Get metric definitions for a specific instance of a worker pool of
- * an App Service Environment.
- *
- * Get metric definitions for a specific instance of a worker pool of an App
+ * @summary Get metrics for a specific instance of a worker pool of an App
* Service Environment.
*
+ * Get metrics for a specific instance of a worker pool of an App Service
+ * Environment.
+ *
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
@@ -9889,14 +10542,14 @@ function _listWorkerPoolsNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceMetricDefinitionCollection} for more
+ * See {@link ResourceMetricCollection} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, callback) {
+function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -9959,12 +10612,13 @@ function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, cal
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -9984,7 +10638,7 @@ function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, cal
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['ResourceMetricDefinitionCollection']().mapper();
+ let resultMapper = new client.models['ResourceMetricCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10000,12 +10654,11 @@ function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, cal
}
/**
- * @summary Get metrics for a specific instance of a worker pool of an App
- * Service Environment.
- *
- * Get metrics for a specific instance of a worker pool of an App Service
+ * @summary Get metric definitions for a worker pool of an App Service
* Environment.
*
+ * Get metric definitions for a worker pool of an App Service Environment.
+ *
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
@@ -10021,14 +10674,14 @@ function _listWorkerPoolInstanceMetricDefinitionsNext(nextPageLink, options, cal
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceMetricCollection} for more
+ * See {@link ResourceMetricDefinitionCollection} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
+function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -10091,12 +10744,13 @@ function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10116,7 +10770,7 @@ function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['ResourceMetricCollection']().mapper();
+ let resultMapper = new client.models['ResourceMetricDefinitionCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10132,10 +10786,11 @@ function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
}
/**
- * @summary Get metric definitions for a worker pool of an App Service
- * Environment.
+ * @summary Get metrics for a worker pool of a AppServiceEnvironment (App
+ * Service Environment).
*
- * Get metric definitions for a worker pool of an App Service Environment.
+ * Get metrics for a worker pool of a AppServiceEnvironment (App Service
+ * Environment).
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10152,14 +10807,14 @@ function _listWorkerPoolInstanceMetricsNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceMetricDefinitionCollection} for more
+ * See {@link ResourceMetricCollection} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
+function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -10222,12 +10877,13 @@ function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10247,7 +10903,7 @@ function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['ResourceMetricDefinitionCollection']().mapper();
+ let resultMapper = new client.models['ResourceMetricCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10263,11 +10919,9 @@ function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
}
/**
- * @summary Get metrics for a worker pool of a AppServiceEnvironment (App
- * Service Environment).
+ * @summary Get available SKUs for scaling a worker pool.
*
- * Get metrics for a worker pool of a AppServiceEnvironment (App Service
- * Environment).
+ * Get available SKUs for scaling a worker pool.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10284,14 +10938,13 @@ function _listWebWorkerMetricDefinitionsNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceMetricCollection} for more
- * information.
+ * See {@link SkuInfoCollection} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
+function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -10354,12 +11007,13 @@ function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10379,7 +11033,7 @@ function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['ResourceMetricCollection']().mapper();
+ let resultMapper = new client.models['SkuInfoCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10395,9 +11049,9 @@ function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
}
/**
- * @summary Get available SKUs for scaling a worker pool.
+ * @summary Get usage metrics for a worker pool of an App Service Environment.
*
- * Get available SKUs for scaling a worker pool.
+ * Get usage metrics for a worker pool of an App Service Environment.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10414,13 +11068,13 @@ function _listWebWorkerMetricsNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link SkuInfoCollection} for more information.
+ * See {@link UsageCollection} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
+function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -10483,12 +11137,13 @@ function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10508,7 +11163,7 @@ function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['SkuInfoCollection']().mapper();
+ let resultMapper = new client.models['UsageCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10524,9 +11179,9 @@ function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
}
/**
- * @summary Get usage metrics for a worker pool of an App Service Environment.
+ * @summary Move an App Service Environment to a different VNET.
*
- * Get usage metrics for a worker pool of an App Service Environment.
+ * Move an App Service Environment to a different VNET.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10543,13 +11198,13 @@ function _listWorkerPoolSkusNext(nextPageLink, options, callback) {
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
- * See {@link UsageCollection} for more information.
+ * See {@link WebAppCollection} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
-function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
+function _beginChangeVnetNext(nextPageLink, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@@ -10577,7 +11232,7 @@ function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
- httpRequest.method = 'GET';
+ httpRequest.method = 'POST';
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
@@ -10602,7 +11257,7 @@ function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
return callback(err);
}
let statusCode = response.statusCode;
- if (statusCode !== 200) {
+ if (statusCode !== 200 && statusCode !== 202) {
let error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
@@ -10612,12 +11267,13 @@ function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10637,7 +11293,7 @@ function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
- let resultMapper = new client.models['UsageCollection']().mapper();
+ let resultMapper = new client.models['WebAppCollection']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
@@ -10647,6 +11303,23 @@ function _listWebWorkerUsagesNext(nextPageLink, options, callback) {
return callback(deserializationError);
}
}
+ // Deserialize Response
+ if (statusCode === 202) {
+ let parsedResponse = null;
+ try {
+ parsedResponse = JSON.parse(responseBody);
+ result = JSON.parse(responseBody);
+ if (parsedResponse !== null && parsedResponse !== undefined) {
+ let resultMapper = new client.models['WebAppCollection']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError1.request = msRest.stripRequest(httpRequest);
+ deserializationError1.response = msRest.stripResponse(response);
+ return callback(deserializationError1);
+ }
+ }
return callback(null, result, httpRequest, response);
});
@@ -10741,12 +11414,13 @@ function _beginResumeNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10887,12 +11561,13 @@ function _beginSuspendNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -10960,6 +11635,7 @@ class AppServiceEnvironments {
this._update = _update;
this._listCapacities = _listCapacities;
this._listVips = _listVips;
+ this._changeVnet = _changeVnet;
this._listDiagnostics = _listDiagnostics;
this._getDiagnosticsItem = _getDiagnosticsItem;
this._listMetricDefinitions = _listMetricDefinitions;
@@ -10993,6 +11669,7 @@ class AppServiceEnvironments {
this._listWebWorkerUsages = _listWebWorkerUsages;
this._beginCreateOrUpdate = _beginCreateOrUpdate;
this._beginDeleteMethod = _beginDeleteMethod;
+ this._beginChangeVnet = _beginChangeVnet;
this._beginCreateOrUpdateMultiRolePool = _beginCreateOrUpdateMultiRolePool;
this._beginResume = _beginResume;
this._beginSuspend = _beginSuspend;
@@ -11000,6 +11677,7 @@ class AppServiceEnvironments {
this._listNext = _listNext;
this._listByResourceGroupNext = _listByResourceGroupNext;
this._listCapacitiesNext = _listCapacitiesNext;
+ this._changeVnetNext = _changeVnetNext;
this._listMetricsNext = _listMetricsNext;
this._listMultiRolePoolsNext = _listMultiRolePoolsNext;
this._listMultiRolePoolInstanceMetricDefinitionsNext = _listMultiRolePoolInstanceMetricDefinitionsNext;
@@ -11020,6 +11698,7 @@ class AppServiceEnvironments {
this._listWebWorkerMetricsNext = _listWebWorkerMetricsNext;
this._listWorkerPoolSkusNext = _listWorkerPoolSkusNext;
this._listWebWorkerUsagesNext = _listWebWorkerUsagesNext;
+ this._beginChangeVnetNext = _beginChangeVnetNext;
this._beginResumeNext = _beginResumeNext;
this._beginSuspendNext = _beginSuspendNext;
}
@@ -11373,6 +12052,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -11488,6 +12176,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -11725,6 +12422,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -11836,6 +12542,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -12055,7 +12770,111 @@ class AppServiceEnvironments {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
- listVips(resourceGroupName, name, options, optionalCallback) {
+ listVips(resourceGroupName, name, options, optionalCallback) {
+ let client = this.client;
+ let self = this;
+ if (!optionalCallback && typeof options === 'function') {
+ optionalCallback = options;
+ options = null;
+ }
+ if (!optionalCallback) {
+ return new Promise((resolve, reject) => {
+ self._listVips(resourceGroupName, name, options, (err, result, request, response) => {
+ if (err) { reject(err); }
+ else { resolve(result); }
+ return;
+ });
+ });
+ } else {
+ return self._listVips(resourceGroupName, name, options, optionalCallback);
+ }
+ }
+
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} vnetInfo Details for the new virtual network.
+ *
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
+ *
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ */
+ changeVnetWithHttpOperationResponse(resourceGroupName, name, vnetInfo, options) {
+ let client = this.client;
+ let self = this;
+ return new Promise((resolve, reject) => {
+ self._changeVnet(resourceGroupName, name, vnetInfo, options, (err, result, request, response) => {
+ let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
+ httpOperationResponse.body = result;
+ if (err) { reject(err); }
+ else { resolve(httpOperationResponse); }
+ return;
+ });
+ });
+ }
+
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} vnetInfo Details for the new virtual network.
+ *
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
+ *
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} [optionalCallback] - The optional callback.
+ *
+ * @returns {function|Promise} If a callback was passed as the last parameter
+ * then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned
+ *
+ * @resolve {WebAppCollection} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ *
+ * {function} optionalCallback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+ changeVnet(resourceGroupName, name, vnetInfo, options, optionalCallback) {
let client = this.client;
let self = this;
if (!optionalCallback && typeof options === 'function') {
@@ -12064,14 +12883,14 @@ class AppServiceEnvironments {
}
if (!optionalCallback) {
return new Promise((resolve, reject) => {
- self._listVips(resourceGroupName, name, options, (err, result, request, response) => {
+ self._changeVnet(resourceGroupName, name, vnetInfo, options, (err, result, request, response) => {
if (err) { reject(err); }
else { resolve(result); }
return;
});
});
} else {
- return self._listVips(resourceGroupName, name, options, optionalCallback);
+ return self._changeVnet(resourceGroupName, name, vnetInfo, options, optionalCallback);
}
}
@@ -15628,6 +16447,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -15743,6 +16571,15 @@ class AppServiceEnvironments {
* @param {array} [hostingEnvironmentEnvelope.userWhitelistedIpRanges] User
* added ip ranges to whitelist on ASE db
*
+ * @param {boolean} [hostingEnvironmentEnvelope.hasLinuxWorkers] Flag that
+ * displays whether an ASE has linux workers or not
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultId] Key Vault ID
+ * for ILB App Service Environment default SSL certificate
+ *
+ * @param {string} [hostingEnvironmentEnvelope.sslCertKeyVaultSecretName] Key
+ * Vault Secret Name for ILB App Service Environment default SSL certificate
+ *
* @param {string} [hostingEnvironmentEnvelope.kind] Kind of resource.
*
* @param {string} hostingEnvironmentEnvelope.location Resource Location.
@@ -15896,6 +16733,110 @@ class AppServiceEnvironments {
}
}
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} vnetInfo Details for the new virtual network.
+ *
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
+ *
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ */
+ beginChangeVnetWithHttpOperationResponse(resourceGroupName, name, vnetInfo, options) {
+ let client = this.client;
+ let self = this;
+ return new Promise((resolve, reject) => {
+ self._beginChangeVnet(resourceGroupName, name, vnetInfo, options, (err, result, request, response) => {
+ let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
+ httpOperationResponse.body = result;
+ if (err) { reject(err); }
+ else { resolve(httpOperationResponse); }
+ return;
+ });
+ });
+ }
+
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the App Service Environment.
+ *
+ * @param {object} vnetInfo Details for the new virtual network.
+ *
+ * @param {string} [vnetInfo.id] Resource id of the Virtual Network.
+ *
+ * @param {string} [vnetInfo.subnet] Subnet within the Virtual Network.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} [optionalCallback] - The optional callback.
+ *
+ * @returns {function|Promise} If a callback was passed as the last parameter
+ * then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned
+ *
+ * @resolve {WebAppCollection} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ *
+ * {function} optionalCallback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+ beginChangeVnet(resourceGroupName, name, vnetInfo, options, optionalCallback) {
+ let client = this.client;
+ let self = this;
+ if (!optionalCallback && typeof options === 'function') {
+ optionalCallback = options;
+ options = null;
+ }
+ if (!optionalCallback) {
+ return new Promise((resolve, reject) => {
+ self._beginChangeVnet(resourceGroupName, name, vnetInfo, options, (err, result, request, response) => {
+ if (err) { reject(err); }
+ else { resolve(result); }
+ return;
+ });
+ });
+ } else {
+ return self._beginChangeVnet(resourceGroupName, name, vnetInfo, options, optionalCallback);
+ }
+ }
+
/**
* @summary Create or update a multi-role pool.
*
@@ -16747,6 +17688,94 @@ class AppServiceEnvironments {
}
}
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ */
+ changeVnetNextWithHttpOperationResponse(nextPageLink, options) {
+ let client = this.client;
+ let self = this;
+ return new Promise((resolve, reject) => {
+ self._changeVnetNext(nextPageLink, options, (err, result, request, response) => {
+ let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
+ httpOperationResponse.body = result;
+ if (err) { reject(err); }
+ else { resolve(httpOperationResponse); }
+ return;
+ });
+ });
+ }
+
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} [optionalCallback] - The optional callback.
+ *
+ * @returns {function|Promise} If a callback was passed as the last parameter
+ * then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned
+ *
+ * @resolve {WebAppCollection} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ *
+ * {function} optionalCallback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+ changeVnetNext(nextPageLink, options, optionalCallback) {
+ let client = this.client;
+ let self = this;
+ if (!optionalCallback && typeof options === 'function') {
+ optionalCallback = options;
+ options = null;
+ }
+ if (!optionalCallback) {
+ return new Promise((resolve, reject) => {
+ self._changeVnetNext(nextPageLink, options, (err, result, request, response) => {
+ if (err) { reject(err); }
+ else { resolve(result); }
+ return;
+ });
+ });
+ } else {
+ return self._changeVnetNext(nextPageLink, options, optionalCallback);
+ }
+ }
+
/**
* @summary Get global metrics of an App Service Environment.
*
@@ -18544,6 +19573,94 @@ class AppServiceEnvironments {
}
}
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ */
+ beginChangeVnetNextWithHttpOperationResponse(nextPageLink, options) {
+ let client = this.client;
+ let self = this;
+ return new Promise((resolve, reject) => {
+ self._beginChangeVnetNext(nextPageLink, options, (err, result, request, response) => {
+ let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
+ httpOperationResponse.body = result;
+ if (err) { reject(err); }
+ else { resolve(httpOperationResponse); }
+ return;
+ });
+ });
+ }
+
+ /**
+ * @summary Move an App Service Environment to a different VNET.
+ *
+ * Move an App Service Environment to a different VNET.
+ *
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {function} [optionalCallback] - The optional callback.
+ *
+ * @returns {function|Promise} If a callback was passed as the last parameter
+ * then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned
+ *
+ * @resolve {WebAppCollection} - The deserialized result object.
+ *
+ * @reject {Error} - The error object.
+ *
+ * {function} optionalCallback(err, result, request, response)
+ *
+ * {Error} err - The Error object if an error occurred, null otherwise.
+ *
+ * {object} [result] - The deserialized result object if an error did not occur.
+ * See {@link WebAppCollection} for more information.
+ *
+ * {object} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {stream} [response] - The HTTP Response stream if an error did not occur.
+ */
+ beginChangeVnetNext(nextPageLink, options, optionalCallback) {
+ let client = this.client;
+ let self = this;
+ if (!optionalCallback && typeof options === 'function') {
+ optionalCallback = options;
+ options = null;
+ }
+ if (!optionalCallback) {
+ return new Promise((resolve, reject) => {
+ self._beginChangeVnetNext(nextPageLink, options, (err, result, request, response) => {
+ if (err) { reject(err); }
+ else { resolve(result); }
+ return;
+ });
+ });
+ } else {
+ return self._beginChangeVnetNext(nextPageLink, options, optionalCallback);
+ }
+ }
+
/**
* @summary Resume an App Service Environment.
*
diff --git a/lib/services/websiteManagement2/lib/operations/appServicePlans.js b/lib/services/websiteManagement2/lib/operations/appServicePlans.js
index 418daf0d0c..edd4f486a6 100644
--- a/lib/services/websiteManagement2/lib/operations/appServicePlans.js
+++ b/lib/services/websiteManagement2/lib/operations/appServicePlans.js
@@ -54,7 +54,6 @@ function _list(options, callback) {
throw new Error('callback cannot be null.');
}
let detailed = (options && options.detailed !== undefined) ? options.detailed : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (detailed !== null && detailed !== undefined && typeof detailed !== 'boolean') {
@@ -63,6 +62,9 @@ function _list(options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -78,7 +80,7 @@ function _list(options, callback) {
if (detailed !== null && detailed !== undefined) {
queryParameters.push('detailed=' + encodeURIComponent(detailed.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -120,12 +122,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -197,7 +200,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -220,6 +222,9 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -233,7 +238,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -275,12 +280,13 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -353,7 +359,6 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -379,6 +384,9 @@ function _get(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -393,7 +401,7 @@ function _get(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -488,9 +496,6 @@ function _get(resourceGroupName, name, options, callback) {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -514,9 +519,15 @@ function _get(resourceGroupName, name, options, callback) {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -668,7 +679,6 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -694,6 +704,9 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -708,7 +721,7 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -785,9 +798,6 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanPatchResourceName Name for the
- * App Service plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -811,9 +821,15 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -848,7 +864,6 @@ function _update(resourceGroupName, name, appServicePlan, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -877,6 +892,9 @@ function _update(resourceGroupName, name, appServicePlan, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -891,7 +909,7 @@ function _update(resourceGroupName, name, appServicePlan, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -947,12 +965,13 @@ function _update(resourceGroupName, name, appServicePlan, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1041,7 +1060,6 @@ function _listCapabilities(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1067,6 +1085,9 @@ function _listCapabilities(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1081,7 +1102,7 @@ function _listCapabilities(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1123,12 +1144,13 @@ function _listCapabilities(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1219,7 +1241,6 @@ function _getHybridConnection(resourceGroupName, name, namespaceName, relayName,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1251,6 +1272,9 @@ function _getHybridConnection(resourceGroupName, name, namespaceName, relayName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1267,7 +1291,7 @@ function _getHybridConnection(resourceGroupName, name, namespaceName, relayName,
requestUrl = requestUrl.replace('{relayName}', encodeURIComponent(relayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1309,12 +1333,13 @@ function _getHybridConnection(resourceGroupName, name, namespaceName, relayName,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1390,7 +1415,6 @@ function _deleteHybridConnection(resourceGroupName, name, namespaceName, relayNa
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1422,6 +1446,9 @@ function _deleteHybridConnection(resourceGroupName, name, namespaceName, relayNa
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1438,7 +1465,7 @@ function _deleteHybridConnection(resourceGroupName, name, namespaceName, relayNa
requestUrl = requestUrl.replace('{relayName}', encodeURIComponent(relayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1545,7 +1572,6 @@ function _listHybridConnectionKeys(resourceGroupName, name, namespaceName, relay
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1577,6 +1603,9 @@ function _listHybridConnectionKeys(resourceGroupName, name, namespaceName, relay
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1593,7 +1622,7 @@ function _listHybridConnectionKeys(resourceGroupName, name, namespaceName, relay
requestUrl = requestUrl.replace('{relayName}', encodeURIComponent(relayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1635,12 +1664,13 @@ function _listHybridConnectionKeys(resourceGroupName, name, namespaceName, relay
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1717,7 +1747,6 @@ function _listWebAppsByHybridConnection(resourceGroupName, name, namespaceName,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1749,6 +1778,9 @@ function _listWebAppsByHybridConnection(resourceGroupName, name, namespaceName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1765,7 +1797,7 @@ function _listWebAppsByHybridConnection(resourceGroupName, name, namespaceName,
requestUrl = requestUrl.replace('{relayName}', encodeURIComponent(relayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1807,12 +1839,13 @@ function _listWebAppsByHybridConnection(resourceGroupName, name, namespaceName,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1887,7 +1920,6 @@ function _getHybridConnectionPlanLimit(resourceGroupName, name, options, callbac
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1913,6 +1945,9 @@ function _getHybridConnectionPlanLimit(resourceGroupName, name, options, callbac
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1927,7 +1962,7 @@ function _getHybridConnectionPlanLimit(resourceGroupName, name, options, callbac
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1969,12 +2004,13 @@ function _getHybridConnectionPlanLimit(resourceGroupName, name, options, callbac
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2048,7 +2084,6 @@ function _listHybridConnections(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2074,6 +2109,9 @@ function _listHybridConnections(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2088,7 +2126,7 @@ function _listHybridConnections(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2130,12 +2168,13 @@ function _listHybridConnections(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2211,7 +2250,6 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2237,6 +2275,9 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2251,7 +2292,7 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2293,12 +2334,13 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2383,7 +2425,6 @@ function _listMetrics(resourceGroupName, name, options, callback) {
}
let details = (options && options.details !== undefined) ? options.details : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2415,6 +2456,9 @@ function _listMetrics(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2435,7 +2479,7 @@ function _listMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2477,12 +2521,13 @@ function _listMetrics(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2560,7 +2605,6 @@ function _restartWebApps(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let softRestart = (options && options.softRestart !== undefined) ? options.softRestart : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2589,6 +2633,9 @@ function _restartWebApps(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2606,7 +2653,7 @@ function _restartWebApps(resourceGroupName, name, options, callback) {
if (softRestart !== null && softRestart !== undefined) {
queryParameters.push('softRestart=' + encodeURIComponent(softRestart.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2723,7 +2770,6 @@ function _listWebApps(resourceGroupName, name, options, callback) {
let skipToken = (options && options.skipToken !== undefined) ? options.skipToken : undefined;
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
let top = (options && options.top !== undefined) ? options.top : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2758,6 +2804,9 @@ function _listWebApps(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2781,7 +2830,7 @@ function _listWebApps(resourceGroupName, name, options, callback) {
if (top !== null && top !== undefined) {
queryParameters.push('$top=' + encodeURIComponent(top));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2823,12 +2872,13 @@ function _listWebApps(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2900,7 +2950,6 @@ function _getServerFarmSkus(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2926,6 +2975,9 @@ function _getServerFarmSkus(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2940,7 +2992,7 @@ function _getServerFarmSkus(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2982,12 +3034,13 @@ function _getServerFarmSkus(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3072,7 +3125,6 @@ function _listUsages(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3101,6 +3153,9 @@ function _listUsages(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3118,7 +3173,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3160,12 +3215,13 @@ function _listUsages(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3237,7 +3293,6 @@ function _listVnets(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3263,6 +3318,9 @@ function _listVnets(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3277,7 +3335,7 @@ function _listVnets(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3319,12 +3377,13 @@ function _listVnets(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3413,7 +3472,6 @@ function _getVnetFromServerFarm(resourceGroupName, name, vnetName, options, call
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3442,6 +3500,9 @@ function _getVnetFromServerFarm(resourceGroupName, name, vnetName, options, call
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3457,7 +3518,7 @@ function _getVnetFromServerFarm(resourceGroupName, name, vnetName, options, call
requestUrl = requestUrl.replace('{vnetName}', encodeURIComponent(vnetName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3582,7 +3643,6 @@ function _getVnetGateway(resourceGroupName, name, vnetName, gatewayName, options
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3614,6 +3674,9 @@ function _getVnetGateway(resourceGroupName, name, vnetName, gatewayName, options
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3630,7 +3693,7 @@ function _getVnetGateway(resourceGroupName, name, vnetName, gatewayName, options
requestUrl = requestUrl.replace('{gatewayName}', encodeURIComponent(gatewayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3672,12 +3735,13 @@ function _getVnetGateway(resourceGroupName, name, vnetName, gatewayName, options
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3764,7 +3828,6 @@ function _updateVnetGateway(resourceGroupName, name, vnetName, gatewayName, conn
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3799,6 +3862,9 @@ function _updateVnetGateway(resourceGroupName, name, vnetName, gatewayName, conn
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3815,7 +3881,7 @@ function _updateVnetGateway(resourceGroupName, name, vnetName, gatewayName, conn
requestUrl = requestUrl.replace('{gatewayName}', encodeURIComponent(gatewayName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3871,12 +3937,13 @@ function _updateVnetGateway(resourceGroupName, name, vnetName, gatewayName, conn
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3952,7 +4019,6 @@ function _listRoutesForVnet(resourceGroupName, name, vnetName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3981,6 +4047,9 @@ function _listRoutesForVnet(resourceGroupName, name, vnetName, options, callback
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3996,7 +4065,7 @@ function _listRoutesForVnet(resourceGroupName, name, vnetName, options, callback
requestUrl = requestUrl.replace('{vnetName}', encodeURIComponent(vnetName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4038,12 +4107,13 @@ function _listRoutesForVnet(resourceGroupName, name, vnetName, options, callback
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4133,7 +4203,6 @@ function _getRouteForVnet(resourceGroupName, name, vnetName, routeName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4165,6 +4234,9 @@ function _getRouteForVnet(resourceGroupName, name, vnetName, routeName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4181,7 +4253,7 @@ function _getRouteForVnet(resourceGroupName, name, vnetName, routeName, options,
requestUrl = requestUrl.replace('{routeName}', encodeURIComponent(routeName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4293,9 +4365,6 @@ function _getRouteForVnet(resourceGroupName, name, vnetName, routeName, options,
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -4342,7 +4411,6 @@ function _createOrUpdateVnetRoute(resourceGroupName, name, vnetName, routeName,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4377,6 +4445,9 @@ function _createOrUpdateVnetRoute(resourceGroupName, name, vnetName, routeName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4393,7 +4464,7 @@ function _createOrUpdateVnetRoute(resourceGroupName, name, vnetName, routeName,
requestUrl = requestUrl.replace('{routeName}', encodeURIComponent(routeName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4530,7 +4601,6 @@ function _deleteVnetRoute(resourceGroupName, name, vnetName, routeName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4562,6 +4632,9 @@ function _deleteVnetRoute(resourceGroupName, name, vnetName, routeName, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4578,7 +4651,7 @@ function _deleteVnetRoute(resourceGroupName, name, vnetName, routeName, options,
requestUrl = requestUrl.replace('{routeName}', encodeURIComponent(routeName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4659,9 +4732,6 @@ function _deleteVnetRoute(resourceGroupName, name, vnetName, routeName, options,
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -4708,7 +4778,6 @@ function _updateVnetRoute(resourceGroupName, name, vnetName, routeName, route, o
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4743,6 +4812,9 @@ function _updateVnetRoute(resourceGroupName, name, vnetName, routeName, route, o
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4759,7 +4831,7 @@ function _updateVnetRoute(resourceGroupName, name, vnetName, routeName, route, o
requestUrl = requestUrl.replace('{routeName}', encodeURIComponent(routeName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4895,7 +4967,6 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4924,6 +4995,9 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -4939,7 +5013,7 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
requestUrl = requestUrl.replace('{workerName}', encodeURIComponent(workerName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5016,9 +5090,6 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -5042,9 +5113,15 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -5117,7 +5194,6 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-09-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5146,6 +5222,9 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -5160,7 +5239,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5216,12 +5295,13 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5363,12 +5443,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5493,12 +5574,13 @@ function _listByResourceGroupNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5622,12 +5704,13 @@ function _listWebAppsByHybridConnectionNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5752,12 +5835,13 @@ function _listHybridConnectionsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5884,12 +5968,13 @@ function _listMetricDefintionsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6014,12 +6099,13 @@ function _listMetricsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6143,12 +6229,13 @@ function _listWebAppsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6273,12 +6360,13 @@ function _listUsagesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -6647,9 +6735,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -6673,9 +6758,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -6757,9 +6848,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -6783,9 +6871,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -6980,9 +7074,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanPatchResourceName Name for the
- * App Service plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -7006,9 +7097,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -7052,9 +7149,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanPatchResourceName Name for the
- * App Service plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -7078,9 +7172,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -9050,9 +9150,6 @@ class AppServicePlans {
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -9112,9 +9209,6 @@ class AppServicePlans {
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -9295,9 +9389,6 @@ class AppServicePlans {
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -9357,9 +9448,6 @@ class AppServicePlans {
*
* @param {object} route Definition of the Virtual Network route.
*
- * @param {string} [route.vnetRouteName] The name of this route. This is only
- * returned by the server and does not need to be set by the client.
- *
* @param {string} [route.startAddress] The starting address for this route.
* This may also include a CIDR notation, in which case the end address must
* not be specified.
@@ -9534,9 +9622,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -9560,9 +9645,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
@@ -9644,9 +9735,6 @@ class AppServicePlans {
*
* @param {object} appServicePlan Details of the App Service plan.
*
- * @param {string} appServicePlan.appServicePlanName Name for the App Service
- * plan.
- *
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
@@ -9670,9 +9758,15 @@ class AppServicePlans {
* @param {date} [appServicePlan.spotExpirationTime] The time when the server
* farm expires. Valid only if it is a spot server farm.
*
+ * @param {date} [appServicePlan.freeOfferExpirationTime] The time when the
+ * server farm free offer expires.
+ *
* @param {boolean} [appServicePlan.reserved] If Linux app service plan
* true
, false
otherwise.
*
+ * @param {boolean} [appServicePlan.isXenon] If Hyper-V container app service
+ * plan true
, false
otherwise.
+ *
* @param {number} [appServicePlan.targetWorkerCount] Scaling worker count.
*
* @param {number} [appServicePlan.targetWorkerSizeId] Scaling worker size ID.
diff --git a/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js b/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
index d46700b376..14e286327f 100644
--- a/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
+++ b/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
@@ -50,9 +50,11 @@ function _listOperations(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-08-01';
// Validate
try {
+ if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -64,7 +66,7 @@ function _listOperations(options, callback) {
let baseUrl = this.client.baseUri;
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.CertificateRegistration/operations';
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -106,12 +108,13 @@ function _listOperations(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -238,12 +241,13 @@ function _listOperationsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/certificates.js b/lib/services/websiteManagement2/lib/operations/certificates.js
index 601943e575..5bda762528 100644
--- a/lib/services/websiteManagement2/lib/operations/certificates.js
+++ b/lib/services/websiteManagement2/lib/operations/certificates.js
@@ -47,12 +47,14 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -65,7 +67,7 @@ function _list(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -107,12 +109,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -183,7 +186,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -206,6 +208,9 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -219,7 +224,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -261,12 +266,13 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -339,7 +345,6 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -365,6 +370,9 @@ function _get(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -379,7 +387,7 @@ function _get(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -421,12 +429,13 @@ function _get(resourceGroupName, name, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -524,7 +533,6 @@ function _createOrUpdate(resourceGroupName, name, certificateEnvelope, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -553,6 +561,9 @@ function _createOrUpdate(resourceGroupName, name, certificateEnvelope, options,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -567,7 +578,7 @@ function _createOrUpdate(resourceGroupName, name, certificateEnvelope, options,
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -623,12 +634,13 @@ function _createOrUpdate(resourceGroupName, name, certificateEnvelope, options,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -700,7 +712,6 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -726,6 +737,9 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -740,7 +754,7 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -864,7 +878,6 @@ function _update(resourceGroupName, name, certificateEnvelope, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -893,6 +906,9 @@ function _update(resourceGroupName, name, certificateEnvelope, options, callback
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -907,7 +923,7 @@ function _update(resourceGroupName, name, certificateEnvelope, options, callback
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -963,12 +979,13 @@ function _update(resourceGroupName, name, certificateEnvelope, options, callback
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1092,12 +1109,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1221,12 +1239,13 @@ function _listByResourceGroupNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/deletedWebApps.js b/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
index 50d8c1e457..e8f1fec2a2 100644
--- a/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
+++ b/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
@@ -48,12 +48,14 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -66,7 +68,7 @@ function _list(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -108,12 +110,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -238,12 +241,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/diagnostics.js b/lib/services/websiteManagement2/lib/operations/diagnostics.js
index c33b53260b..92f387cbf1 100644
--- a/lib/services/websiteManagement2/lib/operations/diagnostics.js
+++ b/lib/services/websiteManagement2/lib/operations/diagnostics.js
@@ -53,7 +53,6 @@ function _listHostingEnvironmentDetectorResponses(resourceGroupName, name, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -79,6 +78,9 @@ function _listHostingEnvironmentDetectorResponses(resourceGroupName, name, optio
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -93,7 +95,7 @@ function _listHostingEnvironmentDetectorResponses(resourceGroupName, name, optio
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -135,12 +137,13 @@ function _listHostingEnvironmentDetectorResponses(resourceGroupName, name, optio
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -224,7 +227,6 @@ function _getHostingEnvironmentDetectorResponse(resourceGroupName, name, detecto
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -270,6 +272,9 @@ function _getHostingEnvironmentDetectorResponse(resourceGroupName, name, detecto
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -294,7 +299,7 @@ function _getHostingEnvironmentDetectorResponse(resourceGroupName, name, detecto
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -336,12 +341,13 @@ function _getHostingEnvironmentDetectorResponse(resourceGroupName, name, detecto
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -415,7 +421,6 @@ function _listSiteDetectorResponses(resourceGroupName, siteName, options, callba
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -441,6 +446,9 @@ function _listSiteDetectorResponses(resourceGroupName, siteName, options, callba
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -455,7 +463,7 @@ function _listSiteDetectorResponses(resourceGroupName, siteName, options, callba
requestUrl = requestUrl.replace('{siteName}', encodeURIComponent(siteName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -497,12 +505,13 @@ function _listSiteDetectorResponses(resourceGroupName, siteName, options, callba
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -586,7 +595,6 @@ function _getSiteDetectorResponse(resourceGroupName, siteName, detectorName, opt
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -632,6 +640,9 @@ function _getSiteDetectorResponse(resourceGroupName, siteName, detectorName, opt
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -656,7 +667,7 @@ function _getSiteDetectorResponse(resourceGroupName, siteName, detectorName, opt
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -698,12 +709,13 @@ function _getSiteDetectorResponse(resourceGroupName, siteName, detectorName, opt
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -777,7 +789,6 @@ function _listSiteDiagnosticCategories(resourceGroupName, siteName, options, cal
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -803,6 +814,9 @@ function _listSiteDiagnosticCategories(resourceGroupName, siteName, options, cal
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -817,7 +831,7 @@ function _listSiteDiagnosticCategories(resourceGroupName, siteName, options, cal
requestUrl = requestUrl.replace('{siteName}', encodeURIComponent(siteName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -859,12 +873,13 @@ function _listSiteDiagnosticCategories(resourceGroupName, siteName, options, cal
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -939,7 +954,6 @@ function _getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCateg
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -968,6 +982,9 @@ function _getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCateg
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -983,7 +1000,7 @@ function _getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCateg
requestUrl = requestUrl.replace('{diagnosticCategory}', encodeURIComponent(diagnosticCategory));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1025,12 +1042,13 @@ function _getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCateg
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1106,7 +1124,6 @@ function _listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, opti
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1135,6 +1152,9 @@ function _listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, 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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1150,7 +1170,7 @@ function _listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, opti
requestUrl = requestUrl.replace('{diagnosticCategory}', encodeURIComponent(diagnosticCategory));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1192,12 +1212,13 @@ function _listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, opti
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1274,7 +1295,6 @@ function _getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analy
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1306,6 +1326,9 @@ function _getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analy
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1322,7 +1345,7 @@ function _getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analy
requestUrl = requestUrl.replace('{analysisName}', encodeURIComponent(analysisName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1364,12 +1387,13 @@ function _getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analy
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1455,7 +1479,6 @@ function _executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, a
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1504,6 +1527,9 @@ function _executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, a
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1529,7 +1555,7 @@ function _executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, a
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1571,12 +1597,13 @@ function _executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, a
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1652,7 +1679,6 @@ function _listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, opt
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1681,6 +1707,9 @@ function _listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, opt
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1696,7 +1725,7 @@ function _listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, opt
requestUrl = requestUrl.replace('{diagnosticCategory}', encodeURIComponent(diagnosticCategory));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1738,12 +1767,13 @@ function _listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, opt
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1821,7 +1851,6 @@ function _getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detec
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1853,6 +1882,9 @@ function _getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detec
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1869,7 +1901,7 @@ function _getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detec
requestUrl = requestUrl.replace('{detectorName}', encodeURIComponent(detectorName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1911,12 +1943,13 @@ function _getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detec
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2003,7 +2036,6 @@ function _executeSiteDetector(resourceGroupName, siteName, detectorName, diagnos
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2052,6 +2084,9 @@ function _executeSiteDetector(resourceGroupName, siteName, detectorName, diagnos
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2077,7 +2112,7 @@ function _executeSiteDetector(resourceGroupName, siteName, detectorName, diagnos
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2119,12 +2154,13 @@ function _executeSiteDetector(resourceGroupName, siteName, detectorName, diagnos
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2200,7 +2236,6 @@ function _listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2229,6 +2264,9 @@ function _listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, optio
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2244,7 +2282,7 @@ function _listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, optio
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2286,12 +2324,13 @@ function _listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, optio
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2377,7 +2416,6 @@ function _getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName,
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2426,6 +2464,9 @@ function _getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2451,7 +2492,7 @@ function _getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName,
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2493,12 +2534,13 @@ function _getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2574,7 +2616,6 @@ function _listSiteDiagnosticCategoriesSlot(resourceGroupName, siteName, slot, op
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2603,6 +2644,9 @@ function _listSiteDiagnosticCategoriesSlot(resourceGroupName, siteName, slot, op
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2618,7 +2662,7 @@ function _listSiteDiagnosticCategoriesSlot(resourceGroupName, siteName, slot, op
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2660,12 +2704,13 @@ function _listSiteDiagnosticCategoriesSlot(resourceGroupName, siteName, slot, op
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2742,7 +2787,6 @@ function _getSiteDiagnosticCategorySlot(resourceGroupName, siteName, diagnosticC
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2774,6 +2818,9 @@ function _getSiteDiagnosticCategorySlot(resourceGroupName, siteName, diagnosticC
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2790,7 +2837,7 @@ function _getSiteDiagnosticCategorySlot(resourceGroupName, siteName, diagnosticC
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2832,12 +2879,13 @@ function _getSiteDiagnosticCategorySlot(resourceGroupName, siteName, diagnosticC
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2915,7 +2963,6 @@ function _listSiteAnalysesSlot(resourceGroupName, siteName, diagnosticCategory,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2947,6 +2994,9 @@ function _listSiteAnalysesSlot(resourceGroupName, siteName, diagnosticCategory,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2963,7 +3013,7 @@ function _listSiteAnalysesSlot(resourceGroupName, siteName, diagnosticCategory,
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3005,12 +3055,13 @@ function _listSiteAnalysesSlot(resourceGroupName, siteName, diagnosticCategory,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3089,7 +3140,6 @@ function _getSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategory, a
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3124,6 +3174,9 @@ function _getSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategory, a
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3141,7 +3194,7 @@ function _getSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategory, a
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3183,12 +3236,13 @@ function _getSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategory, a
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3276,7 +3330,6 @@ function _executeSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategor
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3328,6 +3381,9 @@ function _executeSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategor
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3354,7 +3410,7 @@ function _executeSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategor
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3396,12 +3452,13 @@ function _executeSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategor
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3479,7 +3536,6 @@ function _listSiteDetectorsSlot(resourceGroupName, siteName, diagnosticCategory,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3511,6 +3567,9 @@ function _listSiteDetectorsSlot(resourceGroupName, siteName, diagnosticCategory,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3527,7 +3586,7 @@ function _listSiteDetectorsSlot(resourceGroupName, siteName, diagnosticCategory,
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3569,12 +3628,13 @@ function _listSiteDetectorsSlot(resourceGroupName, siteName, diagnosticCategory,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3654,7 +3714,6 @@ function _getSiteDetectorSlot(resourceGroupName, siteName, diagnosticCategory, d
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3689,6 +3748,9 @@ function _getSiteDetectorSlot(resourceGroupName, siteName, diagnosticCategory, d
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3706,7 +3768,7 @@ function _getSiteDetectorSlot(resourceGroupName, siteName, diagnosticCategory, d
requestUrl = requestUrl.replace('{slot}', encodeURIComponent(slot));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3748,12 +3810,13 @@ function _getSiteDetectorSlot(resourceGroupName, siteName, diagnosticCategory, d
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3842,7 +3905,6 @@ function _executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, dia
let startTime = (options && options.startTime !== undefined) ? options.startTime : undefined;
let endTime = (options && options.endTime !== undefined) ? options.endTime : undefined;
let timeGrain = (options && options.timeGrain !== undefined) ? options.timeGrain : undefined;
- let apiVersion = '2016-03-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3894,6 +3956,9 @@ function _executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, dia
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -3920,7 +3985,7 @@ function _executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, dia
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3962,12 +4027,13 @@ function _executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, dia
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4092,12 +4158,13 @@ function _listHostingEnvironmentDetectorResponsesNext(nextPageLink, options, cal
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4222,12 +4289,13 @@ function _listSiteDetectorResponsesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4352,12 +4420,13 @@ function _listSiteDiagnosticCategoriesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4482,12 +4551,13 @@ function _listSiteAnalysesNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4612,12 +4682,13 @@ function _listSiteDetectorsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4742,12 +4813,13 @@ function _getSiteDetectorNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -4872,12 +4944,13 @@ function _listSiteDetectorResponsesSlotNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5002,12 +5075,13 @@ function _listSiteDiagnosticCategoriesSlotNext(nextPageLink, options, callback)
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5132,12 +5206,13 @@ function _listSiteAnalysesSlotNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5262,12 +5337,13 @@ function _listSiteDetectorsSlotNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -5392,12 +5468,13 @@ function _getSiteDetectorSlotNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js b/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
index 6de060c6f0..15f1b4c10e 100644
--- a/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
+++ b/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
@@ -50,9 +50,11 @@ function _listOperations(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
+ if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -64,7 +66,7 @@ function _listOperations(options, callback) {
let baseUrl = this.client.baseUri;
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.DomainRegistration/operations';
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -106,12 +108,13 @@ function _listOperations(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -238,12 +241,13 @@ function _listOperationsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/domains.js b/lib/services/websiteManagement2/lib/operations/domains.js
index 87984bef5e..a1222e1242 100644
--- a/lib/services/websiteManagement2/lib/operations/domains.js
+++ b/lib/services/websiteManagement2/lib/operations/domains.js
@@ -51,12 +51,14 @@ function _checkAvailability(options, callback) {
throw new Error('callback cannot be null.');
}
let name = (options && options.name !== undefined) ? options.name : undefined;
- let apiVersion = '2015-04-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
+ }
if (name !== null && name !== undefined && typeof name.valueOf() !== 'string') {
throw new Error('name must be of type string.');
}
@@ -77,7 +79,7 @@ function _checkAvailability(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -133,12 +135,13 @@ function _checkAvailability(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -206,12 +209,14 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -224,7 +229,7 @@ function _list(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -266,12 +271,13 @@ function _list(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -340,12 +346,14 @@ function _getControlCenterSsoRequest(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -358,7 +366,7 @@ function _getControlCenterSsoRequest(options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -400,12 +408,13 @@ function _getControlCenterSsoRequest(options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -483,7 +492,6 @@ function _listRecommendations(parameters, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (parameters === null || parameters === undefined) {
@@ -492,6 +500,9 @@ function _listRecommendations(parameters, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -504,7 +515,7 @@ function _listRecommendations(parameters, options, callback) {
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -560,12 +571,13 @@ function _listRecommendations(parameters, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -636,7 +648,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -659,6 +670,9 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -672,7 +686,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -714,12 +728,13 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -792,7 +807,6 @@ function _get(resourceGroupName, domainName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -818,6 +832,9 @@ function _get(resourceGroupName, domainName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -832,7 +849,7 @@ function _get(resourceGroupName, domainName, options, callback) {
requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -874,12 +891,13 @@ function _get(resourceGroupName, domainName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1117,7 +1135,6 @@ function _deleteMethod(resourceGroupName, domainName, options, callback) {
throw new Error('callback cannot be null.');
}
let forceHardDeleteDomain = (options && options.forceHardDeleteDomain !== undefined) ? options.forceHardDeleteDomain : undefined;
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1146,6 +1163,9 @@ function _deleteMethod(resourceGroupName, domainName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1163,7 +1183,7 @@ function _deleteMethod(resourceGroupName, domainName, options, callback) {
if (forceHardDeleteDomain !== null && forceHardDeleteDomain !== undefined) {
queryParameters.push('forceHardDeleteDomain=' + encodeURIComponent(forceHardDeleteDomain.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1342,7 +1362,6 @@ function _update(resourceGroupName, domainName, domain, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1377,6 +1396,9 @@ function _update(resourceGroupName, domainName, domain, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1391,7 +1413,7 @@ function _update(resourceGroupName, domainName, domain, options, callback) {
requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1447,12 +1469,13 @@ function _update(resourceGroupName, domainName, domain, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1543,7 +1566,6 @@ function _listOwnershipIdentifiers(resourceGroupName, domainName, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1569,6 +1591,9 @@ function _listOwnershipIdentifiers(resourceGroupName, domainName, options, callb
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1583,7 +1608,7 @@ function _listOwnershipIdentifiers(resourceGroupName, domainName, options, callb
requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1625,12 +1650,13 @@ function _listOwnershipIdentifiers(resourceGroupName, domainName, options, callb
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1706,7 +1732,6 @@ function _getOwnershipIdentifier(resourceGroupName, domainName, name, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1735,6 +1760,9 @@ function _getOwnershipIdentifier(resourceGroupName, domainName, name, options, c
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1750,7 +1778,7 @@ function _getOwnershipIdentifier(resourceGroupName, domainName, name, options, c
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1792,12 +1820,13 @@ function _getOwnershipIdentifier(resourceGroupName, domainName, name, options, c
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -1882,7 +1911,6 @@ function _createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name,
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1914,6 +1942,9 @@ function _createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name,
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -1929,7 +1960,7 @@ function _createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name,
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1985,12 +2016,13 @@ function _createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name,
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2064,7 +2096,6 @@ function _deleteOwnershipIdentifier(resourceGroupName, domainName, name, options
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2093,6 +2124,9 @@ function _deleteOwnershipIdentifier(resourceGroupName, domainName, name, options
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2108,7 +2142,7 @@ function _deleteOwnershipIdentifier(resourceGroupName, domainName, name, options
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2223,7 +2257,6 @@ function _updateOwnershipIdentifier(resourceGroupName, domainName, name, domainO
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2255,6 +2288,9 @@ function _updateOwnershipIdentifier(resourceGroupName, domainName, name, domainO
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2270,7 +2306,7 @@ function _updateOwnershipIdentifier(resourceGroupName, domainName, name, domainO
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2326,12 +2362,13 @@ function _updateOwnershipIdentifier(resourceGroupName, domainName, name, domainO
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2403,7 +2440,6 @@ function _renew(resourceGroupName, domainName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2429,6 +2465,9 @@ function _renew(resourceGroupName, domainName, options, callback) {
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2443,7 +2482,7 @@ function _renew(resourceGroupName, domainName, options, callback) {
requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2475,7 +2514,7 @@ function _renew(resourceGroupName, domainName, options, callback) {
return callback(err);
}
let statusCode = response.statusCode;
- if (statusCode !== 200 && statusCode !== 202 && statusCode !== 204) {
+ if (statusCode !== 200 && statusCode !== 202 && statusCode !== 204 && statusCode !== 400 && statusCode !== 500) {
let error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
@@ -2485,13 +2524,12 @@ function _renew(resourceGroupName, domainName, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- let internalError = null;
- if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
- error.code = internalError ? internalError.code : parsedErrorResponse.code;
- error.message = internalError ? internalError.message : parsedErrorResponse.message;
+ if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
+ if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
+ if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['ErrorResponse']().mapper();
+ let resultMapper = new client.models['CloudError']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2627,7 +2665,6 @@ function _beginCreateOrUpdate(resourceGroupName, domainName, domain, options, ca
if (!callback) {
throw new Error('callback cannot be null.');
}
- let apiVersion = '2015-04-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2662,6 +2699,9 @@ function _beginCreateOrUpdate(resourceGroupName, domainName, domain, options, ca
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 (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
+ throw new Error('this.client.apiVersion cannot be null or undefined and it 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.');
}
@@ -2676,7 +2716,7 @@ function _beginCreateOrUpdate(resourceGroupName, domainName, domain, options, ca
requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2732,12 +2772,13 @@ function _beginCreateOrUpdate(resourceGroupName, domainName, domain, options, ca
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -2878,12 +2919,13 @@ function _listNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3008,12 +3050,13 @@ function _listRecommendationsNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3137,12 +3180,13 @@ function _listByResourceGroupNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
@@ -3267,12 +3311,13 @@ function _listOwnershipIdentifiersNext(nextPageLink, options, callback) {
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
- if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
- if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
- if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
+ let internalError = null;
+ if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;
+ error.code = internalError ? internalError.code : parsedErrorResponse.code;
+ error.message = internalError ? internalError.message : parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
- let resultMapper = new client.models['CloudError']().mapper();
+ let resultMapper = new client.models['DefaultErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
diff --git a/lib/services/websiteManagement2/lib/operations/index.d.ts b/lib/services/websiteManagement2/lib/operations/index.d.ts
index 6a0a06d829..6383b5e281 100644
--- a/lib/services/websiteManagement2/lib/operations/index.d.ts
+++ b/lib/services/websiteManagement2/lib/operations/index.d.ts
@@ -8124,6 +8124,10 @@ export interface Recommendations {
*
* @param {object} [options] Optional Parameters.
*
+ * @param {boolean} [options.expiredOnly] Specify false
to return
+ * all recommendations. The default is true
, which returns only
+ * expired recommendations.
+ *
* @param {string} [options.filter] Filter is specified by using OData syntax.
* Example: $filter=channels eq 'Api' or channel eq 'Notification' and
* startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z'
@@ -8138,7 +8142,7 @@ export interface Recommendations {
*
* @reject {Error|ServiceError} - The error object.
*/
- listHistoryForWebAppWithHttpOperationResponse(resourceGroupName: string, siteName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+ listHistoryForWebAppWithHttpOperationResponse(resourceGroupName: string, siteName: string, options?: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* @summary Get past recommendations for an app, optionally specified by the
@@ -8153,6 +8157,10 @@ export interface Recommendations {
*
* @param {object} [options] Optional Parameters.
*
+ * @param {boolean} [options.expiredOnly] Specify false
to return
+ * all recommendations. The default is true
, which returns only
+ * expired recommendations.
+ *
* @param {string} [options.filter] Filter is specified by using OData syntax.
* Example: $filter=channels eq 'Api' or channel eq 'Notification' and
* startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z'
@@ -8184,9 +8192,9 @@ export interface Recommendations {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- listHistoryForWebApp(resourceGroupName: string, siteName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
+ listHistoryForWebApp(resourceGroupName: string, siteName: string, options?: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
listHistoryForWebApp(resourceGroupName: string, siteName: string, callback: ServiceCallback): void;
- listHistoryForWebApp(resourceGroupName: string, siteName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ listHistoryForWebApp(resourceGroupName: string, siteName: string, options: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -8738,818 +8746,6 @@ export interface Recommendations {
listRecommendedRulesForWebAppNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
}
-/**
- * @class
- * ResourceHealthMetadataOperations
- * __NOTE__: An instance of this class is automatically created for an
- * instance of the WebSiteManagementClient.
- */
-export interface ResourceHealthMetadataOperations {
-
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the subscription.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the subscription.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- list(callback: ServiceCallback): void;
- list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the resource group
- * in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the resource group in the
- * subscription.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the resource group
- * in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the resource group in the
- * subscription.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listBySiteWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listBySite(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listBySite(resourceGroupName: string, name: string, callback: ServiceCallback): void;
- listBySite(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site
- *
- * Gets the category of ResourceHealthMetadata to use for the given site
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- getBySiteWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site
- *
- * Gets the category of ResourceHealthMetadata to use for the given site
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadata} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadata} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadata} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- getBySite(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- getBySite(resourceGroupName: string, name: string, callback: ServiceCallback): void;
- getBySite(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {string} slot Name of web app slot. If not specified then will
- * default to production slot.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listBySiteSlotWithHttpOperationResponse(resourceGroupName: string, name: string, slot: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {string} slot Name of web app slot. If not specified then will
- * default to production slot.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listBySiteSlot(resourceGroupName: string, name: string, slot: string, callback: ServiceCallback): void;
- listBySiteSlot(resourceGroupName: string, name: string, slot: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site
- *
- * Gets the category of ResourceHealthMetadata to use for the given site
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app
- *
- * @param {string} slot Name of web app slot. If not specified then will
- * default to production slot.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- getBySiteSlotWithHttpOperationResponse(resourceGroupName: string, name: string, slot: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site
- *
- * Gets the category of ResourceHealthMetadata to use for the given site
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app
- *
- * @param {string} slot Name of web app slot. If not specified then will
- * default to production slot.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadata} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadata} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadata} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- getBySiteSlot(resourceGroupName: string, name: string, slot: string, callback: ServiceCallback): void;
- getBySiteSlot(resourceGroupName: string, name: string, slot: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the subscription.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the subscription.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listNext(nextPageLink: string, callback: ServiceCallback): void;
- listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the resource group
- * in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the resource group in the
- * subscription.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary List all ResourceHealthMetadata for all sites in the resource group
- * in the subscription.
- *
- * List all ResourceHealthMetadata for all sites in the resource group in the
- * subscription.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listBySiteNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listBySiteNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listBySiteNext(nextPageLink: string, callback: ServiceCallback): void;
- listBySiteNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listBySiteSlotNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets the category of ResourceHealthMetadata to use for the given
- * site as a collection
- *
- * Gets the category of ResourceHealthMetadata to use for the given site as a
- * collection
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {ResourceHealthMetadataCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {ResourceHealthMetadataCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link ResourceHealthMetadataCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listBySiteSlotNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listBySiteSlotNext(nextPageLink: string, callback: ServiceCallback): void;
- listBySiteSlotNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-}
-
-/**
- * @class
- * BillingMeters
- * __NOTE__: An instance of this class is automatically created for an
- * instance of the WebSiteManagementClient.
- */
-export interface BillingMeters {
-
-
- /**
- * @summary Gets a list of meters for a given location.
- *
- * Gets a list of meters for a given location.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {string} [options.billingLocation] Azure Location of billable
- * resource
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listWithHttpOperationResponse(options?: { billingLocation? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets a list of meters for a given location.
- *
- * Gets a list of meters for a given location.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {string} [options.billingLocation] Azure Location of billable
- * resource
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {BillingMeterCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {BillingMeterCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link BillingMeterCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- list(options?: { billingLocation? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
- list(callback: ServiceCallback): void;
- list(options: { billingLocation? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets a list of meters for a given location.
- *
- * Gets a list of meters for a given location.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets a list of meters for a given location.
- *
- * Gets a list of meters for a given location.
- *
- * @param {string} nextPageLink The NextLink from the previous successful call
- * to List operation.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {BillingMeterCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {BillingMeterCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link BillingMeterCollection} for more
- * information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listNext(nextPageLink: string, callback: ServiceCallback): void;
- listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-}
-
/**
* @class
* WebApps
@@ -9778,6 +8974,8 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.reserved] true
if reserved;
* otherwise, false
.
*
+ * @param {boolean} [siteEnvelope.isXenon] Hyper-V sandbox.
+ *
* @param {object} [siteEnvelope.siteConfig] Configuration of the app.
*
* @param {number} [siteEnvelope.siteConfig.numberOfWorkers] Number of workers.
@@ -9796,6 +8994,9 @@ export interface WebApps {
* @param {string} [siteEnvelope.siteConfig.linuxFxVersion] Linux App Framework
* and version
*
+ * @param {string} [siteEnvelope.siteConfig.windowsFxVersion] Xenon App
+ * Framework and version
+ *
* @param {boolean} [siteEnvelope.siteConfig.requestTracingEnabled]
* true
if request tracing is enabled; otherwise,
* false
.
@@ -9994,6 +9195,12 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.siteConfig.localMySqlEnabled]
* true
to enable local MySQL; otherwise, false
.
*
+ * @param {number} [siteEnvelope.siteConfig.managedServiceIdentityId] Managed
+ * Service Identity Id
+ *
+ * @param {number} [siteEnvelope.siteConfig.xManagedServiceIdentityId] Explicit
+ * Managed Service Identity Id
+ *
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
* restrictions.
*
@@ -10004,6 +9211,13 @@ export interface WebApps {
* configures the minimum version of TLS required for SSL requests. Possible
* values include: '1.0', '1.1', '1.2'
*
+ * @param {string} [siteEnvelope.siteConfig.ftpsState] State of FTP / FTPS
+ * service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteEnvelope.siteConfig.reservedInstanceCount] Number of
+ * reserved instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {boolean} [siteEnvelope.scmSiteAlsoStopped] true
to stop
* SCM (KUDU) site when the app is stopped; otherwise, false
. The
* default is false
.
@@ -10079,43 +9293,6 @@ export interface WebApps {
* Traffic Manager profile to create. This is only needed if Traffic Manager
* profile does not already exist.
*
- * @param {boolean} [siteEnvelope.cloningInfo.ignoreQuotas] true
- * if quotas should be ignored; otherwise, false
.
- *
- * @param {object} [siteEnvelope.snapshotInfo] If specified during app
- * creation, the app is created from a previous snapshot.
- *
- * @param {string} [siteEnvelope.snapshotInfo.snapshotTime] Point in time in
- * which the app recovery should be attempted, formatted as a DateTime string.
- *
- * @param {object} [siteEnvelope.snapshotInfo.recoveryTarget] Specifies the web
- * app that snapshot contents will be written to.
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.location]
- * Geographical location of the target web app, e.g. SouthEastAsia,
- * SouthCentralUS
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.id] ARM resource
- * ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- *
- * @param {boolean} siteEnvelope.snapshotInfo.overwrite If true
- * the recovery operation can overwrite source app; otherwise,
- * false
.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.recoverConfiguration] If true,
- * site configuration, in addition to content, will be reverted.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.ignoreConflictingHostNames] If
- * true, custom hostname conflicts will be ignored when recovering to a target
- * web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
- *
- * @param {string} [siteEnvelope.snapshotInfo.kind] Kind of resource.
- *
* @param {boolean} [siteEnvelope.httpsOnly] HttpsOnly: configures a web site
* to accept only https requests. Issues redirect for
* http requests
@@ -10123,7 +9300,10 @@ export interface WebApps {
* @param {object} [siteEnvelope.identity]
*
* @param {string} [siteEnvelope.identity.type] Type of managed service
- * identity. Possible values include: 'SystemAssigned'
+ * identity. Possible values include: 'SystemAssigned', 'UserAssigned'
+ *
+ * @param {array} [siteEnvelope.identity.identityIds] Array of UserAssigned
+ * managed service identities.
*
* @param {string} [siteEnvelope.kind] Kind of resource.
*
@@ -10174,6 +9354,8 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.reserved] true
if reserved;
* otherwise, false
.
*
+ * @param {boolean} [siteEnvelope.isXenon] Hyper-V sandbox.
+ *
* @param {object} [siteEnvelope.siteConfig] Configuration of the app.
*
* @param {number} [siteEnvelope.siteConfig.numberOfWorkers] Number of workers.
@@ -10192,6 +9374,9 @@ export interface WebApps {
* @param {string} [siteEnvelope.siteConfig.linuxFxVersion] Linux App Framework
* and version
*
+ * @param {string} [siteEnvelope.siteConfig.windowsFxVersion] Xenon App
+ * Framework and version
+ *
* @param {boolean} [siteEnvelope.siteConfig.requestTracingEnabled]
* true
if request tracing is enabled; otherwise,
* false
.
@@ -10390,6 +9575,12 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.siteConfig.localMySqlEnabled]
* true
to enable local MySQL; otherwise, false
.
*
+ * @param {number} [siteEnvelope.siteConfig.managedServiceIdentityId] Managed
+ * Service Identity Id
+ *
+ * @param {number} [siteEnvelope.siteConfig.xManagedServiceIdentityId] Explicit
+ * Managed Service Identity Id
+ *
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
* restrictions.
*
@@ -10400,6 +9591,13 @@ export interface WebApps {
* configures the minimum version of TLS required for SSL requests. Possible
* values include: '1.0', '1.1', '1.2'
*
+ * @param {string} [siteEnvelope.siteConfig.ftpsState] State of FTP / FTPS
+ * service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteEnvelope.siteConfig.reservedInstanceCount] Number of
+ * reserved instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {boolean} [siteEnvelope.scmSiteAlsoStopped] true
to stop
* SCM (KUDU) site when the app is stopped; otherwise, false
. The
* default is false
.
@@ -10475,43 +9673,6 @@ export interface WebApps {
* Traffic Manager profile to create. This is only needed if Traffic Manager
* profile does not already exist.
*
- * @param {boolean} [siteEnvelope.cloningInfo.ignoreQuotas] true
- * if quotas should be ignored; otherwise, false
.
- *
- * @param {object} [siteEnvelope.snapshotInfo] If specified during app
- * creation, the app is created from a previous snapshot.
- *
- * @param {string} [siteEnvelope.snapshotInfo.snapshotTime] Point in time in
- * which the app recovery should be attempted, formatted as a DateTime string.
- *
- * @param {object} [siteEnvelope.snapshotInfo.recoveryTarget] Specifies the web
- * app that snapshot contents will be written to.
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.location]
- * Geographical location of the target web app, e.g. SouthEastAsia,
- * SouthCentralUS
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.id] ARM resource
- * ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- *
- * @param {boolean} siteEnvelope.snapshotInfo.overwrite If true
- * the recovery operation can overwrite source app; otherwise,
- * false
.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.recoverConfiguration] If true,
- * site configuration, in addition to content, will be reverted.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.ignoreConflictingHostNames] If
- * true, custom hostname conflicts will be ignored when recovering to a target
- * web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
- *
- * @param {string} [siteEnvelope.snapshotInfo.kind] Kind of resource.
- *
* @param {boolean} [siteEnvelope.httpsOnly] HttpsOnly: configures a web site
* to accept only https requests. Issues redirect for
* http requests
@@ -10519,7 +9680,10 @@ export interface WebApps {
* @param {object} [siteEnvelope.identity]
*
* @param {string} [siteEnvelope.identity.type] Type of managed service
- * identity. Possible values include: 'SystemAssigned'
+ * identity. Possible values include: 'SystemAssigned', 'UserAssigned'
+ *
+ * @param {array} [siteEnvelope.identity.identityIds] Array of UserAssigned
+ * managed service identities.
*
* @param {string} [siteEnvelope.kind] Kind of resource.
*
@@ -10669,6 +9833,8 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.reserved] true
if reserved;
* otherwise, false
.
*
+ * @param {boolean} [siteEnvelope.isXenon] Hyper-V sandbox.
+ *
* @param {object} [siteEnvelope.siteConfig] Configuration of the app.
*
* @param {number} [siteEnvelope.siteConfig.numberOfWorkers] Number of workers.
@@ -10687,6 +9853,9 @@ export interface WebApps {
* @param {string} [siteEnvelope.siteConfig.linuxFxVersion] Linux App Framework
* and version
*
+ * @param {string} [siteEnvelope.siteConfig.windowsFxVersion] Xenon App
+ * Framework and version
+ *
* @param {boolean} [siteEnvelope.siteConfig.requestTracingEnabled]
* true
if request tracing is enabled; otherwise,
* false
.
@@ -10885,6 +10054,12 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.siteConfig.localMySqlEnabled]
* true
to enable local MySQL; otherwise, false
.
*
+ * @param {number} [siteEnvelope.siteConfig.managedServiceIdentityId] Managed
+ * Service Identity Id
+ *
+ * @param {number} [siteEnvelope.siteConfig.xManagedServiceIdentityId] Explicit
+ * Managed Service Identity Id
+ *
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
* restrictions.
*
@@ -10895,6 +10070,13 @@ export interface WebApps {
* configures the minimum version of TLS required for SSL requests. Possible
* values include: '1.0', '1.1', '1.2'
*
+ * @param {string} [siteEnvelope.siteConfig.ftpsState] State of FTP / FTPS
+ * service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteEnvelope.siteConfig.reservedInstanceCount] Number of
+ * reserved instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {boolean} [siteEnvelope.scmSiteAlsoStopped] true
to stop
* SCM (KUDU) site when the app is stopped; otherwise, false
. The
* default is false
.
@@ -10970,43 +10152,6 @@ export interface WebApps {
* Traffic Manager profile to create. This is only needed if Traffic Manager
* profile does not already exist.
*
- * @param {boolean} [siteEnvelope.cloningInfo.ignoreQuotas] true
- * if quotas should be ignored; otherwise, false
.
- *
- * @param {object} [siteEnvelope.snapshotInfo] If specified during app
- * creation, the app is created from a previous snapshot.
- *
- * @param {string} [siteEnvelope.snapshotInfo.snapshotTime] Point in time in
- * which the app recovery should be attempted, formatted as a DateTime string.
- *
- * @param {object} [siteEnvelope.snapshotInfo.recoveryTarget] Specifies the web
- * app that snapshot contents will be written to.
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.location]
- * Geographical location of the target web app, e.g. SouthEastAsia,
- * SouthCentralUS
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.id] ARM resource
- * ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- *
- * @param {boolean} siteEnvelope.snapshotInfo.overwrite If true
- * the recovery operation can overwrite source app; otherwise,
- * false
.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.recoverConfiguration] If true,
- * site configuration, in addition to content, will be reverted.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.ignoreConflictingHostNames] If
- * true, custom hostname conflicts will be ignored when recovering to a target
- * web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
- *
- * @param {string} [siteEnvelope.snapshotInfo.kind] Kind of resource.
- *
* @param {boolean} [siteEnvelope.httpsOnly] HttpsOnly: configures a web site
* to accept only https requests. Issues redirect for
* http requests
@@ -11056,6 +10201,8 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.reserved] true
if reserved;
* otherwise, false
.
*
+ * @param {boolean} [siteEnvelope.isXenon] Hyper-V sandbox.
+ *
* @param {object} [siteEnvelope.siteConfig] Configuration of the app.
*
* @param {number} [siteEnvelope.siteConfig.numberOfWorkers] Number of workers.
@@ -11074,6 +10221,9 @@ export interface WebApps {
* @param {string} [siteEnvelope.siteConfig.linuxFxVersion] Linux App Framework
* and version
*
+ * @param {string} [siteEnvelope.siteConfig.windowsFxVersion] Xenon App
+ * Framework and version
+ *
* @param {boolean} [siteEnvelope.siteConfig.requestTracingEnabled]
* true
if request tracing is enabled; otherwise,
* false
.
@@ -11272,6 +10422,12 @@ export interface WebApps {
* @param {boolean} [siteEnvelope.siteConfig.localMySqlEnabled]
* true
to enable local MySQL; otherwise, false
.
*
+ * @param {number} [siteEnvelope.siteConfig.managedServiceIdentityId] Managed
+ * Service Identity Id
+ *
+ * @param {number} [siteEnvelope.siteConfig.xManagedServiceIdentityId] Explicit
+ * Managed Service Identity Id
+ *
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
* restrictions.
*
@@ -11282,6 +10438,13 @@ export interface WebApps {
* configures the minimum version of TLS required for SSL requests. Possible
* values include: '1.0', '1.1', '1.2'
*
+ * @param {string} [siteEnvelope.siteConfig.ftpsState] State of FTP / FTPS
+ * service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteEnvelope.siteConfig.reservedInstanceCount] Number of
+ * reserved instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {boolean} [siteEnvelope.scmSiteAlsoStopped] true
to stop
* SCM (KUDU) site when the app is stopped; otherwise, false
. The
* default is false
.
@@ -11357,43 +10520,6 @@ export interface WebApps {
* Traffic Manager profile to create. This is only needed if Traffic Manager
* profile does not already exist.
*
- * @param {boolean} [siteEnvelope.cloningInfo.ignoreQuotas] true
- * if quotas should be ignored; otherwise, false
.
- *
- * @param {object} [siteEnvelope.snapshotInfo] If specified during app
- * creation, the app is created from a previous snapshot.
- *
- * @param {string} [siteEnvelope.snapshotInfo.snapshotTime] Point in time in
- * which the app recovery should be attempted, formatted as a DateTime string.
- *
- * @param {object} [siteEnvelope.snapshotInfo.recoveryTarget] Specifies the web
- * app that snapshot contents will be written to.
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.location]
- * Geographical location of the target web app, e.g. SouthEastAsia,
- * SouthCentralUS
- *
- * @param {string} [siteEnvelope.snapshotInfo.recoveryTarget.id] ARM resource
- * ID of the target app.
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
- * for production slots and
- * /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
- * for other slots.
- *
- * @param {boolean} siteEnvelope.snapshotInfo.overwrite If true
- * the recovery operation can overwrite source app; otherwise,
- * false
.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.recoverConfiguration] If true,
- * site configuration, in addition to content, will be reverted.
- *
- * @param {boolean} [siteEnvelope.snapshotInfo.ignoreConflictingHostNames] If
- * true, custom hostname conflicts will be ignored when recovering to a target
- * web app.
- * This setting is only necessary when RecoverConfiguration is enabled.
- *
- * @param {string} [siteEnvelope.snapshotInfo.kind] Kind of resource.
- *
* @param {boolean} [siteEnvelope.httpsOnly] HttpsOnly: configures a web site
* to accept only https requests. Issues redirect for
* http requests
@@ -11601,8 +10727,6 @@ export interface WebApps {
* @param {object} request Backup configuration. You can use the JSON response
* from the POST action as input here.
*
- * @param {string} request.backupRequestName Name of the backup.
- *
* @param {boolean} [request.enabled] True if the backup schedule is enabled
* (must be included in that case), false if the backup schedule should be
* disabled.
@@ -11633,9 +10757,6 @@ export interface WebApps {
*
* @param {array} [request.databases] Databases included in the backup.
*
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
* @param {string} [request.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -11664,450 +10785,6 @@ export interface WebApps {
* @param {object} request Backup configuration. You can use the JSON response
* from the POST action as input here.
*
- * @param {string} request.backupRequestName Name of the backup.
- *
- * @param {boolean} [request.enabled] True if the backup schedule is enabled
- * (must be included in that case), false if the backup schedule should be
- * disabled.
- *
- * @param {string} request.storageAccountUrl SAS URL to the container.
- *
- * @param {object} [request.backupSchedule] Schedule for the backup if it is
- * executed periodically.
- *
- * @param {number} request.backupSchedule.frequencyInterval How often the
- * backup should be executed (e.g. for weekly backup, this should be set to 7
- * and FrequencyUnit should be set to Day)
- *
- * @param {string} request.backupSchedule.frequencyUnit The unit of time for
- * how often the backup should be executed (e.g. for weekly backup, this should
- * be set to Day and FrequencyInterval should be set to 7). Possible values
- * include: 'Day', 'Hour'
- *
- * @param {boolean} request.backupSchedule.keepAtLeastOneBackup True if the
- * retention policy should always keep at least one backup in the storage
- * account, regardless how old it is; false otherwise.
- *
- * @param {number} request.backupSchedule.retentionPeriodInDays After how many
- * days backups should be deleted.
- *
- * @param {date} [request.backupSchedule.startTime] When the schedule should
- * start working.
- *
- * @param {array} [request.databases] Databases included in the backup.
- *
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
- * @param {string} [request.kind] Kind of resource.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {BackupItem} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {BackupItem} [result] - The deserialized result object if an error did not occur.
- * See {@link BackupItem} for more information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- backup(resourceGroupName: string, name: string, request: models.BackupRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- backup(resourceGroupName: string, name: string, request: models.BackupRequest, callback: ServiceCallback): void;
- backup(resourceGroupName: string, name: string, request: models.BackupRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets existing backups of an app.
- *
- * Gets existing backups of an app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- listBackupsWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets existing backups of an app.
- *
- * Gets existing backups of an app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {BackupItemCollection} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {BackupItemCollection} [result] - The deserialized result object if an error did not occur.
- * See {@link BackupItemCollection} for more information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- listBackups(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listBackups(resourceGroupName: string, name: string, callback: ServiceCallback): void;
- listBackups(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Discovers an existing app backup that can be restored from a blob
- * in Azure storage.
- *
- * Discovers an existing app backup that can be restored from a blob in Azure
- * storage.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} request A RestoreRequest object that includes Azure storage
- * URL and blog name for discovery of backup.
- *
- * @param {string} request.storageAccountUrl SAS URL to the container.
- *
- * @param {string} [request.blobName] Name of a blob which contains the backup.
- *
- * @param {boolean} request.overwrite true
if the restore
- * operation can overwrite target app; otherwise, false
.
- * true
is needed if trying to restore over an existing app.
- *
- * @param {string} [request.siteName] Name of an app.
- *
- * @param {array} [request.databases] Collection of databases which should be
- * restored. This list has to match the list of databases included in the
- * backup.
- *
- * @param {boolean} [request.ignoreConflictingHostNames] Changes a logic when
- * restoring an app with custom domains. true
to remove custom
- * domains automatically. If false
, custom domains are added to
- * the app's object when it is being restored, but that might fail due to
- * conflicts during the operation.
- *
- * @param {boolean} [request.ignoreDatabases] Ignore the databases and only
- * restore the site content
- *
- * @param {string} [request.appServicePlan] Specify app service plan that will
- * own restored site.
- *
- * @param {string} [request.operationType] Operation type. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
- * @param {boolean} [request.adjustConnectionStrings] true
if
- * SiteConfig.ConnectionStrings should be set in new app; otherwise,
- * false
.
- *
- * @param {string} [request.hostingEnvironment] App Service Environment name,
- * if needed (only when restoring an app to an App Service Environment).
- *
- * @param {string} [request.kind] Kind of resource.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- discoverRestoreWithHttpOperationResponse(resourceGroupName: string, name: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Discovers an existing app backup that can be restored from a blob
- * in Azure storage.
- *
- * Discovers an existing app backup that can be restored from a blob in Azure
- * storage.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} request A RestoreRequest object that includes Azure storage
- * URL and blog name for discovery of backup.
- *
- * @param {string} request.storageAccountUrl SAS URL to the container.
- *
- * @param {string} [request.blobName] Name of a blob which contains the backup.
- *
- * @param {boolean} request.overwrite true
if the restore
- * operation can overwrite target app; otherwise, false
.
- * true
is needed if trying to restore over an existing app.
- *
- * @param {string} [request.siteName] Name of an app.
- *
- * @param {array} [request.databases] Collection of databases which should be
- * restored. This list has to match the list of databases included in the
- * backup.
- *
- * @param {boolean} [request.ignoreConflictingHostNames] Changes a logic when
- * restoring an app with custom domains. true
to remove custom
- * domains automatically. If false
, custom domains are added to
- * the app's object when it is being restored, but that might fail due to
- * conflicts during the operation.
- *
- * @param {boolean} [request.ignoreDatabases] Ignore the databases and only
- * restore the site content
- *
- * @param {string} [request.appServicePlan] Specify app service plan that will
- * own restored site.
- *
- * @param {string} [request.operationType] Operation type. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
- * @param {boolean} [request.adjustConnectionStrings] true
if
- * SiteConfig.ConnectionStrings should be set in new app; otherwise,
- * false
.
- *
- * @param {string} [request.hostingEnvironment] App Service Environment name,
- * if needed (only when restoring an app to an App Service Environment).
- *
- * @param {string} [request.kind] Kind of resource.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {RestoreRequest} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {RestoreRequest} [result] - The deserialized result object if an error did not occur.
- * See {@link RestoreRequest} for more information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- discoverRestore(resourceGroupName: string, name: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- discoverRestore(resourceGroupName: string, name: string, request: models.RestoreRequest, callback: ServiceCallback): void;
- discoverRestore(resourceGroupName: string, name: string, request: models.RestoreRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets a backup of an app by its ID.
- *
- * Gets a backup of an app by its ID.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {string} backupId ID of the backup.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- getBackupStatusWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Gets a backup of an app by its ID.
- *
- * Gets a backup of an app by its ID.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {string} backupId ID of the backup.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {BackupItem} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {BackupItem} [result] - The deserialized result object if an error did not occur.
- * See {@link BackupItem} for more information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- getBackupStatus(resourceGroupName: string, name: string, backupId: string, callback: ServiceCallback): void;
- getBackupStatus(resourceGroupName: string, name: string, backupId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Deletes a backup of an app by its ID.
- *
- * Deletes a backup of an app by its ID.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {string} backupId ID of the backup.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @returns {Promise} A promise is returned
- *
- * @resolve {HttpOperationResponse} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- */
- deleteBackupWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Deletes a backup of an app by its ID.
- *
- * Deletes a backup of an app by its ID.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {string} backupId ID of the backup.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {null} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {null} [result] - The deserialized result object if an error did not occur.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- deleteBackup(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deleteBackup(resourceGroupName: string, name: string, backupId: string, callback: ServiceCallback): void;
- deleteBackup(resourceGroupName: string, name: string, backupId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Gets status of a web app backup that may be in progress, including
- * secrets associated with the backup, such as the Azure Storage SAS URL. Also
- * can be used to update the SAS URL for the backup if a new URL is passed in
- * the request body.
- *
- * Gets status of a web app backup that may be in progress, including secrets
- * associated with the backup, such as the Azure Storage SAS URL. Also can be
- * used to update the SAS URL for the backup if a new URL is passed in the
- * request body.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {string} backupId ID of backup.
- *
- * @param {object} request Information on backup request.
- *
- * @param {string} request.backupRequestName Name of the backup.
- *
* @param {boolean} [request.enabled] True if the backup schedule is enabled
* (must be included in that case), false if the backup schedule should be
* disabled.
@@ -12138,8 +10815,291 @@ export interface WebApps {
*
* @param {array} [request.databases] Databases included in the backup.
*
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
+ * @param {string} [request.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {BackupItem} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {BackupItem} [result] - The deserialized result object if an error did not occur.
+ * See {@link BackupItem} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ backup(resourceGroupName: string, name: string, request: models.BackupRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ backup(resourceGroupName: string, name: string, request: models.BackupRequest, callback: ServiceCallback): void;
+ backup(resourceGroupName: string, name: string, request: models.BackupRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Gets existing backups of an app.
+ *
+ * Gets existing backups of an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ listBackupsWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Gets existing backups of an app.
+ *
+ * Gets existing backups of an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {BackupItemCollection} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {BackupItemCollection} [result] - The deserialized result object if an error did not occur.
+ * See {@link BackupItemCollection} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ listBackups(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ listBackups(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ listBackups(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Gets a backup of an app by its ID.
+ *
+ * Gets a backup of an app by its ID.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} backupId ID of the backup.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ getBackupStatusWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Gets a backup of an app by its ID.
+ *
+ * Gets a backup of an app by its ID.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} backupId ID of the backup.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {BackupItem} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {BackupItem} [result] - The deserialized result object if an error did not occur.
+ * See {@link BackupItem} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ getBackupStatus(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ getBackupStatus(resourceGroupName: string, name: string, backupId: string, callback: ServiceCallback): void;
+ getBackupStatus(resourceGroupName: string, name: string, backupId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Deletes a backup of an app by its ID.
+ *
+ * Deletes a backup of an app by its ID.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} backupId ID of the backup.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ deleteBackupWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Deletes a backup of an app by its ID.
+ *
+ * Deletes a backup of an app by its ID.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} backupId ID of the backup.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {null} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {null} [result] - The deserialized result object if an error did not occur.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ deleteBackup(resourceGroupName: string, name: string, backupId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteBackup(resourceGroupName: string, name: string, backupId: string, callback: ServiceCallback): void;
+ deleteBackup(resourceGroupName: string, name: string, backupId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Gets status of a web app backup that may be in progress, including
+ * secrets associated with the backup, such as the Azure Storage SAS URL. Also
+ * can be used to update the SAS URL for the backup if a new URL is passed in
+ * the request body.
+ *
+ * Gets status of a web app backup that may be in progress, including secrets
+ * associated with the backup, such as the Azure Storage SAS URL. Also can be
+ * used to update the SAS URL for the backup if a new URL is passed in the
+ * request body.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of web app.
+ *
+ * @param {string} backupId ID of backup.
+ *
+ * @param {object} request Information on backup request.
+ *
+ * @param {boolean} [request.enabled] True if the backup schedule is enabled
+ * (must be included in that case), false if the backup schedule should be
+ * disabled.
+ *
+ * @param {string} request.storageAccountUrl SAS URL to the container.
+ *
+ * @param {object} [request.backupSchedule] Schedule for the backup if it is
+ * executed periodically.
+ *
+ * @param {number} request.backupSchedule.frequencyInterval How often the
+ * backup should be executed (e.g. for weekly backup, this should be set to 7
+ * and FrequencyUnit should be set to Day)
+ *
+ * @param {string} request.backupSchedule.frequencyUnit The unit of time for
+ * how often the backup should be executed (e.g. for weekly backup, this should
+ * be set to Day and FrequencyInterval should be set to 7). Possible values
+ * include: 'Day', 'Hour'
+ *
+ * @param {boolean} request.backupSchedule.keepAtLeastOneBackup True if the
+ * retention policy should always keep at least one backup in the storage
+ * account, regardless how old it is; false otherwise.
+ *
+ * @param {number} request.backupSchedule.retentionPeriodInDays After how many
+ * days backups should be deleted.
+ *
+ * @param {date} [request.backupSchedule.startTime] When the schedule should
+ * start working.
+ *
+ * @param {array} [request.databases] Databases included in the backup.
*
* @param {string} [request.kind] Kind of resource.
*
@@ -12176,8 +11136,6 @@ export interface WebApps {
*
* @param {object} request Information on backup request.
*
- * @param {string} request.backupRequestName Name of the backup.
- *
* @param {boolean} [request.enabled] True if the backup schedule is enabled
* (must be included in that case), false if the backup schedule should be
* disabled.
@@ -12208,9 +11166,6 @@ export interface WebApps {
*
* @param {array} [request.databases] Databases included in the backup.
*
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
* @param {string} [request.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -12288,7 +11243,7 @@ export interface WebApps {
* own restored site.
*
* @param {string} [request.operationType] Operation type. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
+ * include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'
*
* @param {boolean} [request.adjustConnectionStrings] true
if
* SiteConfig.ConnectionStrings should be set in new app; otherwise,
@@ -12306,11 +11261,11 @@ export interface WebApps {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- restoreWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ restoreWithHttpOperationResponse(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* @summary Restores a specific backup to another app (or deployment slot, if
@@ -12355,7 +11310,7 @@ export interface WebApps {
* own restored site.
*
* @param {string} [request.operationType] Operation type. Possible values
- * include: 'Default', 'Clone', 'Relocation', 'Snapshot'
+ * include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'
*
* @param {boolean} [request.adjustConnectionStrings] true
if
* SiteConfig.ConnectionStrings should be set in new app; otherwise,
@@ -12378,7 +11333,7 @@ export interface WebApps {
*
* {Promise} A promise is returned.
*
- * @resolve {RestoreResponse} - The deserialized result object.
+ * @resolve {null} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -12386,16 +11341,15 @@ export interface WebApps {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {RestoreResponse} [result] - The deserialized result object if an error did not occur.
- * See {@link RestoreResponse} for more information.
+ * {null} [result] - The deserialized result object if an error did not occur.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, callback: ServiceCallback): void;
- restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, callback: ServiceCallback): void;
+ restore(resourceGroupName: string, name: string, backupId: string, request: models.RestoreRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -12681,6 +11635,9 @@ export interface WebApps {
* More information on OpenID Connect Discovery:
* http://openid.net/specs/openid-connect-discovery-1_0.html
*
+ * @param {boolean} [siteAuthSettings.validateIssuer] Gets a value indicating
+ * whether the issuer should be a valid HTTPS url and be validated as such.
+ *
* @param {array} [siteAuthSettings.allowedAudiences] Allowed audience values
* to consider when validating JWTs issued by
* Azure Active Directory. Note that the ClientID
value is always
@@ -12847,6 +11804,9 @@ export interface WebApps {
* More information on OpenID Connect Discovery:
* http://openid.net/specs/openid-connect-discovery-1_0.html
*
+ * @param {boolean} [siteAuthSettings.validateIssuer] Gets a value indicating
+ * whether the issuer should be a valid HTTPS url and be validated as such.
+ *
* @param {array} [siteAuthSettings.allowedAudiences] Allowed audience values
* to consider when validating JWTs issued by
* Azure Active Directory. Note that the ClientID
value is always
@@ -13034,8 +11994,6 @@ export interface WebApps {
*
* @param {object} request Edited backup configuration.
*
- * @param {string} request.backupRequestName Name of the backup.
- *
* @param {boolean} [request.enabled] True if the backup schedule is enabled
* (must be included in that case), false if the backup schedule should be
* disabled.
@@ -13066,9 +12024,6 @@ export interface WebApps {
*
* @param {array} [request.databases] Databases included in the backup.
*
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
* @param {string} [request.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -13096,8 +12051,6 @@ export interface WebApps {
*
* @param {object} request Edited backup configuration.
*
- * @param {string} request.backupRequestName Name of the backup.
- *
* @param {boolean} [request.enabled] True if the backup schedule is enabled
* (must be included in that case), false if the backup schedule should be
* disabled.
@@ -13128,9 +12081,6 @@ export interface WebApps {
*
* @param {array} [request.databases] Databases included in the backup.
*
- * @param {string} [request.backupRequestType] Type of the backup. Possible
- * values include: 'Default', 'Clone', 'Relocation', 'Snapshot'
- *
* @param {string} [request.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -14283,6 +13233,339 @@ export interface WebApps {
updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ /**
+ * @summary Gets a Swift Virtual Network connection.
+ *
+ * Gets a Swift Virtual Network connection.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ getSwiftVirtualNetworkConnectionWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Gets a Swift Virtual Network connection.
+ *
+ * Gets a Swift Virtual Network connection.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {SwiftVirtualNetwork} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {SwiftVirtualNetwork} [result] - The deserialized result object if an error did not occur.
+ * See {@link SwiftVirtualNetwork} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ getSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Integrates this Web App with a Virtual Network. This requires that
+ * 1) "swiftSupported" is true when doing a GET against this resource, and 2)
+ * that the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * Integrates this Web App with a Virtual Network. This requires that 1)
+ * "swiftSupported" is true when doing a GET against this resource, and 2) that
+ * the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} connectionEnvelope Properties of the Virtual Network
+ * connection. See example.
+ *
+ * @param {string} [connectionEnvelope.subnetResourceId] The Virtual Network
+ * subnet's resource ID. This is the subnet that this Web App will join. This
+ * subnet must have a delegation to Microsoft.Web/serverFarms defined first.
+ *
+ * @param {boolean} [connectionEnvelope.swiftSupported] A flag that specifies
+ * if the scale unit this Web App is on supports Swift integration.
+ *
+ * @param {string} [connectionEnvelope.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ createOrUpdateSwiftVirtualNetworkConnectionWithHttpOperationResponse(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Integrates this Web App with a Virtual Network. This requires that
+ * 1) "swiftSupported" is true when doing a GET against this resource, and 2)
+ * that the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * Integrates this Web App with a Virtual Network. This requires that 1)
+ * "swiftSupported" is true when doing a GET against this resource, and 2) that
+ * the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} connectionEnvelope Properties of the Virtual Network
+ * connection. See example.
+ *
+ * @param {string} [connectionEnvelope.subnetResourceId] The Virtual Network
+ * subnet's resource ID. This is the subnet that this Web App will join. This
+ * subnet must have a delegation to Microsoft.Web/serverFarms defined first.
+ *
+ * @param {boolean} [connectionEnvelope.swiftSupported] A flag that specifies
+ * if the scale unit this Web App is on supports Swift integration.
+ *
+ * @param {string} [connectionEnvelope.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {SwiftVirtualNetwork} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {SwiftVirtualNetwork} [result] - The deserialized result object if an error did not occur.
+ * See {@link SwiftVirtualNetwork} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, callback: ServiceCallback): void;
+ createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Deletes a Swift Virtual Network connection from an app (or
+ * deployment slot).
+ *
+ * Deletes a Swift Virtual Network connection from an app (or deployment slot).
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ deleteSwiftVirtualNetworkWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Deletes a Swift Virtual Network connection from an app (or
+ * deployment slot).
+ *
+ * Deletes a Swift Virtual Network connection from an app (or deployment slot).
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {null} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {null} [result] - The deserialized result object if an error did not occur.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ deleteSwiftVirtualNetwork(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Integrates this Web App with a Virtual Network. This requires that
+ * 1) "swiftSupported" is true when doing a GET against this resource, and 2)
+ * that the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * Integrates this Web App with a Virtual Network. This requires that 1)
+ * "swiftSupported" is true when doing a GET against this resource, and 2) that
+ * the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} connectionEnvelope Properties of the Virtual Network
+ * connection. See example.
+ *
+ * @param {string} [connectionEnvelope.subnetResourceId] The Virtual Network
+ * subnet's resource ID. This is the subnet that this Web App will join. This
+ * subnet must have a delegation to Microsoft.Web/serverFarms defined first.
+ *
+ * @param {boolean} [connectionEnvelope.swiftSupported] A flag that specifies
+ * if the scale unit this Web App is on supports Swift integration.
+ *
+ * @param {string} [connectionEnvelope.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ updateSwiftVirtualNetworkConnectionWithHttpOperationResponse(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Integrates this Web App with a Virtual Network. This requires that
+ * 1) "swiftSupported" is true when doing a GET against this resource, and 2)
+ * that the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * Integrates this Web App with a Virtual Network. This requires that 1)
+ * "swiftSupported" is true when doing a GET against this resource, and 2) that
+ * the target Subnet has already been delegated, and is not
+ * in use by another App Service Plan other than the one this App is in.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} connectionEnvelope Properties of the Virtual Network
+ * connection. See example.
+ *
+ * @param {string} [connectionEnvelope.subnetResourceId] The Virtual Network
+ * subnet's resource ID. This is the subnet that this Web App will join. This
+ * subnet must have a delegation to Microsoft.Web/serverFarms defined first.
+ *
+ * @param {boolean} [connectionEnvelope.swiftSupported] A flag that specifies
+ * if the scale unit this Web App is on supports Swift integration.
+ *
+ * @param {string} [connectionEnvelope.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {SwiftVirtualNetwork} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {SwiftVirtualNetwork} [result] - The deserialized result object if an error did not occur.
+ * See {@link SwiftVirtualNetwork} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, callback: ServiceCallback): void;
+ updateSwiftVirtualNetworkConnection(resourceGroupName: string, name: string, connectionEnvelope: models.SwiftVirtualNetwork, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
/**
* @summary Gets the configuration of an app, such as platform version and
* bitness, default documents, virtual applications, Always On, etc.
@@ -14379,6 +13662,9 @@ export interface WebApps {
*
* @param {string} [siteConfig.linuxFxVersion] Linux App Framework and version
*
+ * @param {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
+ *
* @param {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
*
@@ -14556,6 +13842,12 @@ export interface WebApps {
* @param {boolean} [siteConfig.localMySqlEnabled] true
to enable
* local MySQL; otherwise, false
.
*
+ * @param {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ *
+ * @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
+ *
* @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
@@ -14565,6 +13857,13 @@ export interface WebApps {
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
*
+ * @param {string} [siteConfig.ftpsState] State of FTP / FTPS service. Possible
+ * values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {string} [siteConfig.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -14607,6 +13906,272 @@ export interface WebApps {
*
* @param {string} [siteConfig.linuxFxVersion] Linux App Framework and version
*
+ * @param {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
+ *
+ * @param {boolean} [siteConfig.requestTracingEnabled] true
if
+ * request tracing is enabled; otherwise, false
.
+ *
+ * @param {date} [siteConfig.requestTracingExpirationTime] Request tracing
+ * expiration time.
+ *
+ * @param {boolean} [siteConfig.remoteDebuggingEnabled] true
if
+ * remote debugging is enabled; otherwise, false
.
+ *
+ * @param {string} [siteConfig.remoteDebuggingVersion] Remote debugging
+ * version.
+ *
+ * @param {boolean} [siteConfig.httpLoggingEnabled] true
if HTTP
+ * logging is enabled; otherwise, false
.
+ *
+ * @param {number} [siteConfig.logsDirectorySizeLimit] HTTP logs directory size
+ * limit.
+ *
+ * @param {boolean} [siteConfig.detailedErrorLoggingEnabled] true
+ * if detailed error logging is enabled; otherwise, false
.
+ *
+ * @param {string} [siteConfig.publishingUsername] Publishing user name.
+ *
+ * @param {array} [siteConfig.appSettings] Application settings.
+ *
+ * @param {array} [siteConfig.connectionStrings] Connection strings.
+ *
+ * @param {array} [siteConfig.handlerMappings] Handler mappings.
+ *
+ * @param {string} [siteConfig.documentRoot] Document root.
+ *
+ * @param {string} [siteConfig.scmType] SCM type. Possible values include:
+ * 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg',
+ * 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive',
+ * 'VSO'
+ *
+ * @param {boolean} [siteConfig.use32BitWorkerProcess] true
to use
+ * 32-bit worker process; otherwise, false
.
+ *
+ * @param {boolean} [siteConfig.webSocketsEnabled] true
if
+ * WebSocket is enabled; otherwise, false
.
+ *
+ * @param {boolean} [siteConfig.alwaysOn] true
if Always On is
+ * enabled; otherwise, false
.
+ *
+ * @param {string} [siteConfig.javaVersion] Java version.
+ *
+ * @param {string} [siteConfig.javaContainer] Java container.
+ *
+ * @param {string} [siteConfig.javaContainerVersion] Java container version.
+ *
+ * @param {string} [siteConfig.appCommandLine] App command line to launch.
+ *
+ * @param {string} [siteConfig.managedPipelineMode] Managed pipeline mode.
+ * Possible values include: 'Integrated', 'Classic'
+ *
+ * @param {array} [siteConfig.virtualApplications] Virtual applications.
+ *
+ * @param {string} [siteConfig.loadBalancing] Site load balancing. Possible
+ * values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
+ * 'WeightedTotalTraffic', 'RequestHash'
+ *
+ * @param {object} [siteConfig.experiments] This is work around for polymophic
+ * types.
+ *
+ * @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
+ *
+ * @param {object} [siteConfig.limits] Site limits.
+ *
+ * @param {number} [siteConfig.limits.maxPercentageCpu] Maximum allowed CPU
+ * usage percentage.
+ *
+ * @param {number} [siteConfig.limits.maxMemoryInMb] Maximum allowed memory
+ * usage in MB.
+ *
+ * @param {number} [siteConfig.limits.maxDiskSizeInMb] Maximum allowed disk
+ * size usage in MB.
+ *
+ * @param {boolean} [siteConfig.autoHealEnabled] true
if Auto Heal
+ * is enabled; otherwise, false
.
+ *
+ * @param {object} [siteConfig.autoHealRules] Auto Heal rules.
+ *
+ * @param {object} [siteConfig.autoHealRules.triggers] Conditions that describe
+ * when to execute the auto-heal actions.
+ *
+ * @param {object} [siteConfig.autoHealRules.triggers.requests] A rule based on
+ * total requests.
+ *
+ * @param {number} [siteConfig.autoHealRules.triggers.requests.count] Request
+ * Count.
+ *
+ * @param {string} [siteConfig.autoHealRules.triggers.requests.timeInterval]
+ * Time interval.
+ *
+ * @param {number} [siteConfig.autoHealRules.triggers.privateBytesInKB] A rule
+ * based on private bytes.
+ *
+ * @param {array} [siteConfig.autoHealRules.triggers.statusCodes] A rule based
+ * on status codes.
+ *
+ * @param {object} [siteConfig.autoHealRules.triggers.slowRequests] A rule
+ * based on request execution time.
+ *
+ * @param {string} [siteConfig.autoHealRules.triggers.slowRequests.timeTaken]
+ * Time taken.
+ *
+ * @param {number} [siteConfig.autoHealRules.triggers.slowRequests.count]
+ * Request Count.
+ *
+ * @param {string}
+ * [siteConfig.autoHealRules.triggers.slowRequests.timeInterval] Time interval.
+ *
+ * @param {object} [siteConfig.autoHealRules.actions] Actions to be executed
+ * when a rule is triggered.
+ *
+ * @param {string} [siteConfig.autoHealRules.actions.actionType] Predefined
+ * action to be taken. Possible values include: 'Recycle', 'LogEvent',
+ * 'CustomAction'
+ *
+ * @param {object} [siteConfig.autoHealRules.actions.customAction] Custom
+ * action to be taken.
+ *
+ * @param {string} [siteConfig.autoHealRules.actions.customAction.exe]
+ * Executable to be run.
+ *
+ * @param {string} [siteConfig.autoHealRules.actions.customAction.parameters]
+ * Parameters for the executable.
+ *
+ * @param {string} [siteConfig.autoHealRules.actions.minProcessExecutionTime]
+ * Minimum time the process must execute
+ * before taking the action
+ *
+ * @param {string} [siteConfig.tracingOptions] Tracing options.
+ *
+ * @param {string} [siteConfig.vnetName] Virtual Network name.
+ *
+ * @param {object} [siteConfig.cors] Cross-Origin Resource Sharing (CORS)
+ * settings.
+ *
+ * @param {array} [siteConfig.cors.allowedOrigins] Gets or sets the list of
+ * origins that should be allowed to make cross-origin
+ * calls (for example: http://example.com:12345). Use "*" to allow all.
+ *
+ * @param {object} [siteConfig.push] Push endpoint settings.
+ *
+ * @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
+ * indicating whether the Push endpoint is enabled.
+ *
+ * @param {string} [siteConfig.push.tagWhitelistJson] Gets or sets a JSON
+ * string containing a list of tags that are whitelisted for use by the push
+ * registration endpoint.
+ *
+ * @param {string} [siteConfig.push.tagsRequiringAuth] Gets or sets a JSON
+ * string containing a list of tags that require user authentication to be used
+ * in the push registration endpoint.
+ * Tags can consist of alphanumeric characters and the following:
+ * '_', '@', '#', '.', ':', '-'.
+ * Validation should be performed at the PushRequestHandler.
+ *
+ * @param {string} [siteConfig.push.dynamicTagsJson] Gets or sets a JSON string
+ * containing a list of dynamic tags that will be evaluated from user claims in
+ * the push registration endpoint.
+ *
+ * @param {string} [siteConfig.push.kind] Kind of resource.
+ *
+ * @param {object} [siteConfig.apiDefinition] Information about the formal API
+ * definition for the app.
+ *
+ * @param {string} [siteConfig.apiDefinition.url] The URL of the API
+ * definition.
+ *
+ * @param {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
+ *
+ * @param {boolean} [siteConfig.localMySqlEnabled] true
to enable
+ * local MySQL; otherwise, false
.
+ *
+ * @param {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ *
+ * @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
+ *
+ * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
+ *
+ * @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
+ * site to allow clients to connect over http2.0
+ *
+ * @param {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
+ * minimum version of TLS required for SSL requests. Possible values include:
+ * '1.0', '1.1', '1.2'
+ *
+ * @param {string} [siteConfig.ftpsState] State of FTP / FTPS service. Possible
+ * values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
+ *
+ * @param {string} [siteConfig.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {SiteConfigResource} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {SiteConfigResource} [result] - The deserialized result object if an error did not occur.
+ * See {@link SiteConfigResource} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, callback: ServiceCallback): void;
+ createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Updates the configuration of an app.
+ *
+ * Updates the configuration of an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} siteConfig JSON representation of a SiteConfig object. See
+ * example.
+ *
+ * @param {number} [siteConfig.numberOfWorkers] Number of workers.
+ *
+ * @param {array} [siteConfig.defaultDocuments] Default documents.
+ *
+ * @param {string} [siteConfig.netFrameworkVersion] .NET Framework version.
+ *
+ * @param {string} [siteConfig.phpVersion] Version of PHP.
+ *
+ * @param {string} [siteConfig.pythonVersion] Version of Python.
+ *
+ * @param {string} [siteConfig.nodeVersion] Version of Node.js.
+ *
+ * @param {string} [siteConfig.linuxFxVersion] Linux App Framework and version
+ *
+ * @param {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
+ *
* @param {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
*
@@ -14784,252 +14349,11 @@ export interface WebApps {
* @param {boolean} [siteConfig.localMySqlEnabled] true
to enable
* local MySQL; otherwise, false
.
*
- * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
- *
- * @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
- * site to allow clients to connect over http2.0
- *
- * @param {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
- * minimum version of TLS required for SSL requests. Possible values include:
- * '1.0', '1.1', '1.2'
+ * @param {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
*
- * @param {string} [siteConfig.kind] Kind of resource.
- *
- * @param {object} [options] Optional Parameters.
- *
- * @param {object} [options.customHeaders] Headers that will be added to the
- * request
- *
- * @param {ServiceCallback} [optionalCallback] - The optional callback.
- *
- * @returns {ServiceCallback|Promise} If a callback was passed as the last
- * parameter then it returns the callback else returns a Promise.
- *
- * {Promise} A promise is returned.
- *
- * @resolve {SiteConfigResource} - The deserialized result object.
- *
- * @reject {Error|ServiceError} - The error object.
- *
- * {ServiceCallback} optionalCallback(err, result, request, response)
- *
- * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
- *
- * {SiteConfigResource} [result] - The deserialized result object if an error did not occur.
- * See {@link SiteConfigResource} for more information.
- *
- * {WebResource} [request] - The HTTP Request object if an error did not occur.
- *
- * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
- */
- createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, callback: ServiceCallback): void;
- createOrUpdateConfiguration(resourceGroupName: string, name: string, siteConfig: models.SiteConfigResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Updates the configuration of an app.
- *
- * Updates the configuration of an app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} siteConfig JSON representation of a SiteConfig object. See
- * example.
- *
- * @param {number} [siteConfig.numberOfWorkers] Number of workers.
- *
- * @param {array} [siteConfig.defaultDocuments] Default documents.
- *
- * @param {string} [siteConfig.netFrameworkVersion] .NET Framework version.
- *
- * @param {string} [siteConfig.phpVersion] Version of PHP.
- *
- * @param {string} [siteConfig.pythonVersion] Version of Python.
- *
- * @param {string} [siteConfig.nodeVersion] Version of Node.js.
- *
- * @param {string} [siteConfig.linuxFxVersion] Linux App Framework and version
- *
- * @param {boolean} [siteConfig.requestTracingEnabled] true
if
- * request tracing is enabled; otherwise, false
.
- *
- * @param {date} [siteConfig.requestTracingExpirationTime] Request tracing
- * expiration time.
- *
- * @param {boolean} [siteConfig.remoteDebuggingEnabled] true
if
- * remote debugging is enabled; otherwise, false
.
- *
- * @param {string} [siteConfig.remoteDebuggingVersion] Remote debugging
- * version.
- *
- * @param {boolean} [siteConfig.httpLoggingEnabled] true
if HTTP
- * logging is enabled; otherwise, false
.
- *
- * @param {number} [siteConfig.logsDirectorySizeLimit] HTTP logs directory size
- * limit.
- *
- * @param {boolean} [siteConfig.detailedErrorLoggingEnabled] true
- * if detailed error logging is enabled; otherwise, false
.
- *
- * @param {string} [siteConfig.publishingUsername] Publishing user name.
- *
- * @param {array} [siteConfig.appSettings] Application settings.
- *
- * @param {array} [siteConfig.connectionStrings] Connection strings.
- *
- * @param {array} [siteConfig.handlerMappings] Handler mappings.
- *
- * @param {string} [siteConfig.documentRoot] Document root.
- *
- * @param {string} [siteConfig.scmType] SCM type. Possible values include:
- * 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg',
- * 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive',
- * 'VSO'
- *
- * @param {boolean} [siteConfig.use32BitWorkerProcess] true
to use
- * 32-bit worker process; otherwise, false
.
- *
- * @param {boolean} [siteConfig.webSocketsEnabled] true
if
- * WebSocket is enabled; otherwise, false
.
- *
- * @param {boolean} [siteConfig.alwaysOn] true
if Always On is
- * enabled; otherwise, false
.
- *
- * @param {string} [siteConfig.javaVersion] Java version.
- *
- * @param {string} [siteConfig.javaContainer] Java container.
- *
- * @param {string} [siteConfig.javaContainerVersion] Java container version.
- *
- * @param {string} [siteConfig.appCommandLine] App command line to launch.
- *
- * @param {string} [siteConfig.managedPipelineMode] Managed pipeline mode.
- * Possible values include: 'Integrated', 'Classic'
- *
- * @param {array} [siteConfig.virtualApplications] Virtual applications.
- *
- * @param {string} [siteConfig.loadBalancing] Site load balancing. Possible
- * values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
- * 'WeightedTotalTraffic', 'RequestHash'
- *
- * @param {object} [siteConfig.experiments] This is work around for polymophic
- * types.
- *
- * @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
- *
- * @param {object} [siteConfig.limits] Site limits.
- *
- * @param {number} [siteConfig.limits.maxPercentageCpu] Maximum allowed CPU
- * usage percentage.
- *
- * @param {number} [siteConfig.limits.maxMemoryInMb] Maximum allowed memory
- * usage in MB.
- *
- * @param {number} [siteConfig.limits.maxDiskSizeInMb] Maximum allowed disk
- * size usage in MB.
- *
- * @param {boolean} [siteConfig.autoHealEnabled] true
if Auto Heal
- * is enabled; otherwise, false
.
- *
- * @param {object} [siteConfig.autoHealRules] Auto Heal rules.
- *
- * @param {object} [siteConfig.autoHealRules.triggers] Conditions that describe
- * when to execute the auto-heal actions.
- *
- * @param {object} [siteConfig.autoHealRules.triggers.requests] A rule based on
- * total requests.
- *
- * @param {number} [siteConfig.autoHealRules.triggers.requests.count] Request
- * Count.
- *
- * @param {string} [siteConfig.autoHealRules.triggers.requests.timeInterval]
- * Time interval.
- *
- * @param {number} [siteConfig.autoHealRules.triggers.privateBytesInKB] A rule
- * based on private bytes.
- *
- * @param {array} [siteConfig.autoHealRules.triggers.statusCodes] A rule based
- * on status codes.
- *
- * @param {object} [siteConfig.autoHealRules.triggers.slowRequests] A rule
- * based on request execution time.
- *
- * @param {string} [siteConfig.autoHealRules.triggers.slowRequests.timeTaken]
- * Time taken.
- *
- * @param {number} [siteConfig.autoHealRules.triggers.slowRequests.count]
- * Request Count.
- *
- * @param {string}
- * [siteConfig.autoHealRules.triggers.slowRequests.timeInterval] Time interval.
- *
- * @param {object} [siteConfig.autoHealRules.actions] Actions to be executed
- * when a rule is triggered.
- *
- * @param {string} [siteConfig.autoHealRules.actions.actionType] Predefined
- * action to be taken. Possible values include: 'Recycle', 'LogEvent',
- * 'CustomAction'
- *
- * @param {object} [siteConfig.autoHealRules.actions.customAction] Custom
- * action to be taken.
- *
- * @param {string} [siteConfig.autoHealRules.actions.customAction.exe]
- * Executable to be run.
- *
- * @param {string} [siteConfig.autoHealRules.actions.customAction.parameters]
- * Parameters for the executable.
- *
- * @param {string} [siteConfig.autoHealRules.actions.minProcessExecutionTime]
- * Minimum time the process must execute
- * before taking the action
- *
- * @param {string} [siteConfig.tracingOptions] Tracing options.
- *
- * @param {string} [siteConfig.vnetName] Virtual Network name.
- *
- * @param {object} [siteConfig.cors] Cross-Origin Resource Sharing (CORS)
- * settings.
- *
- * @param {array} [siteConfig.cors.allowedOrigins] Gets or sets the list of
- * origins that should be allowed to make cross-origin
- * calls (for example: http://example.com:12345). Use "*" to allow all.
- *
- * @param {object} [siteConfig.push] Push endpoint settings.
- *
- * @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
- * indicating whether the Push endpoint is enabled.
- *
- * @param {string} [siteConfig.push.tagWhitelistJson] Gets or sets a JSON
- * string containing a list of tags that are whitelisted for use by the push
- * registration endpoint.
- *
- * @param {string} [siteConfig.push.tagsRequiringAuth] Gets or sets a JSON
- * string containing a list of tags that require user authentication to be used
- * in the push registration endpoint.
- * Tags can consist of alphanumeric characters and the following:
- * '_', '@', '#', '.', ':', '-'.
- * Validation should be performed at the PushRequestHandler.
- *
- * @param {string} [siteConfig.push.dynamicTagsJson] Gets or sets a JSON string
- * containing a list of dynamic tags that will be evaluated from user claims in
- * the push registration endpoint.
- *
- * @param {string} [siteConfig.push.kind] Kind of resource.
- *
- * @param {object} [siteConfig.apiDefinition] Information about the formal API
- * definition for the app.
- *
- * @param {string} [siteConfig.apiDefinition.url] The URL of the API
- * definition.
- *
- * @param {string} [siteConfig.autoSwapSlotName] Auto-swap slot name.
- *
- * @param {boolean} [siteConfig.localMySqlEnabled] true
to enable
- * local MySQL; otherwise, false
.
+ * @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
*
* @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
*
@@ -15040,6 +14364,13 @@ export interface WebApps {
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
*
+ * @param {string} [siteConfig.ftpsState] State of FTP / FTPS service. Possible
+ * values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {string} [siteConfig.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -15082,6 +14413,9 @@ export interface WebApps {
*
* @param {string} [siteConfig.linuxFxVersion] Linux App Framework and version
*
+ * @param {string} [siteConfig.windowsFxVersion] Xenon App Framework and
+ * version
+ *
* @param {boolean} [siteConfig.requestTracingEnabled] true
if
* request tracing is enabled; otherwise, false
.
*
@@ -15259,6 +14593,12 @@ export interface WebApps {
* @param {boolean} [siteConfig.localMySqlEnabled] true
to enable
* local MySQL; otherwise, false
.
*
+ * @param {number} [siteConfig.managedServiceIdentityId] Managed Service
+ * Identity Id
+ *
+ * @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
+ * Service Identity Id
+ *
* @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
@@ -15268,6 +14608,13 @@ export interface WebApps {
* minimum version of TLS required for SSL requests. Possible values include:
* '1.0', '1.1', '1.2'
*
+ * @param {string} [siteConfig.ftpsState] State of FTP / FTPS service. Possible
+ * values include: 'AllAllowed', 'FtpsOnly', 'Disabled'
+ *
+ * @param {number} [siteConfig.reservedInstanceCount] Number of reserved
+ * instances.
+ * This setting only applies to the Consumption Plan
+ *
* @param {string} [siteConfig.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -15596,7 +14943,7 @@ export interface WebApps {
*
* @reject {Error|ServiceError} - The error object.
*/
- getWebSiteContainerLogsZipWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ getContainerLogsZipWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
* @summary Gets the ZIP archived docker log files for the given site
@@ -15634,9 +14981,9 @@ export interface WebApps {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- getWebSiteContainerLogsZip(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- getWebSiteContainerLogsZip(resourceGroupName: string, name: string, callback: ServiceCallback): void;
- getWebSiteContainerLogsZip(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ getContainerLogsZip(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ getContainerLogsZip(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ getContainerLogsZip(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -16130,8 +15477,6 @@ export interface WebApps {
*
* @param {object} deployment Deployment details.
*
- * @param {string} [deployment.deploymentId] Identifier for deployment.
- *
* @param {number} [deployment.status] Deployment status.
*
* @param {string} [deployment.message] Details about deployment status.
@@ -16180,8 +15525,6 @@ export interface WebApps {
*
* @param {object} deployment Deployment details.
*
- * @param {string} [deployment.deploymentId] Identifier for deployment.
- *
* @param {number} [deployment.status] Deployment status.
*
* @param {string} [deployment.message] Details about deployment status.
@@ -16380,6 +15723,159 @@ export interface WebApps {
listDeploymentLog(resourceGroupName: string, name: string, id: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ /**
+ * @summary Discovers an existing app backup that can be restored from a blob
+ * in Azure storage. Use this to get information about the databases stored in
+ * a backup.
+ *
+ * Discovers an existing app backup that can be restored from a blob in Azure
+ * storage. Use this to get information about the databases stored in a backup.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} request A RestoreRequest object that includes Azure storage
+ * URL and blog name for discovery of backup.
+ *
+ * @param {string} request.storageAccountUrl SAS URL to the container.
+ *
+ * @param {string} [request.blobName] Name of a blob which contains the backup.
+ *
+ * @param {boolean} request.overwrite true
if the restore
+ * operation can overwrite target app; otherwise, false
.
+ * true
is needed if trying to restore over an existing app.
+ *
+ * @param {string} [request.siteName] Name of an app.
+ *
+ * @param {array} [request.databases] Collection of databases which should be
+ * restored. This list has to match the list of databases included in the
+ * backup.
+ *
+ * @param {boolean} [request.ignoreConflictingHostNames] Changes a logic when
+ * restoring an app with custom domains. true
to remove custom
+ * domains automatically. If false
, custom domains are added to
+ * the app's object when it is being restored, but that might fail due to
+ * conflicts during the operation.
+ *
+ * @param {boolean} [request.ignoreDatabases] Ignore the databases and only
+ * restore the site content
+ *
+ * @param {string} [request.appServicePlan] Specify app service plan that will
+ * own restored site.
+ *
+ * @param {string} [request.operationType] Operation type. Possible values
+ * include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'
+ *
+ * @param {boolean} [request.adjustConnectionStrings] true
if
+ * SiteConfig.ConnectionStrings should be set in new app; otherwise,
+ * false
.
+ *
+ * @param {string} [request.hostingEnvironment] App Service Environment name,
+ * if needed (only when restoring an app to an App Service Environment).
+ *
+ * @param {string} [request.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ discoverBackupWithHttpOperationResponse(resourceGroupName: string, name: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Discovers an existing app backup that can be restored from a blob
+ * in Azure storage. Use this to get information about the databases stored in
+ * a backup.
+ *
+ * Discovers an existing app backup that can be restored from a blob in Azure
+ * storage. Use this to get information about the databases stored in a backup.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} request A RestoreRequest object that includes Azure storage
+ * URL and blog name for discovery of backup.
+ *
+ * @param {string} request.storageAccountUrl SAS URL to the container.
+ *
+ * @param {string} [request.blobName] Name of a blob which contains the backup.
+ *
+ * @param {boolean} request.overwrite true
if the restore
+ * operation can overwrite target app; otherwise, false
.
+ * true
is needed if trying to restore over an existing app.
+ *
+ * @param {string} [request.siteName] Name of an app.
+ *
+ * @param {array} [request.databases] Collection of databases which should be
+ * restored. This list has to match the list of databases included in the
+ * backup.
+ *
+ * @param {boolean} [request.ignoreConflictingHostNames] Changes a logic when
+ * restoring an app with custom domains. true
to remove custom
+ * domains automatically. If false
, custom domains are added to
+ * the app's object when it is being restored, but that might fail due to
+ * conflicts during the operation.
+ *
+ * @param {boolean} [request.ignoreDatabases] Ignore the databases and only
+ * restore the site content
+ *
+ * @param {string} [request.appServicePlan] Specify app service plan that will
+ * own restored site.
+ *
+ * @param {string} [request.operationType] Operation type. Possible values
+ * include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'
+ *
+ * @param {boolean} [request.adjustConnectionStrings] true
if
+ * SiteConfig.ConnectionStrings should be set in new app; otherwise,
+ * false
.
+ *
+ * @param {string} [request.hostingEnvironment] App Service Environment name,
+ * if needed (only when restoring an app to an App Service Environment).
+ *
+ * @param {string} [request.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {RestoreRequest} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {RestoreRequest} [result] - The deserialized result object if an error did not occur.
+ * See {@link RestoreRequest} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ discoverBackup(resourceGroupName: string, name: string, request: models.RestoreRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ discoverBackup(resourceGroupName: string, name: string, request: models.RestoreRequest, callback: ServiceCallback): void;
+ discoverBackup(resourceGroupName: string, name: string, request: models.RestoreRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
/**
* @summary Lists ownership identifiers for domain associated with web app.
*
@@ -17234,6 +16730,8 @@ export interface WebApps {
*
* @param {object} functionEnvelope Function details.
*
+ * @param {string} [functionEnvelope.functionAppId] Function App ID.
+ *
* @param {string} [functionEnvelope.scriptRootPathHref] Script root path URI.
*
* @param {string} [functionEnvelope.scriptHref] Script URI.
@@ -17280,6 +16778,8 @@ export interface WebApps {
*
* @param {object} functionEnvelope Function details.
*
+ * @param {string} [functionEnvelope.functionAppId] Function App ID.
+ *
* @param {string} [functionEnvelope.scriptRootPathHref] Script root path URI.
*
* @param {string} [functionEnvelope.scriptHref] Script URI.
@@ -20885,12 +20385,6 @@ export interface WebApps {
*
* @param {string} [premierAddOn.vendor] Premier add on Vendor.
*
- * @param {string} [premierAddOn.premierAddOnName] Premier add on Name.
- *
- * @param {string} [premierAddOn.premierAddOnLocation] Premier add on Location.
- *
- * @param {object} [premierAddOn.premierAddOnTags] Premier add on Tags.
- *
* @param {string} [premierAddOn.marketplacePublisher] Premier add on
* Marketplace publisher.
*
@@ -20937,12 +20431,6 @@ export interface WebApps {
*
* @param {string} [premierAddOn.vendor] Premier add on Vendor.
*
- * @param {string} [premierAddOn.premierAddOnName] Premier add on Name.
- *
- * @param {string} [premierAddOn.premierAddOnLocation] Premier add on Location.
- *
- * @param {object} [premierAddOn.premierAddOnTags] Premier add on Tags.
- *
* @param {string} [premierAddOn.marketplacePublisher] Premier add on
* Marketplace publisher.
*
@@ -21055,6 +20543,265 @@ export interface WebApps {
deletePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ /**
+ * @summary Updates a named add-on of an app.
+ *
+ * Updates a named add-on of an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} premierAddOnName Add-on name.
+ *
+ * @param {object} premierAddOn A JSON representation of the edited premier
+ * add-on.
+ *
+ * @param {string} [premierAddOn.sku] Premier add on SKU.
+ *
+ * @param {string} [premierAddOn.product] Premier add on Product.
+ *
+ * @param {string} [premierAddOn.vendor] Premier add on Vendor.
+ *
+ * @param {string} [premierAddOn.marketplacePublisher] Premier add on
+ * Marketplace publisher.
+ *
+ * @param {string} [premierAddOn.marketplaceOffer] Premier add on Marketplace
+ * offer.
+ *
+ * @param {string} [premierAddOn.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ updatePremierAddOnWithHttpOperationResponse(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: models.PremierAddOnPatchResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Updates a named add-on of an app.
+ *
+ * Updates a named add-on of an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {string} premierAddOnName Add-on name.
+ *
+ * @param {object} premierAddOn A JSON representation of the edited premier
+ * add-on.
+ *
+ * @param {string} [premierAddOn.sku] Premier add on SKU.
+ *
+ * @param {string} [premierAddOn.product] Premier add on Product.
+ *
+ * @param {string} [premierAddOn.vendor] Premier add on Vendor.
+ *
+ * @param {string} [premierAddOn.marketplacePublisher] Premier add on
+ * Marketplace publisher.
+ *
+ * @param {string} [premierAddOn.marketplaceOffer] Premier add on Marketplace
+ * offer.
+ *
+ * @param {string} [premierAddOn.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {PremierAddOn} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {PremierAddOn} [result] - The deserialized result object if an error did not occur.
+ * See {@link PremierAddOn} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: models.PremierAddOnPatchResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: models.PremierAddOnPatchResource, callback: ServiceCallback): void;
+ updatePremierAddOn(resourceGroupName: string, name: string, premierAddOnName: string, premierAddOn: models.PremierAddOnPatchResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Gets data around private site access enablement and authorized
+ * Virtual Networks that can access the site.
+ *
+ * Gets data around private site access enablement and authorized Virtual
+ * Networks that can access the site.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name The name of the web app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ getPrivateAccessWithHttpOperationResponse(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Gets data around private site access enablement and authorized
+ * Virtual Networks that can access the site.
+ *
+ * Gets data around private site access enablement and authorized Virtual
+ * Networks that can access the site.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name The name of the web app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {PrivateAccess} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {PrivateAccess} [result] - The deserialized result object if an error did not occur.
+ * See {@link PrivateAccess} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ getPrivateAccess(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ getPrivateAccess(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ getPrivateAccess(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Sets data around private site access enablement and authorized
+ * Virtual Networks that can access the site.
+ *
+ * Sets data around private site access enablement and authorized Virtual
+ * Networks that can access the site.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name The name of the web app.
+ *
+ * @param {object} access The information for the private access
+ *
+ * @param {boolean} [access.enabled] Whether private access is enabled or not.
+ *
+ * @param {array} [access.virtualNetworks] The Virtual Networks (and subnets)
+ * allowed to access the site privately.
+ *
+ * @param {string} [access.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ */
+ putPrivateAccessVnetWithHttpOperationResponse(resourceGroupName: string, name: string, access: models.PrivateAccess, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Sets data around private site access enablement and authorized
+ * Virtual Networks that can access the site.
+ *
+ * Sets data around private site access enablement and authorized Virtual
+ * Networks that can access the site.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name The name of the web app.
+ *
+ * @param {object} access The information for the private access
+ *
+ * @param {boolean} [access.enabled] Whether private access is enabled or not.
+ *
+ * @param {array} [access.virtualNetworks] The Virtual Networks (and subnets)
+ * allowed to access the site privately.
+ *
+ * @param {string} [access.kind] Kind of resource.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @param {ServiceCallback} [optionalCallback] - The optional callback.
+ *
+ * @returns {ServiceCallback|Promise} If a callback was passed as the last
+ * parameter then it returns the callback else returns a Promise.
+ *
+ * {Promise} A promise is returned.
+ *
+ * @resolve {PrivateAccess} - The deserialized result object.
+ *
+ * @reject {Error|ServiceError} - The error object.
+ *
+ * {ServiceCallback} optionalCallback(err, result, request, response)
+ *
+ * {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
+ *
+ * {PrivateAccess} [result] - The deserialized result object if an error did not occur.
+ * See {@link PrivateAccess} for more information.
+ *
+ * {WebResource} [request] - The HTTP Request object if an error did not occur.
+ *
+ * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
+ */
+ putPrivateAccessVnet(resourceGroupName: string, name: string, access: models.PrivateAccess, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ putPrivateAccessVnet(resourceGroupName: string, name: string, access: models.PrivateAccess, callback: ServiceCallback): void;
+ putPrivateAccessVnet(resourceGroupName: string, name: string, access: models.PrivateAccess, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
/**
* @summary Get list of processes for a web site, or a deployment slot, or for
* a specific scaled-out instance in a web site.
@@ -21936,57 +21683,443 @@ export interface WebApps {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, callback: ServiceCallback): void;
- deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, callback: ServiceCallback): void;
+ deletePublicCertificate(resourceGroupName: string, name: string, publicCertificateName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Gets the publishing profile for an app (or deployment slot, if
+ * specified).
+ *
+ * Gets the publishing profile for an app (or deployment slot, if specified).
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {string} [options.format] Name of the format. Valid values are:
+ * FileZilla3
+ * WebDeploy -- default
+ * Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp'
+ *
+ * @param {object} [options.customHeaders] Headers that will be added to the
+ * request
+ *
+ * @returns {Promise} A promise is returned
+ *
+ * @resolve {HttpOperationResponse