@azure/arm-frontdoor 5.3.1 → 5.3.2-alpha.20250925.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 5.3.1 (Unreleased)
3
+ ## 5.3.2 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### Other Changes
12
12
 
13
+ ## 5.3.1 (2025-08-22)
14
+
15
+ ### Other Changes
16
+
17
+ - Other fixes
18
+
13
19
  ## 5.3.0 (2024-04-15)
14
20
 
15
21
  ### Features Added
@@ -30,7 +30,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
30
30
  requestContentType: "application/json; charset=utf-8",
31
31
  credential: credentials,
32
32
  };
33
- const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;
33
+ const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;
34
34
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
35
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
36
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAA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iB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
1
+ {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAAc,CAAU;IAkBxB,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,G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,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
@@ -34,7 +34,7 @@ class FrontDoorManagementClient extends coreClient.ServiceClient {
34
34
  requestContentType: "application/json; charset=utf-8",
35
35
  credential: credentials,
36
36
  };
37
- const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;
37
+ const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;
38
38
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
39
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
40
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":";AA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C;YAC5C,IAAI,wDAA6C,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,IAAI,gCAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,2BAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,GAAG,IAAI,wCAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,qCAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,sBAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB;AA/HD,8DA+HC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
1
+ {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAE9D,oDAa+B;AAiB/B,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAAc,CAAU;IAkBxB,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8BAA8B,CAAC;QACtD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,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AyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB;AA/HD,8DA+HC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.10"
8
+ "packageVersion": "7.52.13"
9
9
  }
10
10
  ]
11
11
  }
@@ -30,7 +30,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
30
30
  requestContentType: "application/json; charset=utf-8",
31
31
  credential: credentials,
32
32
  };
33
- const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;
33
+ const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;
34
34
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
35
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
36
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":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License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
1
+ {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAAc,CAAU;IAkBxB,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAA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C,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
@@ -30,7 +30,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
30
30
  requestContentType: "application/json; charset=utf-8",
31
31
  credential: credentials,
32
32
  };
33
- const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;
33
+ const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;
34
34
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
35
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
36
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,6BAA6B,EAC7B,6CAA6C,EAC7C,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,EACf,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,cAAc,CAAU;IAkBxB,YACE,WAAqC,EACrC,uBAA0E,EAC1E,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC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AI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
1
+ {"version":3,"file":"frontDoorManagementClient.js","sourceRoot":"","sources":["../../src/frontDoorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OA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AAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,yCAAyC;YAC5C,IAAI,6CAA6C,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,sBAAsB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,CAAW;IACnB,eAAe,CAAkB;IACjC,yBAAyB,CAA4B;IACrD,yCAAyC,CAA4C;IACrF,UAAU,CAAa;IACvB,iBAAiB,CAAoB;IACrC,SAAS,CAAY;IACrB,YAAY,CAAe;IAC3B,yBAAyB,CAA4B;IACrD,sBAAsB,CAAyB;IAC/C,WAAW,CAAc;IACzB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PoliciesImpl,\n ManagedRuleSetsImpl,\n FrontDoorNameAvailabilityImpl,\n FrontDoorNameAvailabilityWithSubscriptionImpl,\n FrontDoorsImpl,\n FrontendEndpointsImpl,\n EndpointsImpl,\n RulesEnginesImpl,\n NetworkExperimentProfilesImpl,\n PreconfiguredEndpointsImpl,\n ExperimentsImpl,\n ReportsImpl,\n} from \"./operations/index.js\";\nimport {\n Policies,\n ManagedRuleSets,\n FrontDoorNameAvailability,\n FrontDoorNameAvailabilityWithSubscription,\n FrontDoors,\n FrontendEndpoints,\n Endpoints,\n RulesEngines,\n NetworkExperimentProfiles,\n PreconfiguredEndpoints,\n Experiments,\n Reports,\n} from \"./operationsInterfaces/index.js\";\nimport { FrontDoorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class FrontDoorManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the FrontDoorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: FrontDoorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,\n options?: FrontDoorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FrontDoorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-frontdoor/5.3.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);\n this.frontDoorNameAvailabilityWithSubscription =\n new FrontDoorNameAvailabilityWithSubscriptionImpl(this);\n this.frontDoors = new FrontDoorsImpl(this);\n this.frontendEndpoints = new FrontendEndpointsImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.rulesEngines = new RulesEnginesImpl(this);\n this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);\n this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);\n this.experiments = new ExperimentsImpl(this);\n this.reports = new ReportsImpl(this);\n }\n\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n frontDoorNameAvailability: FrontDoorNameAvailability;\n frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;\n frontDoors: FrontDoors;\n frontendEndpoints: FrontendEndpoints;\n endpoints: Endpoints;\n rulesEngines: RulesEngines;\n networkExperimentProfiles: NetworkExperimentProfiles;\n preconfiguredEndpoints: PreconfiguredEndpoints;\n experiments: Experiments;\n reports: Reports;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for FrontDoorManagementClient.",
6
- "version": "5.3.1",
6
+ "version": "5.3.2-alpha.20250925.2",
7
7
  "engines": {
8
8
  "node": ">=20.0.0"
9
9
  },
@@ -38,10 +38,10 @@
38
38
  "playwright": "^1.50.1",
39
39
  "typescript": "~5.8.3",
40
40
  "vitest": "^3.2.3",
41
- "@azure-tools/test-recorder": "^4.1.0",
41
+ "@azure-tools/test-utils-vitest": "^2.0.1",
42
+ "@azure-tools/test-recorder": "^4.1.1",
42
43
  "@azure/dev-tool": "^1.0.0",
43
- "@azure-tools/test-credential": "^2.1.1",
44
- "@azure-tools/test-utils-vitest": "^1.0.0"
44
+ "@azure-tools/test-credential": "^2.1.2"
45
45
  },
46
46
  "repository": "github:Azure/azure-sdk-for-js",
47
47
  "bugs": {
@@ -115,7 +115,7 @@
115
115
  },
116
116
  "scripts": {
117
117
  "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
118
- "build:samples": "echo skipped.",
118
+ "build:samples": "tsc -p tsconfig.samples.json",
119
119
  "check-format": "echo skipped",
120
120
  "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
121
121
  "execute:samples": "echo skipped",
@@ -125,8 +125,7 @@
125
125
  "pack": "pnpm pack 2>&1",
126
126
  "test": "npm run test:node && npm run test:browser",
127
127
  "test:browser": "echo skipped",
128
- "test:node": "dev-tool run test:vitest",
129
- "test:node:esm": "dev-tool run test:vitest --esm",
128
+ "test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest",
130
129
  "update-snippets": "dev-tool run update-snippets"
131
130
  }
132
131
  }