diff --git a/lib/services/websiteManagement2/LICENSE.txt b/lib/services/websiteManagement2/LICENSE.txt
index 5431ba98b9..8f3d856145 100644
--- a/lib/services/websiteManagement2/LICENSE.txt
+++ b/lib/services/websiteManagement2/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2018 Microsoft
+Copyright (c) 2019 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/lib/services/websiteManagement2/lib/models/analysisData.js b/lib/services/websiteManagement2/lib/models/analysisData.js
index f23e81d09b..dd87f0e324 100644
--- a/lib/services/websiteManagement2/lib/models/analysisData.js
+++ b/lib/services/websiteManagement2/lib/models/analysisData.js
@@ -30,8 +30,8 @@ class AnalysisData {
* @member {array} [data] Additional Source Data
* @member {object} [detectorMetaData] Detector Meta Data
* @member {object} [detectorMetaData.dataSource] Source of the Data
- * @member {array} [detectorMetaData.dataSource.instructions] Instrunctions
- * if any for the data source
+ * @member {array} [detectorMetaData.dataSource.instructions] Instructions if
+ * any for the data source
* @member {array} [detectorMetaData.dataSource.dataSourceUri] Datasource Uri
* Links
*/
diff --git a/lib/services/websiteManagement2/lib/models/appServiceCertificateCollection.js b/lib/services/websiteManagement2/lib/models/appServiceCertificateCollection.js
index 5ca5f99e91..d076423bea 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceCertificateCollection.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceCertificateCollection.js
@@ -11,7 +11,7 @@
'use strict';
/**
- * Collection of certitificateorder certificates.
+ * Collection of certificate order certificates.
*/
class AppServiceCertificateCollection extends Array {
/**
diff --git a/lib/services/websiteManagement2/lib/models/appServiceCertificateOrderCollection.js b/lib/services/websiteManagement2/lib/models/appServiceCertificateOrderCollection.js
index 6f45eabab2..7672bcbaaa 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceCertificateOrderCollection.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceCertificateOrderCollection.js
@@ -11,7 +11,7 @@
'use strict';
/**
- * Collection of certitificate orders.
+ * Collection of certificate orders.
*/
class AppServiceCertificateOrderCollection extends Array {
/**
diff --git a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
index ab454a36fc..807e21c380 100644
--- a/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/appServiceEnvironmentPatchResource.js
@@ -13,7 +13,7 @@
const models = require('./index');
/**
- * ARM resource for a app service enviroment.
+ * ARM resource for a app service environment.
*
* @extends models['ProxyOnlyResource']
*/
diff --git a/lib/services/websiteManagement2/lib/models/appServicePlan.js b/lib/services/websiteManagement2/lib/models/appServicePlan.js
index 52f4a0c0fb..782a08b14e 100644
--- a/lib/services/websiteManagement2/lib/models/appServicePlan.js
+++ b/lib/services/websiteManagement2/lib/models/appServicePlan.js
@@ -25,7 +25,6 @@ class AppServicePlan extends models['Resource'] {
* @member {string} [status] App Service plan status. Possible values
* include: 'Ready', 'Pending', 'Creating'
* @member {string} [subscription] App Service plan subscription.
- * @member {string} [adminSiteName] App Service plan administration site.
* @member {object} [hostingEnvironmentProfile] Specification for the App
* Service Environment to use for the App Service plan.
* @member {string} [hostingEnvironmentProfile.id] Resource ID of the App
@@ -180,13 +179,6 @@ class AppServicePlan extends models['Resource'] {
name: 'String'
}
},
- adminSiteName: {
- required: false,
- serializedName: 'properties.adminSiteName',
- type: {
- name: 'String'
- }
- },
hostingEnvironmentProfile: {
required: false,
serializedName: 'properties.hostingEnvironmentProfile',
diff --git a/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js b/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
index d16dc241df..70d140e5d3 100644
--- a/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/appServicePlanPatchResource.js
@@ -25,7 +25,6 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
* @member {string} [status] App Service plan status. Possible values
* include: 'Ready', 'Pending', 'Creating'
* @member {string} [subscription] App Service plan subscription.
- * @member {string} [adminSiteName] App Service plan administration site.
* @member {object} [hostingEnvironmentProfile] Specification for the App
* Service Environment to use for the App Service plan.
* @member {string} [hostingEnvironmentProfile.id] Resource ID of the App
@@ -139,13 +138,6 @@ class AppServicePlanPatchResource extends models['ProxyOnlyResource'] {
name: 'String'
}
},
- adminSiteName: {
- required: false,
- serializedName: 'properties.adminSiteName',
- type: {
- name: 'String'
- }
- },
hostingEnvironmentProfile: {
required: false,
serializedName: 'properties.hostingEnvironmentProfile',
diff --git a/lib/services/websiteManagement2/lib/models/certificate.js b/lib/services/websiteManagement2/lib/models/certificate.js
index f7b9f4da55..61f8327fc2 100644
--- a/lib/services/websiteManagement2/lib/models/certificate.js
+++ b/lib/services/websiteManagement2/lib/models/certificate.js
@@ -28,7 +28,7 @@ class Certificate extends models['Resource'] {
* @member {string} [selfLink] Self link.
* @member {string} [issuer] Certificate issuer.
* @member {date} [issueDate] Certificate issue Date.
- * @member {date} [expirationDate] Certificate expriration date.
+ * @member {date} [expirationDate] Certificate expiration date.
* @member {string} password Certificate password.
* @member {string} [thumbprint] Certificate thumbprint.
* @member {boolean} [valid] Is the certificate valid?.
diff --git a/lib/services/websiteManagement2/lib/models/certificatePatchResource.js b/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
index 708ccf5cf0..08c82a0ac6 100644
--- a/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/certificatePatchResource.js
@@ -28,7 +28,7 @@ class CertificatePatchResource extends models['ProxyOnlyResource'] {
* @member {string} [selfLink] Self link.
* @member {string} [issuer] Certificate issuer.
* @member {date} [issueDate] Certificate issue Date.
- * @member {date} [expirationDate] Certificate expriration date.
+ * @member {date} [expirationDate] Certificate expiration date.
* @member {string} password Certificate password.
* @member {string} [thumbprint] Certificate thumbprint.
* @member {boolean} [valid] Is the certificate valid?.
diff --git a/lib/services/websiteManagement2/lib/models/corsSettings.js b/lib/services/websiteManagement2/lib/models/corsSettings.js
index 888cff3aac..a0c38b7b09 100644
--- a/lib/services/websiteManagement2/lib/models/corsSettings.js
+++ b/lib/services/websiteManagement2/lib/models/corsSettings.js
@@ -20,6 +20,10 @@ class CorsSettings {
* @member {array} [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.
+ * @member {boolean} [supportCredentials] Gets or sets whether CORS requests
+ * with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
*/
constructor() {
}
@@ -51,6 +55,13 @@ class CorsSettings {
}
}
}
+ },
+ supportCredentials: {
+ required: false,
+ serializedName: 'supportCredentials',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/csmUsageQuota.js b/lib/services/websiteManagement2/lib/models/csmUsageQuota.js
index 6a7322c0d3..577b280a5a 100644
--- a/lib/services/websiteManagement2/lib/models/csmUsageQuota.js
+++ b/lib/services/websiteManagement2/lib/models/csmUsageQuota.js
@@ -17,7 +17,7 @@
class CsmUsageQuota {
/**
* Create a CsmUsageQuota.
- * @member {string} [unit] Units of measurement for the quota resourse.
+ * @member {string} [unit] Units of measurement for the quota resource.
* @member {date} [nextResetTime] Next reset time for the resource counter.
* @member {number} [currentValue] The current value of the resource counter.
* @member {number} [limit] The resource limit.
diff --git a/lib/services/websiteManagement2/lib/models/customHostnameAnalysisResult.js b/lib/services/websiteManagement2/lib/models/customHostnameAnalysisResult.js
index e141ca367e..166bd366b6 100644
--- a/lib/services/websiteManagement2/lib/models/customHostnameAnalysisResult.js
+++ b/lib/services/websiteManagement2/lib/models/customHostnameAnalysisResult.js
@@ -41,7 +41,7 @@ class CustomHostnameAnalysisResult extends models['ProxyOnlyResource'] {
* @member {boolean} [hasConflictOnScaleUnit] true if there is a
* conflict on a scale unit; otherwise, false.
* @member {boolean} [hasConflictAcrossSubscription] true if
- * htere is a conflict across subscriptions; otherwise, false.
+ * there is a conflict across subscriptions; otherwise, false.
* @member {string} [conflictingAppResourceId] Name of the conflicting app on
* scale unit if it's within the same subscription.
* @member {array} [cNameRecords] CName records controller can see for this
diff --git a/lib/services/websiteManagement2/lib/models/dataSource.js b/lib/services/websiteManagement2/lib/models/dataSource.js
index 480579c108..c833aaf2f7 100644
--- a/lib/services/websiteManagement2/lib/models/dataSource.js
+++ b/lib/services/websiteManagement2/lib/models/dataSource.js
@@ -17,7 +17,7 @@
class DataSource {
/**
* Create a DataSource.
- * @member {array} [instructions] Instrunctions if any for the data source
+ * @member {array} [instructions] Instructions if any for the data source
* @member {array} [dataSourceUri] Datasource Uri Links
*/
constructor() {
diff --git a/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js b/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js
index 715d8d3e51..4d5d895f02 100644
--- a/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js
+++ b/lib/services/websiteManagement2/lib/models/deletedAppRestoreRequest.js
@@ -28,6 +28,8 @@ class DeletedAppRestoreRequest extends models['ProxyOnlyResource'] {
* @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.
+ * @member {boolean} [useDRSecondary] If true, the snapshot is retrieved from
+ * DRSecondary endpoint.
*/
constructor() {
super();
@@ -98,6 +100,13 @@ class DeletedAppRestoreRequest extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ useDRSecondary: {
+ required: false,
+ serializedName: 'properties.useDRSecondary',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/deletedSite.js b/lib/services/websiteManagement2/lib/models/deletedSite.js
index 3015110612..b313ad0c41 100644
--- a/lib/services/websiteManagement2/lib/models/deletedSite.js
+++ b/lib/services/websiteManagement2/lib/models/deletedSite.js
@@ -28,6 +28,7 @@ class DeletedSite extends models['ProxyOnlyResource'] {
* @member {string} [deletedSiteName] Name of the deleted site
* @member {string} [slot] Slot of the deleted site
* @member {string} [deletedSiteKind] Kind of site that was deleted
+ * @member {string} [geoRegionName] Geo Region of the deleted site
*/
constructor() {
super();
@@ -133,6 +134,14 @@ class DeletedSite extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ geoRegionName: {
+ required: false,
+ readOnly: true,
+ serializedName: 'properties.geoRegionName',
+ type: {
+ name: 'String'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/deployment.js b/lib/services/websiteManagement2/lib/models/deployment.js
index f8fdc08349..675693e999 100644
--- a/lib/services/websiteManagement2/lib/models/deployment.js
+++ b/lib/services/websiteManagement2/lib/models/deployment.js
@@ -13,7 +13,7 @@
const models = require('./index');
/**
- * User crendentials used for publishing activity.
+ * User credentials used for publishing activity.
*
* @extends models['ProxyOnlyResource']
*/
diff --git a/lib/services/websiteManagement2/lib/models/detectorAbnormalTimePeriod.js b/lib/services/websiteManagement2/lib/models/detectorAbnormalTimePeriod.js
index 2080fbf6f4..3d20c387cb 100644
--- a/lib/services/websiteManagement2/lib/models/detectorAbnormalTimePeriod.js
+++ b/lib/services/websiteManagement2/lib/models/detectorAbnormalTimePeriod.js
@@ -17,8 +17,8 @@
class DetectorAbnormalTimePeriod {
/**
* Create a DetectorAbnormalTimePeriod.
- * @member {date} [startTime] Start time of the corelated event
- * @member {date} [endTime] End time of the corelated event
+ * @member {date} [startTime] Start time of the correlated event
+ * @member {date} [endTime] End time of the correlated event
* @member {string} [message] Message describing the event
* @member {string} [source] Represents the name of the Detector
* @member {number} [priority] Represents the rank of the Detector
diff --git a/lib/services/websiteManagement2/lib/models/diagnosticDetectorResponse.js b/lib/services/websiteManagement2/lib/models/diagnosticDetectorResponse.js
index 880a1116cf..6b47332876 100644
--- a/lib/services/websiteManagement2/lib/models/diagnosticDetectorResponse.js
+++ b/lib/services/websiteManagement2/lib/models/diagnosticDetectorResponse.js
@@ -13,7 +13,7 @@
const models = require('./index');
/**
- * Class representing Reponse from Diagnostic Detectors
+ * Class representing Response from Diagnostic Detectors
*
* @extends models['ProxyOnlyResource']
*/
@@ -37,8 +37,8 @@ class DiagnosticDetectorResponse extends models['ProxyOnlyResource'] {
* @member {array} [data] Additional Data that detector wants to send.
* @member {object} [responseMetaData] Meta Data
* @member {object} [responseMetaData.dataSource] Source of the Data
- * @member {array} [responseMetaData.dataSource.instructions] Instrunctions
- * if any for the data source
+ * @member {array} [responseMetaData.dataSource.instructions] Instructions if
+ * any for the data source
* @member {array} [responseMetaData.dataSource.dataSourceUri] Datasource Uri
* Links
*/
diff --git a/lib/services/websiteManagement2/lib/models/domainAvailablilityCheckResult.js b/lib/services/websiteManagement2/lib/models/domainAvailablilityCheckResult.js
index 545642c394..34cfb9a786 100644
--- a/lib/services/websiteManagement2/lib/models/domainAvailablilityCheckResult.js
+++ b/lib/services/websiteManagement2/lib/models/domainAvailablilityCheckResult.js
@@ -11,7 +11,7 @@
'use strict';
/**
- * Domain availablility check result.
+ * Domain availability check result.
*
*/
class DomainAvailablilityCheckResult {
diff --git a/lib/services/websiteManagement2/lib/models/geoDistribution.js b/lib/services/websiteManagement2/lib/models/geoDistribution.js
new file mode 100644
index 0000000000..6653f54887
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/geoDistribution.js
@@ -0,0 +1,60 @@
+/*
+ * 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';
+
+/**
+ * A global distribution definition.
+ *
+ */
+class GeoDistribution {
+ /**
+ * Create a GeoDistribution.
+ * @member {string} [location] Location.
+ * @member {number} [numberOfWorkers] NumberOfWorkers.
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of GeoDistribution
+ *
+ * @returns {object} metadata of GeoDistribution
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'GeoDistribution',
+ type: {
+ name: 'Composite',
+ className: 'GeoDistribution',
+ modelProperties: {
+ location: {
+ required: false,
+ serializedName: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ numberOfWorkers: {
+ required: false,
+ serializedName: 'numberOfWorkers',
+ type: {
+ name: 'Number'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = GeoDistribution;
diff --git a/lib/services/websiteManagement2/lib/models/index.d.ts b/lib/services/websiteManagement2/lib/models/index.d.ts
index 0e4d9b0de5..8f17ecc6d9 100644
--- a/lib/services/websiteManagement2/lib/models/index.d.ts
+++ b/lib/services/websiteManagement2/lib/models/index.d.ts
@@ -466,6 +466,8 @@ export interface VnetRoute extends ProxyOnlyResource {
* required; otherwise, false.
* @member {string} [dnsServers] DNS servers to be used by this Virtual
* Network. This should be a comma-separated list of IP addresses.
+ * @member {boolean} [isSwift] Flag that is used to denote if this is VNET
+ * injection
*/
export interface VnetInfo extends ProxyOnlyResource {
vnetResourceId?: string;
@@ -474,6 +476,7 @@ export interface VnetInfo extends ProxyOnlyResource {
readonly routes?: VnetRoute[];
readonly resyncRequired?: boolean;
dnsServers?: string;
+ isSwift?: boolean;
}
/**
@@ -496,7 +499,7 @@ export interface VnetGateway extends ProxyOnlyResource {
* @class
* Initializes a new instance of the User class.
* @constructor
- * User crendentials used for publishing activity.
+ * User credentials used for publishing activity.
*
* @member {string} publishingUserName Username used for publishing.
* @member {string} [publishingPassword] Password used for publishing.
@@ -659,6 +662,7 @@ export interface HybridConnection extends ProxyOnlyResource {
* @member {string} [deletedSiteName] Name of the deleted site
* @member {string} [slot] Slot of the deleted site
* @member {string} [deletedSiteKind] Kind of site that was deleted
+ * @member {string} [geoRegionName] Geo Region of the deleted site
*/
export interface DeletedSite extends ProxyOnlyResource {
readonly deletedSiteId?: number;
@@ -668,6 +672,7 @@ export interface DeletedSite extends ProxyOnlyResource {
readonly deletedSiteName?: string;
readonly slot?: string;
readonly deletedSiteKind?: string;
+ readonly geoRegionName?: string;
}
/**
@@ -690,11 +695,25 @@ export interface ManagedServiceIdentity {
identityIds?: string[];
}
+/**
+ * @class
+ * Initializes a new instance of the GeoDistribution class.
+ * @constructor
+ * A global distribution definition.
+ *
+ * @member {string} [location] Location.
+ * @member {number} [numberOfWorkers] NumberOfWorkers.
+ */
+export interface GeoDistribution {
+ location?: string;
+ numberOfWorkers?: number;
+}
+
/**
* @class
* Initializes a new instance of the SlotSwapStatus class.
* @constructor
- * The status of the last successfull slot swap operation.
+ * The status of the last successful slot swap operation.
*
* @member {date} [timestampUtc] The time the last successful slot swap
* completed.
@@ -780,12 +799,16 @@ export interface HostingEnvironmentProfile {
* @constructor
* IP security restriction on an app.
*
- * @member {string} ipAddress IP address the security restriction is valid for.
+ * @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} [vnetSubnetResourceId] Virtual network resource id
+ * @member {number} [vnetTrafficTag] (internal) Vnet traffic tag
+ * @member {number} [subnetTrafficTag] (internal) Subnet traffic tag
* @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',
@@ -795,8 +818,11 @@ export interface HostingEnvironmentProfile {
* @member {string} [description] IP restriction rule description.
*/
export interface IpSecurityRestriction {
- ipAddress: string;
+ ipAddress?: string;
subnetMask?: string;
+ vnetSubnetResourceId?: string;
+ vnetTrafficTag?: number;
+ subnetTrafficTag?: number;
action?: string;
tag?: string;
priority?: number;
@@ -825,9 +851,14 @@ export interface ApiDefinitionInfo {
* @member {array} [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.
+ * @member {boolean} [supportCredentials] Gets or sets whether CORS requests
+ * with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
*/
export interface CorsSettings {
allowedOrigins?: string[];
+ supportCredentials?: boolean;
}
/**
@@ -1001,13 +1032,13 @@ export interface SiteLimits {
* @member {number} [reroutePercentage] Percentage of the traffic which will be
* redirected to ActionHostName.
* @member {number} [changeStep] In auto ramp up scenario this is the step to
- * to add/remove from ReroutePercentage until it reaches
+ * add/remove from ReroutePercentage until it reaches
* MinReroutePercentage or MaxReroutePercentage. Site
- * metrics are checked every N minutes specificed in
+ * metrics are checked every N minutes specified in
* ChangeIntervalInMinutes.
* Custom decision algorithm can be provided in TiPCallback site extension
* which URL can be specified in ChangeDecisionCallbackUrl.
- * @member {number} [changeIntervalInMinutes] Specifies interval in mimuntes to
+ * @member {number} [changeIntervalInMinutes] Specifies interval in minutes to
* reevaluate ReroutePercentage.
* @member {number} [minReroutePercentage] Specifies lower boundary above which
* ReroutePercentage will stay.
@@ -1234,7 +1265,7 @@ export interface NameValuePair {
* @member {string} [loadBalancing] Site load balancing. Possible values
* include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [experiments] This is work around for polymophic types.
+ * @member {object} [experiments] This is work around for polymorphic types.
* @member {array} [experiments.rampUpRules] List of ramp-up rules.
* @member {object} [limits] Site limits.
* @member {number} [limits.maxPercentageCpu] Maximum allowed CPU usage
@@ -1281,6 +1312,10 @@ export interface NameValuePair {
* @member {array} [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.
+ * @member {boolean} [cors.supportCredentials] Gets or sets whether CORS
+ * requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [push] Push endpoint settings.
* @member {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
@@ -1305,7 +1340,11 @@ export interface NameValuePair {
* @member {number} [managedServiceIdentityId] Managed Service Identity Id
* @member {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
- * @member {array} [ipSecurityRestrictions] IP security restrictions.
+ * @member {array} [ipSecurityRestrictions] IP security restrictions for main.
+ * @member {array} [scmIpSecurityRestrictions] IP security restrictions for
+ * scm.
+ * @member {boolean} [scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @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
@@ -1364,6 +1403,8 @@ export interface SiteConfig {
managedServiceIdentityId?: number;
xManagedServiceIdentityId?: number;
ipSecurityRestrictions?: IpSecurityRestriction[];
+ scmIpSecurityRestrictions?: IpSecurityRestriction[];
+ scmIpSecurityRestrictionsUseMain?: boolean;
http20Enabled?: boolean;
minTlsVersion?: string;
ftpsState?: string;
@@ -1485,8 +1526,8 @@ export interface HostNameSslState {
* @member {string} [siteConfig.loadBalancing] Site load balancing. Possible
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [siteConfig.experiments] This is work around for polymophic
- * types.
+ * @member {object} [siteConfig.experiments] This is work around for
+ * polymorphic types.
* @member {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
* @member {object} [siteConfig.limits] Site limits.
* @member {number} [siteConfig.limits.maxPercentageCpu] Maximum allowed CPU
@@ -1539,6 +1580,10 @@ export interface HostNameSslState {
* @member {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.
+ * @member {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [siteConfig.push] Push endpoint settings.
* @member {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
@@ -1565,8 +1610,12 @@ export interface HostNameSslState {
* Identity Id
* @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
- * @member {array} [siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * @member {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ * @member {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ * @member {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
@@ -1599,6 +1648,8 @@ export interface HostNameSslState {
* @member {boolean} [clientCertEnabled] true to enable client
* certificate authentication (TLS mutual authentication); otherwise,
* false. Default is false.
+ * @member {string} [clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
* @member {boolean} [hostNamesDisabled] true to disable the
* public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -1663,6 +1714,11 @@ export interface HostNameSslState {
* @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept
* only https requests. Issues redirect for
* http requests
+ * @member {string} [redundancyMode] Site redundancy mode. Possible values
+ * include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ * @member {uuid} [inProgressOperationId] Specifies an operation id if this
+ * site has a pending operation.
+ * @member {array} [geoDistributions] GeoDistributions for this site
* @member {object} [identity]
* @member {string} [identity.type] Type of managed service identity. Possible
* values include: 'SystemAssigned', 'UserAssigned'
@@ -1693,6 +1749,7 @@ export interface Site extends Resource {
hostingEnvironmentProfile?: HostingEnvironmentProfile;
clientAffinityEnabled?: boolean;
clientCertEnabled?: boolean;
+ clientCertExclusionPaths?: string;
hostNamesDisabled?: boolean;
readonly outboundIpAddresses?: string;
readonly possibleOutboundIpAddresses?: string;
@@ -1706,6 +1763,9 @@ export interface Site extends Resource {
readonly defaultHostName?: string;
readonly slotSwapStatus?: SlotSwapStatus;
httpsOnly?: boolean;
+ redundancyMode?: string;
+ readonly inProgressOperationId?: string;
+ geoDistributions?: GeoDistribution[];
identity?: ManagedServiceIdentity;
}
@@ -1795,7 +1855,6 @@ export interface SkuDescription {
* @member {string} [status] App Service plan status. Possible values include:
* 'Ready', 'Pending', 'Creating'
* @member {string} [subscription] App Service plan subscription.
- * @member {string} [adminSiteName] App Service plan administration site.
* @member {object} [hostingEnvironmentProfile] Specification for the App
* Service Environment to use for the App Service plan.
* @member {string} [hostingEnvironmentProfile.id] Resource ID of the App
@@ -1858,7 +1917,6 @@ export interface AppServicePlan extends Resource {
workerTierName?: string;
readonly status?: string;
readonly subscription?: string;
- adminSiteName?: string;
hostingEnvironmentProfile?: HostingEnvironmentProfile;
readonly maximumNumberOfWorkers?: number;
readonly geoRegion?: string;
@@ -2385,7 +2443,7 @@ export interface Domain extends Resource {
* @class
* Initializes a new instance of the DomainAvailablilityCheckResult class.
* @constructor
- * Domain availablility check result.
+ * Domain availability check result.
*
* @member {string} [name] Name of the domain.
* @member {boolean} [available] true if domain can be purchased
@@ -2667,7 +2725,7 @@ export interface TopLevelDomainAgreementOption {
* @member {string} [selfLink] Self link.
* @member {string} [issuer] Certificate issuer.
* @member {date} [issueDate] Certificate issue Date.
- * @member {date} [expirationDate] Certificate expriration date.
+ * @member {date} [expirationDate] Certificate expiration date.
* @member {string} password Certificate password.
* @member {string} [thumbprint] Certificate thumbprint.
* @member {boolean} [valid] Is the certificate valid?.
@@ -2729,7 +2787,7 @@ export interface Certificate extends Resource {
* @member {string} [selfLink] Self link.
* @member {string} [issuer] Certificate issuer.
* @member {date} [issueDate] Certificate issue Date.
- * @member {date} [expirationDate] Certificate expriration date.
+ * @member {date} [expirationDate] Certificate expiration date.
* @member {string} password Certificate password.
* @member {string} [thumbprint] Certificate thumbprint.
* @member {boolean} [valid] Is the certificate valid?.
@@ -3049,7 +3107,7 @@ export interface LocalizableString {
* @constructor
* Usage of the quota resource.
*
- * @member {string} [unit] Units of measurement for the quota resourse.
+ * @member {string} [unit] Units of measurement for the quota resource.
* @member {date} [nextResetTime] Next reset time for the resource counter.
* @member {number} [currentValue] The current value of the resource counter.
* @member {number} [limit] The resource limit.
@@ -3228,8 +3286,8 @@ export interface Solution {
* @constructor
* Class representing Abnormal Time Period detected.
*
- * @member {date} [startTime] Start time of the corelated event
- * @member {date} [endTime] End time of the corelated event
+ * @member {date} [startTime] Start time of the correlated event
+ * @member {date} [endTime] End time of the correlated event
* @member {string} [message] Message describing the event
* @member {string} [source] Represents the name of the Detector
* @member {number} [priority] Represents the rank of the Detector
@@ -3351,7 +3409,7 @@ export interface DiagnosticMetricSet {
* @constructor
* Class representing data source used by the detectors
*
- * @member {array} [instructions] Instrunctions if any for the data source
+ * @member {array} [instructions] Instructions if any for the data source
* @member {array} [dataSourceUri] Datasource Uri Links
*/
export interface DataSource {
@@ -3364,7 +3422,7 @@ export interface DataSource {
* Initializes a new instance of the ResponseMetaData class.
* @constructor
* @member {object} [dataSource] Source of the Data
- * @member {array} [dataSource.instructions] Instrunctions if any for the data
+ * @member {array} [dataSource.instructions] Instructions if any for the data
* source
* @member {array} [dataSource.dataSourceUri] Datasource Uri Links
*/
@@ -3391,7 +3449,7 @@ export interface ResponseMetaData {
* @member {array} [data] Additional Source Data
* @member {object} [detectorMetaData] Detector Meta Data
* @member {object} [detectorMetaData.dataSource] Source of the Data
- * @member {array} [detectorMetaData.dataSource.instructions] Instrunctions if
+ * @member {array} [detectorMetaData.dataSource.instructions] Instructions if
* any for the data source
* @member {array} [detectorMetaData.dataSource.dataSourceUri] Datasource Uri
* Links
@@ -3564,7 +3622,7 @@ export interface DiagnosticCategory extends ProxyOnlyResource {
* @class
* Initializes a new instance of the DiagnosticDetectorResponse class.
* @constructor
- * Class representing Reponse from Diagnostic Detectors
+ * Class representing Response from Diagnostic Detectors
*
* @member {date} [startTime] Start time of the period
* @member {date} [endTime] End time of the period
@@ -3583,7 +3641,7 @@ export interface DiagnosticCategory extends ProxyOnlyResource {
* @member {array} [data] Additional Data that detector wants to send.
* @member {object} [responseMetaData] Meta Data
* @member {object} [responseMetaData.dataSource] Source of the Data
- * @member {array} [responseMetaData.dataSource.instructions] Instrunctions if
+ * @member {array} [responseMetaData.dataSource.instructions] Instructions if
* any for the data source
* @member {array} [responseMetaData.dataSource.dataSourceUri] Datasource Uri
* Links
@@ -3611,11 +3669,14 @@ export interface DiagnosticDetectorResponse extends ProxyOnlyResource {
* only).
* @member {boolean} [isDefault] true if this is the default minor
* version; otherwise, false.
+ * @member {boolean} [isRemoteDebuggingEnabled] true if this
+ * supports Remote Debugging, otherwise false.
*/
export interface StackMinorVersion {
displayVersion?: string;
runtimeVersion?: string;
isDefault?: boolean;
+ isRemoteDebuggingEnabled?: boolean;
}
/**
@@ -3632,12 +3693,15 @@ export interface StackMinorVersion {
* version; otherwise, false.
* @member {array} [minorVersions] Minor versions associated with the major
* version.
+ * @member {boolean} [applicationInsights] true if this supports
+ * Application Insights; otherwise, false.
*/
export interface StackMajorVersion {
displayVersion?: string;
runtimeVersion?: string;
isDefault?: boolean;
minorVersions?: StackMinorVersion[];
+ applicationInsights?: boolean;
}
/**
@@ -3691,7 +3755,7 @@ export interface ApplicationStack {
* @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".
+ * null then it should 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
@@ -3940,7 +4004,7 @@ export interface PremierAddOnOffer extends ProxyOnlyResource {
* @class
* Initializes a new instance of the ResourceNameAvailability class.
* @constructor
- * Information regarding availbility of a resource name.
+ * Information regarding availability of a resource name.
*
* @member {boolean} [nameAvailable] true indicates name is valid
* and available. false indicates the name is invalid,
@@ -4012,6 +4076,28 @@ export interface SourceControl extends ProxyOnlyResource {
expirationTime?: Date;
}
+/**
+ * @class
+ * Initializes a new instance of the ValidateContainerSettingsRequest class.
+ * @constructor
+ * Container settings validation request context
+ *
+ * @member {string} [baseUrl] Base URL of the container registry
+ * @member {string} [username] Username for to access the container registry
+ * @member {string} [password] Password for to access the container registry
+ * @member {string} [repository] Repository name (image name)
+ * @member {string} [tag] Image tag
+ * @member {string} [platform] Platform (windows or linux)
+ */
+export interface ValidateContainerSettingsRequest {
+ baseUrl?: string;
+ username?: string;
+ password?: string;
+ repository?: string;
+ tag?: string;
+ platform?: string;
+}
+
/**
* @class
* Initializes a new instance of the ValidateRequest class.
@@ -4030,7 +4116,7 @@ export interface SourceControl extends ProxyOnlyResource {
* @member {boolean} [isSpot] true if App Service plan is for Spot
* instances; otherwise, false.
* @member {number} [capacity] Target capacity of the App Service plan (number
- * of VM's).
+ * of VMs).
* @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
@@ -4498,7 +4584,7 @@ export interface CsmSlotEntity {
* of the error.
* @member {boolean} [hasConflictOnScaleUnit] true if there is a
* conflict on a scale unit; otherwise, false.
- * @member {boolean} [hasConflictAcrossSubscription] true if htere
+ * @member {boolean} [hasConflictAcrossSubscription] true if there
* is a conflict across subscriptions; otherwise, false.
* @member {string} [conflictingAppResourceId] Name of the conflicting app on
* scale unit if it's within the same subscription.
@@ -4540,18 +4626,21 @@ export interface CustomHostnameAnalysisResult extends ProxyOnlyResource {
* @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.
+ * @member {boolean} [useDRSecondary] If true, the snapshot is retrieved from
+ * DRSecondary endpoint.
*/
export interface DeletedAppRestoreRequest extends ProxyOnlyResource {
deletedSiteId?: string;
recoverConfiguration?: boolean;
snapshotTime?: string;
+ useDRSecondary?: boolean;
}
/**
* @class
* Initializes a new instance of the Deployment class.
* @constructor
- * User crendentials used for publishing activity.
+ * User credentials used for publishing activity.
*
* @member {number} [status] Deployment status.
* @member {string} [message] Details about deployment status.
@@ -4886,6 +4975,8 @@ export interface RelayServiceConnectionEntity extends ProxyOnlyResource {
* @member {string} [virtualNetworkConnection.dnsServers] DNS servers to be
* used by this Virtual Network. This should be a comma-separated list of IP
* addresses.
+ * @member {boolean} [virtualNetworkConnection.isSwift] Flag that is used to
+ * denote if this is VNET injection
* @member {array} [hybridConnections] The Hybrid Connections summary view.
* @member {array} [hybridConnectionsV2] The Hybrid Connection V2 (Service Bus)
* view.
@@ -5083,7 +5174,7 @@ export interface PrivateAccess extends ProxyOnlyResource {
* @member {date} [startTime] Start time.
* @member {string} [totalProcessorTime] Total processor time.
* @member {string} [userProcessorTime] User processor time.
- * @member {string} [priviledgedProcessorTime] Priviledged processor time.
+ * @member {string} [priviledgedProcessorTime] Privileged processor time.
* @member {string} [state] Thread state.
* @member {string} [waitReason] Wait reason.
*/
@@ -5334,6 +5425,10 @@ export interface RestoreRequest extends ProxyOnlyResource {
* authenticate end users.
* More information on OpenID Connect:
* http://openid.net/specs/openid-connect-core-1_0.html
+ * @member {string} [clientSecretCertificateThumbprint] An alternative to the
+ * client secret, that is the thumbprint of a certificate used for signing
+ * purposes. This property acts as
+ * a replacement for the Client Secret. It is also optional.
* @member {string} [issuer] The OpenID Connect Issuer URI that represents the
* entity which issues access tokens for this application.
* When using Azure Active Directory, this value is the URI of the directory
@@ -5417,6 +5512,7 @@ export interface SiteAuthSettings extends ProxyOnlyResource {
tokenRefreshExtensionHours?: number;
clientId?: string;
clientSecret?: string;
+ clientSecretCertificateThumbprint?: string;
issuer?: string;
validateIssuer?: boolean;
allowedAudiences?: string[];
@@ -5530,7 +5626,7 @@ export interface SiteCloneability {
* @member {string} [loadBalancing] Site load balancing. Possible values
* include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [experiments] This is work around for polymophic types.
+ * @member {object} [experiments] This is work around for polymorphic types.
* @member {array} [experiments.rampUpRules] List of ramp-up rules.
* @member {object} [limits] Site limits.
* @member {number} [limits.maxPercentageCpu] Maximum allowed CPU usage
@@ -5577,6 +5673,10 @@ export interface SiteCloneability {
* @member {array} [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.
+ * @member {boolean} [cors.supportCredentials] Gets or sets whether CORS
+ * requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [push] Push endpoint settings.
* @member {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
@@ -5601,7 +5701,11 @@ export interface SiteCloneability {
* @member {number} [managedServiceIdentityId] Managed Service Identity Id
* @member {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
- * @member {array} [ipSecurityRestrictions] IP security restrictions.
+ * @member {array} [ipSecurityRestrictions] IP security restrictions for main.
+ * @member {array} [scmIpSecurityRestrictions] IP security restrictions for
+ * scm.
+ * @member {boolean} [scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @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
@@ -5660,6 +5764,8 @@ export interface SiteConfigResource extends ProxyOnlyResource {
managedServiceIdentityId?: number;
xManagedServiceIdentityId?: number;
ipSecurityRestrictions?: IpSecurityRestriction[];
+ scmIpSecurityRestrictions?: IpSecurityRestriction[];
+ scmIpSecurityRestrictionsUseMain?: boolean;
http20Enabled?: boolean;
minTlsVersion?: string;
ftpsState?: string;
@@ -5899,8 +6005,8 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {string} [siteConfig.loadBalancing] Site load balancing. Possible
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [siteConfig.experiments] This is work around for polymophic
- * types.
+ * @member {object} [siteConfig.experiments] This is work around for
+ * polymorphic types.
* @member {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
* @member {object} [siteConfig.limits] Site limits.
* @member {number} [siteConfig.limits.maxPercentageCpu] Maximum allowed CPU
@@ -5953,6 +6059,10 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {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.
+ * @member {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [siteConfig.push] Push endpoint settings.
* @member {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
@@ -5979,8 +6089,12 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* Identity Id
* @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
- * @member {array} [siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * @member {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ * @member {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ * @member {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
@@ -6013,6 +6127,8 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {boolean} [clientCertEnabled] true to enable client
* certificate authentication (TLS mutual authentication); otherwise,
* false. Default is false.
+ * @member {string} [clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
* @member {boolean} [hostNamesDisabled] true to disable the
* public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -6077,6 +6193,11 @@ export interface SiteLogsConfig extends ProxyOnlyResource {
* @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept
* only https requests. Issues redirect for
* http requests
+ * @member {string} [redundancyMode] Site redundancy mode. Possible values
+ * include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ * @member {uuid} [inProgressOperationId] Specifies an operation id if this
+ * site has a pending operation.
+ * @member {array} [geoDistributions] GeoDistributions for this site
*/
export interface SitePatchResource extends ProxyOnlyResource {
readonly state?: string;
@@ -6099,6 +6220,7 @@ export interface SitePatchResource extends ProxyOnlyResource {
hostingEnvironmentProfile?: HostingEnvironmentProfile;
clientAffinityEnabled?: boolean;
clientCertEnabled?: boolean;
+ clientCertExclusionPaths?: string;
hostNamesDisabled?: boolean;
readonly outboundIpAddresses?: string;
readonly possibleOutboundIpAddresses?: string;
@@ -6112,6 +6234,9 @@ export interface SitePatchResource extends ProxyOnlyResource {
readonly defaultHostName?: string;
readonly slotSwapStatus?: SlotSwapStatus;
httpsOnly?: boolean;
+ redundancyMode?: string;
+ readonly inProgressOperationId?: string;
+ geoDistributions?: GeoDistribution[];
}
/**
@@ -6247,6 +6372,8 @@ export interface SnapshotRecoverySource {
* @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 {boolean} [useDRSecondary] If true, the snapshot is retrieved from
+ * DRSecondary endpoint.
*/
export interface SnapshotRestoreRequest extends ProxyOnlyResource {
snapshotTime?: string;
@@ -6254,6 +6381,7 @@ export interface SnapshotRestoreRequest extends ProxyOnlyResource {
overwrite: boolean;
recoverConfiguration?: boolean;
ignoreConflictingHostNames?: boolean;
+ useDRSecondary?: boolean;
}
/**
@@ -6592,7 +6720,7 @@ export interface AppServiceEnvironmentResource extends Resource {
* @class
* Initializes a new instance of the AppServiceEnvironmentPatchResource class.
* @constructor
- * ARM resource for a app service enviroment.
+ * ARM resource for a app service environment.
*
* @member {string} appServiceEnvironmentPatchResourceName Name of the App
* Service Environment.
@@ -6893,7 +7021,6 @@ export interface WorkerPoolResource extends ProxyOnlyResource {
* @member {string} [status] App Service plan status. Possible values include:
* 'Ready', 'Pending', 'Creating'
* @member {string} [subscription] App Service plan subscription.
- * @member {string} [adminSiteName] App Service plan administration site.
* @member {object} [hostingEnvironmentProfile] Specification for the App
* Service Environment to use for the App Service plan.
* @member {string} [hostingEnvironmentProfile.id] Resource ID of the App
@@ -6936,7 +7063,6 @@ export interface AppServicePlanPatchResource extends ProxyOnlyResource {
workerTierName?: string;
readonly status?: string;
readonly subscription?: string;
- adminSiteName?: string;
hostingEnvironmentProfile?: HostingEnvironmentProfile;
readonly maximumNumberOfWorkers?: number;
readonly geoRegion?: string;
@@ -6991,7 +7117,7 @@ export interface ResourceHealthMetadata extends ProxyOnlyResource {
* @class
* Initializes a new instance of the AppServiceCertificateOrderCollection class.
* @constructor
- * Collection of certitificate orders.
+ * Collection of certificate orders.
*
* @member {string} [nextLink] Link to next page of resources.
*/
@@ -7003,7 +7129,7 @@ export interface AppServiceCertificateOrderCollection extends ArrayActionHostName.
* @member {number} [changeStep] In auto ramp up scenario this is the step to
- * to add/remove from ReroutePercentage until it reaches
+ * add/remove from ReroutePercentage until it reaches
* MinReroutePercentage or MaxReroutePercentage.
- * Site metrics are checked every N minutes specificed in
+ * Site metrics are checked every N minutes specified in
* ChangeIntervalInMinutes.
* Custom decision algorithm can be provided in TiPCallback site extension
* which URL can be specified in ChangeDecisionCallbackUrl.
- * @member {number} [changeIntervalInMinutes] Specifies interval in mimuntes
+ * @member {number} [changeIntervalInMinutes] Specifies interval in minutes
* to reevaluate ReroutePercentage.
* @member {number} [minReroutePercentage] Specifies lower boundary above
* which ReroutePercentage will stay.
diff --git a/lib/services/websiteManagement2/lib/models/recommendation.js b/lib/services/websiteManagement2/lib/models/recommendation.js
index 8f61433673..def3f7975e 100644
--- a/lib/services/websiteManagement2/lib/models/recommendation.js
+++ b/lib/services/websiteManagement2/lib/models/recommendation.js
@@ -44,7 +44,7 @@ class Recommendation extends models['ProxyOnlyResource'] {
* @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".
+ * it's null then it should 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
diff --git a/lib/services/websiteManagement2/lib/models/resourceNameAvailability.js b/lib/services/websiteManagement2/lib/models/resourceNameAvailability.js
index a733bc7a1e..ed0303cc43 100644
--- a/lib/services/websiteManagement2/lib/models/resourceNameAvailability.js
+++ b/lib/services/websiteManagement2/lib/models/resourceNameAvailability.js
@@ -11,7 +11,7 @@
'use strict';
/**
- * Information regarding availbility of a resource name.
+ * Information regarding availability of a resource name.
*
*/
class ResourceNameAvailability {
diff --git a/lib/services/websiteManagement2/lib/models/responseMetaData.js b/lib/services/websiteManagement2/lib/models/responseMetaData.js
index 9215d9bd53..285c5e8d2c 100644
--- a/lib/services/websiteManagement2/lib/models/responseMetaData.js
+++ b/lib/services/websiteManagement2/lib/models/responseMetaData.js
@@ -17,8 +17,8 @@ class ResponseMetaData {
/**
* Create a ResponseMetaData.
* @member {object} [dataSource] Source of the Data
- * @member {array} [dataSource.instructions] Instrunctions if any for the
- * data source
+ * @member {array} [dataSource.instructions] Instructions if any for the data
+ * source
* @member {array} [dataSource.dataSourceUri] Datasource Uri Links
*/
constructor() {
diff --git a/lib/services/websiteManagement2/lib/models/site.js b/lib/services/websiteManagement2/lib/models/site.js
index 10ef4cbd6d..59146076b2 100644
--- a/lib/services/websiteManagement2/lib/models/site.js
+++ b/lib/services/websiteManagement2/lib/models/site.js
@@ -107,7 +107,7 @@ class Site extends models['Resource'] {
* values include: 'WeightedRoundRobin', 'LeastRequests',
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
* @member {object} [siteConfig.experiments] This is work around for
- * polymophic types.
+ * polymorphic types.
* @member {array} [siteConfig.experiments.rampUpRules] List of ramp-up
* rules.
* @member {object} [siteConfig.limits] Site limits.
@@ -164,6 +164,10 @@ class Site extends models['Resource'] {
* @member {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.
+ * @member {boolean} [siteConfig.cors.supportCredentials] Gets or sets
+ * whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [siteConfig.push] Push endpoint settings.
* @member {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
@@ -191,7 +195,11 @@ class Site extends models['Resource'] {
* @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ * @member {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ * @member {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP
+ * security restrictions for scm to use main.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
* web site to allow clients to connect over http2.0
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
@@ -224,6 +232,8 @@ class Site extends models['Resource'] {
* @member {boolean} [clientCertEnabled] true to enable client
* certificate authentication (TLS mutual authentication); otherwise,
* false. Default is false.
+ * @member {string} [clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
* @member {boolean} [hostNamesDisabled] true to disable the
* public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management
@@ -289,6 +299,11 @@ class Site extends models['Resource'] {
* @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept
* only https requests. Issues redirect for
* http requests
+ * @member {string} [redundancyMode] Site redundancy mode. Possible values
+ * include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ * @member {uuid} [inProgressOperationId] Specifies an operation id if this
+ * site has a pending operation.
+ * @member {array} [geoDistributions] GeoDistributions for this site
* @member {object} [identity]
* @member {string} [identity.type] Type of managed service identity.
* Possible values include: 'SystemAssigned', 'UserAssigned'
@@ -554,6 +569,13 @@ class Site extends models['Resource'] {
name: 'Boolean'
}
},
+ clientCertExclusionPaths: {
+ required: false,
+ serializedName: 'properties.clientCertExclusionPaths',
+ type: {
+ name: 'String'
+ }
+ },
hostNamesDisabled: {
required: false,
serializedName: 'properties.hostNamesDisabled',
@@ -655,6 +677,37 @@ class Site extends models['Resource'] {
name: 'Boolean'
}
},
+ redundancyMode: {
+ required: false,
+ serializedName: 'properties.redundancyMode',
+ type: {
+ name: 'Enum',
+ allowedValues: [ 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' ]
+ }
+ },
+ inProgressOperationId: {
+ required: false,
+ readOnly: true,
+ serializedName: 'properties.inProgressOperationId',
+ type: {
+ name: 'String'
+ }
+ },
+ geoDistributions: {
+ required: false,
+ serializedName: 'properties.geoDistributions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'GeoDistributionElementType',
+ type: {
+ name: 'Composite',
+ className: 'GeoDistribution'
+ }
+ }
+ }
+ },
identity: {
required: false,
serializedName: 'identity',
diff --git a/lib/services/websiteManagement2/lib/models/siteAuthSettings.js b/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
index f35b25393d..f73fa8e9a8 100644
--- a/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
+++ b/lib/services/websiteManagement2/lib/models/siteAuthSettings.js
@@ -67,6 +67,10 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
* authenticate end users.
* More information on OpenID Connect:
* http://openid.net/specs/openid-connect-core-1_0.html
+ * @member {string} [clientSecretCertificateThumbprint] An alternative to the
+ * client secret, that is the thumbprint of a certificate used for signing
+ * purposes. This property acts as
+ * a replacement for the Client Secret. It is also optional.
* @member {string} [issuer] The OpenID Connect Issuer URI that represents
* the entity which issues access tokens for this application.
* When using Azure Active Directory, this value is the URI of the directory
@@ -261,6 +265,13 @@ class SiteAuthSettings extends models['ProxyOnlyResource'] {
name: 'String'
}
},
+ clientSecretCertificateThumbprint: {
+ required: false,
+ serializedName: 'properties.clientSecretCertificateThumbprint',
+ type: {
+ name: 'String'
+ }
+ },
issuer: {
required: false,
serializedName: 'properties.issuer',
diff --git a/lib/services/websiteManagement2/lib/models/siteConfig.js b/lib/services/websiteManagement2/lib/models/siteConfig.js
index 5715d374ae..deee6e28b9 100644
--- a/lib/services/websiteManagement2/lib/models/siteConfig.js
+++ b/lib/services/websiteManagement2/lib/models/siteConfig.js
@@ -70,7 +70,7 @@ class SiteConfig {
* @member {string} [loadBalancing] Site load balancing. Possible values
* include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [experiments] This is work around for polymophic types.
+ * @member {object} [experiments] This is work around for polymorphic types.
* @member {array} [experiments.rampUpRules] List of ramp-up rules.
* @member {object} [limits] Site limits.
* @member {number} [limits.maxPercentageCpu] Maximum allowed CPU usage
@@ -120,6 +120,10 @@ class SiteConfig {
* @member {array} [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.
+ * @member {boolean} [cors.supportCredentials] Gets or sets whether CORS
+ * requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [push] Push endpoint settings.
* @member {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
@@ -144,7 +148,12 @@ class SiteConfig {
* @member {number} [managedServiceIdentityId] Managed Service Identity Id
* @member {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
- * @member {array} [ipSecurityRestrictions] IP security restrictions.
+ * @member {array} [ipSecurityRestrictions] IP security restrictions for
+ * main.
+ * @member {array} [scmIpSecurityRestrictions] IP security restrictions for
+ * scm.
+ * @member {boolean} [scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @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
@@ -568,6 +577,28 @@ class SiteConfig {
}
}
},
+ scmIpSecurityRestrictions: {
+ required: false,
+ serializedName: 'scmIpSecurityRestrictions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'IpSecurityRestrictionElementType',
+ type: {
+ name: 'Composite',
+ className: 'IpSecurityRestriction'
+ }
+ }
+ }
+ },
+ scmIpSecurityRestrictionsUseMain: {
+ required: false,
+ serializedName: 'scmIpSecurityRestrictionsUseMain',
+ type: {
+ name: 'Boolean'
+ }
+ },
http20Enabled: {
required: false,
serializedName: 'http20Enabled',
diff --git a/lib/services/websiteManagement2/lib/models/siteConfigResource.js b/lib/services/websiteManagement2/lib/models/siteConfigResource.js
index bbfa3cc80c..0b56df6165 100644
--- a/lib/services/websiteManagement2/lib/models/siteConfigResource.js
+++ b/lib/services/websiteManagement2/lib/models/siteConfigResource.js
@@ -73,7 +73,7 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @member {string} [loadBalancing] Site load balancing. Possible values
* include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
- * @member {object} [experiments] This is work around for polymophic types.
+ * @member {object} [experiments] This is work around for polymorphic types.
* @member {array} [experiments.rampUpRules] List of ramp-up rules.
* @member {object} [limits] Site limits.
* @member {number} [limits.maxPercentageCpu] Maximum allowed CPU usage
@@ -123,6 +123,10 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @member {array} [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.
+ * @member {boolean} [cors.supportCredentials] Gets or sets whether CORS
+ * requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [push] Push endpoint settings.
* @member {boolean} [push.isPushEnabled] Gets or sets a flag indicating
* whether the Push endpoint is enabled.
@@ -147,7 +151,12 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
* @member {number} [managedServiceIdentityId] Managed Service Identity Id
* @member {number} [xManagedServiceIdentityId] Explicit Managed Service
* Identity Id
- * @member {array} [ipSecurityRestrictions] IP security restrictions.
+ * @member {array} [ipSecurityRestrictions] IP security restrictions for
+ * main.
+ * @member {array} [scmIpSecurityRestrictions] IP security restrictions for
+ * scm.
+ * @member {boolean} [scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
* @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
@@ -603,6 +612,28 @@ class SiteConfigResource extends models['ProxyOnlyResource'] {
}
}
},
+ scmIpSecurityRestrictions: {
+ required: false,
+ serializedName: 'properties.scmIpSecurityRestrictions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'IpSecurityRestrictionElementType',
+ type: {
+ name: 'Composite',
+ className: 'IpSecurityRestriction'
+ }
+ }
+ }
+ },
+ scmIpSecurityRestrictionsUseMain: {
+ required: false,
+ serializedName: 'properties.scmIpSecurityRestrictionsUseMain',
+ type: {
+ name: 'Boolean'
+ }
+ },
http20Enabled: {
required: false,
serializedName: 'properties.http20Enabled',
diff --git a/lib/services/websiteManagement2/lib/models/sitePatchResource.js b/lib/services/websiteManagement2/lib/models/sitePatchResource.js
index 39de10c15e..4ed92950d9 100644
--- a/lib/services/websiteManagement2/lib/models/sitePatchResource.js
+++ b/lib/services/websiteManagement2/lib/models/sitePatchResource.js
@@ -107,7 +107,7 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* values include: 'WeightedRoundRobin', 'LeastRequests',
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
* @member {object} [siteConfig.experiments] This is work around for
- * polymophic types.
+ * polymorphic types.
* @member {array} [siteConfig.experiments.rampUpRules] List of ramp-up
* rules.
* @member {object} [siteConfig.limits] Site limits.
@@ -164,6 +164,10 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {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.
+ * @member {boolean} [siteConfig.cors.supportCredentials] Gets or sets
+ * whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
* @member {object} [siteConfig.push] Push endpoint settings.
* @member {boolean} [siteConfig.push.isPushEnabled] Gets or sets a flag
* indicating whether the Push endpoint is enabled.
@@ -191,7 +195,11 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
* @member {array} [siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ * @member {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ * @member {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP
+ * security restrictions for scm to use main.
* @member {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a
* web site to allow clients to connect over http2.0
* @member {string} [siteConfig.minTlsVersion] MinTlsVersion: configures the
@@ -224,6 +232,8 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {boolean} [clientCertEnabled] true to enable client
* certificate authentication (TLS mutual authentication); otherwise,
* false. Default is false.
+ * @member {string} [clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
* @member {boolean} [hostNamesDisabled] true to disable the
* public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management
@@ -289,6 +299,11 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
* @member {boolean} [httpsOnly] HttpsOnly: configures a web site to accept
* only https requests. Issues redirect for
* http requests
+ * @member {string} [redundancyMode] Site redundancy mode. Possible values
+ * include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ * @member {uuid} [inProgressOperationId] Specifies an operation id if this
+ * site has a pending operation.
+ * @member {array} [geoDistributions] GeoDistributions for this site
*/
constructor() {
super();
@@ -525,6 +540,13 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
name: 'Boolean'
}
},
+ clientCertExclusionPaths: {
+ required: false,
+ serializedName: 'properties.clientCertExclusionPaths',
+ type: {
+ name: 'String'
+ }
+ },
hostNamesDisabled: {
required: false,
serializedName: 'properties.hostNamesDisabled',
@@ -625,6 +647,37 @@ class SitePatchResource extends models['ProxyOnlyResource'] {
type: {
name: 'Boolean'
}
+ },
+ redundancyMode: {
+ required: false,
+ serializedName: 'properties.redundancyMode',
+ type: {
+ name: 'Enum',
+ allowedValues: [ 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' ]
+ }
+ },
+ inProgressOperationId: {
+ required: false,
+ readOnly: true,
+ serializedName: 'properties.inProgressOperationId',
+ type: {
+ name: 'String'
+ }
+ },
+ geoDistributions: {
+ required: false,
+ serializedName: 'properties.geoDistributions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serializedName: 'GeoDistributionElementType',
+ type: {
+ name: 'Composite',
+ className: 'GeoDistribution'
+ }
+ }
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/slotSwapStatus.js b/lib/services/websiteManagement2/lib/models/slotSwapStatus.js
index 6d399a5285..3e8094ba28 100644
--- a/lib/services/websiteManagement2/lib/models/slotSwapStatus.js
+++ b/lib/services/websiteManagement2/lib/models/slotSwapStatus.js
@@ -11,7 +11,7 @@
'use strict';
/**
- * The status of the last successfull slot swap operation.
+ * The status of the last successful slot swap operation.
*
*/
class SlotSwapStatus {
diff --git a/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js b/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js
index ad5d840c8a..657a34f217 100644
--- a/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js
+++ b/lib/services/websiteManagement2/lib/models/snapshotRestoreRequest.js
@@ -39,6 +39,8 @@ class SnapshotRestoreRequest extends models['ProxyOnlyResource'] {
* @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 {boolean} [useDRSecondary] If true, the snapshot is retrieved from
+ * DRSecondary endpoint.
*/
constructor() {
super();
@@ -124,6 +126,13 @@ class SnapshotRestoreRequest extends models['ProxyOnlyResource'] {
type: {
name: 'Boolean'
}
+ },
+ useDRSecondary: {
+ required: false,
+ serializedName: 'properties.useDRSecondary',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/stackMajorVersion.js b/lib/services/websiteManagement2/lib/models/stackMajorVersion.js
index 6e76522dfb..37d9a60f00 100644
--- a/lib/services/websiteManagement2/lib/models/stackMajorVersion.js
+++ b/lib/services/websiteManagement2/lib/models/stackMajorVersion.js
@@ -25,6 +25,8 @@ class StackMajorVersion {
* major version; otherwise, false.
* @member {array} [minorVersions] Minor versions associated with the major
* version.
+ * @member {boolean} [applicationInsights] true if this supports
+ * Application Insights; otherwise, false.
*/
constructor() {
}
@@ -78,6 +80,13 @@ class StackMajorVersion {
}
}
}
+ },
+ applicationInsights: {
+ required: false,
+ serializedName: 'applicationInsights',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/stackMinorVersion.js b/lib/services/websiteManagement2/lib/models/stackMinorVersion.js
index 2154f681e0..5851000e34 100644
--- a/lib/services/websiteManagement2/lib/models/stackMinorVersion.js
+++ b/lib/services/websiteManagement2/lib/models/stackMinorVersion.js
@@ -23,6 +23,8 @@ class StackMinorVersion {
* only).
* @member {boolean} [isDefault] true if this is the default
* minor version; otherwise, false.
+ * @member {boolean} [isRemoteDebuggingEnabled] true if this
+ * supports Remote Debugging, otherwise false.
*/
constructor() {
}
@@ -61,6 +63,13 @@ class StackMinorVersion {
type: {
name: 'Boolean'
}
+ },
+ isRemoteDebuggingEnabled: {
+ required: false,
+ serializedName: 'isRemoteDebuggingEnabled',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/models/user.js b/lib/services/websiteManagement2/lib/models/user.js
index ec8071fce3..e51a3b2287 100644
--- a/lib/services/websiteManagement2/lib/models/user.js
+++ b/lib/services/websiteManagement2/lib/models/user.js
@@ -13,7 +13,7 @@
const models = require('./index');
/**
- * User crendentials used for publishing activity.
+ * User credentials used for publishing activity.
*
* @extends models['ProxyOnlyResource']
*/
diff --git a/lib/services/websiteManagement2/lib/models/validateContainerSettingsRequest.js b/lib/services/websiteManagement2/lib/models/validateContainerSettingsRequest.js
new file mode 100644
index 0000000000..7d81d88a94
--- /dev/null
+++ b/lib/services/websiteManagement2/lib/models/validateContainerSettingsRequest.js
@@ -0,0 +1,92 @@
+/*
+ * 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';
+
+/**
+ * Container settings validation request context
+ *
+ */
+class ValidateContainerSettingsRequest {
+ /**
+ * Create a ValidateContainerSettingsRequest.
+ * @member {string} [baseUrl] Base URL of the container registry
+ * @member {string} [username] Username for to access the container registry
+ * @member {string} [password] Password for to access the container registry
+ * @member {string} [repository] Repository name (image name)
+ * @member {string} [tag] Image tag
+ * @member {string} [platform] Platform (windows or linux)
+ */
+ constructor() {
+ }
+
+ /**
+ * Defines the metadata of ValidateContainerSettingsRequest
+ *
+ * @returns {object} metadata of ValidateContainerSettingsRequest
+ *
+ */
+ mapper() {
+ return {
+ required: false,
+ serializedName: 'ValidateContainerSettingsRequest',
+ type: {
+ name: 'Composite',
+ className: 'ValidateContainerSettingsRequest',
+ modelProperties: {
+ baseUrl: {
+ required: false,
+ serializedName: 'baseUrl',
+ type: {
+ name: 'String'
+ }
+ },
+ username: {
+ required: false,
+ serializedName: 'username',
+ type: {
+ name: 'String'
+ }
+ },
+ password: {
+ required: false,
+ serializedName: 'password',
+ type: {
+ name: 'String'
+ }
+ },
+ repository: {
+ required: false,
+ serializedName: 'repository',
+ type: {
+ name: 'String'
+ }
+ },
+ tag: {
+ required: false,
+ serializedName: 'tag',
+ type: {
+ name: 'String'
+ }
+ },
+ platform: {
+ required: false,
+ serializedName: 'platform',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ };
+ }
+}
+
+module.exports = ValidateContainerSettingsRequest;
diff --git a/lib/services/websiteManagement2/lib/models/validateRequest.js b/lib/services/websiteManagement2/lib/models/validateRequest.js
index 3ca18ee528..5733471d59 100644
--- a/lib/services/websiteManagement2/lib/models/validateRequest.js
+++ b/lib/services/websiteManagement2/lib/models/validateRequest.js
@@ -30,7 +30,7 @@ class ValidateRequest {
* @member {boolean} [isSpot] true if App Service plan is for
* Spot instances; otherwise, false.
* @member {number} [capacity] Target capacity of the App Service plan
- * (number of VM's).
+ * (number of VMs).
* @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
diff --git a/lib/services/websiteManagement2/lib/models/vnetInfo.js b/lib/services/websiteManagement2/lib/models/vnetInfo.js
index 6340d209a5..8dc69dedb7 100644
--- a/lib/services/websiteManagement2/lib/models/vnetInfo.js
+++ b/lib/services/websiteManagement2/lib/models/vnetInfo.js
@@ -31,6 +31,8 @@ class VnetInfo extends models['ProxyOnlyResource'] {
* required; otherwise, false.
* @member {string} [dnsServers] DNS servers to be used by this Virtual
* Network. This should be a comma-separated list of IP addresses.
+ * @member {boolean} [isSwift] Flag that is used to denote if this is VNET
+ * injection
*/
constructor() {
super();
@@ -133,6 +135,13 @@ class VnetInfo extends models['ProxyOnlyResource'] {
type: {
name: 'String'
}
+ },
+ isSwift: {
+ required: false,
+ serializedName: 'properties.isSwift',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js b/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
index c61d1b4c3d..96713a5e89 100644
--- a/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
+++ b/lib/services/websiteManagement2/lib/operations/appServiceCertificateOrders.js
@@ -48,14 +48,12 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -68,7 +66,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -214,6 +212,7 @@ function _validatePurchaseInformation(appServiceCertificateOrder, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (appServiceCertificateOrder === null || appServiceCertificateOrder === undefined) {
@@ -222,9 +221,6 @@ 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.');
}
@@ -237,7 +233,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -353,6 +349,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -375,9 +372,6 @@ 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.');
}
@@ -391,7 +385,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -513,6 +507,7 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -538,9 +533,6 @@ 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.');
}
@@ -555,7 +547,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -649,8 +641,8 @@ function _get(resourceGroupName, certificateOrderName, options, callback) {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -788,6 +780,7 @@ function _deleteMethod(resourceGroupName, certificateOrderName, options, callbac
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -813,9 +806,6 @@ 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.');
}
@@ -830,7 +820,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -905,8 +895,8 @@ function _deleteMethod(resourceGroupName, certificateOrderName, options, callbac
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -961,6 +951,7 @@ function _update(resourceGroupName, certificateOrderName, certificateDistinguish
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -989,9 +980,6 @@ 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.');
}
@@ -1006,7 +994,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1159,6 +1147,7 @@ function _listCertificates(resourceGroupName, certificateOrderName, options, cal
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1184,9 +1173,6 @@ 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.');
}
@@ -1201,7 +1187,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1325,6 +1311,7 @@ function _getCertificate(resourceGroupName, certificateOrderName, name, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1353,9 +1340,6 @@ 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.');
}
@@ -1371,7 +1355,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1591,6 +1575,7 @@ function _deleteCertificate(resourceGroupName, certificateOrderName, name, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1619,9 +1604,6 @@ 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.');
}
@@ -1637,7 +1619,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1753,6 +1735,7 @@ function _updateCertificate(resourceGroupName, certificateOrderName, name, keyVa
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1784,9 +1767,6 @@ 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.');
}
@@ -1802,7 +1782,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1971,6 +1951,7 @@ function _reissue(resourceGroupName, certificateOrderName, reissueCertificateOrd
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1999,9 +1980,6 @@ 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.');
}
@@ -2016,7 +1994,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2145,6 +2123,7 @@ function _renew(resourceGroupName, certificateOrderName, renewCertificateOrderRe
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2173,9 +2152,6 @@ 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.');
}
@@ -2190,7 +2166,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2306,6 +2282,7 @@ function _resendEmail(resourceGroupName, certificateOrderName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2331,9 +2308,6 @@ 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.');
}
@@ -2348,7 +2322,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2453,6 +2427,7 @@ function _resendRequestEmails(resourceGroupName, certificateOrderName, options,
throw new Error('callback cannot be null.');
}
let name = (options && options.name !== undefined) ? options.name : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2478,9 +2453,6 @@ 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.');
}
@@ -2503,7 +2475,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2627,6 +2599,7 @@ function _retrieveSiteSeal(resourceGroupName, certificateOrderName, siteSealRequ
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2655,9 +2628,6 @@ 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.');
}
@@ -2672,7 +2642,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2806,6 +2776,7 @@ function _verifyDomainOwnership(resourceGroupName, certificateOrderName, options
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2831,9 +2802,6 @@ 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.');
}
@@ -2848,7 +2816,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2950,6 +2918,7 @@ function _retrieveCertificateActions(resourceGroupName, name, options, callback)
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2975,9 +2944,6 @@ 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.');
}
@@ -2992,7 +2958,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3126,6 +3092,7 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3151,9 +3118,6 @@ 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.');
}
@@ -3168,7 +3132,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3275,8 +3239,8 @@ function _retrieveCertificateEmailHistory(resourceGroupName, name, options, call
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -3335,6 +3299,7 @@ function _beginCreateOrUpdate(resourceGroupName, certificateOrderName, certifica
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3363,9 +3328,6 @@ 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.');
}
@@ -3380,7 +3342,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3549,6 +3511,7 @@ function _beginCreateOrUpdateCertificate(resourceGroupName, certificateOrderName
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3580,9 +3543,6 @@ 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.');
}
@@ -3598,7 +3558,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4558,8 +4518,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -4624,8 +4584,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -4804,8 +4764,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -4866,8 +4826,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -6287,8 +6247,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -6353,8 +6313,8 @@ class AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
diff --git a/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js b/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
index ad2df2aa00..69f9a3f169 100644
--- a/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
+++ b/lib/services/websiteManagement2/lib/operations/appServiceEnvironments.js
@@ -48,14 +48,12 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -68,7 +66,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -188,6 +186,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -210,9 +209,6 @@ 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.');
}
@@ -226,7 +222,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -348,6 +344,7 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -373,9 +370,6 @@ 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.');
}
@@ -390,7 +384,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -838,6 +832,7 @@ function _update(resourceGroupName, name, hostingEnvironmentEnvelope, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -866,9 +861,6 @@ 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.');
}
@@ -883,7 +875,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1037,6 +1029,7 @@ function _listCapacities(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1062,9 +1055,6 @@ 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.');
}
@@ -1079,7 +1069,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1200,6 +1190,7 @@ function _listVips(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1225,9 +1216,6 @@ 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.');
}
@@ -1242,7 +1230,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1449,6 +1437,7 @@ function _listDiagnostics(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1474,9 +1463,6 @@ 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.');
}
@@ -1491,7 +1477,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1629,6 +1615,7 @@ function _getDiagnosticsItem(resourceGroupName, name, diagnosticsName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1657,9 +1644,6 @@ 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.');
}
@@ -1675,7 +1659,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1796,6 +1780,7 @@ function _listMetricDefinitions(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1821,9 +1806,6 @@ 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.');
}
@@ -1838,7 +1820,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1971,6 +1953,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2002,9 +1985,6 @@ 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.');
}
@@ -2025,7 +2005,7 @@ function _listMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2146,6 +2126,7 @@ function _listMultiRolePools(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2171,9 +2152,6 @@ 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.');
}
@@ -2188,7 +2166,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2309,6 +2287,7 @@ function _getMultiRolePool(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2334,9 +2313,6 @@ 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.');
}
@@ -2351,7 +2327,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2657,6 +2633,7 @@ function _updateMultiRolePool(resourceGroupName, name, multiRolePoolEnvelope, op
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2685,9 +2662,6 @@ 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.');
}
@@ -2702,7 +2676,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2858,6 +2832,7 @@ function _listMultiRolePoolInstanceMetricDefinitions(resourceGroupName, name, in
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2886,9 +2861,6 @@ 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.');
}
@@ -2904,7 +2876,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3034,6 +3006,7 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
throw new Error('callback cannot be null.');
}
let details = (options && options.details !== undefined) ? options.details : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3065,9 +3038,6 @@ 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.');
}
@@ -3086,7 +3056,7 @@ function _listMultiRolePoolInstanceMetrics(resourceGroupName, name, instance, op
if (details !== null && details !== undefined) {
queryParameters.push('details=' + encodeURIComponent(details.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3209,6 +3179,7 @@ function _listMultiRoleMetricDefinitions(resourceGroupName, name, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3234,9 +3205,6 @@ 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.');
}
@@ -3251,7 +3219,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3393,6 +3361,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3433,9 +3402,6 @@ 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.');
}
@@ -3465,7 +3431,7 @@ function _listMultiRoleMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3586,6 +3552,7 @@ function _listMultiRolePoolSkus(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3611,9 +3578,6 @@ 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.');
}
@@ -3628,7 +3592,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3750,6 +3714,7 @@ function _listMultiRoleUsages(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3775,9 +3740,6 @@ 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.');
}
@@ -3792,7 +3754,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3913,6 +3875,7 @@ function _listOperations(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3938,9 +3901,6 @@ 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.');
}
@@ -3955,7 +3915,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4089,6 +4049,7 @@ function _reboot(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4114,9 +4075,6 @@ 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.');
}
@@ -4131,7 +4089,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4316,6 +4274,7 @@ function _listAppServicePlans(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4341,9 +4300,6 @@ 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.');
}
@@ -4358,7 +4314,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4483,6 +4439,7 @@ function _listWebApps(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let propertiesToInclude = (options && options.propertiesToInclude !== undefined) ? options.propertiesToInclude : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4511,9 +4468,6 @@ 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.');
}
@@ -4531,7 +4485,7 @@ function _listWebApps(resourceGroupName, name, options, callback) {
if (propertiesToInclude !== null && propertiesToInclude !== undefined) {
queryParameters.push('propertiesToInclude=' + encodeURIComponent(propertiesToInclude));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4741,6 +4695,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4769,9 +4724,6 @@ 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.');
}
@@ -4789,7 +4741,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4910,6 +4862,7 @@ function _listWorkerPools(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4935,9 +4888,6 @@ 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.');
}
@@ -4952,7 +4902,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5075,6 +5025,7 @@ function _getWorkerPool(resourceGroupName, name, workerPoolName, options, callba
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5103,9 +5054,6 @@ 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.');
}
@@ -5121,7 +5069,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5431,6 +5379,7 @@ function _updateWorkerPool(resourceGroupName, name, workerPoolName, workerPoolEn
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5462,9 +5411,6 @@ 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.');
}
@@ -5480,7 +5426,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5638,6 +5584,7 @@ function _listWorkerPoolInstanceMetricDefinitions(resourceGroupName, name, worke
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5669,9 +5616,6 @@ 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.');
}
@@ -5688,7 +5632,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5827,6 +5771,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5864,9 +5809,6 @@ 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.');
}
@@ -5889,7 +5831,7 @@ function _listWorkerPoolInstanceMetrics(resourceGroupName, name, workerPoolName,
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6014,6 +5956,7 @@ function _listWebWorkerMetricDefinitions(resourceGroupName, name, workerPoolName
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6042,9 +5985,6 @@ 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.');
}
@@ -6060,7 +6000,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6197,6 +6137,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6231,9 +6172,6 @@ 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.');
}
@@ -6255,7 +6193,7 @@ function _listWebWorkerMetrics(resourceGroupName, name, workerPoolName, options,
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6378,6 +6316,7 @@ function _listWorkerPoolSkus(resourceGroupName, name, workerPoolName, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6406,9 +6345,6 @@ 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.');
}
@@ -6424,7 +6360,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6547,6 +6483,7 @@ function _listWebWorkerUsages(resourceGroupName, name, workerPoolName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6575,9 +6512,6 @@ 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.');
}
@@ -6593,7 +6527,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -6804,6 +6738,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, hostingEnvironmentEnvelop
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -6832,9 +6767,6 @@ 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.');
}
@@ -6849,7 +6781,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7004,6 +6936,7 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let forceDelete = (options && options.forceDelete !== undefined) ? options.forceDelete : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7032,9 +6965,6 @@ 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.');
}
@@ -7052,7 +6982,7 @@ function _beginDeleteMethod(resourceGroupName, name, options, callback) {
if (forceDelete !== null && forceDelete !== undefined) {
queryParameters.push('forceDelete=' + encodeURIComponent(forceDelete.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7161,6 +7091,7 @@ function _beginChangeVnet(resourceGroupName, name, vnetInfo, options, callback)
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7189,9 +7120,6 @@ function _beginChangeVnet(resourceGroupName, name, vnetInfo, 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.');
}
@@ -7206,7 +7134,7 @@ function _beginChangeVnet(resourceGroupName, name, vnetInfo, options, callback)
requestUrl = requestUrl.replace('{name}', encodeURIComponent(name));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7410,6 +7338,7 @@ function _beginCreateOrUpdateMultiRolePool(resourceGroupName, name, multiRolePoo
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7438,9 +7367,6 @@ 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.');
}
@@ -7455,7 +7381,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7606,6 +7532,7 @@ function _beginResume(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7631,9 +7558,6 @@ 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.');
}
@@ -7648,7 +7572,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -7786,6 +7710,7 @@ function _beginSuspend(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -7811,9 +7736,6 @@ 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.');
}
@@ -7828,7 +7750,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -8020,6 +7942,7 @@ function _beginCreateOrUpdateWorkerPool(resourceGroupName, name, workerPoolName,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -8051,9 +7974,6 @@ 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.');
}
@@ -8069,7 +7989,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/appServicePlans.js b/lib/services/websiteManagement2/lib/operations/appServicePlans.js
index 8f99c59f4f..955394edaa 100644
--- a/lib/services/websiteManagement2/lib/operations/appServicePlans.js
+++ b/lib/services/websiteManagement2/lib/operations/appServicePlans.js
@@ -15,9 +15,9 @@ const msRestAzure = require('ms-rest-azure');
const WebResource = msRest.WebResource;
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {object} [options] Optional Parameters.
*
@@ -54,6 +54,7 @@ function _list(options, callback) {
throw new Error('callback cannot be null.');
}
let detailed = (options && options.detailed !== undefined) ? options.detailed : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (detailed !== null && detailed !== undefined && typeof detailed !== 'boolean') {
@@ -62,9 +63,6 @@ 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.');
}
@@ -80,7 +78,7 @@ function _list(options, callback) {
if (detailed !== null && detailed !== undefined) {
queryParameters.push('detailed=' + encodeURIComponent(detailed.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -200,6 +198,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -222,9 +221,6 @@ 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.');
}
@@ -238,7 +234,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -359,6 +355,7 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -384,9 +381,6 @@ 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.');
}
@@ -401,7 +395,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -499,9 +493,6 @@ function _get(resourceGroupName, name, options, callback) {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -685,6 +676,7 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -710,9 +702,6 @@ 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.');
}
@@ -727,7 +716,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -807,9 +796,6 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -876,6 +862,7 @@ function _update(resourceGroupName, name, appServicePlan, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -904,9 +891,6 @@ 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.');
}
@@ -921,7 +905,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1072,6 +1056,7 @@ function _listCapabilities(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1097,9 +1082,6 @@ 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.');
}
@@ -1114,7 +1096,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1253,6 +1235,7 @@ function _getHybridConnection(resourceGroupName, name, namespaceName, relayName,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1284,9 +1267,6 @@ 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.');
}
@@ -1303,7 +1283,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1427,6 +1407,7 @@ function _deleteHybridConnection(resourceGroupName, name, namespaceName, relayNa
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1458,9 +1439,6 @@ 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.');
}
@@ -1477,7 +1455,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1584,6 +1562,7 @@ function _listHybridConnectionKeys(resourceGroupName, name, namespaceName, relay
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1615,9 +1594,6 @@ 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.');
}
@@ -1634,7 +1610,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1759,6 +1735,7 @@ function _listWebAppsByHybridConnection(resourceGroupName, name, namespaceName,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1790,9 +1767,6 @@ 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.');
}
@@ -1809,7 +1783,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1932,6 +1906,7 @@ function _getHybridConnectionPlanLimit(resourceGroupName, name, options, callbac
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1957,9 +1932,6 @@ 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.');
}
@@ -1974,7 +1946,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2096,6 +2068,7 @@ function _listHybridConnections(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2121,9 +2094,6 @@ 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.');
}
@@ -2138,7 +2108,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2262,6 +2232,7 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2287,9 +2258,6 @@ 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.');
}
@@ -2304,7 +2272,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2388,9 +2356,9 @@ function _listMetricDefintions(resourceGroupName, name, options, callback) {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -2437,6 +2405,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2468,9 +2437,6 @@ 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.');
}
@@ -2491,7 +2457,7 @@ function _listMetrics(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2586,7 +2552,7 @@ function _listMetrics(resourceGroupName, name, options, callback) {
*
* @param {object} [options] Optional Parameters.
*
- * @param {boolean} [options.softRestart] Specify true to performa
+ * @param {boolean} [options.softRestart] Specify true to perform
* a soft restart, applies the configuration settings and restarts the apps if
* necessary. The default is false, which always restarts and
* reprovisions the apps
@@ -2617,6 +2583,7 @@ function _restartWebApps(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let softRestart = (options && options.softRestart !== undefined) ? options.softRestart : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2645,9 +2612,6 @@ 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.');
}
@@ -2665,7 +2629,7 @@ function _restartWebApps(resourceGroupName, name, options, callback) {
if (softRestart !== null && softRestart !== undefined) {
queryParameters.push('softRestart=' + encodeURIComponent(softRestart.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2782,6 +2746,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2816,9 +2781,6 @@ 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.');
}
@@ -2842,7 +2804,7 @@ function _listWebApps(resourceGroupName, name, options, callback) {
if (top !== null && top !== undefined) {
queryParameters.push('$top=' + encodeURIComponent(top));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2926,9 +2888,9 @@ function _listWebApps(resourceGroupName, name, options, callback) {
}
/**
- * @summary Gets all selectable sku's for a given App Service Plan
+ * @summary Gets all selectable SKUs for a given App Service Plan
*
- * Gets all selectable sku's for a given App Service Plan
+ * Gets all selectable SKUs for a given App Service Plan
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -2962,6 +2924,7 @@ function _getServerFarmSkus(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2987,9 +2950,6 @@ 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.');
}
@@ -3004,7 +2964,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3137,6 +3097,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
throw new Error('callback cannot be null.');
}
let filter = (options && options.filter !== undefined) ? options.filter : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3165,9 +3126,6 @@ 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.');
}
@@ -3185,7 +3143,7 @@ function _listUsages(resourceGroupName, name, options, callback) {
if (filter !== null && filter !== undefined) {
queryParameters.push('$filter=' + filter);
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3305,6 +3263,7 @@ function _listVnets(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3330,9 +3289,6 @@ 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.');
}
@@ -3347,7 +3303,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3484,6 +3440,7 @@ function _getVnetFromServerFarm(resourceGroupName, name, vnetName, options, call
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3512,9 +3469,6 @@ 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.');
}
@@ -3530,7 +3484,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3655,6 +3609,7 @@ function _getVnetGateway(resourceGroupName, name, vnetName, gatewayName, options
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3686,9 +3641,6 @@ 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.');
}
@@ -3705,7 +3657,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3840,6 +3792,7 @@ function _updateVnetGateway(resourceGroupName, name, vnetName, gatewayName, conn
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3874,9 +3827,6 @@ 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.');
}
@@ -3893,7 +3843,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4031,6 +3981,7 @@ function _listRoutesForVnet(resourceGroupName, name, vnetName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4059,9 +4010,6 @@ 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.');
}
@@ -4077,7 +4025,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4215,6 +4163,7 @@ function _getRouteForVnet(resourceGroupName, name, vnetName, routeName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4246,9 +4195,6 @@ 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.');
}
@@ -4265,7 +4211,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4423,6 +4369,7 @@ function _createOrUpdateVnetRoute(resourceGroupName, name, vnetName, routeName,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4457,9 +4404,6 @@ 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.');
}
@@ -4476,7 +4420,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4613,6 +4557,7 @@ function _deleteVnetRoute(resourceGroupName, name, vnetName, routeName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4644,9 +4589,6 @@ 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.');
}
@@ -4663,7 +4605,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4790,6 +4732,7 @@ function _updateVnetRoute(resourceGroupName, name, vnetName, routeName, route, o
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -4824,9 +4767,6 @@ 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.');
}
@@ -4843,7 +4783,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -4979,6 +4919,7 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5007,9 +4948,6 @@ 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.');
}
@@ -5025,7 +4963,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5105,9 +5043,6 @@ function _rebootWorker(resourceGroupName, name, workerName, options, callback) {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -5212,6 +5147,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -5240,9 +5176,6 @@ 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.');
}
@@ -5257,7 +5190,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -5303,7 +5236,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
return callback(err);
}
let statusCode = response.statusCode;
- if (statusCode !== 200 && statusCode !== 202) {
+ if (statusCode !== 200 && statusCode !== 201 && statusCode !== 202) {
let error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
@@ -5350,7 +5283,7 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
}
}
// Deserialize Response
- if (statusCode === 202) {
+ if (statusCode === 201) {
let parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
@@ -5366,15 +5299,32 @@ function _beginCreateOrUpdate(resourceGroupName, name, appServicePlan, options,
return callback(deserializationError1);
}
}
+ // 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['AppServicePlan']().mapper();
+ result = client.deserialize(resultMapper, parsedResponse, 'result');
+ }
+ } catch (error) {
+ let deserializationError2 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
+ deserializationError2.request = msRest.stripRequest(httpRequest);
+ deserializationError2.response = msRest.stripResponse(response);
+ return callback(deserializationError2);
+ }
+ }
return callback(null, result, httpRequest, response);
});
}
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -6028,9 +5978,9 @@ function _listMetricDefintionsNext(nextPageLink, options, callback) {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -6468,9 +6418,9 @@ class AppServicePlans {
}
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {object} [options] Optional Parameters.
*
@@ -6503,9 +6453,9 @@ class AppServicePlans {
}
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {object} [options] Optional Parameters.
*
@@ -6756,9 +6706,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -6875,9 +6822,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -7107,9 +7051,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -7188,9 +7129,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -8052,9 +7990,9 @@ class AppServicePlans {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -8096,9 +8034,9 @@ class AppServicePlans {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -8174,7 +8112,7 @@ class AppServicePlans {
*
* @param {object} [options] Optional Parameters.
*
- * @param {boolean} [options.softRestart] Specify true to performa
+ * @param {boolean} [options.softRestart] Specify true to perform
* a soft restart, applies the configuration settings and restarts the apps if
* necessary. The default is false, which always restarts and
* reprovisions the apps
@@ -8214,7 +8152,7 @@ class AppServicePlans {
*
* @param {object} [options] Optional Parameters.
*
- * @param {boolean} [options.softRestart] Specify true to performa
+ * @param {boolean} [options.softRestart] Specify true to perform
* a soft restart, applies the configuration settings and restarts the apps if
* necessary. The default is false, which always restarts and
* reprovisions the apps
@@ -8378,9 +8316,9 @@ class AppServicePlans {
}
/**
- * @summary Gets all selectable sku's for a given App Service Plan
+ * @summary Gets all selectable SKUs for a given App Service Plan
*
- * Gets all selectable sku's for a given App Service Plan
+ * Gets all selectable SKUs for a given App Service Plan
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -8413,9 +8351,9 @@ class AppServicePlans {
}
/**
- * @summary Gets all selectable sku's for a given App Service Plan
+ * @summary Gets all selectable SKUs for a given App Service Plan
*
- * Gets all selectable sku's for a given App Service Plan
+ * Gets all selectable SKUs for a given App Service Plan
*
* @param {string} resourceGroupName Name of the resource group to which the
* resource belongs.
@@ -9667,9 +9605,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -9786,9 +9721,6 @@ class AppServicePlans {
* @param {string} [appServicePlan.workerTierName] Target worker tier assigned
* to the App Service plan.
*
- * @param {string} [appServicePlan.adminSiteName] App Service plan
- * administration site.
- *
* @param {object} [appServicePlan.hostingEnvironmentProfile] Specification for
* the App Service Environment to use for the App Service plan.
*
@@ -9913,9 +9845,9 @@ class AppServicePlans {
}
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -9946,9 +9878,9 @@ class AppServicePlans {
}
/**
- * @summary Get all App Service plans for a subcription.
+ * @summary Get all App Service plans for a subscription.
*
- * Get all App Service plans for a subcription.
+ * Get all App Service plans for a subscription.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10361,9 +10293,9 @@ class AppServicePlans {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -10394,9 +10326,9 @@ class AppServicePlans {
}
/**
- * @summary Get metrics for an App Serice plan.
+ * @summary Get metrics for an App Service plan.
*
- * Get metrics for an App Serice plan.
+ * Get metrics for an App Service plan.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
diff --git a/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js b/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
index 14e286327f..c3e4a5c8b1 100644
--- a/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
+++ b/lib/services/websiteManagement2/lib/operations/certificateRegistrationProvider.js
@@ -50,11 +50,9 @@ function _listOperations(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -66,7 +64,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/certificates.js b/lib/services/websiteManagement2/lib/operations/certificates.js
index 5bda762528..e65ef03e5b 100644
--- a/lib/services/websiteManagement2/lib/operations/certificates.js
+++ b/lib/services/websiteManagement2/lib/operations/certificates.js
@@ -47,14 +47,12 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-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.');
}
@@ -67,7 +65,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -186,6 +184,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -208,9 +207,6 @@ 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.');
}
@@ -224,7 +220,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -345,6 +341,7 @@ function _get(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -370,9 +367,6 @@ 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.');
}
@@ -387,7 +381,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -533,6 +527,7 @@ function _createOrUpdate(resourceGroupName, name, certificateEnvelope, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -561,9 +556,6 @@ 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.');
}
@@ -578,7 +570,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -712,6 +704,7 @@ function _deleteMethod(resourceGroupName, name, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -737,9 +730,6 @@ 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.');
}
@@ -754,7 +744,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -878,6 +868,7 @@ function _update(resourceGroupName, name, certificateEnvelope, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-11-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -906,9 +897,6 @@ 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.');
}
@@ -923,7 +911,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/deletedWebApps.js b/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
index e8f1fec2a2..47ebabf895 100644
--- a/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
+++ b/lib/services/websiteManagement2/lib/operations/deletedWebApps.js
@@ -48,14 +48,12 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -68,7 +66,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/diagnostics.js b/lib/services/websiteManagement2/lib/operations/diagnostics.js
index 92f387cbf1..2abda0b645 100644
--- a/lib/services/websiteManagement2/lib/operations/diagnostics.js
+++ b/lib/services/websiteManagement2/lib/operations/diagnostics.js
@@ -53,6 +53,7 @@ function _listHostingEnvironmentDetectorResponses(resourceGroupName, name, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -78,9 +79,6 @@ 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.');
}
@@ -95,7 +93,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -227,6 +225,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -272,9 +271,6 @@ 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.');
}
@@ -299,7 +295,7 @@ function _getHostingEnvironmentDetectorResponse(resourceGroupName, name, detecto
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -421,6 +417,7 @@ function _listSiteDetectorResponses(resourceGroupName, siteName, options, callba
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -446,9 +443,6 @@ 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.');
}
@@ -463,7 +457,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -595,6 +589,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -640,9 +635,6 @@ 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.');
}
@@ -667,7 +659,7 @@ function _getSiteDetectorResponse(resourceGroupName, siteName, detectorName, opt
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -789,6 +781,7 @@ function _listSiteDiagnosticCategories(resourceGroupName, siteName, options, cal
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -814,9 +807,6 @@ 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.');
}
@@ -831,7 +821,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -954,6 +944,7 @@ function _getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCateg
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -982,9 +973,6 @@ 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.');
}
@@ -1000,7 +988,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1124,6 +1112,7 @@ function _listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, opti
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1152,9 +1141,6 @@ 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.');
}
@@ -1170,7 +1156,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1295,6 +1281,7 @@ function _getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analy
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1326,9 +1313,6 @@ 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.');
}
@@ -1345,7 +1329,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1479,6 +1463,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1527,9 +1512,6 @@ 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.');
}
@@ -1555,7 +1537,7 @@ function _executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, a
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1679,6 +1661,7 @@ function _listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, opt
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1707,9 +1690,6 @@ 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.');
}
@@ -1725,7 +1705,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1851,6 +1831,7 @@ function _getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detec
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1882,9 +1863,6 @@ 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.');
}
@@ -1901,7 +1879,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2036,6 +2014,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2084,9 +2063,6 @@ 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.');
}
@@ -2112,7 +2088,7 @@ function _executeSiteDetector(resourceGroupName, siteName, detectorName, diagnos
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2236,6 +2212,7 @@ function _listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2264,9 +2241,6 @@ 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.');
}
@@ -2282,7 +2256,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2416,6 +2390,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2464,9 +2439,6 @@ 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.');
}
@@ -2492,7 +2464,7 @@ function _getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName,
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2616,6 +2588,7 @@ function _listSiteDiagnosticCategoriesSlot(resourceGroupName, siteName, slot, op
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2644,9 +2617,6 @@ 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.');
}
@@ -2662,7 +2632,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2787,6 +2757,7 @@ function _getSiteDiagnosticCategorySlot(resourceGroupName, siteName, diagnosticC
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2818,9 +2789,6 @@ 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.');
}
@@ -2837,7 +2805,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2963,6 +2931,7 @@ function _listSiteAnalysesSlot(resourceGroupName, siteName, diagnosticCategory,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2994,9 +2963,6 @@ 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.');
}
@@ -3013,7 +2979,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3140,6 +3106,7 @@ function _getSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategory, a
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3174,9 +3141,6 @@ 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.');
}
@@ -3194,7 +3158,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3330,6 +3294,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3381,9 +3346,6 @@ 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.');
}
@@ -3410,7 +3372,7 @@ function _executeSiteAnalysisSlot(resourceGroupName, siteName, diagnosticCategor
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3536,6 +3498,7 @@ function _listSiteDetectorsSlot(resourceGroupName, siteName, diagnosticCategory,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3567,9 +3530,6 @@ 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.');
}
@@ -3586,7 +3546,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3714,6 +3674,7 @@ function _getSiteDetectorSlot(resourceGroupName, siteName, diagnosticCategory, d
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3748,9 +3709,6 @@ 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.');
}
@@ -3768,7 +3726,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -3905,6 +3863,7 @@ 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 = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -3956,9 +3915,6 @@ 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.');
}
@@ -3985,7 +3941,7 @@ function _executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, dia
if (timeGrain !== null && timeGrain !== undefined) {
queryParameters.push('timeGrain=' + encodeURIComponent(timeGrain));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js b/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
index 15f1b4c10e..a20f0c8e13 100644
--- a/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
+++ b/lib/services/websiteManagement2/lib/operations/domainRegistrationProvider.js
@@ -50,11 +50,9 @@ function _listOperations(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -66,7 +64,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/domains.js b/lib/services/websiteManagement2/lib/operations/domains.js
index a1222e1242..480b69e1f0 100644
--- a/lib/services/websiteManagement2/lib/operations/domains.js
+++ b/lib/services/websiteManagement2/lib/operations/domains.js
@@ -51,14 +51,12 @@ function _checkAvailability(options, callback) {
throw new Error('callback cannot be null.');
}
let name = (options && options.name !== undefined) ? options.name : undefined;
+ let apiVersion = '2018-02-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.');
}
@@ -79,7 +77,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -209,14 +207,12 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -229,7 +225,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -346,14 +342,12 @@ function _getControlCenterSsoRequest(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-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.');
}
@@ -366,7 +360,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -492,6 +486,7 @@ function _listRecommendations(parameters, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (parameters === null || parameters === undefined) {
@@ -500,9 +495,6 @@ 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.');
}
@@ -515,7 +507,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -648,6 +640,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -670,9 +663,6 @@ 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.');
}
@@ -686,7 +676,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -807,6 +797,7 @@ function _get(resourceGroupName, domainName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -832,9 +823,6 @@ 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.');
}
@@ -849,7 +837,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1135,6 +1123,7 @@ function _deleteMethod(resourceGroupName, domainName, options, callback) {
throw new Error('callback cannot be null.');
}
let forceHardDeleteDomain = (options && options.forceHardDeleteDomain !== undefined) ? options.forceHardDeleteDomain : undefined;
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1163,9 +1152,6 @@ 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.');
}
@@ -1183,7 +1169,7 @@ function _deleteMethod(resourceGroupName, domainName, options, callback) {
if (forceHardDeleteDomain !== null && forceHardDeleteDomain !== undefined) {
queryParameters.push('forceHardDeleteDomain=' + encodeURIComponent(forceHardDeleteDomain.toString()));
}
- queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1362,6 +1348,7 @@ function _update(resourceGroupName, domainName, domain, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1396,9 +1383,6 @@ 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.');
}
@@ -1413,7 +1397,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1566,6 +1550,7 @@ function _listOwnershipIdentifiers(resourceGroupName, domainName, options, callb
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1591,9 +1576,6 @@ 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.');
}
@@ -1608,7 +1590,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1732,6 +1714,7 @@ function _getOwnershipIdentifier(resourceGroupName, domainName, name, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1760,9 +1743,6 @@ 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.');
}
@@ -1778,7 +1758,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -1911,6 +1891,7 @@ function _createOrUpdateOwnershipIdentifier(resourceGroupName, domainName, name,
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -1942,9 +1923,6 @@ 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.');
}
@@ -1960,7 +1938,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2096,6 +2074,7 @@ function _deleteOwnershipIdentifier(resourceGroupName, domainName, name, options
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2124,9 +2103,6 @@ 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.');
}
@@ -2142,7 +2118,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2257,6 +2233,7 @@ function _updateOwnershipIdentifier(resourceGroupName, domainName, name, domainO
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2288,9 +2265,6 @@ 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.');
}
@@ -2306,7 +2280,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2440,6 +2414,7 @@ function _renew(resourceGroupName, domainName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2465,9 +2440,6 @@ 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.');
}
@@ -2482,7 +2454,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
@@ -2665,6 +2637,7 @@ function _beginCreateOrUpdate(resourceGroupName, domainName, domain, options, ca
if (!callback) {
throw new Error('callback cannot be null.');
}
+ let apiVersion = '2018-02-01';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
@@ -2699,9 +2672,6 @@ 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.');
}
@@ -2716,7 +2686,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(this.client.apiVersion));
+ queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
diff --git a/lib/services/websiteManagement2/lib/operations/index.d.ts b/lib/services/websiteManagement2/lib/operations/index.d.ts
index 9e81c51925..431f6fc05d 100644
--- a/lib/services/websiteManagement2/lib/operations/index.d.ts
+++ b/lib/services/websiteManagement2/lib/operations/index.d.ts
@@ -332,8 +332,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -386,8 +386,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -524,8 +524,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -574,8 +574,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -1629,8 +1629,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -1683,8 +1683,8 @@ export interface AppServiceCertificateOrders {
*
* @param {string} certificateOrderName Name of the certificate order.
*
- * @param {object} certificateDistinguishedName Distinguished name to to use
- * for the certificate order.
+ * @param {object} certificateDistinguishedName Distinguished name to use for
+ * the certificate order.
*
* @param {object} [certificateDistinguishedName.certificates] State of the Key
* Vault secret.
@@ -8111,6 +8111,465 @@ export interface Recommendations {
disableRecommendationForSubscription(name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ /**
+ * @summary Get past recommendations for an app, optionally specified by the
+ * time range.
+ *
+ * Get past recommendations for an app, optionally specified by the time range.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the hosting environment.
+ *
+ * @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=channel eq 'Api' or channel eq 'Notification' and startTime
+ * eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
+ * duration'[PT1H|PT1M|P1D]
+ *
+ * @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.
+ */
+ listHistoryForHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, hostingEnvironmentName: string, options?: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Get past recommendations for an app, optionally specified by the
+ * time range.
+ *
+ * Get past recommendations for an app, optionally specified by the time range.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the hosting environment.
+ *
+ * @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=channel eq 'Api' or channel eq 'Notification' and startTime
+ * eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq
+ * duration'[PT1H|PT1M|P1D]
+ *
+ * @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 {RecommendationCollection} - 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.
+ *
+ * {RecommendationCollection} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationCollection} 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.
+ */
+ listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
+ listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, callback: ServiceCallback): void;
+ listHistoryForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options: { expiredOnly? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Get all recommendations for an app.
+ *
+ * Get all recommendations for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.featured] Specify true to return only
+ * the most critical recommendations. The default is false, which
+ * returns all recommendations.
+ *
+ * @param {string} [options.filter] Return only channels specified in the
+ * filter. Filter is specified by using OData syntax. Example: $filter=channel
+ * eq 'Api' or channel eq 'Notification'
+ *
+ * @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.
+ */
+ listRecommendedRulesForHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, hostingEnvironmentName: string, options?: { featured? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Get all recommendations for an app.
+ *
+ * Get all recommendations for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the app.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.featured] Specify true to return only
+ * the most critical recommendations. The default is false, which
+ * returns all recommendations.
+ *
+ * @param {string} [options.filter] Return only channels specified in the
+ * filter. Filter is specified by using OData syntax. Example: $filter=channel
+ * eq 'Api' or channel eq 'Notification'
+ *
+ * @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 {RecommendationCollection} - 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.
+ *
+ * {RecommendationCollection} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationCollection} 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.
+ */
+ listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options?: { featured? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
+ listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, callback: ServiceCallback): void;
+ listRecommendedRulesForHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, options: { featured? : boolean, filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Disable all recommendations for an app.
+ *
+ * Disable all recommendations for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Name of the app.
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ disableAllForHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Disable all recommendations for an app.
+ *
+ * Disable all recommendations for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Name of the app.
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, callback: ServiceCallback): void;
+ disableAllForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Reset all recommendation opt-out settings for an app.
+ *
+ * Reset all recommendation opt-out settings for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Name of the app.
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ resetAllFiltersForHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Reset all recommendation opt-out settings for an app.
+ *
+ * Reset all recommendation opt-out settings for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Name of the app.
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, callback: ServiceCallback): void;
+ resetAllFiltersForHostingEnvironment(resourceGroupName: string, environmentName: string, hostingEnvironmentName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Get a recommendation rule for an app.
+ *
+ * Get a recommendation rule for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the hosting environment.
+ *
+ * @param {string} name Name of the recommendation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.updateSeen] Specify true to update
+ * the last-seen timestamp of the recommendation object.
+ *
+ * @param {string} [options.recommendationId] The GUID of the recommendation
+ * object if you query an expired one. You don't need to specify it to query an
+ * active entry.
+ *
+ * @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.
+ */
+ getRuleDetailsByHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, hostingEnvironmentName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Get a recommendation rule for an app.
+ *
+ * Get a recommendation rule for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} hostingEnvironmentName Name of the hosting environment.
+ *
+ * @param {string} name Name of the recommendation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.updateSeen] Specify true to update
+ * the last-seen timestamp of the recommendation object.
+ *
+ * @param {string} [options.recommendationId] The GUID of the recommendation
+ * object if you query an expired one. You don't need to specify it to query an
+ * active entry.
+ *
+ * @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 {RecommendationRule} - 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.
+ *
+ * {RecommendationRule} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationRule} 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.
+ */
+ getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
+ getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, callback: ServiceCallback): void;
+ getRuleDetailsByHostingEnvironment(resourceGroupName: string, hostingEnvironmentName: string, name: string, options: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Disables the specific rule for a web site permanently.
+ *
+ * Disables the specific rule for a web site permanently.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Site name
+ *
+ * @param {string} name Rule name
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ disableRecommendationForHostingEnvironmentWithHttpOperationResponse(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Disables the specific rule for a web site permanently.
+ *
+ * Disables the specific rule for a web site permanently.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} environmentName Site name
+ *
+ * @param {string} name Rule name
+ *
+ * @param {string} hostingEnvironmentName
+ *
+ * @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.
+ */
+ disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, callback: ServiceCallback): void;
+ disableRecommendationForHostingEnvironment(resourceGroupName: string, environmentName: string, name: string, hostingEnvironmentName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
/**
* @summary Get past recommendations for an app, optionally specified by the
* time range.
@@ -8402,64 +8861,193 @@ export interface Recommendations {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, callback: ServiceCallback): void;
- resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, callback: ServiceCallback): void;
+ resetAllFiltersForWebApp(resourceGroupName: string, siteName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Get a recommendation rule for an app.
+ *
+ * Get a recommendation rule for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} siteName Name of the app.
+ *
+ * @param {string} name Name of the recommendation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.updateSeen] Specify true to update
+ * the last-seen timestamp of the recommendation object.
+ *
+ * @param {string} [options.recommendationId] The GUID of the recommendation
+ * object if you query an expired one. You don't need to specify it to query an
+ * active entry.
+ *
+ * @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.
+ */
+ getRuleDetailsByWebAppWithHttpOperationResponse(resourceGroupName: string, siteName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Get a recommendation rule for an app.
+ *
+ * Get a recommendation rule for an app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} siteName Name of the app.
+ *
+ * @param {string} name Name of the recommendation.
+ *
+ * @param {object} [options] Optional Parameters.
+ *
+ * @param {boolean} [options.updateSeen] Specify true to update
+ * the last-seen timestamp of the recommendation object.
+ *
+ * @param {string} [options.recommendationId] The GUID of the recommendation
+ * object if you query an expired one. You don't need to specify it to query an
+ * active entry.
+ *
+ * @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 {RecommendationRule} - 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.
+ *
+ * {RecommendationRule} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationRule} 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.
+ */
+ getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
+ getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, callback: ServiceCallback): void;
+ getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+
+
+ /**
+ * @summary Disables the specific rule for a web site permanently.
+ *
+ * Disables the specific rule for a web site permanently.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} siteName Site name
+ *
+ * @param {string} name Rule name
+ *
+ * @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.
+ */
+ disableRecommendationForSiteWithHttpOperationResponse(resourceGroupName: string, siteName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Disables the specific rule for a web site permanently.
+ *
+ * Disables the specific rule for a web site permanently.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} siteName Site name
+ *
+ * @param {string} name Rule name
+ *
+ * @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.
+ */
+ disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, callback: ServiceCallback): void;
+ disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
- * @summary Get a recommendation rule for an app.
- *
- * Get a recommendation rule for an app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
+ * @summary List all recommendations for a subscription.
*
- * @param {string} siteName Name of the app.
+ * List all recommendations for a subscription.
*
- * @param {string} name Name of the recommendation.
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
*
* @param {object} [options] Optional Parameters.
*
- * @param {boolean} [options.updateSeen] Specify true to update
- * the last-seen timestamp of the recommendation object.
- *
- * @param {string} [options.recommendationId] The GUID of the recommedation
- * object if you query an expired one. You don't need to specify it to query an
- * active entry.
- *
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- getRuleDetailsByWebAppWithHttpOperationResponse(resourceGroupName: string, siteName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>;
+ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
- * @summary Get a recommendation rule for an app.
- *
- * Get a recommendation rule for an app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
+ * @summary List all recommendations for a subscription.
*
- * @param {string} siteName Name of the app.
+ * List all recommendations for a subscription.
*
- * @param {string} name Name of the recommendation.
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
*
* @param {object} [options] Optional Parameters.
*
- * @param {boolean} [options.updateSeen] Specify true to update
- * the last-seen timestamp of the recommendation object.
- *
- * @param {string} [options.recommendationId] The GUID of the recommedation
- * object if you query an expired one. You don't need to specify it to query an
- * active entry.
- *
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
@@ -8470,7 +9058,7 @@ export interface Recommendations {
*
* {Promise} A promise is returned.
*
- * @resolve {RecommendationRule} - The deserialized result object.
+ * @resolve {RecommendationCollection} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -8478,29 +9066,27 @@ export interface Recommendations {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {RecommendationRule} [result] - The deserialized result object if an error did not occur.
- * See {@link RecommendationRule} for more information.
+ * {RecommendationCollection} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationCollection} 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.
*/
- getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options?: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }): Promise;
- getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, callback: ServiceCallback): void;
- getRuleDetailsByWebApp(resourceGroupName: string, siteName: string, name: string, options: { updateSeen? : boolean, recommendationId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ 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 Disables the specific rule for a web site permanently.
- *
- * Disables the specific rule for a web site permanently.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
+ * @summary Get past recommendations for an app, optionally specified by the
+ * time range.
*
- * @param {string} siteName Site name
+ * Get past recommendations for an app, optionally specified by the time range.
*
- * @param {string} name Rule name
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
*
* @param {object} [options] Optional Parameters.
*
@@ -8509,23 +9095,20 @@ export interface Recommendations {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse} - The deserialized result object.
+ * @resolve {HttpOperationResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
- disableRecommendationForSiteWithHttpOperationResponse(resourceGroupName: string, siteName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ listHistoryForHostingEnvironmentNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
- * @summary Disables the specific rule for a web site permanently.
- *
- * Disables the specific rule for a web site permanently.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
+ * @summary Get past recommendations for an app, optionally specified by the
+ * time range.
*
- * @param {string} siteName Site name
+ * Get past recommendations for an app, optionally specified by the time range.
*
- * @param {string} name Rule name
+ * @param {string} nextPageLink The NextLink from the previous successful call
+ * to List operation.
*
* @param {object} [options] Optional Parameters.
*
@@ -8539,7 +9122,7 @@ export interface Recommendations {
*
* {Promise} A promise is returned.
*
- * @resolve {null} - The deserialized result object.
+ * @resolve {RecommendationCollection} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -8547,21 +9130,23 @@ export interface Recommendations {
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
- * {null} [result] - The deserialized result object if an error did not occur.
+ * {RecommendationCollection} [result] - The deserialized result object if an error did not occur.
+ * See {@link RecommendationCollection} 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.
*/
- disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, callback: ServiceCallback): void;
- disableRecommendationForSite(resourceGroupName: string, siteName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
+ listHistoryForHostingEnvironmentNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ listHistoryForHostingEnvironmentNext(nextPageLink: string, callback: ServiceCallback): void;
+ listHistoryForHostingEnvironmentNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
- * @summary List all recommendations for a subscription.
+ * @summary Get all recommendations for an app.
*
- * List all recommendations for a subscription.
+ * Get all recommendations for an app.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -8577,12 +9162,12 @@ export interface Recommendations {
*
* @reject {Error|ServiceError} - The error object.
*/
- listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+ listRecommendedRulesForHostingEnvironmentNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
/**
- * @summary List all recommendations for a subscription.
+ * @summary Get all recommendations for an app.
*
- * List all recommendations for a subscription.
+ * Get all recommendations for an app.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
@@ -8615,9 +9200,9 @@ export interface Recommendations {
*
* {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;
+ listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, callback: ServiceCallback): void;
+ listRecommendedRulesForHostingEnvironmentNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -9074,7 +9659,7 @@ export interface WebApps {
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
*
* @param {object} [siteEnvelope.siteConfig.experiments] This is work around
- * for polymophic types.
+ * for polymorphic types.
*
* @param {array} [siteEnvelope.siteConfig.experiments.rampUpRules] List of
* ramp-up rules.
@@ -9166,6 +9751,11 @@ export interface WebApps {
* the list of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteEnvelope.siteConfig.cors.supportCredentials] Gets or
+ * sets whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteEnvelope.siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteEnvelope.siteConfig.push.isPushEnabled Gets or sets a
@@ -9207,7 +9797,13 @@ export interface WebApps {
* Managed Service Identity Id
*
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ *
+ * @param {array} [siteEnvelope.siteConfig.scmIpSecurityRestrictions] IP
+ * security restrictions for scm.
+ *
+ * @param {boolean} [siteEnvelope.siteConfig.scmIpSecurityRestrictionsUseMain]
+ * IP security restrictions for scm to use main.
*
* @param {boolean} [siteEnvelope.siteConfig.http20Enabled] Http20Enabled:
* configures a web site to allow clients to connect over http2.0
@@ -9242,6 +9838,9 @@ export interface WebApps {
* enable client certificate authentication (TLS mutual authentication);
* otherwise, false. Default is false.
*
+ * @param {string} [siteEnvelope.clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
+ *
* @param {boolean} [siteEnvelope.hostNamesDisabled] true to
* disable the public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -9302,6 +9901,12 @@ export interface WebApps {
* to accept only https requests. Issues redirect for
* http requests
*
+ * @param {string} [siteEnvelope.redundancyMode] Site redundancy mode. Possible
+ * values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ *
+ * @param {array} [siteEnvelope.geoDistributions] GeoDistributions for this
+ * site
+ *
* @param {object} [siteEnvelope.identity]
*
* @param {string} [siteEnvelope.identity.type] Type of managed service
@@ -9459,7 +10064,7 @@ export interface WebApps {
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
*
* @param {object} [siteEnvelope.siteConfig.experiments] This is work around
- * for polymophic types.
+ * for polymorphic types.
*
* @param {array} [siteEnvelope.siteConfig.experiments.rampUpRules] List of
* ramp-up rules.
@@ -9551,6 +10156,11 @@ export interface WebApps {
* the list of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteEnvelope.siteConfig.cors.supportCredentials] Gets or
+ * sets whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteEnvelope.siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteEnvelope.siteConfig.push.isPushEnabled Gets or sets a
@@ -9592,7 +10202,13 @@ export interface WebApps {
* Managed Service Identity Id
*
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ *
+ * @param {array} [siteEnvelope.siteConfig.scmIpSecurityRestrictions] IP
+ * security restrictions for scm.
+ *
+ * @param {boolean} [siteEnvelope.siteConfig.scmIpSecurityRestrictionsUseMain]
+ * IP security restrictions for scm to use main.
*
* @param {boolean} [siteEnvelope.siteConfig.http20Enabled] Http20Enabled:
* configures a web site to allow clients to connect over http2.0
@@ -9627,6 +10243,9 @@ export interface WebApps {
* enable client certificate authentication (TLS mutual authentication);
* otherwise, false. Default is false.
*
+ * @param {string} [siteEnvelope.clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
+ *
* @param {boolean} [siteEnvelope.hostNamesDisabled] true to
* disable the public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -9687,6 +10306,12 @@ export interface WebApps {
* to accept only https requests. Issues redirect for
* http requests
*
+ * @param {string} [siteEnvelope.redundancyMode] Site redundancy mode. Possible
+ * values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ *
+ * @param {array} [siteEnvelope.geoDistributions] GeoDistributions for this
+ * site
+ *
* @param {object} [siteEnvelope.identity]
*
* @param {string} [siteEnvelope.identity.type] Type of managed service
@@ -9943,7 +10568,7 @@ export interface WebApps {
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
*
* @param {object} [siteEnvelope.siteConfig.experiments] This is work around
- * for polymophic types.
+ * for polymorphic types.
*
* @param {array} [siteEnvelope.siteConfig.experiments.rampUpRules] List of
* ramp-up rules.
@@ -10035,6 +10660,11 @@ export interface WebApps {
* the list of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteEnvelope.siteConfig.cors.supportCredentials] Gets or
+ * sets whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteEnvelope.siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteEnvelope.siteConfig.push.isPushEnabled Gets or sets a
@@ -10076,7 +10706,13 @@ export interface WebApps {
* Managed Service Identity Id
*
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ *
+ * @param {array} [siteEnvelope.siteConfig.scmIpSecurityRestrictions] IP
+ * security restrictions for scm.
+ *
+ * @param {boolean} [siteEnvelope.siteConfig.scmIpSecurityRestrictionsUseMain]
+ * IP security restrictions for scm to use main.
*
* @param {boolean} [siteEnvelope.siteConfig.http20Enabled] Http20Enabled:
* configures a web site to allow clients to connect over http2.0
@@ -10111,6 +10747,9 @@ export interface WebApps {
* enable client certificate authentication (TLS mutual authentication);
* otherwise, false. Default is false.
*
+ * @param {string} [siteEnvelope.clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
+ *
* @param {boolean} [siteEnvelope.hostNamesDisabled] true to
* disable the public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -10171,6 +10810,12 @@ export interface WebApps {
* to accept only https requests. Issues redirect for
* http requests
*
+ * @param {string} [siteEnvelope.redundancyMode] Site redundancy mode. Possible
+ * values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ *
+ * @param {array} [siteEnvelope.geoDistributions] GeoDistributions for this
+ * site
+ *
* @param {string} [siteEnvelope.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -10316,7 +10961,7 @@ export interface WebApps {
* 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash'
*
* @param {object} [siteEnvelope.siteConfig.experiments] This is work around
- * for polymophic types.
+ * for polymorphic types.
*
* @param {array} [siteEnvelope.siteConfig.experiments.rampUpRules] List of
* ramp-up rules.
@@ -10408,6 +11053,11 @@ export interface WebApps {
* the list of origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteEnvelope.siteConfig.cors.supportCredentials] Gets or
+ * sets whether CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteEnvelope.siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteEnvelope.siteConfig.push.isPushEnabled Gets or sets a
@@ -10449,7 +11099,13 @@ export interface WebApps {
* Managed Service Identity Id
*
* @param {array} [siteEnvelope.siteConfig.ipSecurityRestrictions] IP security
- * restrictions.
+ * restrictions for main.
+ *
+ * @param {array} [siteEnvelope.siteConfig.scmIpSecurityRestrictions] IP
+ * security restrictions for scm.
+ *
+ * @param {boolean} [siteEnvelope.siteConfig.scmIpSecurityRestrictionsUseMain]
+ * IP security restrictions for scm to use main.
*
* @param {boolean} [siteEnvelope.siteConfig.http20Enabled] Http20Enabled:
* configures a web site to allow clients to connect over http2.0
@@ -10484,6 +11140,9 @@ export interface WebApps {
* enable client certificate authentication (TLS mutual authentication);
* otherwise, false. Default is false.
*
+ * @param {string} [siteEnvelope.clientCertExclusionPaths] client certificate
+ * authentication comma-separated exclusion paths
+ *
* @param {boolean} [siteEnvelope.hostNamesDisabled] true to
* disable the public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
@@ -10544,6 +11203,12 @@ export interface WebApps {
* to accept only https requests. Issues redirect for
* http requests
*
+ * @param {string} [siteEnvelope.redundancyMode] Site redundancy mode. Possible
+ * values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'
+ *
+ * @param {array} [siteEnvelope.geoDistributions] GeoDistributions for this
+ * site
+ *
* @param {string} [siteEnvelope.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
@@ -11655,174 +12320,184 @@ export interface WebApps {
* More information on OpenID Connect:
* http://openid.net/specs/openid-connect-core-1_0.html
*
- * @param {string} [siteAuthSettings.issuer] The OpenID Connect Issuer URI that
- * represents the entity which issues access tokens for this application.
- * When using Azure Active Directory, this value is the URI of the directory
- * tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- * 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
- *
- * @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
- * considered an
- * allowed audience, regardless of this setting.
- *
- * @param {array} [siteAuthSettings.additionalLoginParams] Login parameters to
- * send to the OpenID Connect authorization endpoint when
- * a user logs in. Each parameter must be in the form "key=value".
- *
- * @param {string} [siteAuthSettings.googleClientId] The OpenID Connect Client
- * ID for the Google web application.
- * This setting is required for enabling Google Sign-In.
- * Google Sign-In documentation:
- * https://developers.google.com/identity/sign-in/web/
- *
- * @param {string} [siteAuthSettings.googleClientSecret] The client secret
- * associated with the Google web application.
- * This setting is required for enabling Google Sign-In.
- * Google Sign-In documentation:
- * https://developers.google.com/identity/sign-in/web/
- *
- * @param {array} [siteAuthSettings.googleOAuthScopes] The OAuth 2.0 scopes
- * that will be requested as part of Google Sign-In authentication.
- * This setting is optional. If not specified, "openid", "profile", and "email"
- * are used as default scopes.
- * Google Sign-In documentation:
- * https://developers.google.com/identity/sign-in/web/
- *
- * @param {string} [siteAuthSettings.facebookAppId] The App ID of the Facebook
- * app used for login.
- * This setting is required for enabling Facebook Login.
- * Facebook Login documentation:
- * https://developers.facebook.com/docs/facebook-login
- *
- * @param {string} [siteAuthSettings.facebookAppSecret] The App Secret of the
- * Facebook app used for Facebook Login.
- * This setting is required for enabling Facebook Login.
- * Facebook Login documentation:
- * https://developers.facebook.com/docs/facebook-login
- *
- * @param {array} [siteAuthSettings.facebookOAuthScopes] The OAuth 2.0 scopes
- * that will be requested as part of Facebook Login authentication.
- * This setting is optional.
- * Facebook Login documentation:
- * https://developers.facebook.com/docs/facebook-login
- *
- * @param {string} [siteAuthSettings.twitterConsumerKey] The OAuth 1.0a
- * consumer key of the Twitter application used for sign-in.
- * This setting is required for enabling Twitter Sign-In.
- * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in
- *
- * @param {string} [siteAuthSettings.twitterConsumerSecret] The OAuth 1.0a
- * consumer secret of the Twitter application used for sign-in.
- * This setting is required for enabling Twitter Sign-In.
- * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in
- *
- * @param {string} [siteAuthSettings.microsoftAccountClientId] The OAuth 2.0
- * client ID that was created for the app used for authentication.
- * This setting is required for enabling Microsoft Account authentication.
- * Microsoft Account OAuth documentation:
- * https://dev.onedrive.com/auth/msa_oauth.htm
- *
- * @param {string} [siteAuthSettings.microsoftAccountClientSecret] The OAuth
- * 2.0 client secret that was created for the app used for authentication.
- * This setting is required for enabling Microsoft Account authentication.
- * Microsoft Account OAuth documentation:
- * https://dev.onedrive.com/auth/msa_oauth.htm
- *
- * @param {array} [siteAuthSettings.microsoftAccountOAuthScopes] The OAuth 2.0
- * scopes that will be requested as part of Microsoft Account authentication.
- * This setting is optional. If not specified, "wl.basic" is used as the
- * default scope.
- * Microsoft Account Scopes and permissions documentation:
- * https://msdn.microsoft.com/en-us/library/dn631845.aspx
- *
- * @param {string} [siteAuthSettings.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.
- */
- updateAuthSettingsWithHttpOperationResponse(resourceGroupName: string, name: string, siteAuthSettings: models.SiteAuthSettings, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Updates the Authentication / Authorization settings associated with
- * web app.
- *
- * Updates the Authentication / Authorization settings associated with web app.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of web app.
- *
- * @param {object} siteAuthSettings Auth settings associated with web app.
- *
- * @param {boolean} [siteAuthSettings.enabled] true if the
- * Authentication / Authorization feature is enabled for the current app;
- * otherwise, false.
- *
- * @param {string} [siteAuthSettings.runtimeVersion] The RuntimeVersion of the
- * Authentication / Authorization feature in use for the current app.
- * The setting in this value can control the behavior of certain features in
- * the Authentication / Authorization module.
- *
- * @param {string} [siteAuthSettings.unauthenticatedClientAction] The action to
- * take when an unauthenticated client attempts to access the app. Possible
- * values include: 'RedirectToLoginPage', 'AllowAnonymous'
- *
- * @param {boolean} [siteAuthSettings.tokenStoreEnabled] true to
- * durably store platform-specific security tokens that are obtained during
- * login flows; otherwise, false.
- * The default is false.
- *
- * @param {array} [siteAuthSettings.allowedExternalRedirectUrls] External URLs
- * that can be redirected to as part of logging in or logging out of the app.
- * Note that the query string part of the URL is ignored.
- * This is an advanced setting typically only needed by Windows Store
- * application backends.
- * Note that URLs within the current domain are always implicitly allowed.
- *
- * @param {string} [siteAuthSettings.defaultProvider] The default
- * authentication provider to use when multiple providers are configured.
- * This setting is only needed if multiple providers are configured and the
- * unauthenticated client
- * action is set to "RedirectToLoginPage". Possible values include:
- * 'AzureActiveDirectory', 'Facebook', 'Google', 'MicrosoftAccount', 'Twitter'
- *
- * @param {number} [siteAuthSettings.tokenRefreshExtensionHours] The number of
- * hours after session token expiration that a session token can be used to
- * call the token refresh API. The default is 72 hours.
- *
- * @param {string} [siteAuthSettings.clientId] The Client ID of this relying
- * party application, known as the client_id.
- * This setting is required for enabling OpenID Connection authentication with
- * Azure Active Directory or
- * other 3rd party OpenID Connect providers.
- * More information on OpenID Connect:
- * http://openid.net/specs/openid-connect-core-1_0.html
- *
- * @param {string} [siteAuthSettings.clientSecret] The Client Secret of this
- * relying party application (in Azure Active Directory, this is also referred
- * to as the Key).
- * This setting is optional. If no client secret is configured, the OpenID
- * Connect implicit auth flow is used to authenticate end users.
- * Otherwise, the OpenID Connect Authorization Code Flow is used to
- * authenticate end users.
- * More information on OpenID Connect:
- * http://openid.net/specs/openid-connect-core-1_0.html
+ * @param {string} [siteAuthSettings.clientSecretCertificateThumbprint] An
+ * alternative to the client secret, that is the thumbprint of a certificate
+ * used for signing purposes. This property acts as
+ * a replacement for the Client Secret. It is also optional.
+ *
+ * @param {string} [siteAuthSettings.issuer] The OpenID Connect Issuer URI that
+ * represents the entity which issues access tokens for this application.
+ * When using Azure Active Directory, this value is the URI of the directory
+ * tenant, e.g. https://sts.windows.net/{tenant-guid}/.
+ * 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
+ *
+ * @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
+ * considered an
+ * allowed audience, regardless of this setting.
+ *
+ * @param {array} [siteAuthSettings.additionalLoginParams] Login parameters to
+ * send to the OpenID Connect authorization endpoint when
+ * a user logs in. Each parameter must be in the form "key=value".
+ *
+ * @param {string} [siteAuthSettings.googleClientId] The OpenID Connect Client
+ * ID for the Google web application.
+ * This setting is required for enabling Google Sign-In.
+ * Google Sign-In documentation:
+ * https://developers.google.com/identity/sign-in/web/
+ *
+ * @param {string} [siteAuthSettings.googleClientSecret] The client secret
+ * associated with the Google web application.
+ * This setting is required for enabling Google Sign-In.
+ * Google Sign-In documentation:
+ * https://developers.google.com/identity/sign-in/web/
+ *
+ * @param {array} [siteAuthSettings.googleOAuthScopes] The OAuth 2.0 scopes
+ * that will be requested as part of Google Sign-In authentication.
+ * This setting is optional. If not specified, "openid", "profile", and "email"
+ * are used as default scopes.
+ * Google Sign-In documentation:
+ * https://developers.google.com/identity/sign-in/web/
+ *
+ * @param {string} [siteAuthSettings.facebookAppId] The App ID of the Facebook
+ * app used for login.
+ * This setting is required for enabling Facebook Login.
+ * Facebook Login documentation:
+ * https://developers.facebook.com/docs/facebook-login
+ *
+ * @param {string} [siteAuthSettings.facebookAppSecret] The App Secret of the
+ * Facebook app used for Facebook Login.
+ * This setting is required for enabling Facebook Login.
+ * Facebook Login documentation:
+ * https://developers.facebook.com/docs/facebook-login
+ *
+ * @param {array} [siteAuthSettings.facebookOAuthScopes] The OAuth 2.0 scopes
+ * that will be requested as part of Facebook Login authentication.
+ * This setting is optional.
+ * Facebook Login documentation:
+ * https://developers.facebook.com/docs/facebook-login
+ *
+ * @param {string} [siteAuthSettings.twitterConsumerKey] The OAuth 1.0a
+ * consumer key of the Twitter application used for sign-in.
+ * This setting is required for enabling Twitter Sign-In.
+ * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in
+ *
+ * @param {string} [siteAuthSettings.twitterConsumerSecret] The OAuth 1.0a
+ * consumer secret of the Twitter application used for sign-in.
+ * This setting is required for enabling Twitter Sign-In.
+ * Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in
+ *
+ * @param {string} [siteAuthSettings.microsoftAccountClientId] The OAuth 2.0
+ * client ID that was created for the app used for authentication.
+ * This setting is required for enabling Microsoft Account authentication.
+ * Microsoft Account OAuth documentation:
+ * https://dev.onedrive.com/auth/msa_oauth.htm
+ *
+ * @param {string} [siteAuthSettings.microsoftAccountClientSecret] The OAuth
+ * 2.0 client secret that was created for the app used for authentication.
+ * This setting is required for enabling Microsoft Account authentication.
+ * Microsoft Account OAuth documentation:
+ * https://dev.onedrive.com/auth/msa_oauth.htm
+ *
+ * @param {array} [siteAuthSettings.microsoftAccountOAuthScopes] The OAuth 2.0
+ * scopes that will be requested as part of Microsoft Account authentication.
+ * This setting is optional. If not specified, "wl.basic" is used as the
+ * default scope.
+ * Microsoft Account Scopes and permissions documentation:
+ * https://msdn.microsoft.com/en-us/library/dn631845.aspx
+ *
+ * @param {string} [siteAuthSettings.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.
+ */
+ updateAuthSettingsWithHttpOperationResponse(resourceGroupName: string, name: string, siteAuthSettings: models.SiteAuthSettings, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
+
+ /**
+ * @summary Updates the Authentication / Authorization settings associated with
+ * web app.
+ *
+ * Updates the Authentication / Authorization settings associated with web app.
+ *
+ * @param {string} resourceGroupName Name of the resource group to which the
+ * resource belongs.
+ *
+ * @param {string} name Name of web app.
+ *
+ * @param {object} siteAuthSettings Auth settings associated with web app.
+ *
+ * @param {boolean} [siteAuthSettings.enabled] true if the
+ * Authentication / Authorization feature is enabled for the current app;
+ * otherwise, false.
+ *
+ * @param {string} [siteAuthSettings.runtimeVersion] The RuntimeVersion of the
+ * Authentication / Authorization feature in use for the current app.
+ * The setting in this value can control the behavior of certain features in
+ * the Authentication / Authorization module.
+ *
+ * @param {string} [siteAuthSettings.unauthenticatedClientAction] The action to
+ * take when an unauthenticated client attempts to access the app. Possible
+ * values include: 'RedirectToLoginPage', 'AllowAnonymous'
+ *
+ * @param {boolean} [siteAuthSettings.tokenStoreEnabled] true to
+ * durably store platform-specific security tokens that are obtained during
+ * login flows; otherwise, false.
+ * The default is false.
+ *
+ * @param {array} [siteAuthSettings.allowedExternalRedirectUrls] External URLs
+ * that can be redirected to as part of logging in or logging out of the app.
+ * Note that the query string part of the URL is ignored.
+ * This is an advanced setting typically only needed by Windows Store
+ * application backends.
+ * Note that URLs within the current domain are always implicitly allowed.
+ *
+ * @param {string} [siteAuthSettings.defaultProvider] The default
+ * authentication provider to use when multiple providers are configured.
+ * This setting is only needed if multiple providers are configured and the
+ * unauthenticated client
+ * action is set to "RedirectToLoginPage". Possible values include:
+ * 'AzureActiveDirectory', 'Facebook', 'Google', 'MicrosoftAccount', 'Twitter'
+ *
+ * @param {number} [siteAuthSettings.tokenRefreshExtensionHours] The number of
+ * hours after session token expiration that a session token can be used to
+ * call the token refresh API. The default is 72 hours.
+ *
+ * @param {string} [siteAuthSettings.clientId] The Client ID of this relying
+ * party application, known as the client_id.
+ * This setting is required for enabling OpenID Connection authentication with
+ * Azure Active Directory or
+ * other 3rd party OpenID Connect providers.
+ * More information on OpenID Connect:
+ * http://openid.net/specs/openid-connect-core-1_0.html
+ *
+ * @param {string} [siteAuthSettings.clientSecret] The Client Secret of this
+ * relying party application (in Azure Active Directory, this is also referred
+ * to as the Key).
+ * This setting is optional. If no client secret is configured, the OpenID
+ * Connect implicit auth flow is used to authenticate end users.
+ * Otherwise, the OpenID Connect Authorization Code Flow is used to
+ * authenticate end users.
+ * More information on OpenID Connect:
+ * http://openid.net/specs/openid-connect-core-1_0.html
+ *
+ * @param {string} [siteAuthSettings.clientSecretCertificateThumbprint] An
+ * alternative to the client secret, that is the thumbprint of a certificate
+ * used for signing purposes. This property acts as
+ * a replacement for the Client Secret. It is also optional.
*
* @param {string} [siteAuthSettings.issuer] The OpenID Connect Issuer URI that
* represents the entity which issues access tokens for this application.
@@ -13312,285 +13987,36 @@ export interface WebApps {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
- listSlotConfigurationNames(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- listSlotConfigurationNames(resourceGroupName: string, name: string, callback: ServiceCallback): void;
- listSlotConfigurationNames(resourceGroupName: string, name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
-
-
- /**
- * @summary Updates the names of application settings and connection string
- * that remain with the slot during swap operation.
- *
- * Updates the names of application settings and connection string that remain
- * with the slot during swap operation.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} slotConfigNames Names of application settings and connection
- * strings. See example.
- *
- * @param {array} [slotConfigNames.connectionStringNames] List of connection
- * string names.
- *
- * @param {array} [slotConfigNames.appSettingNames] List of application
- * settings names.
- *
- * @param {array} [slotConfigNames.azureStorageConfigNames] List of external
- * Azure storage account identifiers.
- *
- * @param {string} [slotConfigNames.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.
- */
- updateSlotConfigurationNamesWithHttpOperationResponse(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>;
-
- /**
- * @summary Updates the names of application settings and connection string
- * that remain with the slot during swap operation.
- *
- * Updates the names of application settings and connection string that remain
- * with the slot during swap operation.
- *
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
- *
- * @param {string} name Name of the app.
- *
- * @param {object} slotConfigNames Names of application settings and connection
- * strings. See example.
- *
- * @param {array} [slotConfigNames.connectionStringNames] List of connection
- * string names.
- *
- * @param {array} [slotConfigNames.appSettingNames] List of application
- * settings names.
- *
- * @param {array} [slotConfigNames.azureStorageConfigNames] List of external
- * Azure storage account identifiers.
- *
- * @param {string} [slotConfigNames.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 {SlotConfigNamesResource} - 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.
- *
- * {SlotConfigNamesResource} [result] - The deserialized result object if an error did not occur.
- * See {@link SlotConfigNamesResource} 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.
- */
- updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
- updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, callback: ServiceCallback): void;
- 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;
-
+ listSlotConfigurationNames(resourceGroupName: string, name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ listSlotConfigurationNames(resourceGroupName: string, name: string, callback: ServiceCallback): void;
+ listSlotConfigurationNames(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.
+ * @summary Updates the names of application settings and connection string
+ * that remain with the slot during swap operation.
*
- * 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.
+ * Updates the names of application settings and connection string that remain
+ * with the slot during swap operation.
*
* @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.
+ * @param {object} slotConfigNames Names of application settings and connection
+ * strings. See example.
*
- * {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).
+ * @param {array} [slotConfigNames.connectionStringNames] List of connection
+ * string names.
*
- * Deletes a Swift Virtual Network connection from an app (or deployment slot).
+ * @param {array} [slotConfigNames.appSettingNames] List of application
+ * settings names.
*
- * @param {string} resourceGroupName Name of the resource group to which the
- * resource belongs.
+ * @param {array} [slotConfigNames.azureStorageConfigNames] List of external
+ * Azure storage account identifiers.
*
- * @param {string} name Name of the app.
+ * @param {string} [slotConfigNames.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
*
@@ -13599,122 +14025,37 @@ 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.
*/
- 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;
-
+ updateSlotConfigurationNamesWithHttpOperationResponse(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, 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.
+ * @summary Updates the names of application settings and connection string
+ * that remain with the slot during swap operation.
*
- * 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.
+ * Updates the names of application settings and connection string that remain
+ * with the slot during swap operation.
*
* @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} slotConfigNames Names of application settings and connection
+ * strings. See example.
*
- * @param {object} connectionEnvelope Properties of the Virtual Network
- * connection. See example.
+ * @param {array} [slotConfigNames.connectionStringNames] List of connection
+ * string names.
*
- * @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 {array} [slotConfigNames.appSettingNames] List of application
+ * settings names.
*
- * @param {boolean} [connectionEnvelope.swiftSupported] A flag that specifies
- * if the scale unit this Web App is on supports Swift integration.
+ * @param {array} [slotConfigNames.azureStorageConfigNames] List of external
+ * Azure storage account identifiers.
*
- * @param {string} [connectionEnvelope.kind] Kind of resource.
+ * @param {string} [slotConfigNames.kind] Kind of resource.
*
* @param {object} [options] Optional Parameters.
*
@@ -13728,7 +14069,7 @@ export interface WebApps {
*
* {Promise} A promise is returned.
*
- * @resolve {SwiftVirtualNetwork} - The deserialized result object.
+ * @resolve {SlotConfigNamesResource} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
@@ -13736,16 +14077,17 @@ export interface WebApps {
*
* {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.
+ * {SlotConfigNamesResource} [result] - The deserialized result object if an error did not occur.
+ * See {@link SlotConfigNamesResource} 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;
+ updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise;
+ updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, callback: ServiceCallback): void;
+ updateSlotConfigurationNames(resourceGroupName: string, name: string, slotConfigNames: models.SlotConfigNamesResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void;
/**
@@ -13912,7 +14254,7 @@ export interface WebApps {
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
*
- * @param {object} [siteConfig.experiments] This is work around for polymophic
+ * @param {object} [siteConfig.experiments] This is work around for polymorphic
* types.
*
* @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
@@ -13994,6 +14336,11 @@ export interface WebApps {
* origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
@@ -14033,7 +14380,14 @@ export interface WebApps {
* @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
*
- * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
+ * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ *
+ * @param {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ *
+ * @param {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
@@ -14159,7 +14513,7 @@ export interface WebApps {
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
*
- * @param {object} [siteConfig.experiments] This is work around for polymophic
+ * @param {object} [siteConfig.experiments] This is work around for polymorphic
* types.
*
* @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
@@ -14241,6 +14595,11 @@ export interface WebApps {
* origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
@@ -14280,7 +14639,14 @@ export interface WebApps {
* @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
*
- * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
+ * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ *
+ * @param {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ *
+ * @param {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
@@ -14425,7 +14791,7 @@ export interface WebApps {
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
*
- * @param {object} [siteConfig.experiments] This is work around for polymophic
+ * @param {object} [siteConfig.experiments] This is work around for polymorphic
* types.
*
* @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
@@ -14507,6 +14873,11 @@ export interface WebApps {
* origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
@@ -14546,7 +14917,14 @@ export interface WebApps {
* @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
*
- * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
+ * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ *
+ * @param {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ *
+ * @param {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
@@ -14672,7 +15050,7 @@ export interface WebApps {
* values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime',
* 'WeightedTotalTraffic', 'RequestHash'
*
- * @param {object} [siteConfig.experiments] This is work around for polymophic
+ * @param {object} [siteConfig.experiments] This is work around for polymorphic
* types.
*
* @param {array} [siteConfig.experiments.rampUpRules] List of ramp-up rules.
@@ -14754,6 +15132,11 @@ export interface WebApps {
* origins that should be allowed to make cross-origin
* calls (for example: http://example.com:12345). Use "*" to allow all.
*
+ * @param {boolean} [siteConfig.cors.supportCredentials] Gets or sets whether
+ * CORS requests with credentials are allowed. See
+ * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
+ * for more details.
+ *
* @param {object} [siteConfig.push] Push endpoint settings.
*
* @param {boolean} siteConfig.push.isPushEnabled Gets or sets a flag
@@ -14793,7 +15176,14 @@ export interface WebApps {
* @param {number} [siteConfig.xManagedServiceIdentityId] Explicit Managed
* Service Identity Id
*
- * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions.
+ * @param {array} [siteConfig.ipSecurityRestrictions] IP security restrictions
+ * for main.
+ *
+ * @param {array} [siteConfig.scmIpSecurityRestrictions] IP security
+ * restrictions for scm.
+ *
+ * @param {boolean} [siteConfig.scmIpSecurityRestrictionsUseMain] IP security
+ * restrictions for scm to use main.
*
* @param {boolean} [siteConfig.http20Enabled] Http20Enabled: configures a web
* site to allow clients to connect over http2.0
@@ -19996,6 +20386,339 @@ export interface WebApps {
getMigrateMySqlStatus(resourceGroupName: string, name: string, 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 all network features used by the app (or deployment slot, if
* specified).
@@ -20092,11 +20815,11 @@ export interface WebApps {
*
* @returns {Promise} A promise is returned
*
- * @resolve {HttpOperationResponse