@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250620.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.api.md → arm-paloaltonetworksngfw-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localRules.js","sourceRoot":"","sources":["../../../src/operations/localRules.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;AAmB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBAAyB,EACzB,kBAA0B,EAC1B,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,8BAA8B,CAC9C,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,E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C;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,kLAAkL;IACpL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC;IACjE,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;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 { LocalRules } 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 LocalRulesResource,\n LocalRulesListByLocalRulestacksNextOptionalParams,\n LocalRulesListByLocalRulestacksOptionalParams,\n LocalRulesListByLocalRulestacksResponse,\n LocalRulesGetOptionalParams,\n LocalRulesGetResponse,\n LocalRulesCreateOrUpdateOptionalParams,\n LocalRulesCreateOrUpdateResponse,\n LocalRulesDeleteOptionalParams,\n LocalRulesGetCountersOptionalParams,\n LocalRulesGetCountersResponse,\n LocalRulesRefreshCountersOptionalParams,\n LocalRulesResetCountersOptionalParams,\n LocalRulesResetCountersResponse,\n LocalRulesListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocalRules operations. */\nexport class LocalRulesImpl implements LocalRules {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class LocalRules class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List LocalRulesResource 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?: LocalRulesListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<LocalRulesResource> {\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?: LocalRulesListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LocalRulesResource[]> {\n let result: LocalRulesListByLocalRulestacksResponse;\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?: LocalRulesListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<LocalRulesResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List LocalRulesResource 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?: LocalRulesListByLocalRulestacksOptionalParams\n ): Promise<LocalRulesListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesGetOptionalParams\n ): Promise<LocalRulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority 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 priority: string,\n resource: LocalRulesResource,\n options?: LocalRulesCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<LocalRulesCreateOrUpdateResponse>,\n LocalRulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LocalRulesCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n localRulestackName,\n priority,\n resource,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n LocalRulesCreateOrUpdateResponse,\n OperationState<LocalRulesCreateOrUpdateResponse>\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 LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority 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 priority: string,\n resource: LocalRulesResource,\n options?: LocalRulesCreateOrUpdateOptionalParams\n ): Promise<LocalRulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n priority,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesDeleteOptionalParams\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, priority, 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 LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n priority,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n getCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesGetCountersOptionalParams\n ): Promise<LocalRulesGetCountersResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n getCountersOperationSpec\n );\n }\n\n /**\n * Refresh counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n refreshCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesRefreshCountersOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n refreshCountersOperationSpec\n );\n }\n\n /**\n * Reset counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n resetCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesResetCountersOptionalParams\n ): Promise<LocalRulesResetCountersResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n resetCountersOperationSpec\n );\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?: LocalRulesListByLocalRulestacksNextOptionalParams\n ): Promise<LocalRulesListByLocalRulestacksNextResponse> {\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}/localRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResourceListResult\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}/localRules/{priority}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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}/localRules/{priority}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 201: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 202: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 204: {\n bodyMapper: Mappers.LocalRulesResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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}/localRules/{priority}\",\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.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/getCounters\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleCounter\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/refreshCounters\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resetCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/resetCounters\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleCounterReset\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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.LocalRulesResourceListResult\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":"localRules.js","sourceRoot":"","sources":["../../../src/operations/localRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;A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,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 { LocalRules } 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 LocalRulesResource,\n LocalRulesListByLocalRulestacksNextOptionalParams,\n LocalRulesListByLocalRulestacksOptionalParams,\n LocalRulesListByLocalRulestacksResponse,\n LocalRulesGetOptionalParams,\n LocalRulesGetResponse,\n LocalRulesCreateOrUpdateOptionalParams,\n LocalRulesCreateOrUpdateResponse,\n LocalRulesDeleteOptionalParams,\n LocalRulesGetCountersOptionalParams,\n LocalRulesGetCountersResponse,\n LocalRulesRefreshCountersOptionalParams,\n LocalRulesResetCountersOptionalParams,\n LocalRulesResetCountersResponse,\n LocalRulesListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocalRules operations. */\nexport class LocalRulesImpl implements LocalRules {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class LocalRules class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List LocalRulesResource 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?: LocalRulesListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<LocalRulesResource> {\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?: LocalRulesListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LocalRulesResource[]> {\n let result: LocalRulesListByLocalRulestacksResponse;\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?: LocalRulesListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<LocalRulesResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List LocalRulesResource 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?: LocalRulesListByLocalRulestacksOptionalParams\n ): Promise<LocalRulesListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesGetOptionalParams\n ): Promise<LocalRulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority 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 priority: string,\n resource: LocalRulesResource,\n options?: LocalRulesCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<LocalRulesCreateOrUpdateResponse>,\n LocalRulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LocalRulesCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n localRulestackName,\n priority,\n resource,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n LocalRulesCreateOrUpdateResponse,\n OperationState<LocalRulesCreateOrUpdateResponse>\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 LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority 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 priority: string,\n resource: LocalRulesResource,\n options?: LocalRulesCreateOrUpdateOptionalParams\n ): Promise<LocalRulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n priority,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesDeleteOptionalParams\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, priority, 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 LocalRulesResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n priority,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n getCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesGetCountersOptionalParams\n ): Promise<LocalRulesGetCountersResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n getCountersOperationSpec\n );\n }\n\n /**\n * Refresh counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n refreshCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesRefreshCountersOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n refreshCountersOperationSpec\n );\n }\n\n /**\n * Reset counters\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param priority Local Rule priority\n * @param options The options parameters.\n */\n resetCounters(\n resourceGroupName: string,\n localRulestackName: string,\n priority: string,\n options?: LocalRulesResetCountersOptionalParams\n ): Promise<LocalRulesResetCountersResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, priority, options },\n resetCountersOperationSpec\n );\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?: LocalRulesListByLocalRulestacksNextOptionalParams\n ): Promise<LocalRulesListByLocalRulestacksNextResponse> {\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}/localRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResourceListResult\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}/localRules/{priority}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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}/localRules/{priority}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 201: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 202: {\n bodyMapper: Mappers.LocalRulesResource\n },\n 204: {\n bodyMapper: Mappers.LocalRulesResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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}/localRules/{priority}\",\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.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/getCounters\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleCounter\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst refreshCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/refreshCounters\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resetCountersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/localRules/{priority}/resetCounters\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleCounterReset\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.firewallName],\n urlParameters: [\n Parameters.$host,\n Parameters.priority,\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.LocalRulesResourceListResult\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"]}
|
|
@@ -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 LocalRulestacks operations. */
|
|
17
16
|
export class LocalRulestacksImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class LocalRulestacks class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class LocalRulestacksImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List LocalRulestackResource resources by resource group
|
|
@@ -98,52 +81,35 @@ export class LocalRulestacksImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
}
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* List LocalRulestackResource resources by subscription ID
|
|
@@ -181,14 +147,19 @@ export class LocalRulestacksImpl {
|
|
|
181
147
|
return this.client.sendOperationRequest(args, spec);
|
|
182
148
|
};
|
|
183
149
|
const sendOperationFn = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
150
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
151
|
+
const providedCallback = args.options?.onResponse;
|
|
187
152
|
const callback = (rawResponse, flatResponse) => {
|
|
188
153
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
154
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = {
|
|
157
|
+
...args,
|
|
158
|
+
options: {
|
|
159
|
+
...args.options,
|
|
160
|
+
onResponse: callback
|
|
161
|
+
}
|
|
190
162
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
164
|
return {
|
|
194
165
|
flatResponse,
|
|
@@ -205,8 +176,8 @@ export class LocalRulestacksImpl {
|
|
|
205
176
|
spec: createOrUpdateOperationSpec
|
|
206
177
|
});
|
|
207
178
|
const poller = await createHttpPoller(lro, {
|
|
208
|
-
restoreFrom: options
|
|
209
|
-
intervalInMs: options
|
|
179
|
+
restoreFrom: options?.resumeFrom,
|
|
180
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
210
181
|
resourceLocationConfig: "azure-async-operation"
|
|
211
182
|
});
|
|
212
183
|
await poller.poll();
|
|
@@ -244,14 +215,19 @@ export class LocalRulestacksImpl {
|
|
|
244
215
|
return this.client.sendOperationRequest(args, spec);
|
|
245
216
|
};
|
|
246
217
|
const sendOperationFn = async (args, spec) => {
|
|
247
|
-
var _a;
|
|
248
218
|
let currentRawResponse = undefined;
|
|
249
|
-
const providedCallback =
|
|
219
|
+
const providedCallback = args.options?.onResponse;
|
|
250
220
|
const callback = (rawResponse, flatResponse) => {
|
|
251
221
|
currentRawResponse = rawResponse;
|
|
252
|
-
providedCallback
|
|
222
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
223
|
+
};
|
|
224
|
+
const updatedArgs = {
|
|
225
|
+
...args,
|
|
226
|
+
options: {
|
|
227
|
+
...args.options,
|
|
228
|
+
onResponse: callback
|
|
229
|
+
}
|
|
253
230
|
};
|
|
254
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
255
231
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
256
232
|
return {
|
|
257
233
|
flatResponse,
|
|
@@ -268,8 +244,8 @@ export class LocalRulestacksImpl {
|
|
|
268
244
|
spec: deleteOperationSpec
|
|
269
245
|
});
|
|
270
246
|
const poller = await createHttpPoller(lro, {
|
|
271
|
-
restoreFrom: options
|
|
272
|
-
intervalInMs: options
|
|
247
|
+
restoreFrom: options?.resumeFrom,
|
|
248
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
273
249
|
resourceLocationConfig: "azure-async-operation"
|
|
274
250
|
});
|
|
275
251
|
await poller.poll();
|
|
@@ -296,14 +272,19 @@ export class LocalRulestacksImpl {
|
|
|
296
272
|
return this.client.sendOperationRequest(args, spec);
|
|
297
273
|
};
|
|
298
274
|
const sendOperationFn = async (args, spec) => {
|
|
299
|
-
var _a;
|
|
300
275
|
let currentRawResponse = undefined;
|
|
301
|
-
const providedCallback =
|
|
276
|
+
const providedCallback = args.options?.onResponse;
|
|
302
277
|
const callback = (rawResponse, flatResponse) => {
|
|
303
278
|
currentRawResponse = rawResponse;
|
|
304
|
-
providedCallback
|
|
279
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = {
|
|
282
|
+
...args,
|
|
283
|
+
options: {
|
|
284
|
+
...args.options,
|
|
285
|
+
onResponse: callback
|
|
286
|
+
}
|
|
305
287
|
};
|
|
306
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
307
288
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
289
|
return {
|
|
309
290
|
flatResponse,
|
|
@@ -320,8 +301,8 @@ export class LocalRulestacksImpl {
|
|
|
320
301
|
spec: commitOperationSpec
|
|
321
302
|
});
|
|
322
303
|
const poller = await createHttpPoller(lro, {
|
|
323
|
-
restoreFrom: options
|
|
324
|
-
intervalInMs: options
|
|
304
|
+
restoreFrom: options?.resumeFrom,
|
|
305
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
325
306
|
resourceLocationConfig: "location"
|
|
326
307
|
});
|
|
327
308
|
await poller.poll();
|