@azure/arm-cdn 9.1.1-alpha.20250718.1 → 9.1.1-alpha.20250721.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/dist/browser/cdnManagementClient.js +34 -5
- package/dist/browser/cdnManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +663 -294
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/afdCustomDomains.js +67 -64
- package/dist/browser/operations/afdCustomDomains.js.map +1 -1
- package/dist/browser/operations/afdEndpoints.js +89 -103
- package/dist/browser/operations/afdEndpoints.js.map +1 -1
- package/dist/browser/operations/afdOriginGroups.js +78 -97
- package/dist/browser/operations/afdOriginGroups.js.map +1 -1
- package/dist/browser/operations/afdOrigins.js +56 -58
- package/dist/browser/operations/afdOrigins.js.map +1 -1
- package/dist/browser/operations/afdProfiles.js +34 -46
- package/dist/browser/operations/afdProfiles.js.map +1 -1
- package/dist/browser/operations/customDomains.js +67 -64
- package/dist/browser/operations/customDomains.js.map +1 -1
- package/dist/browser/operations/edgeNodes.js +23 -40
- package/dist/browser/operations/edgeNodes.js.map +1 -1
- package/dist/browser/operations/endpoints.js +122 -121
- package/dist/browser/operations/endpoints.js.map +1 -1
- package/dist/browser/operations/logAnalytics.js +1 -0
- package/dist/browser/operations/logAnalytics.js.map +1 -1
- package/dist/browser/operations/managedRuleSets.js +23 -40
- package/dist/browser/operations/managedRuleSets.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/originGroups.js +56 -58
- package/dist/browser/operations/originGroups.js.map +1 -1
- package/dist/browser/operations/origins.js +56 -58
- package/dist/browser/operations/origins.js.map +1 -1
- package/dist/browser/operations/policies.js +45 -52
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/profiles.js +133 -154
- package/dist/browser/operations/profiles.js.map +1 -1
- package/dist/browser/operations/resourceUsageOperations.js +23 -40
- package/dist/browser/operations/resourceUsageOperations.js.map +1 -1
- package/dist/browser/operations/routes.js +56 -58
- package/dist/browser/operations/routes.js.map +1 -1
- package/dist/browser/operations/ruleSets.js +56 -85
- package/dist/browser/operations/ruleSets.js.map +1 -1
- package/dist/browser/operations/rules.js +56 -58
- package/dist/browser/operations/rules.js.map +1 -1
- package/dist/browser/operations/secrets.js +45 -52
- package/dist/browser/operations/secrets.js.map +1 -1
- package/dist/browser/operations/securityPolicies.js +56 -58
- package/dist/browser/operations/securityPolicies.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cdnManagementClient.js +34 -5
- package/dist/commonjs/cdnManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +663 -294
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/afdCustomDomains.js +67 -63
- package/dist/commonjs/operations/afdCustomDomains.js.map +1 -1
- package/dist/commonjs/operations/afdEndpoints.js +89 -102
- package/dist/commonjs/operations/afdEndpoints.js.map +1 -1
- package/dist/commonjs/operations/afdOriginGroups.js +78 -96
- package/dist/commonjs/operations/afdOriginGroups.js.map +1 -1
- package/dist/commonjs/operations/afdOrigins.js +56 -57
- package/dist/commonjs/operations/afdOrigins.js.map +1 -1
- package/dist/commonjs/operations/afdProfiles.js +34 -45
- package/dist/commonjs/operations/afdProfiles.js.map +1 -1
- package/dist/commonjs/operations/customDomains.js +67 -63
- package/dist/commonjs/operations/customDomains.js.map +1 -1
- package/dist/commonjs/operations/edgeNodes.js +23 -39
- package/dist/commonjs/operations/edgeNodes.js.map +1 -1
- package/dist/commonjs/operations/endpoints.js +122 -120
- package/dist/commonjs/operations/endpoints.js.map +1 -1
- package/dist/commonjs/operations/logAnalytics.js +1 -0
- package/dist/commonjs/operations/logAnalytics.js.map +1 -1
- package/dist/commonjs/operations/managedRuleSets.js +23 -39
- package/dist/commonjs/operations/managedRuleSets.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/originGroups.js +56 -57
- package/dist/commonjs/operations/originGroups.js.map +1 -1
- package/dist/commonjs/operations/origins.js +56 -57
- package/dist/commonjs/operations/origins.js.map +1 -1
- package/dist/commonjs/operations/policies.js +45 -51
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/profiles.js +133 -153
- package/dist/commonjs/operations/profiles.js.map +1 -1
- package/dist/commonjs/operations/resourceUsageOperations.js +23 -39
- package/dist/commonjs/operations/resourceUsageOperations.js.map +1 -1
- package/dist/commonjs/operations/routes.js +56 -57
- package/dist/commonjs/operations/routes.js.map +1 -1
- package/dist/commonjs/operations/ruleSets.js +56 -84
- package/dist/commonjs/operations/ruleSets.js.map +1 -1
- package/dist/commonjs/operations/rules.js +56 -57
- package/dist/commonjs/operations/rules.js.map +1 -1
- package/dist/commonjs/operations/secrets.js +45 -51
- package/dist/commonjs/operations/secrets.js.map +1 -1
- package/dist/commonjs/operations/securityPolicies.js +56 -57
- package/dist/commonjs/operations/securityPolicies.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/cdnManagementClient.js +34 -5
- package/dist/esm/cdnManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +663 -294
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/afdCustomDomains.js +67 -64
- package/dist/esm/operations/afdCustomDomains.js.map +1 -1
- package/dist/esm/operations/afdEndpoints.js +89 -103
- package/dist/esm/operations/afdEndpoints.js.map +1 -1
- package/dist/esm/operations/afdOriginGroups.js +78 -97
- package/dist/esm/operations/afdOriginGroups.js.map +1 -1
- package/dist/esm/operations/afdOrigins.js +56 -58
- package/dist/esm/operations/afdOrigins.js.map +1 -1
- package/dist/esm/operations/afdProfiles.js +34 -46
- package/dist/esm/operations/afdProfiles.js.map +1 -1
- package/dist/esm/operations/customDomains.js +67 -64
- package/dist/esm/operations/customDomains.js.map +1 -1
- package/dist/esm/operations/edgeNodes.js +23 -40
- package/dist/esm/operations/edgeNodes.js.map +1 -1
- package/dist/esm/operations/endpoints.js +122 -121
- package/dist/esm/operations/endpoints.js.map +1 -1
- package/dist/esm/operations/logAnalytics.js +1 -0
- package/dist/esm/operations/logAnalytics.js.map +1 -1
- package/dist/esm/operations/managedRuleSets.js +23 -40
- package/dist/esm/operations/managedRuleSets.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/originGroups.js +56 -58
- package/dist/esm/operations/originGroups.js.map +1 -1
- package/dist/esm/operations/origins.js +56 -58
- package/dist/esm/operations/origins.js.map +1 -1
- package/dist/esm/operations/policies.js +45 -52
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/profiles.js +133 -154
- package/dist/esm/operations/profiles.js.map +1 -1
- package/dist/esm/operations/resourceUsageOperations.js +23 -40
- package/dist/esm/operations/resourceUsageOperations.js.map +1 -1
- package/dist/esm/operations/routes.js +56 -58
- package/dist/esm/operations/routes.js.map +1 -1
- package/dist/esm/operations/ruleSets.js +56 -85
- package/dist/esm/operations/ruleSets.js.map +1 -1
- package/dist/esm/operations/rules.js +56 -58
- package/dist/esm/operations/rules.js.map +1 -1
- package/dist/esm/operations/secrets.js +45 -52
- package/dist/esm/operations/secrets.js.map +1 -1
- package/dist/esm/operations/securityPolicies.js +56 -58
- package/dist/esm/operations/securityPolicies.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cdnManagementClient.js +34 -5
- package/dist/react-native/cdnManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +663 -294
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/afdCustomDomains.js +67 -64
- package/dist/react-native/operations/afdCustomDomains.js.map +1 -1
- package/dist/react-native/operations/afdEndpoints.js +89 -103
- package/dist/react-native/operations/afdEndpoints.js.map +1 -1
- package/dist/react-native/operations/afdOriginGroups.js +78 -97
- package/dist/react-native/operations/afdOriginGroups.js.map +1 -1
- package/dist/react-native/operations/afdOrigins.js +56 -58
- package/dist/react-native/operations/afdOrigins.js.map +1 -1
- package/dist/react-native/operations/afdProfiles.js +34 -46
- package/dist/react-native/operations/afdProfiles.js.map +1 -1
- package/dist/react-native/operations/customDomains.js +67 -64
- package/dist/react-native/operations/customDomains.js.map +1 -1
- package/dist/react-native/operations/edgeNodes.js +23 -40
- package/dist/react-native/operations/edgeNodes.js.map +1 -1
- package/dist/react-native/operations/endpoints.js +122 -121
- package/dist/react-native/operations/endpoints.js.map +1 -1
- package/dist/react-native/operations/logAnalytics.js +1 -0
- package/dist/react-native/operations/logAnalytics.js.map +1 -1
- package/dist/react-native/operations/managedRuleSets.js +23 -40
- package/dist/react-native/operations/managedRuleSets.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/originGroups.js +56 -58
- package/dist/react-native/operations/originGroups.js.map +1 -1
- package/dist/react-native/operations/origins.js +56 -58
- package/dist/react-native/operations/origins.js.map +1 -1
- package/dist/react-native/operations/policies.js +45 -52
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/profiles.js +133 -154
- package/dist/react-native/operations/profiles.js.map +1 -1
- package/dist/react-native/operations/resourceUsageOperations.js +23 -40
- package/dist/react-native/operations/resourceUsageOperations.js.map +1 -1
- package/dist/react-native/operations/routes.js +56 -58
- package/dist/react-native/operations/routes.js.map +1 -1
- package/dist/react-native/operations/ruleSets.js +56 -85
- package/dist/react-native/operations/ruleSets.js.map +1 -1
- package/dist/react-native/operations/rules.js +56 -58
- package/dist/react-native/operations/rules.js.map +1 -1
- package/dist/react-native/operations/secrets.js +45 -52
- package/dist/react-native/operations/secrets.js.map +1 -1
- package/dist/react-native/operations/securityPolicies.js +56 -58
- package/dist/react-native/operations/securityPolicies.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityPolicies.js","sourceRoot":"","sources":["../../../src/operations/securityPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAA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,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SecurityPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SecurityPolicy,\n SecurityPoliciesListByProfileNextOptionalParams,\n SecurityPoliciesListByProfileOptionalParams,\n SecurityPoliciesListByProfileResponse,\n SecurityPoliciesGetOptionalParams,\n SecurityPoliciesGetResponse,\n SecurityPoliciesCreateOptionalParams,\n SecurityPoliciesCreateResponse,\n SecurityPolicyUpdateParameters,\n SecurityPoliciesPatchOptionalParams,\n SecurityPoliciesPatchResponse,\n SecurityPoliciesDeleteOptionalParams,\n SecurityPoliciesListByProfileNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SecurityPolicies operations. */\nexport class SecurityPoliciesImpl implements SecurityPolicies {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class SecurityPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists security policies associated with the profile\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n public listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): PagedAsyncIterableIterator<SecurityPolicy> {\n const iter = this.listByProfilePagingAll(\n resourceGroupName,\n profileName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProfilePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecurityPolicy[]> {\n let result: SecurityPoliciesListByProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProfile(\n resourceGroupName,\n profileName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProfileNext(\n resourceGroupName,\n profileName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProfilePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): AsyncIterableIterator<SecurityPolicy> {\n for await (const page of this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists security policies associated with the profile\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n private _listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): Promise<SecurityPoliciesListByProfileResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listByProfileOperationSpec,\n );\n }\n\n /**\n * Gets an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesGetOptionalParams,\n ): Promise<SecurityPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, securityPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new security policy within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicy The security policy properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicy: SecurityPolicy,\n options?: SecurityPoliciesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SecurityPoliciesCreateResponse>,\n SecurityPoliciesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SecurityPoliciesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicy,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n SecurityPoliciesCreateResponse,\n OperationState<SecurityPoliciesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new security policy within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicy The security policy properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicy: SecurityPolicy,\n options?: SecurityPoliciesCreateOptionalParams,\n ): Promise<SecurityPoliciesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicy,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicyUpdateProperties Security policy update properties\n * @param options The options parameters.\n */\n async beginPatch(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicyUpdateProperties: SecurityPolicyUpdateParameters,\n options?: SecurityPoliciesPatchOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SecurityPoliciesPatchResponse>,\n SecurityPoliciesPatchResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SecurityPoliciesPatchResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicyUpdateProperties,\n options,\n },\n spec: patchOperationSpec,\n });\n const poller = await createHttpPoller<\n SecurityPoliciesPatchResponse,\n OperationState<SecurityPoliciesPatchResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicyUpdateProperties Security policy update properties\n * @param options The options parameters.\n */\n async beginPatchAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicyUpdateProperties: SecurityPolicyUpdateParameters,\n options?: SecurityPoliciesPatchOptionalParams,\n ): Promise<SecurityPoliciesPatchResponse> {\n const poller = await this.beginPatch(\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicyUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing security policy within profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, profileName, securityPolicyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing security policy within profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n securityPolicyName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByProfileNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByProfile method.\n * @param options The options parameters.\n */\n private _listByProfileNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: SecurityPoliciesListByProfileNextOptionalParams,\n ): Promise<SecurityPoliciesListByProfileNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listByProfileNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicyListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 201: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 202: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 204: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.securityPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 201: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 202: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 204: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.securityPolicyUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicyListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"securityPolicies.js","sourceRoot":"","sources":["../../../src/operations/securityPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OA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ACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SecurityPolicies } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SecurityPolicy,\n SecurityPoliciesListByProfileNextOptionalParams,\n SecurityPoliciesListByProfileOptionalParams,\n SecurityPoliciesListByProfileResponse,\n SecurityPoliciesGetOptionalParams,\n SecurityPoliciesGetResponse,\n SecurityPoliciesCreateOptionalParams,\n SecurityPoliciesCreateResponse,\n SecurityPolicyUpdateParameters,\n SecurityPoliciesPatchOptionalParams,\n SecurityPoliciesPatchResponse,\n SecurityPoliciesDeleteOptionalParams,\n SecurityPoliciesListByProfileNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SecurityPolicies operations. */\nexport class SecurityPoliciesImpl implements SecurityPolicies {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class SecurityPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists security policies associated with the profile\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n public listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): PagedAsyncIterableIterator<SecurityPolicy> {\n const iter = this.listByProfilePagingAll(\n resourceGroupName,\n profileName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProfilePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SecurityPolicy[]> {\n let result: SecurityPoliciesListByProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProfile(\n resourceGroupName,\n profileName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProfileNext(\n resourceGroupName,\n profileName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProfilePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): AsyncIterableIterator<SecurityPolicy> {\n for await (const page of this.listByProfilePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists security policies associated with the profile\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param options The options parameters.\n */\n private _listByProfile(\n resourceGroupName: string,\n profileName: string,\n options?: SecurityPoliciesListByProfileOptionalParams,\n ): Promise<SecurityPoliciesListByProfileResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listByProfileOperationSpec,\n );\n }\n\n /**\n * Gets an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesGetOptionalParams,\n ): Promise<SecurityPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, securityPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new security policy within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicy The security policy properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicy: SecurityPolicy,\n options?: SecurityPoliciesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SecurityPoliciesCreateResponse>,\n SecurityPoliciesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SecurityPoliciesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicy,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n SecurityPoliciesCreateResponse,\n OperationState<SecurityPoliciesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new security policy within the specified profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicy The security policy properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicy: SecurityPolicy,\n options?: SecurityPoliciesCreateOptionalParams,\n ): Promise<SecurityPoliciesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicy,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicyUpdateProperties Security policy update properties\n * @param options The options parameters.\n */\n async beginPatch(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicyUpdateProperties: SecurityPolicyUpdateParameters,\n options?: SecurityPoliciesPatchOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SecurityPoliciesPatchResponse>,\n SecurityPoliciesPatchResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SecurityPoliciesPatchResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicyUpdateProperties,\n options,\n },\n spec: patchOperationSpec,\n });\n const poller = await createHttpPoller<\n SecurityPoliciesPatchResponse,\n OperationState<SecurityPoliciesPatchResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing security policy within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param securityPolicyUpdateProperties Security policy update properties\n * @param options The options parameters.\n */\n async beginPatchAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n securityPolicyUpdateProperties: SecurityPolicyUpdateParameters,\n options?: SecurityPoliciesPatchOptionalParams,\n ): Promise<SecurityPoliciesPatchResponse> {\n const poller = await this.beginPatch(\n resourceGroupName,\n profileName,\n securityPolicyName,\n securityPolicyUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing security policy within profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, profileName, securityPolicyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing security policy within profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param securityPolicyName Name of the security policy under the profile.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n securityPolicyName: string,\n options?: SecurityPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n securityPolicyName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByProfileNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByProfile method.\n * @param options The options parameters.\n */\n private _listByProfileNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: SecurityPoliciesListByProfileNextOptionalParams,\n ): Promise<SecurityPoliciesListByProfileNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listByProfileNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicyListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 201: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 202: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 204: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.securityPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 201: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 202: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n 204: {\n bodyMapper: Mappers.SecurityPolicy,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.securityPolicyUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.securityPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityPolicyListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\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-alpha.
|
|
6
|
+
"version": "9.1.1-alpha.20250721.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
},
|
|
93
93
|
"type": "module",
|
|
94
94
|
"tshy": {
|
|
95
|
-
"project": "
|
|
95
|
+
"project": "../../../tsconfig.src.build.json",
|
|
96
96
|
"exports": {
|
|
97
97
|
"./package.json": "./package.json",
|
|
98
98
|
".": "./src/index.ts"
|