@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250718.1 → 1.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/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +307 -146
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/browser/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/browser/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/browser/operations/firewallStatus.js +23 -40
- package/dist/browser/operations/firewallStatus.js.map +1 -1
- package/dist/browser/operations/firewalls.js +67 -91
- package/dist/browser/operations/firewalls.js.map +1 -1
- package/dist/browser/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/browser/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/browser/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/browser/operations/globalRulestack.js +56 -58
- package/dist/browser/operations/globalRulestack.js.map +1 -1
- package/dist/browser/operations/localRules.js +45 -52
- package/dist/browser/operations/localRules.js.map +1 -1
- package/dist/browser/operations/localRulestacks.js +78 -97
- package/dist/browser/operations/localRulestacks.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/postRules.js +45 -52
- package/dist/browser/operations/postRules.js.map +1 -1
- package/dist/browser/operations/preRules.js +45 -52
- package/dist/browser/operations/preRules.js.map +1 -1
- package/dist/browser/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/browser/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/prefixListLocalRulestack.js +45 -52
- package/dist/browser/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/browser/paloAltoNetworksCloudngfw.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 +307 -146
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/certificateObjectGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/certificateObjectLocalRulestack.js +45 -51
- package/dist/commonjs/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/commonjs/operations/firewallStatus.js +23 -39
- package/dist/commonjs/operations/firewallStatus.js.map +1 -1
- package/dist/commonjs/operations/firewalls.js +67 -90
- package/dist/commonjs/operations/firewalls.js.map +1 -1
- package/dist/commonjs/operations/fqdnListGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/fqdnListLocalRulestack.js +45 -51
- package/dist/commonjs/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/commonjs/operations/globalRulestack.js +56 -57
- package/dist/commonjs/operations/globalRulestack.js.map +1 -1
- package/dist/commonjs/operations/localRules.js +45 -51
- package/dist/commonjs/operations/localRules.js.map +1 -1
- package/dist/commonjs/operations/localRulestacks.js +78 -96
- package/dist/commonjs/operations/localRulestacks.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/postRules.js +45 -51
- package/dist/commonjs/operations/postRules.js.map +1 -1
- package/dist/commonjs/operations/preRules.js +45 -51
- package/dist/commonjs/operations/preRules.js.map +1 -1
- package/dist/commonjs/operations/prefixListGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/prefixListLocalRulestack.js +45 -51
- package/dist/commonjs/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/commonjs/paloAltoNetworksCloudngfw.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +307 -146
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/esm/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/esm/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/esm/operations/firewallStatus.js +23 -40
- package/dist/esm/operations/firewallStatus.js.map +1 -1
- package/dist/esm/operations/firewalls.js +67 -91
- package/dist/esm/operations/firewalls.js.map +1 -1
- package/dist/esm/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/esm/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/esm/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/esm/operations/globalRulestack.js +56 -58
- package/dist/esm/operations/globalRulestack.js.map +1 -1
- package/dist/esm/operations/localRules.js +45 -52
- package/dist/esm/operations/localRules.js.map +1 -1
- package/dist/esm/operations/localRulestacks.js +78 -97
- package/dist/esm/operations/localRulestacks.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/postRules.js +45 -52
- package/dist/esm/operations/postRules.js.map +1 -1
- package/dist/esm/operations/preRules.js +45 -52
- package/dist/esm/operations/preRules.js.map +1 -1
- package/dist/esm/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/esm/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/prefixListLocalRulestack.js +45 -52
- package/dist/esm/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/esm/paloAltoNetworksCloudngfw.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 +307 -146
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/react-native/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/react-native/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/react-native/operations/firewallStatus.js +23 -40
- package/dist/react-native/operations/firewallStatus.js.map +1 -1
- package/dist/react-native/operations/firewalls.js +67 -91
- package/dist/react-native/operations/firewalls.js.map +1 -1
- package/dist/react-native/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/react-native/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/react-native/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/react-native/operations/globalRulestack.js +56 -58
- package/dist/react-native/operations/globalRulestack.js.map +1 -1
- package/dist/react-native/operations/localRules.js +45 -52
- package/dist/react-native/operations/localRules.js.map +1 -1
- package/dist/react-native/operations/localRulestacks.js +78 -97
- package/dist/react-native/operations/localRulestacks.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/postRules.js +45 -52
- package/dist/react-native/operations/postRules.js.map +1 -1
- package/dist/react-native/operations/preRules.js +45 -52
- package/dist/react-native/operations/preRules.js.map +1 -1
- package/dist/react-native/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/react-native/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/prefixListLocalRulestack.js +45 -52
- package/dist/react-native/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/react-native/paloAltoNetworksCloudngfw.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-paloaltonetworksngfw-node.api.md +2026 -2026
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixListGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListGlobalRulestack.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,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,mBAA2B,EAC3B,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC9D,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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a;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,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 { PrefixListGlobalRulestack } 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 { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListGlobalRulestackResource,\n PrefixListGlobalRulestackListNextOptionalParams,\n PrefixListGlobalRulestackListOptionalParams,\n PrefixListGlobalRulestackListResponse,\n PrefixListGlobalRulestackGetOptionalParams,\n PrefixListGlobalRulestackGetResponse,\n PrefixListGlobalRulestackCreateOrUpdateOptionalParams,\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n PrefixListGlobalRulestackDeleteOptionalParams,\n PrefixListGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListGlobalRulestack operations. */\nexport class PrefixListGlobalRulestackImpl\n implements PrefixListGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<PrefixListGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, 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(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource[]> {\n let result: PrefixListGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, 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 globalRulestackName,\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 globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): Promise<PrefixListGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackGetOptionalParams\n ): Promise<PrefixListGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>,\n PrefixListGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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: { globalRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>\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 * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\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:\n | coreClient.FullOperationResponse\n | undefined = 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: { globalRulestackName, name, 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 * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\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 globalRulestackName: string,\n nextLink: string,\n options?: PrefixListGlobalRulestackListNextOptionalParams\n ): Promise<PrefixListGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\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.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"prefixListGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListGlobalRulestack.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,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAEvB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,mBAA2B,EAC3B,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC9D,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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,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,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 { PrefixListGlobalRulestack } 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 { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListGlobalRulestackResource,\n PrefixListGlobalRulestackListNextOptionalParams,\n PrefixListGlobalRulestackListOptionalParams,\n PrefixListGlobalRulestackListResponse,\n PrefixListGlobalRulestackGetOptionalParams,\n PrefixListGlobalRulestackGetResponse,\n PrefixListGlobalRulestackCreateOrUpdateOptionalParams,\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n PrefixListGlobalRulestackDeleteOptionalParams,\n PrefixListGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListGlobalRulestack operations. */\nexport class PrefixListGlobalRulestackImpl\n implements PrefixListGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<PrefixListGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, 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(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource[]> {\n let result: PrefixListGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, 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 globalRulestackName,\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 globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): Promise<PrefixListGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackGetOptionalParams\n ): Promise<PrefixListGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>,\n PrefixListGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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: { globalRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>\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 * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\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:\n | coreClient.FullOperationResponse\n | undefined = 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: { globalRulestackName, name, 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 * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\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 globalRulestackName: string,\n nextLink: string,\n options?: PrefixListGlobalRulestackListNextOptionalParams\n ): Promise<PrefixListGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\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.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\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 PrefixListLocalRulestack operations. */
|
|
17
16
|
export class PrefixListLocalRulestackImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class PrefixListLocalRulestack class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class PrefixListLocalRulestackImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByLocalRulestacks(resourceGroupName, localRulestackName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByLocalRulestacksNext(resourceGroupName, localRulestackName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
67
|
+
for await (const page of this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* List PrefixListResource resources by LocalRulestacks
|
|
@@ -117,14 +100,19 @@ export class PrefixListLocalRulestackImpl {
|
|
|
117
100
|
return this.client.sendOperationRequest(args, spec);
|
|
118
101
|
};
|
|
119
102
|
const sendOperationFn = async (args, spec) => {
|
|
120
|
-
var _a;
|
|
121
103
|
let currentRawResponse = undefined;
|
|
122
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
123
105
|
const callback = (rawResponse, flatResponse) => {
|
|
124
106
|
currentRawResponse = rawResponse;
|
|
125
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback
|
|
114
|
+
}
|
|
126
115
|
};
|
|
127
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
128
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
129
117
|
return {
|
|
130
118
|
flatResponse,
|
|
@@ -141,8 +129,8 @@ export class PrefixListLocalRulestackImpl {
|
|
|
141
129
|
spec: createOrUpdateOperationSpec
|
|
142
130
|
});
|
|
143
131
|
const poller = await createHttpPoller(lro, {
|
|
144
|
-
restoreFrom: options
|
|
145
|
-
intervalInMs: options
|
|
132
|
+
restoreFrom: options?.resumeFrom,
|
|
133
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
146
134
|
resourceLocationConfig: "azure-async-operation"
|
|
147
135
|
});
|
|
148
136
|
await poller.poll();
|
|
@@ -172,14 +160,19 @@ export class PrefixListLocalRulestackImpl {
|
|
|
172
160
|
return this.client.sendOperationRequest(args, spec);
|
|
173
161
|
};
|
|
174
162
|
const sendOperationFn = async (args, spec) => {
|
|
175
|
-
var _a;
|
|
176
163
|
let currentRawResponse = undefined;
|
|
177
|
-
const providedCallback =
|
|
164
|
+
const providedCallback = args.options?.onResponse;
|
|
178
165
|
const callback = (rawResponse, flatResponse) => {
|
|
179
166
|
currentRawResponse = rawResponse;
|
|
180
|
-
providedCallback
|
|
167
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
168
|
+
};
|
|
169
|
+
const updatedArgs = {
|
|
170
|
+
...args,
|
|
171
|
+
options: {
|
|
172
|
+
...args.options,
|
|
173
|
+
onResponse: callback
|
|
174
|
+
}
|
|
181
175
|
};
|
|
182
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
183
176
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
184
177
|
return {
|
|
185
178
|
flatResponse,
|
|
@@ -196,8 +189,8 @@ export class PrefixListLocalRulestackImpl {
|
|
|
196
189
|
spec: deleteOperationSpec
|
|
197
190
|
});
|
|
198
191
|
const poller = await createHttpPoller(lro, {
|
|
199
|
-
restoreFrom: options
|
|
200
|
-
intervalInMs: options
|
|
192
|
+
restoreFrom: options?.resumeFrom,
|
|
193
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
201
194
|
resourceLocationConfig: "azure-async-operation"
|
|
202
195
|
});
|
|
203
196
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixListLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListLocalRulestack.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,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE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AAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,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 { PrefixListLocalRulestack } 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 { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListResource,\n PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksResponse,\n PrefixListLocalRulestackGetOptionalParams,\n PrefixListLocalRulestackGetResponse,\n PrefixListLocalRulestackCreateOrUpdateOptionalParams,\n PrefixListLocalRulestackCreateOrUpdateResponse,\n PrefixListLocalRulestackDeleteOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListLocalRulestack operations. */\nexport class PrefixListLocalRulestackImpl implements PrefixListLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<PrefixListResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\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.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListResource[]> {\n let result: PrefixListLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\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._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\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 *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<PrefixListResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackGetOptionalParams\n ): Promise<PrefixListLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>,\n PrefixListLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListLocalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>\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 * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\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:\n | coreClient.FullOperationResponse\n | undefined = 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, localRulestackName, name, 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 * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"pref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,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,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 { PrefixListLocalRulestack } 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 { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListResource,\n PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksResponse,\n PrefixListLocalRulestackGetOptionalParams,\n PrefixListLocalRulestackGetResponse,\n PrefixListLocalRulestackCreateOrUpdateOptionalParams,\n PrefixListLocalRulestackCreateOrUpdateResponse,\n PrefixListLocalRulestackDeleteOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListLocalRulestack operations. */\nexport class PrefixListLocalRulestackImpl implements PrefixListLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<PrefixListResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\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.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListResource[]> {\n let result: PrefixListLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\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._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\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 *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<PrefixListResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackGetOptionalParams\n ): Promise<PrefixListLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>,\n PrefixListLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListLocalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>\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 * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\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:\n | coreClient.FullOperationResponse\n | undefined = 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, localRulestackName, name, 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 * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\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"]}
|
|
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { GlobalRulestackImpl, CertificateObjectGlobalRulestackImpl, FqdnListGlobalRulestackImpl, PostRulesImpl, PrefixListGlobalRulestackImpl, PreRulesImpl, OperationsImpl, FirewallsImpl, LocalRulestacksImpl, FirewallStatusImpl, CertificateObjectLocalRulestackImpl, FqdnListLocalRulestackImpl, LocalRulesImpl, PrefixListLocalRulestackImpl } from "./operations/index.js";
|
|
11
11
|
export class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
16
|
if (credentials === undefined) {
|
|
15
17
|
throw new Error("'credentials' cannot be null");
|
|
16
18
|
}
|
|
@@ -33,12 +35,17 @@ export class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
|
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
36
|
-
const optionsWithDefaults =
|
|
38
|
+
const optionsWithDefaults = {
|
|
39
|
+
...defaults,
|
|
40
|
+
...options,
|
|
41
|
+
userAgentOptions: {
|
|
37
42
|
userAgentPrefix
|
|
38
|
-
},
|
|
43
|
+
},
|
|
44
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
45
|
+
};
|
|
39
46
|
super(optionsWithDefaults);
|
|
40
47
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
41
|
-
if (
|
|
48
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
42
49
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
43
50
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
44
51
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -52,7 +59,8 @@ export class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
|
|
|
52
59
|
});
|
|
53
60
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
61
|
credential: credentials,
|
|
55
|
-
scopes:
|
|
62
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
63
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
56
64
|
challengeCallbacks: {
|
|
57
65
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
58
66
|
}
|
|
@@ -104,5 +112,19 @@ export class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {
|
|
|
104
112
|
};
|
|
105
113
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
106
114
|
}
|
|
115
|
+
globalRulestack;
|
|
116
|
+
certificateObjectGlobalRulestack;
|
|
117
|
+
fqdnListGlobalRulestack;
|
|
118
|
+
postRules;
|
|
119
|
+
prefixListGlobalRulestack;
|
|
120
|
+
preRules;
|
|
121
|
+
operations;
|
|
122
|
+
firewalls;
|
|
123
|
+
localRulestacks;
|
|
124
|
+
firewallStatus;
|
|
125
|
+
certificateObjectLocalRulestack;
|
|
126
|
+
fqdnListLocalRulestack;
|
|
127
|
+
localRules;
|
|
128
|
+
prefixListLocalRulestack;
|
|
107
129
|
}
|
|
108
130
|
//# sourceMappingURL=paloAltoNetworksCloudngfw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paloAltoNetworksCloudngfw.js","sourceRoot":"","sources":["../../src/paloAltoNetworksCloudngfw.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,oCAAoC,EACpC,2BAA2B,EAC3B,aAAa,EACb,6BAA6B,EAC7B,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,mCAAmC,EACnC,0BAA0B,EAC1B,cAAc,EACd,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAmB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;I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,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAgBF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n GlobalRulestackImpl,\n CertificateObjectGlobalRulestackImpl,\n FqdnListGlobalRulestackImpl,\n PostRulesImpl,\n PrefixListGlobalRulestackImpl,\n PreRulesImpl,\n OperationsImpl,\n FirewallsImpl,\n LocalRulestacksImpl,\n FirewallStatusImpl,\n CertificateObjectLocalRulestackImpl,\n FqdnListLocalRulestackImpl,\n LocalRulesImpl,\n PrefixListLocalRulestackImpl\n} from \"./operations/index.js\";\nimport {\n GlobalRulestack,\n CertificateObjectGlobalRulestack,\n FqdnListGlobalRulestack,\n PostRules,\n PrefixListGlobalRulestack,\n PreRules,\n Operations,\n Firewalls,\n LocalRulestacks,\n FirewallStatus,\n CertificateObjectLocalRulestack,\n FqdnListLocalRulestack,\n LocalRules,\n PrefixListLocalRulestack\n} from \"./operationsInterfaces/index.js\";\nimport { PaloAltoNetworksCloudngfwOptionalParams } from \"./models/index.js\";\n\nexport class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the PaloAltoNetworksCloudngfw class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: PaloAltoNetworksCloudngfwOptionalParams | string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PaloAltoNetworksCloudngfwOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-paloaltonetworksngfw/1.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-09-01\";\n this.globalRulestack = new GlobalRulestackImpl(this);\n this.certificateObjectGlobalRulestack = new CertificateObjectGlobalRulestackImpl(\n this\n );\n this.fqdnListGlobalRulestack = new FqdnListGlobalRulestackImpl(this);\n this.postRules = new PostRulesImpl(this);\n this.prefixListGlobalRulestack = new PrefixListGlobalRulestackImpl(this);\n this.preRules = new PreRulesImpl(this);\n this.operations = new OperationsImpl(this);\n this.firewalls = new FirewallsImpl(this);\n this.localRulestacks = new LocalRulestacksImpl(this);\n this.firewallStatus = new FirewallStatusImpl(this);\n this.certificateObjectLocalRulestack = new CertificateObjectLocalRulestackImpl(\n this\n );\n this.fqdnListLocalRulestack = new FqdnListLocalRulestackImpl(this);\n this.localRules = new LocalRulesImpl(this);\n this.prefixListLocalRulestack = new PrefixListLocalRulestackImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n globalRulestack: GlobalRulestack;\n certificateObjectGlobalRulestack: CertificateObjectGlobalRulestack;\n fqdnListGlobalRulestack: FqdnListGlobalRulestack;\n postRules: PostRules;\n prefixListGlobalRulestack: PrefixListGlobalRulestack;\n preRules: PreRules;\n operations: Operations;\n firewalls: Firewalls;\n localRulestacks: LocalRulestacks;\n firewallStatus: FirewallStatus;\n certificateObjectLocalRulestack: CertificateObjectLocalRulestack;\n fqdnListLocalRulestack: FqdnListLocalRulestack;\n localRules: LocalRules;\n prefixListLocalRulestack: PrefixListLocalRulestack;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"paloAltoNetworksCloudngfw.js","sourceRoot":"","sources":["../../src/paloAltoNetworksCloudngfw.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,oCAAoC,EACpC,2BAA2B,EAC3B,aAAa,EACb,6BAA6B,EAC7B,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,mCAAmC,EACnC,0BAA0B,EAC1B,cAAc,EACd,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAmB/B,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB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G,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAkB;IACjC,gCAAgC,CAAmC;IACnE,uBAAuB,CAA0B;IACjD,SAAS,CAAY;IACrB,yBAAyB,CAA4B;IACrD,QAAQ,CAAW;IACnB,UAAU,CAAa;IACvB,SAAS,CAAY;IACrB,eAAe,CAAkB;IACjC,cAAc,CAAiB;IAC/B,+BAA+B,CAAkC;IACjE,sBAAsB,CAAyB;IAC/C,UAAU,CAAa;IACvB,wBAAwB,CAA2B;CACpD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n GlobalRulestackImpl,\n CertificateObjectGlobalRulestackImpl,\n FqdnListGlobalRulestackImpl,\n PostRulesImpl,\n PrefixListGlobalRulestackImpl,\n PreRulesImpl,\n OperationsImpl,\n FirewallsImpl,\n LocalRulestacksImpl,\n FirewallStatusImpl,\n CertificateObjectLocalRulestackImpl,\n FqdnListLocalRulestackImpl,\n LocalRulesImpl,\n PrefixListLocalRulestackImpl\n} from \"./operations/index.js\";\nimport {\n GlobalRulestack,\n CertificateObjectGlobalRulestack,\n FqdnListGlobalRulestack,\n PostRules,\n PrefixListGlobalRulestack,\n PreRules,\n Operations,\n Firewalls,\n LocalRulestacks,\n FirewallStatus,\n CertificateObjectLocalRulestack,\n FqdnListLocalRulestack,\n LocalRules,\n PrefixListLocalRulestack\n} from \"./operationsInterfaces/index.js\";\nimport { PaloAltoNetworksCloudngfwOptionalParams } from \"./models/index.js\";\n\nexport class PaloAltoNetworksCloudngfw extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the PaloAltoNetworksCloudngfw class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: PaloAltoNetworksCloudngfwOptionalParams | string,\n options?: PaloAltoNetworksCloudngfwOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: PaloAltoNetworksCloudngfwOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-paloaltonetworksngfw/1.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-09-01\";\n this.globalRulestack = new GlobalRulestackImpl(this);\n this.certificateObjectGlobalRulestack = new CertificateObjectGlobalRulestackImpl(\n this\n );\n this.fqdnListGlobalRulestack = new FqdnListGlobalRulestackImpl(this);\n this.postRules = new PostRulesImpl(this);\n this.prefixListGlobalRulestack = new PrefixListGlobalRulestackImpl(this);\n this.preRules = new PreRulesImpl(this);\n this.operations = new OperationsImpl(this);\n this.firewalls = new FirewallsImpl(this);\n this.localRulestacks = new LocalRulestacksImpl(this);\n this.firewallStatus = new FirewallStatusImpl(this);\n this.certificateObjectLocalRulestack = new CertificateObjectLocalRulestackImpl(\n this\n );\n this.fqdnListLocalRulestack = new FqdnListLocalRulestackImpl(this);\n this.localRules = new LocalRulesImpl(this);\n this.prefixListLocalRulestack = new PrefixListLocalRulestackImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n globalRulestack: GlobalRulestack;\n certificateObjectGlobalRulestack: CertificateObjectGlobalRulestack;\n fqdnListGlobalRulestack: FqdnListGlobalRulestack;\n postRules: PostRules;\n prefixListGlobalRulestack: PrefixListGlobalRulestack;\n preRules: PreRules;\n operations: Operations;\n firewalls: Firewalls;\n localRulestacks: LocalRulestacks;\n firewallStatus: FirewallStatus;\n certificateObjectLocalRulestack: CertificateObjectLocalRulestack;\n fqdnListLocalRulestack: FqdnListLocalRulestack;\n localRules: LocalRules;\n prefixListLocalRulestack: PrefixListLocalRulestack;\n}\n"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLroSpec = createLroSpec;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
function createLroSpec(inputs) {
|
|
6
5
|
const { args, spec, sendOperationFn } = inputs;
|
|
7
6
|
return {
|
|
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
|
|
|
9
8
|
requestPath: spec.path,
|
|
10
9
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
11
10
|
sendPollRequest: (path, options) => {
|
|
12
|
-
const { requestBody
|
|
13
|
-
return sendOperationFn(args,
|
|
11
|
+
const { requestBody, ...restSpec } = spec;
|
|
12
|
+
return sendOperationFn(args, {
|
|
13
|
+
...restSpec,
|
|
14
|
+
httpMethod: "GET",
|
|
15
|
+
path,
|
|
16
|
+
abortSignal: options?.abortSignal
|
|
17
|
+
});
|
|
14
18
|
}
|
|
15
19
|
};
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|