@azure/arm-cdn 9.1.1 → 9.1.2-alpha.20251007.1

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
- ## 9.1.1 (Unreleased)
3
+ ## 9.1.2 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### Other Changes
12
12
 
13
+ ## 9.1.1 (2025-08-22)
14
+
15
+ ### Other Changes
16
+
17
+ - Other fixes
18
+
13
19
  ## 9.1.0 (2024-04-08)
14
20
 
15
21
  ### Features Added
@@ -33,7 +33,7 @@ export class CdnManagementClient extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-cdn/9.1.1`;
36
+ const packageDetails = `azsdk-js-arm-cdn/9.1.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,cAAc,EACd,aAAa,EACb,YAAY,EACZ,mBAAmB,GACpB,MAAM,uBAAuB,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gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,cAAc,EACd,aAAa,EACb,YAAY,EACZ,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAgB/C,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,cAAc,CAAU;IACxB,UAAU,CAAS;IAiBnB,YACE,WAAqC,EACrC,uBAAoE,EACpE,OAA2C;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC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AAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -37,7 +37,7 @@ class CdnManagementClient extends coreClient.ServiceClient {
37
37
  requestContentType: "application/json; charset=utf-8",
38
38
  credential: credentials,
39
39
  };
40
- const packageDetails = `azsdk-js-arm-cdn/9.1.1`;
40
+ const packageDetails = `azsdk-js-arm-cdn/9.1.2`;
41
41
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
42
42
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
43
43
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAsB+B;AAwB/B,2EAAqD;AACrD,qEAA+C;AAgB/C,MAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,cAAc,CAAU;IACxB,UAAU,CAAS;IAiBnB,YACE,WAAqC,EACrC,uBAAoE,EACpE,OAA2C;QAE3C,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,GAAsC;YAClD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,wBAAwB,CAAC;QAChD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gB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,UAAU;CACX,CAAC;AACF,MAAM,kDAAkD,GACtD;IACE,IAAI,EAAE,+EAA+E;IACrF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,0BAA0B;IAClD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAsB+B;AAwB/B,2EAAqD;AACrD,qEAA+C;AAgB/C,MAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,cAAc,CAAU;IACxB,UAAU,CAAS;IAiBnB,YACE,WAAqC,EACrC,uBAAoE,EACpE,OAA2C;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI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kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\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.53.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -33,7 +33,7 @@ export class CdnManagementClient extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-cdn/9.1.1`;
36
+ const packageDetails = `azsdk-js-arm-cdn/9.1.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,cAAc,EACd,aAAa,EACb,YAAY,EACZ,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAgB/C,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,cAAc,CAAU;IACxB,UAAU,CAAS;IAiBnB,YACE,WAAqC,EACrC,uBAAoE,EACpE,OAA2C;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE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E;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,EAC3B,cAAc,EACd,aAAa,EACb,YAAY,EACZ,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAwB/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAgB/C,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,cAAc,CAAU;IACxB,UAAU,CAAS;IAiBnB,YACE,WAAqC,EACrC,uBAAoE,EACpE,OAA2C;QAE3C,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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\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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -33,7 +33,7 @@ export class CdnManagementClient extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials,
35
35
  };
36
- const packageDetails = `azsdk-js-arm-cdn/9.1.1`;
36
+ const packageDetails = `azsdk-js-arm-cdn/9.1.2`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -1 +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B,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kDAAkD,GACtD;IACE,IAAI,EAAE,+EAA+E;IACrF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,0BAA0B;IAClD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"cdnManagementClient.js","sourceRoot":"","sources":["../../src/cdnManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,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AC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACJ,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AfdProfilesImpl,\n AfdCustomDomainsImpl,\n AfdEndpointsImpl,\n AfdOriginGroupsImpl,\n AfdOriginsImpl,\n RoutesImpl,\n RuleSetsImpl,\n RulesImpl,\n SecurityPoliciesImpl,\n SecretsImpl,\n LogAnalyticsImpl,\n ProfilesImpl,\n EndpointsImpl,\n OriginsImpl,\n OriginGroupsImpl,\n CustomDomainsImpl,\n ResourceUsageOperationsImpl,\n OperationsImpl,\n EdgeNodesImpl,\n PoliciesImpl,\n ManagedRuleSetsImpl,\n} from \"./operations/index.js\";\nimport {\n AfdProfiles,\n AfdCustomDomains,\n AfdEndpoints,\n AfdOriginGroups,\n AfdOrigins,\n Routes,\n RuleSets,\n Rules,\n SecurityPolicies,\n Secrets,\n LogAnalytics,\n Profiles,\n Endpoints,\n Origins,\n OriginGroups,\n CustomDomains,\n ResourceUsageOperations,\n Operations,\n EdgeNodes,\n Policies,\n ManagedRuleSets,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n CdnManagementClientOptionalParams,\n CheckEndpointNameAvailabilityInput,\n CheckEndpointNameAvailabilityOptionalParams,\n CheckEndpointNameAvailabilityResponse,\n CheckNameAvailabilityInput,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityResponse,\n CheckNameAvailabilityWithSubscriptionOptionalParams,\n CheckNameAvailabilityWithSubscriptionResponse,\n ValidateProbeInput,\n ValidateProbeOptionalParams,\n ValidateProbeResponse,\n} from \"./models/index.js\";\n\nexport class CdnManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId?: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the CdnManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: CdnManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: CdnManagementClientOptionalParams | string,\n options?: CdnManagementClientOptionalParams,\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: CdnManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-cdn/9.1.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.apiVersion = options.apiVersion || \"2024-02-01\";\n this.afdProfiles = new AfdProfilesImpl(this);\n this.afdCustomDomains = new AfdCustomDomainsImpl(this);\n this.afdEndpoints = new AfdEndpointsImpl(this);\n this.afdOriginGroups = new AfdOriginGroupsImpl(this);\n this.afdOrigins = new AfdOriginsImpl(this);\n this.routes = new RoutesImpl(this);\n this.ruleSets = new RuleSetsImpl(this);\n this.rules = new RulesImpl(this);\n this.securityPolicies = new SecurityPoliciesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.logAnalytics = new LogAnalyticsImpl(this);\n this.profiles = new ProfilesImpl(this);\n this.endpoints = new EndpointsImpl(this);\n this.origins = new OriginsImpl(this);\n this.originGroups = new OriginGroupsImpl(this);\n this.customDomains = new CustomDomainsImpl(this);\n this.resourceUsageOperations = new ResourceUsageOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.edgeNodes = new EdgeNodesImpl(this);\n this.policies = new PoliciesImpl(this);\n this.managedRuleSets = new ManagedRuleSetsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a afdx endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: CheckEndpointNameAvailabilityOptionalParams,\n ): Promise<CheckEndpointNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, checkEndpointNameAvailabilityInput, options },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Check the availability of a resource name. This is needed for resources where name is globally\n * unique, such as a CDN endpoint.\n * @param checkNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkNameAvailabilityWithSubscription(\n checkNameAvailabilityInput: CheckNameAvailabilityInput,\n options?: CheckNameAvailabilityWithSubscriptionOptionalParams,\n ): Promise<CheckNameAvailabilityWithSubscriptionResponse> {\n return this.sendOperationRequest(\n { checkNameAvailabilityInput, options },\n checkNameAvailabilityWithSubscriptionOperationSpec,\n );\n }\n\n /**\n * Check if the probe path is a valid path and the file can be accessed. Probe path is the path to a\n * file hosted on the origin server to help accelerate the delivery of dynamic content via the CDN\n * endpoint. This path is relative to the origin path specified in the endpoint configuration.\n * @param validateProbeInput Input to check.\n * @param options The options parameters.\n */\n validateProbe(\n validateProbeInput: ValidateProbeInput,\n options?: ValidateProbeOptionalParams,\n ): Promise<ValidateProbeResponse> {\n return this.sendOperationRequest(\n { validateProbeInput, options },\n validateProbeOperationSpec,\n );\n }\n\n afdProfiles: AfdProfiles;\n afdCustomDomains: AfdCustomDomains;\n afdEndpoints: AfdEndpoints;\n afdOriginGroups: AfdOriginGroups;\n afdOrigins: AfdOrigins;\n routes: Routes;\n ruleSets: RuleSets;\n rules: Rules;\n securityPolicies: SecurityPolicies;\n secrets: Secrets;\n logAnalytics: LogAnalytics;\n profiles: Profiles;\n endpoints: Endpoints;\n origins: Origins;\n originGroups: OriginGroups;\n customDomains: CustomDomains;\n resourceUsageOperations: ResourceUsageOperations;\n operations: Operations;\n edgeNodes: EdgeNodes;\n policies: Policies;\n managedRuleSets: ManagedRuleSets;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityWithSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.checkNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n };\nconst validateProbeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateProbeOutput,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.validateProbeInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\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 CdnManagementClient.",
6
- "version": "9.1.1",
6
+ "version": "9.1.2-alpha.20251007.1",
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",
42
- "@azure-tools/test-utils-vitest": "^2.0.0",
43
- "@azure/dev-tool": "^1.0.0",
44
- "@azure-tools/test-credential": "^2.1.1"
41
+ "@azure-tools/test-credential": "^2.1.2",
42
+ "@azure-tools/test-recorder": "^4.1.1",
43
+ "@azure-tools/test-utils-vitest": "^2.0.1",
44
+ "@azure/dev-tool": "^1.0.0"
45
45
  },
46
46
  "repository": "github:Azure/azure-sdk-for-js",
47
47
  "bugs": {
@@ -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
  }