diff --git a/src/transforms/urlTransforms.ts b/src/transforms/urlTransforms.ts index e0558ca007..c742ee2625 100644 --- a/src/transforms/urlTransforms.ts +++ b/src/transforms/urlTransforms.ts @@ -13,8 +13,8 @@ export async function transformBaseUrl( let isCustom = false; const $host = (codeModel.globalParameters || []).find(p => { - const { serializedName } = getLanguageMetadata(p.language); - serializedName === "$host"; + const { name } = getLanguageMetadata(p.language); + return name === "$host" && Boolean(p.clientDefaultValue); }); if (!$host) { diff --git a/test/integration/generated/additionalProperties/src/additionalPropertiesClientContext.ts b/test/integration/generated/additionalProperties/src/additionalPropertiesClientContext.ts index 3a39efd75c..e603a23293 100644 --- a/test/integration/generated/additionalProperties/src/additionalPropertiesClientContext.ts +++ b/test/integration/generated/additionalProperties/src/additionalPropertiesClientContext.ts @@ -34,7 +34,7 @@ export class AdditionalPropertiesClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClientContext.ts b/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClientContext.ts index 14f9be4fd8..1262811ed5 100644 --- a/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClientContext.ts +++ b/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClientContext.ts @@ -34,7 +34,7 @@ export class AzureParameterGroupingClientContext extends coreHttp.ServiceClient this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/azureReport/src/reportClientContext.ts b/test/integration/generated/azureReport/src/reportClientContext.ts index 129097f65a..7b8ba18983 100644 --- a/test/integration/generated/azureReport/src/reportClientContext.ts +++ b/test/integration/generated/azureReport/src/reportClientContext.ts @@ -34,7 +34,7 @@ export class ReportClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClientContext.ts b/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClientContext.ts index ea1a55c038..38bbca0075 100644 --- a/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClientContext.ts +++ b/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClientContext.ts @@ -50,7 +50,7 @@ export class AzureSpecialPropertiesClientContext extends coreHttp.ServiceClient this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/integration/generated/bodyArray/src/bodyArrayClientContext.ts b/test/integration/generated/bodyArray/src/bodyArrayClientContext.ts index 4d5e455dbf..3d05f5cf13 100644 --- a/test/integration/generated/bodyArray/src/bodyArrayClientContext.ts +++ b/test/integration/generated/bodyArray/src/bodyArrayClientContext.ts @@ -34,7 +34,7 @@ export class BodyArrayClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyBoolean/src/bodyBooleanClientContext.ts b/test/integration/generated/bodyBoolean/src/bodyBooleanClientContext.ts index 823ae72fbc..f581f33194 100644 --- a/test/integration/generated/bodyBoolean/src/bodyBooleanClientContext.ts +++ b/test/integration/generated/bodyBoolean/src/bodyBooleanClientContext.ts @@ -34,7 +34,7 @@ export class BodyBooleanClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClientContext.ts b/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClientContext.ts index 49258592ba..24d465c5f4 100644 --- a/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClientContext.ts +++ b/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClientContext.ts @@ -34,7 +34,7 @@ export class BodyBooleanQuirksClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyByte/src/bodyByteClientContext.ts b/test/integration/generated/bodyByte/src/bodyByteClientContext.ts index e13ab67769..80f1058b08 100644 --- a/test/integration/generated/bodyByte/src/bodyByteClientContext.ts +++ b/test/integration/generated/bodyByte/src/bodyByteClientContext.ts @@ -34,7 +34,7 @@ export class BodyByteClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyComplex/src/bodyComplexClientContext.ts b/test/integration/generated/bodyComplex/src/bodyComplexClientContext.ts index 15a36b1ebb..0190c15acb 100644 --- a/test/integration/generated/bodyComplex/src/bodyComplexClientContext.ts +++ b/test/integration/generated/bodyComplex/src/bodyComplexClientContext.ts @@ -35,7 +35,7 @@ export class BodyComplexClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyDate/src/bodyDateClientContext.ts b/test/integration/generated/bodyDate/src/bodyDateClientContext.ts index b4ac12d30b..959e53a77b 100644 --- a/test/integration/generated/bodyDate/src/bodyDateClientContext.ts +++ b/test/integration/generated/bodyDate/src/bodyDateClientContext.ts @@ -34,7 +34,7 @@ export class BodyDateClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyDateTime/src/bodyDateTimeClientContext.ts b/test/integration/generated/bodyDateTime/src/bodyDateTimeClientContext.ts index 0cb0c83f31..1e4e8f4f71 100644 --- a/test/integration/generated/bodyDateTime/src/bodyDateTimeClientContext.ts +++ b/test/integration/generated/bodyDateTime/src/bodyDateTimeClientContext.ts @@ -34,7 +34,7 @@ export class BodyDateTimeClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123ClientContext.ts b/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123ClientContext.ts index 7f648bf7e5..6b2829b652 100644 --- a/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123ClientContext.ts +++ b/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123ClientContext.ts @@ -34,7 +34,7 @@ export class BodyDateTimeRfc1123ClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyDictionary/src/bodyDictionaryClientContext.ts b/test/integration/generated/bodyDictionary/src/bodyDictionaryClientContext.ts index 89c9d7f9f1..aad411e90b 100644 --- a/test/integration/generated/bodyDictionary/src/bodyDictionaryClientContext.ts +++ b/test/integration/generated/bodyDictionary/src/bodyDictionaryClientContext.ts @@ -34,7 +34,7 @@ export class BodyDictionaryClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyDuration/src/bodyDurationClientContext.ts b/test/integration/generated/bodyDuration/src/bodyDurationClientContext.ts index 6d7af2d3b7..89e126e104 100644 --- a/test/integration/generated/bodyDuration/src/bodyDurationClientContext.ts +++ b/test/integration/generated/bodyDuration/src/bodyDurationClientContext.ts @@ -34,7 +34,7 @@ export class BodyDurationClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyFile/src/bodyFileClientContext.ts b/test/integration/generated/bodyFile/src/bodyFileClientContext.ts index 862e5be2f8..613d21a7c8 100644 --- a/test/integration/generated/bodyFile/src/bodyFileClientContext.ts +++ b/test/integration/generated/bodyFile/src/bodyFileClientContext.ts @@ -34,7 +34,7 @@ export class BodyFileClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyInteger/src/bodyIntegerClientContext.ts b/test/integration/generated/bodyInteger/src/bodyIntegerClientContext.ts index d2b2b3ef4f..09a1041702 100644 --- a/test/integration/generated/bodyInteger/src/bodyIntegerClientContext.ts +++ b/test/integration/generated/bodyInteger/src/bodyIntegerClientContext.ts @@ -34,7 +34,7 @@ export class BodyIntegerClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyNumber/src/bodyNumberClientContext.ts b/test/integration/generated/bodyNumber/src/bodyNumberClientContext.ts index 15c2218913..35f865f6d9 100644 --- a/test/integration/generated/bodyNumber/src/bodyNumberClientContext.ts +++ b/test/integration/generated/bodyNumber/src/bodyNumberClientContext.ts @@ -34,7 +34,7 @@ export class BodyNumberClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyString/src/bodyStringClientContext.ts b/test/integration/generated/bodyString/src/bodyStringClientContext.ts index 85e970596e..291cb217de 100644 --- a/test/integration/generated/bodyString/src/bodyStringClientContext.ts +++ b/test/integration/generated/bodyString/src/bodyStringClientContext.ts @@ -34,7 +34,7 @@ export class BodyStringClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/bodyTime/src/bodyTimeClientContext.ts b/test/integration/generated/bodyTime/src/bodyTimeClientContext.ts index d25131071e..e6a326e56d 100644 --- a/test/integration/generated/bodyTime/src/bodyTimeClientContext.ts +++ b/test/integration/generated/bodyTime/src/bodyTimeClientContext.ts @@ -34,7 +34,7 @@ export class BodyTimeClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/header/src/headerClientContext.ts b/test/integration/generated/header/src/headerClientContext.ts index a05209d995..5a02455a21 100644 --- a/test/integration/generated/header/src/headerClientContext.ts +++ b/test/integration/generated/header/src/headerClientContext.ts @@ -34,7 +34,7 @@ export class HeaderClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/httpInfrastructure/src/httpInfrastructureClientContext.ts b/test/integration/generated/httpInfrastructure/src/httpInfrastructureClientContext.ts index b43d1ea9d0..68dd64ea15 100644 --- a/test/integration/generated/httpInfrastructure/src/httpInfrastructureClientContext.ts +++ b/test/integration/generated/httpInfrastructure/src/httpInfrastructureClientContext.ts @@ -34,7 +34,7 @@ export class HttpInfrastructureClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/lro/src/lROClientContext.ts b/test/integration/generated/lro/src/lROClientContext.ts index 13aaf8de82..ddea19c6cd 100644 --- a/test/integration/generated/lro/src/lROClientContext.ts +++ b/test/integration/generated/lro/src/lROClientContext.ts @@ -43,7 +43,7 @@ export class LROClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/mediaTypes/src/mediaTypesClientContext.ts b/test/integration/generated/mediaTypes/src/mediaTypesClientContext.ts index 1e730be589..8ef6d40bb8 100644 --- a/test/integration/generated/mediaTypes/src/mediaTypesClientContext.ts +++ b/test/integration/generated/mediaTypes/src/mediaTypesClientContext.ts @@ -34,7 +34,7 @@ export class MediaTypesClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/modelFlattening/src/modelFlatteningClientContext.ts b/test/integration/generated/modelFlattening/src/modelFlatteningClientContext.ts index 73b3f8e7d8..2404d83b98 100644 --- a/test/integration/generated/modelFlattening/src/modelFlatteningClientContext.ts +++ b/test/integration/generated/modelFlattening/src/modelFlatteningClientContext.ts @@ -34,7 +34,7 @@ export class ModelFlatteningClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/multipleInheritance/src/multipleInheritanceClientContext.ts b/test/integration/generated/multipleInheritance/src/multipleInheritanceClientContext.ts index 5bc5a07370..5f971ee695 100644 --- a/test/integration/generated/multipleInheritance/src/multipleInheritanceClientContext.ts +++ b/test/integration/generated/multipleInheritance/src/multipleInheritanceClientContext.ts @@ -34,7 +34,7 @@ export class MultipleInheritanceClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/paging/src/pagingClientContext.ts b/test/integration/generated/paging/src/pagingClientContext.ts index 08953be872..e9c8feccdf 100644 --- a/test/integration/generated/paging/src/pagingClientContext.ts +++ b/test/integration/generated/paging/src/pagingClientContext.ts @@ -43,7 +43,7 @@ export class PagingClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/report/src/reportClientContext.ts b/test/integration/generated/report/src/reportClientContext.ts index d8fe0ae738..e035d44166 100644 --- a/test/integration/generated/report/src/reportClientContext.ts +++ b/test/integration/generated/report/src/reportClientContext.ts @@ -34,7 +34,7 @@ export class ReportClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/integration/generated/url/src/urlClientContext.ts b/test/integration/generated/url/src/urlClientContext.ts index a4bcbea40f..dbfee1ee9d 100644 --- a/test/integration/generated/url/src/urlClientContext.ts +++ b/test/integration/generated/url/src/urlClientContext.ts @@ -41,7 +41,7 @@ export class UrlClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Parameter assignments this.globalStringPath = globalStringPath; diff --git a/test/integration/generated/xmlservice/src/xmlServiceClientContext.ts b/test/integration/generated/xmlservice/src/xmlServiceClientContext.ts index dc30e80035..7e0900adf2 100644 --- a/test/integration/generated/xmlservice/src/xmlServiceClientContext.ts +++ b/test/integration/generated/xmlservice/src/xmlServiceClientContext.ts @@ -34,7 +34,7 @@ export class XmlServiceClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "http://localhost:3000"; // Assigning values to Constant parameters this.$host = options.$host || "http://localhost:3000"; diff --git a/test/smoke/generated/adhybridhealthservice-resource-manager/src/aDHybridHealthServiceContext.ts b/test/smoke/generated/adhybridhealthservice-resource-manager/src/aDHybridHealthServiceContext.ts index 99aacaaf34..a24188f7ad 100644 --- a/test/smoke/generated/adhybridhealthservice-resource-manager/src/aDHybridHealthServiceContext.ts +++ b/test/smoke/generated/adhybridhealthservice-resource-manager/src/aDHybridHealthServiceContext.ts @@ -43,7 +43,7 @@ export class ADHybridHealthServiceContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; diff --git a/test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClientContext.ts b/test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClientContext.ts index 11042eb96f..2036144ed6 100644 --- a/test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClientContext.ts +++ b/test/smoke/generated/arm-package-deploymentscripts-2019-10-preview/src/deploymentScriptsClientContext.ts @@ -58,7 +58,7 @@ export class DeploymentScriptsClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-features-2015-12/src/featureClientContext.ts b/test/smoke/generated/arm-package-features-2015-12/src/featureClientContext.ts index 06fe8154e4..f92f4233ea 100644 --- a/test/smoke/generated/arm-package-features-2015-12/src/featureClientContext.ts +++ b/test/smoke/generated/arm-package-features-2015-12/src/featureClientContext.ts @@ -49,7 +49,7 @@ export class FeatureClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-links-2016-09/src/managementLinkClientContext.ts b/test/smoke/generated/arm-package-links-2016-09/src/managementLinkClientContext.ts index 51d3565019..86a12e9682 100644 --- a/test/smoke/generated/arm-package-links-2016-09/src/managementLinkClientContext.ts +++ b/test/smoke/generated/arm-package-links-2016-09/src/managementLinkClientContext.ts @@ -49,7 +49,7 @@ export class ManagementLinkClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-locks-2016-09/src/managementLockClientContext.ts b/test/smoke/generated/arm-package-locks-2016-09/src/managementLockClientContext.ts index 5c31cb09c7..c5febfdbaf 100644 --- a/test/smoke/generated/arm-package-locks-2016-09/src/managementLockClientContext.ts +++ b/test/smoke/generated/arm-package-locks-2016-09/src/managementLockClientContext.ts @@ -49,7 +49,7 @@ export class ManagementLockClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-managedapplications-2018-06/src/applicationClientContext.ts b/test/smoke/generated/arm-package-managedapplications-2018-06/src/applicationClientContext.ts index c9d536dd94..e2484bfd9f 100644 --- a/test/smoke/generated/arm-package-managedapplications-2018-06/src/applicationClientContext.ts +++ b/test/smoke/generated/arm-package-managedapplications-2018-06/src/applicationClientContext.ts @@ -58,7 +58,7 @@ export class ApplicationClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-policy-2019-09/src/policyClientContext.ts b/test/smoke/generated/arm-package-policy-2019-09/src/policyClientContext.ts index 61e1374943..f7ba177b5d 100644 --- a/test/smoke/generated/arm-package-policy-2019-09/src/policyClientContext.ts +++ b/test/smoke/generated/arm-package-policy-2019-09/src/policyClientContext.ts @@ -49,7 +49,7 @@ export class PolicyClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-resources-2019-08/src/resourceManagementClientContext.ts b/test/smoke/generated/arm-package-resources-2019-08/src/resourceManagementClientContext.ts index 3ceb4ef822..42a4b8bfed 100644 --- a/test/smoke/generated/arm-package-resources-2019-08/src/resourceManagementClientContext.ts +++ b/test/smoke/generated/arm-package-resources-2019-08/src/resourceManagementClientContext.ts @@ -58,7 +58,7 @@ export class ResourceManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/arm-package-subscriptions-2019-06/src/subscriptionClientContext.ts b/test/smoke/generated/arm-package-subscriptions-2019-06/src/subscriptionClientContext.ts index 91b4504f66..371f2303b7 100644 --- a/test/smoke/generated/arm-package-subscriptions-2019-06/src/subscriptionClientContext.ts +++ b/test/smoke/generated/arm-package-subscriptions-2019-06/src/subscriptionClientContext.ts @@ -43,7 +43,7 @@ export class SubscriptionClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; diff --git a/test/smoke/generated/compute-resource-manager/src/computeManagementClientContext.ts b/test/smoke/generated/compute-resource-manager/src/computeManagementClientContext.ts index fad4fb62ff..12669577f8 100644 --- a/test/smoke/generated/compute-resource-manager/src/computeManagementClientContext.ts +++ b/test/smoke/generated/compute-resource-manager/src/computeManagementClientContext.ts @@ -58,7 +58,7 @@ export class ComputeManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/cosmos-db-resource-manager/src/cosmosDBManagementClientContext.ts b/test/smoke/generated/cosmos-db-resource-manager/src/cosmosDBManagementClientContext.ts index 1c2d849f3e..8f419c63a5 100644 --- a/test/smoke/generated/cosmos-db-resource-manager/src/cosmosDBManagementClientContext.ts +++ b/test/smoke/generated/cosmos-db-resource-manager/src/cosmosDBManagementClientContext.ts @@ -57,7 +57,7 @@ export class CosmosDBManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/graphrbac-data-plane/src/graphRbacManagementClientContext.ts b/test/smoke/generated/graphrbac-data-plane/src/graphRbacManagementClientContext.ts index 70cf3237a5..edefc8450e 100644 --- a/test/smoke/generated/graphrbac-data-plane/src/graphRbacManagementClientContext.ts +++ b/test/smoke/generated/graphrbac-data-plane/src/graphRbacManagementClientContext.ts @@ -49,7 +49,7 @@ export class GraphRbacManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://graph.windows.net"; // Parameter assignments this.tenantID = tenantID; diff --git a/test/smoke/generated/keyvault-resource-manager/src/keyVaultManagementClientContext.ts b/test/smoke/generated/keyvault-resource-manager/src/keyVaultManagementClientContext.ts index 29a3bd6308..acb6f9c753 100644 --- a/test/smoke/generated/keyvault-resource-manager/src/keyVaultManagementClientContext.ts +++ b/test/smoke/generated/keyvault-resource-manager/src/keyVaultManagementClientContext.ts @@ -59,7 +59,7 @@ export class KeyVaultManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/monitor-data-plane/src/monitorClientContext.ts b/test/smoke/generated/monitor-data-plane/src/monitorClientContext.ts index 83f4139659..1797b3c723 100644 --- a/test/smoke/generated/monitor-data-plane/src/monitorClientContext.ts +++ b/test/smoke/generated/monitor-data-plane/src/monitorClientContext.ts @@ -42,7 +42,7 @@ export class MonitorClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://monitoring.azure.com"; // Assigning values to Constant parameters this.$host = options.$host || "https://monitoring.azure.com"; diff --git a/test/smoke/generated/msi-resource-manager/src/managedServiceIdentityClientContext.ts b/test/smoke/generated/msi-resource-manager/src/managedServiceIdentityClientContext.ts index 848dac87ec..16cd96a525 100644 --- a/test/smoke/generated/msi-resource-manager/src/managedServiceIdentityClientContext.ts +++ b/test/smoke/generated/msi-resource-manager/src/managedServiceIdentityClientContext.ts @@ -49,7 +49,7 @@ export class ManagedServiceIdentityClientContext extends coreHttp.ServiceClient this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/network-resource-manager/src/networkManagementClientContext.ts b/test/smoke/generated/network-resource-manager/src/networkManagementClientContext.ts index 7626e2fb3e..9493044742 100644 --- a/test/smoke/generated/network-resource-manager/src/networkManagementClientContext.ts +++ b/test/smoke/generated/network-resource-manager/src/networkManagementClientContext.ts @@ -58,7 +58,7 @@ export class NetworkManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/sql-resource-manager/src/sqlManagementClientContext.ts b/test/smoke/generated/sql-resource-manager/src/sqlManagementClientContext.ts index 55badc2d25..8d12b085f0 100644 --- a/test/smoke/generated/sql-resource-manager/src/sqlManagementClientContext.ts +++ b/test/smoke/generated/sql-resource-manager/src/sqlManagementClientContext.ts @@ -57,7 +57,7 @@ export class SqlManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/storage-resource-manager/src/storageManagementClientContext.ts b/test/smoke/generated/storage-resource-manager/src/storageManagementClientContext.ts index aa12dc19e8..055b692113 100644 --- a/test/smoke/generated/storage-resource-manager/src/storageManagementClientContext.ts +++ b/test/smoke/generated/storage-resource-manager/src/storageManagementClientContext.ts @@ -58,7 +58,7 @@ export class StorageManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/test/smoke/generated/web-resource-manager/src/webSiteManagementClientContext.ts b/test/smoke/generated/web-resource-manager/src/webSiteManagementClientContext.ts index 8242debfc1..8927fcd6cb 100644 --- a/test/smoke/generated/web-resource-manager/src/webSiteManagementClientContext.ts +++ b/test/smoke/generated/web-resource-manager/src/webSiteManagementClientContext.ts @@ -59,7 +59,7 @@ export class WebSiteManagementClientContext extends coreHttp.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{$host}"; + this.baseUri = options.endpoint || "https://management.azure.com"; // Parameter assignments this.subscriptionId = subscriptionId;