@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":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.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,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,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,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,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F,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;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 { Policies } 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 CdnWebApplicationFirewallPolicy,\n PoliciesListNextOptionalParams,\n PoliciesListOptionalParams,\n PoliciesListResponse,\n PoliciesGetOptionalParams,\n PoliciesGetResponse,\n PoliciesCreateOrUpdateOptionalParams,\n PoliciesCreateOrUpdateResponse,\n CdnWebApplicationFirewallPolicyPatchParameters,\n PoliciesUpdateOptionalParams,\n PoliciesUpdateResponse,\n PoliciesDeleteOptionalParams,\n PoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the protection policies within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<CdnWebApplicationFirewallPolicy> {\n const iter = this.listPagingAll(resourceGroupName, options);\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.listPagingPage(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CdnWebApplicationFirewallPolicy[]> {\n let result: PoliciesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\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 *listPagingAll(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): AsyncIterableIterator<CdnWebApplicationFirewallPolicy> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the protection policies within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): Promise<PoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Retrieve protection policy with specified name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n policyName: string,\n options?: PoliciesGetOptionalParams,\n ): Promise<PoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update policy with specified rule set name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicy Policy to be created.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy,\n options?: PoliciesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateResponse>,\n PoliciesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateResponse> => {\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 policyName,\n cdnWebApplicationFirewallPolicy,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateResponse,\n OperationState<PoliciesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update policy with specified rule set name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicy Policy to be created.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy,\n options?: PoliciesCreateOrUpdateOptionalParams,\n ): Promise<PoliciesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n policyName,\n cdnWebApplicationFirewallPolicy,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the\n * specified subscription and resource group\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicyPatchParameters CdnWebApplicationFirewallPolicy parameters to\n * be patched.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters,\n options?: PoliciesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesUpdateResponse>,\n PoliciesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesUpdateResponse> => {\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 policyName,\n cdnWebApplicationFirewallPolicyPatchParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesUpdateResponse,\n OperationState<PoliciesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the\n * specified subscription and resource group\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicyPatchParameters CdnWebApplicationFirewallPolicy parameters to\n * be patched.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters,\n options?: PoliciesUpdateOptionalParams,\n ): Promise<PoliciesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n policyName,\n cdnWebApplicationFirewallPolicyPatchParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes Policy\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n policyName: string,\n options?: PoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, policyName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n nextLink: string,\n options?: PoliciesListNextOptionalParams,\n ): Promise<PoliciesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicyList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 201: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 202: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 204: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.cdnWebApplicationFirewallPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 201: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 202: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 204: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.cdnWebApplicationFirewallPolicyPatchParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\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/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicyList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.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,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,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,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;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 { Policies } 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 CdnWebApplicationFirewallPolicy,\n PoliciesListNextOptionalParams,\n PoliciesListOptionalParams,\n PoliciesListResponse,\n PoliciesGetOptionalParams,\n PoliciesGetResponse,\n PoliciesCreateOrUpdateOptionalParams,\n PoliciesCreateOrUpdateResponse,\n CdnWebApplicationFirewallPolicyPatchParameters,\n PoliciesUpdateOptionalParams,\n PoliciesUpdateResponse,\n PoliciesDeleteOptionalParams,\n PoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the protection policies within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<CdnWebApplicationFirewallPolicy> {\n const iter = this.listPagingAll(resourceGroupName, options);\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.listPagingPage(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CdnWebApplicationFirewallPolicy[]> {\n let result: PoliciesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\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 *listPagingAll(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): AsyncIterableIterator<CdnWebApplicationFirewallPolicy> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the protection policies within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: PoliciesListOptionalParams,\n ): Promise<PoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Retrieve protection policy with specified name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n policyName: string,\n options?: PoliciesGetOptionalParams,\n ): Promise<PoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update policy with specified rule set name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicy Policy to be created.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy,\n options?: PoliciesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateResponse>,\n PoliciesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateResponse> => {\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 policyName,\n cdnWebApplicationFirewallPolicy,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateResponse,\n OperationState<PoliciesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update policy with specified rule set name within a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicy Policy to be created.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy,\n options?: PoliciesCreateOrUpdateOptionalParams,\n ): Promise<PoliciesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n policyName,\n cdnWebApplicationFirewallPolicy,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the\n * specified subscription and resource group\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicyPatchParameters CdnWebApplicationFirewallPolicy parameters to\n * be patched.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters,\n options?: PoliciesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesUpdateResponse>,\n PoliciesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesUpdateResponse> => {\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 policyName,\n cdnWebApplicationFirewallPolicyPatchParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesUpdateResponse,\n OperationState<PoliciesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the\n * specified subscription and resource group\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param cdnWebApplicationFirewallPolicyPatchParameters CdnWebApplicationFirewallPolicy parameters to\n * be patched.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n policyName: string,\n cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters,\n options?: PoliciesUpdateOptionalParams,\n ): Promise<PoliciesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n policyName,\n cdnWebApplicationFirewallPolicyPatchParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes Policy\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param policyName The name of the CdnWebApplicationFirewallPolicy.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n policyName: string,\n options?: PoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, policyName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n nextLink: string,\n options?: PoliciesListNextOptionalParams,\n ): Promise<PoliciesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicyList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 201: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 202: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 204: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.cdnWebApplicationFirewallPolicy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 201: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 202: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n 204: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.cdnWebApplicationFirewallPolicyPatchParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\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/cdnWebApplicationFirewallPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CdnWebApplicationFirewallPolicyList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Profiles operations. */
|
|
17
16
|
export class ProfilesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Profiles class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ProfilesImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(options) {
|
|
66
|
+
for await (const page of this.listPagingPage(options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a
|
|
@@ -100,52 +83,35 @@ export class ProfilesImpl {
|
|
|
100
83
|
return this;
|
|
101
84
|
},
|
|
102
85
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
104
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
88
|
}
|
|
106
89
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
107
90
|
},
|
|
108
91
|
};
|
|
109
92
|
}
|
|
110
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
111
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
112
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
149
115
|
}
|
|
150
116
|
/**
|
|
151
117
|
* Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure
|
|
@@ -165,52 +131,35 @@ export class ProfilesImpl {
|
|
|
165
131
|
return this;
|
|
166
132
|
},
|
|
167
133
|
byPage: (settings) => {
|
|
168
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
169
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
170
136
|
}
|
|
171
137
|
return this.listResourceUsagePagingPage(resourceGroupName, profileName, options, settings);
|
|
172
138
|
},
|
|
173
139
|
};
|
|
174
140
|
}
|
|
175
|
-
listResourceUsagePagingPage(resourceGroupName, profileName, options, settings) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
});
|
|
141
|
+
async *listResourceUsagePagingPage(resourceGroupName, profileName, options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listResourceUsage(resourceGroupName, profileName, options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
setContinuationToken(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listResourceUsageNext(resourceGroupName, profileName, continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
194
158
|
}
|
|
195
|
-
listResourceUsagePagingAll(resourceGroupName, profileName, options) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
for (var _d = true, _e = __asyncValues(this.listResourceUsagePagingPage(resourceGroupName, profileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
200
|
-
_c = _f.value;
|
|
201
|
-
_d = false;
|
|
202
|
-
const page = _c;
|
|
203
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
207
|
-
finally {
|
|
208
|
-
try {
|
|
209
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
210
|
-
}
|
|
211
|
-
finally { if (e_3) throw e_3.error; }
|
|
212
|
-
}
|
|
213
|
-
});
|
|
159
|
+
async *listResourceUsagePagingAll(resourceGroupName, profileName, options) {
|
|
160
|
+
for await (const page of this.listResourceUsagePagingPage(resourceGroupName, profileName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
214
163
|
}
|
|
215
164
|
/**
|
|
216
165
|
* Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an
|
|
@@ -254,14 +203,19 @@ export class ProfilesImpl {
|
|
|
254
203
|
return this.client.sendOperationRequest(args, spec);
|
|
255
204
|
};
|
|
256
205
|
const sendOperationFn = async (args, spec) => {
|
|
257
|
-
var _a;
|
|
258
206
|
let currentRawResponse = undefined;
|
|
259
|
-
const providedCallback =
|
|
207
|
+
const providedCallback = args.options?.onResponse;
|
|
260
208
|
const callback = (rawResponse, flatResponse) => {
|
|
261
209
|
currentRawResponse = rawResponse;
|
|
262
|
-
providedCallback
|
|
210
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
211
|
+
};
|
|
212
|
+
const updatedArgs = {
|
|
213
|
+
...args,
|
|
214
|
+
options: {
|
|
215
|
+
...args.options,
|
|
216
|
+
onResponse: callback,
|
|
217
|
+
},
|
|
263
218
|
};
|
|
264
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
265
219
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
266
220
|
return {
|
|
267
221
|
flatResponse,
|
|
@@ -278,8 +232,8 @@ export class ProfilesImpl {
|
|
|
278
232
|
spec: createOperationSpec,
|
|
279
233
|
});
|
|
280
234
|
const poller = await createHttpPoller(lro, {
|
|
281
|
-
restoreFrom: options
|
|
282
|
-
intervalInMs: options
|
|
235
|
+
restoreFrom: options?.resumeFrom,
|
|
236
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
283
237
|
});
|
|
284
238
|
await poller.poll();
|
|
285
239
|
return poller;
|
|
@@ -311,14 +265,19 @@ export class ProfilesImpl {
|
|
|
311
265
|
return this.client.sendOperationRequest(args, spec);
|
|
312
266
|
};
|
|
313
267
|
const sendOperationFn = async (args, spec) => {
|
|
314
|
-
var _a;
|
|
315
268
|
let currentRawResponse = undefined;
|
|
316
|
-
const providedCallback =
|
|
269
|
+
const providedCallback = args.options?.onResponse;
|
|
317
270
|
const callback = (rawResponse, flatResponse) => {
|
|
318
271
|
currentRawResponse = rawResponse;
|
|
319
|
-
providedCallback
|
|
272
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
273
|
+
};
|
|
274
|
+
const updatedArgs = {
|
|
275
|
+
...args,
|
|
276
|
+
options: {
|
|
277
|
+
...args.options,
|
|
278
|
+
onResponse: callback,
|
|
279
|
+
},
|
|
320
280
|
};
|
|
321
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
322
281
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
323
282
|
return {
|
|
324
283
|
flatResponse,
|
|
@@ -340,8 +299,8 @@ export class ProfilesImpl {
|
|
|
340
299
|
spec: updateOperationSpec,
|
|
341
300
|
});
|
|
342
301
|
const poller = await createHttpPoller(lro, {
|
|
343
|
-
restoreFrom: options
|
|
344
|
-
intervalInMs: options
|
|
302
|
+
restoreFrom: options?.resumeFrom,
|
|
303
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
345
304
|
});
|
|
346
305
|
await poller.poll();
|
|
347
306
|
return poller;
|
|
@@ -373,14 +332,19 @@ export class ProfilesImpl {
|
|
|
373
332
|
return this.client.sendOperationRequest(args, spec);
|
|
374
333
|
};
|
|
375
334
|
const sendOperationFn = async (args, spec) => {
|
|
376
|
-
var _a;
|
|
377
335
|
let currentRawResponse = undefined;
|
|
378
|
-
const providedCallback =
|
|
336
|
+
const providedCallback = args.options?.onResponse;
|
|
379
337
|
const callback = (rawResponse, flatResponse) => {
|
|
380
338
|
currentRawResponse = rawResponse;
|
|
381
|
-
providedCallback
|
|
339
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
340
|
+
};
|
|
341
|
+
const updatedArgs = {
|
|
342
|
+
...args,
|
|
343
|
+
options: {
|
|
344
|
+
...args.options,
|
|
345
|
+
onResponse: callback,
|
|
346
|
+
},
|
|
382
347
|
};
|
|
383
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
384
348
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
385
349
|
return {
|
|
386
350
|
flatResponse,
|
|
@@ -397,8 +361,8 @@ export class ProfilesImpl {
|
|
|
397
361
|
spec: deleteOperationSpec,
|
|
398
362
|
});
|
|
399
363
|
const poller = await createHttpPoller(lro, {
|
|
400
|
-
restoreFrom: options
|
|
401
|
-
intervalInMs: options
|
|
364
|
+
restoreFrom: options?.resumeFrom,
|
|
365
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
402
366
|
});
|
|
403
367
|
await poller.poll();
|
|
404
368
|
return poller;
|
|
@@ -428,14 +392,19 @@ export class ProfilesImpl {
|
|
|
428
392
|
return this.client.sendOperationRequest(args, spec);
|
|
429
393
|
};
|
|
430
394
|
const sendOperationFn = async (args, spec) => {
|
|
431
|
-
var _a;
|
|
432
395
|
let currentRawResponse = undefined;
|
|
433
|
-
const providedCallback =
|
|
396
|
+
const providedCallback = args.options?.onResponse;
|
|
434
397
|
const callback = (rawResponse, flatResponse) => {
|
|
435
398
|
currentRawResponse = rawResponse;
|
|
436
|
-
providedCallback
|
|
399
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
400
|
+
};
|
|
401
|
+
const updatedArgs = {
|
|
402
|
+
...args,
|
|
403
|
+
options: {
|
|
404
|
+
...args.options,
|
|
405
|
+
onResponse: callback,
|
|
406
|
+
},
|
|
437
407
|
};
|
|
438
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
439
408
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
440
409
|
return {
|
|
441
410
|
flatResponse,
|
|
@@ -452,8 +421,8 @@ export class ProfilesImpl {
|
|
|
452
421
|
spec: canMigrateOperationSpec,
|
|
453
422
|
});
|
|
454
423
|
const poller = await createHttpPoller(lro, {
|
|
455
|
-
restoreFrom: options
|
|
456
|
-
intervalInMs: options
|
|
424
|
+
restoreFrom: options?.resumeFrom,
|
|
425
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
457
426
|
resourceLocationConfig: "location",
|
|
458
427
|
});
|
|
459
428
|
await poller.poll();
|
|
@@ -482,14 +451,19 @@ export class ProfilesImpl {
|
|
|
482
451
|
return this.client.sendOperationRequest(args, spec);
|
|
483
452
|
};
|
|
484
453
|
const sendOperationFn = async (args, spec) => {
|
|
485
|
-
var _a;
|
|
486
454
|
let currentRawResponse = undefined;
|
|
487
|
-
const providedCallback =
|
|
455
|
+
const providedCallback = args.options?.onResponse;
|
|
488
456
|
const callback = (rawResponse, flatResponse) => {
|
|
489
457
|
currentRawResponse = rawResponse;
|
|
490
|
-
providedCallback
|
|
458
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
459
|
+
};
|
|
460
|
+
const updatedArgs = {
|
|
461
|
+
...args,
|
|
462
|
+
options: {
|
|
463
|
+
...args.options,
|
|
464
|
+
onResponse: callback,
|
|
465
|
+
},
|
|
491
466
|
};
|
|
492
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
493
467
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
494
468
|
return {
|
|
495
469
|
flatResponse,
|
|
@@ -506,8 +480,8 @@ export class ProfilesImpl {
|
|
|
506
480
|
spec: migrateOperationSpec,
|
|
507
481
|
});
|
|
508
482
|
const poller = await createHttpPoller(lro, {
|
|
509
|
-
restoreFrom: options
|
|
510
|
-
intervalInMs: options
|
|
483
|
+
restoreFrom: options?.resumeFrom,
|
|
484
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
511
485
|
resourceLocationConfig: "location",
|
|
512
486
|
});
|
|
513
487
|
await poller.poll();
|
|
@@ -535,14 +509,19 @@ export class ProfilesImpl {
|
|
|
535
509
|
return this.client.sendOperationRequest(args, spec);
|
|
536
510
|
};
|
|
537
511
|
const sendOperationFn = async (args, spec) => {
|
|
538
|
-
var _a;
|
|
539
512
|
let currentRawResponse = undefined;
|
|
540
|
-
const providedCallback =
|
|
513
|
+
const providedCallback = args.options?.onResponse;
|
|
541
514
|
const callback = (rawResponse, flatResponse) => {
|
|
542
515
|
currentRawResponse = rawResponse;
|
|
543
|
-
providedCallback
|
|
516
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
517
|
+
};
|
|
518
|
+
const updatedArgs = {
|
|
519
|
+
...args,
|
|
520
|
+
options: {
|
|
521
|
+
...args.options,
|
|
522
|
+
onResponse: callback,
|
|
523
|
+
},
|
|
544
524
|
};
|
|
545
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
546
525
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
547
526
|
return {
|
|
548
527
|
flatResponse,
|
|
@@ -559,8 +538,8 @@ export class ProfilesImpl {
|
|
|
559
538
|
spec: migrationCommitOperationSpec,
|
|
560
539
|
});
|
|
561
540
|
const poller = await createHttpPoller(lro, {
|
|
562
|
-
restoreFrom: options
|
|
563
|
-
intervalInMs: options
|
|
541
|
+
restoreFrom: options?.resumeFrom,
|
|
542
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
564
543
|
resourceLocationConfig: "azure-async-operation",
|
|
565
544
|
});
|
|
566
545
|
await poller.poll();
|