@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250718.1 → 1.1.1-alpha.20250730.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":"globalRulestack.js","sourceRoot":"","sources":["../../../src/operations/globalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmC9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA2C,EAC3C,QAAuB;;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U,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC;IACjE,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,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { GlobalRulestack } 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 GlobalRulestackResource,\n GlobalRulestackListNextOptionalParams,\n GlobalRulestackListOptionalParams,\n GlobalRulestackListResponse,\n GlobalRulestackGetOptionalParams,\n GlobalRulestackGetResponse,\n GlobalRulestackCreateOrUpdateOptionalParams,\n GlobalRulestackCreateOrUpdateResponse,\n GlobalRulestackResourceUpdate,\n GlobalRulestackUpdateOptionalParams,\n GlobalRulestackUpdateResponse,\n GlobalRulestackDeleteOptionalParams,\n GlobalRulestackCommitOptionalParams,\n GlobalRulestackGetChangeLogOptionalParams,\n GlobalRulestackGetChangeLogResponse,\n AdvSecurityObjectTypeEnum,\n GlobalRulestackListAdvancedSecurityObjectsOptionalParams,\n GlobalRulestackListAdvancedSecurityObjectsResponse,\n GlobalRulestackListAppIdsOptionalParams,\n GlobalRulestackListAppIdsResponse,\n GlobalRulestackListCountriesOptionalParams,\n GlobalRulestackListCountriesResponse,\n GlobalRulestackListFirewallsOptionalParams,\n GlobalRulestackListFirewallsResponse,\n GlobalRulestackListPredefinedUrlCategoriesOptionalParams,\n GlobalRulestackListPredefinedUrlCategoriesResponse,\n SecurityServicesTypeEnum,\n GlobalRulestackListSecurityServicesOptionalParams,\n GlobalRulestackListSecurityServicesResponse,\n GlobalRulestackRevertOptionalParams,\n GlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalRulestack operations. */\nexport class GlobalRulestackImpl implements GlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class GlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n public list(\n options?: GlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<GlobalRulestackResource> {\n const iter = this.listPagingAll(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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: GlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GlobalRulestackResource[]> {\n let result: GlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: GlobalRulestackListOptionalParams\n ): AsyncIterableIterator<GlobalRulestackResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n private _list(\n options?: GlobalRulestackListOptionalParams\n ): Promise<GlobalRulestackListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n options?: GlobalRulestackGetOptionalParams\n ): Promise<GlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<GlobalRulestackCreateOrUpdateResponse>,\n GlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<GlobalRulestackCreateOrUpdateResponse> => {\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, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n GlobalRulestackCreateOrUpdateResponse,\n OperationState<GlobalRulestackCreateOrUpdateResponse>\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 GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<GlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n globalRulestackName: string,\n properties: GlobalRulestackResourceUpdate,\n options?: GlobalRulestackUpdateOptionalParams\n ): Promise<GlobalRulestackUpdateResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, properties, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\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, 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 GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommit(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\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, options },\n spec: commitOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommitAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<void> {\n const poller = await this.beginCommit(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get changelog\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n getChangeLog(\n globalRulestackName: string,\n options?: GlobalRulestackGetChangeLogOptionalParams\n ): Promise<GlobalRulestackGetChangeLogResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getChangeLogOperationSpec\n );\n }\n\n /**\n * Get the list of advanced security objects\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listAdvancedSecurityObjects(\n globalRulestackName: string,\n typeParam: AdvSecurityObjectTypeEnum,\n options?: GlobalRulestackListAdvancedSecurityObjectsOptionalParams\n ): Promise<GlobalRulestackListAdvancedSecurityObjectsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listAdvancedSecurityObjectsOperationSpec\n );\n }\n\n /**\n * List of AppIds for GlobalRulestack ApiVersion\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listAppIds(\n globalRulestackName: string,\n options?: GlobalRulestackListAppIdsOptionalParams\n ): Promise<GlobalRulestackListAppIdsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listAppIdsOperationSpec\n );\n }\n\n /**\n * List of countries for Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listCountries(\n globalRulestackName: string,\n options?: GlobalRulestackListCountriesOptionalParams\n ): Promise<GlobalRulestackListCountriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listCountriesOperationSpec\n );\n }\n\n /**\n * List of Firewalls associated with Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listFirewalls(\n globalRulestackName: string,\n options?: GlobalRulestackListFirewallsOptionalParams\n ): Promise<GlobalRulestackListFirewallsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listFirewallsOperationSpec\n );\n }\n\n /**\n * List predefined URL categories for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listPredefinedUrlCategories(\n globalRulestackName: string,\n options?: GlobalRulestackListPredefinedUrlCategoriesOptionalParams\n ): Promise<GlobalRulestackListPredefinedUrlCategoriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listPredefinedUrlCategoriesOperationSpec\n );\n }\n\n /**\n * List the security services for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listSecurityServices(\n globalRulestackName: string,\n typeParam: SecurityServicesTypeEnum,\n options?: GlobalRulestackListSecurityServicesOptionalParams\n ): Promise<GlobalRulestackListSecurityServicesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listSecurityServicesOperationSpec\n );\n }\n\n /**\n * Revert rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n revert(\n globalRulestackName: string,\n options?: GlobalRulestackRevertOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n revertOperationSpec\n );\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: GlobalRulestackListNextOptionalParams\n ): Promise<GlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\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 createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\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: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst commitOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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 getChangeLogOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Changelog\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 listAdvancedSecurityObjectsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAdvancedSecurityObjects\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AdvSecurityObjectListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAppIdsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAppIdResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.appIdVersion,\n Parameters.appPrefix\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listCountriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listFirewallsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListFirewallsResponse\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 listPredefinedUrlCategoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listPredefinedUrlCategories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PredefinedUrlCategoriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listSecurityServicesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityServicesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam1\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revertOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"globalRulestack.js","sourceRoot":"","sources":["../../../src/operations/globalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmC9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA2C,EAC3C,QAAuB;QAEvB,IAAI,MAAmC,CAAC;QACxC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC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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 { GlobalRulestack } 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 GlobalRulestackResource,\n GlobalRulestackListNextOptionalParams,\n GlobalRulestackListOptionalParams,\n GlobalRulestackListResponse,\n GlobalRulestackGetOptionalParams,\n GlobalRulestackGetResponse,\n GlobalRulestackCreateOrUpdateOptionalParams,\n GlobalRulestackCreateOrUpdateResponse,\n GlobalRulestackResourceUpdate,\n GlobalRulestackUpdateOptionalParams,\n GlobalRulestackUpdateResponse,\n GlobalRulestackDeleteOptionalParams,\n GlobalRulestackCommitOptionalParams,\n GlobalRulestackGetChangeLogOptionalParams,\n GlobalRulestackGetChangeLogResponse,\n AdvSecurityObjectTypeEnum,\n GlobalRulestackListAdvancedSecurityObjectsOptionalParams,\n GlobalRulestackListAdvancedSecurityObjectsResponse,\n GlobalRulestackListAppIdsOptionalParams,\n GlobalRulestackListAppIdsResponse,\n GlobalRulestackListCountriesOptionalParams,\n GlobalRulestackListCountriesResponse,\n GlobalRulestackListFirewallsOptionalParams,\n GlobalRulestackListFirewallsResponse,\n GlobalRulestackListPredefinedUrlCategoriesOptionalParams,\n GlobalRulestackListPredefinedUrlCategoriesResponse,\n SecurityServicesTypeEnum,\n GlobalRulestackListSecurityServicesOptionalParams,\n GlobalRulestackListSecurityServicesResponse,\n GlobalRulestackRevertOptionalParams,\n GlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalRulestack operations. */\nexport class GlobalRulestackImpl implements GlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class GlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n public list(\n options?: GlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<GlobalRulestackResource> {\n const iter = this.listPagingAll(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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: GlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<GlobalRulestackResource[]> {\n let result: GlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: GlobalRulestackListOptionalParams\n ): AsyncIterableIterator<GlobalRulestackResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List GlobalRulestackResource resources by Tenant\n * @param options The options parameters.\n */\n private _list(\n options?: GlobalRulestackListOptionalParams\n ): Promise<GlobalRulestackListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n options?: GlobalRulestackGetOptionalParams\n ): Promise<GlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<GlobalRulestackCreateOrUpdateResponse>,\n GlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<GlobalRulestackCreateOrUpdateResponse> => {\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, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n GlobalRulestackCreateOrUpdateResponse,\n OperationState<GlobalRulestackCreateOrUpdateResponse>\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 GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n resource: GlobalRulestackResource,\n options?: GlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<GlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n globalRulestackName: string,\n properties: GlobalRulestackResourceUpdate,\n options?: GlobalRulestackUpdateOptionalParams\n ): Promise<GlobalRulestackUpdateResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, properties, options },\n updateOperationSpec\n );\n }\n\n /**\n * Delete a GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\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, 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 GlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommit(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\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, options },\n spec: commitOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Commit rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n async beginCommitAndWait(\n globalRulestackName: string,\n options?: GlobalRulestackCommitOptionalParams\n ): Promise<void> {\n const poller = await this.beginCommit(globalRulestackName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get changelog\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n getChangeLog(\n globalRulestackName: string,\n options?: GlobalRulestackGetChangeLogOptionalParams\n ): Promise<GlobalRulestackGetChangeLogResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n getChangeLogOperationSpec\n );\n }\n\n /**\n * Get the list of advanced security objects\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listAdvancedSecurityObjects(\n globalRulestackName: string,\n typeParam: AdvSecurityObjectTypeEnum,\n options?: GlobalRulestackListAdvancedSecurityObjectsOptionalParams\n ): Promise<GlobalRulestackListAdvancedSecurityObjectsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listAdvancedSecurityObjectsOperationSpec\n );\n }\n\n /**\n * List of AppIds for GlobalRulestack ApiVersion\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listAppIds(\n globalRulestackName: string,\n options?: GlobalRulestackListAppIdsOptionalParams\n ): Promise<GlobalRulestackListAppIdsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listAppIdsOperationSpec\n );\n }\n\n /**\n * List of countries for Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listCountries(\n globalRulestackName: string,\n options?: GlobalRulestackListCountriesOptionalParams\n ): Promise<GlobalRulestackListCountriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listCountriesOperationSpec\n );\n }\n\n /**\n * List of Firewalls associated with Rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listFirewalls(\n globalRulestackName: string,\n options?: GlobalRulestackListFirewallsOptionalParams\n ): Promise<GlobalRulestackListFirewallsResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listFirewallsOperationSpec\n );\n }\n\n /**\n * List predefined URL categories for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n listPredefinedUrlCategories(\n globalRulestackName: string,\n options?: GlobalRulestackListPredefinedUrlCategoriesOptionalParams\n ): Promise<GlobalRulestackListPredefinedUrlCategoriesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listPredefinedUrlCategoriesOperationSpec\n );\n }\n\n /**\n * List the security services for rulestack\n * @param globalRulestackName GlobalRulestack resource name\n * @param typeParam\n * @param options The options parameters.\n */\n listSecurityServices(\n globalRulestackName: string,\n typeParam: SecurityServicesTypeEnum,\n options?: GlobalRulestackListSecurityServicesOptionalParams\n ): Promise<GlobalRulestackListSecurityServicesResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, typeParam, options },\n listSecurityServicesOperationSpec\n );\n }\n\n /**\n * Revert rulestack configuration\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n revert(\n globalRulestackName: string,\n options?: GlobalRulestackRevertOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n revertOperationSpec\n );\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: GlobalRulestackListNextOptionalParams\n ): Promise<GlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\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 createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}\",\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: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst commitOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/commit\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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 getChangeLogOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/getChangeLog\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Changelog\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 listAdvancedSecurityObjectsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAdvancedSecurityObjects\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AdvSecurityObjectListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAppIdsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listAppIds\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAppIdResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.appIdVersion,\n Parameters.appPrefix\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listCountriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listCountries\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listFirewallsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listFirewalls\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListFirewallsResponse\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 listPredefinedUrlCategoriesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listPredefinedUrlCategories\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PredefinedUrlCategoriesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listSecurityServicesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/listSecurityServices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SecurityServicesResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skip,\n Parameters.top,\n Parameters.typeParam1\n ],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revertOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/revert\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing LocalRules operations. */
|
|
20
20
|
class LocalRulesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class LocalRules class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class LocalRulesImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByLocalRulestacks(resourceGroupName, localRulestackName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByLocalRulestacksNext(resourceGroupName, localRulestackName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
71
|
+
for await (const page of this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* List LocalRulesResource resources by LocalRulestacks
|
|
@@ -120,14 +104,19 @@ class LocalRulesImpl {
|
|
|
120
104
|
return this.client.sendOperationRequest(args, spec);
|
|
121
105
|
};
|
|
122
106
|
const sendOperationFn = async (args, spec) => {
|
|
123
|
-
var _a;
|
|
124
107
|
let currentRawResponse = undefined;
|
|
125
|
-
const providedCallback =
|
|
108
|
+
const providedCallback = args.options?.onResponse;
|
|
126
109
|
const callback = (rawResponse, flatResponse) => {
|
|
127
110
|
currentRawResponse = rawResponse;
|
|
128
|
-
providedCallback
|
|
111
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
112
|
+
};
|
|
113
|
+
const updatedArgs = {
|
|
114
|
+
...args,
|
|
115
|
+
options: {
|
|
116
|
+
...args.options,
|
|
117
|
+
onResponse: callback
|
|
118
|
+
}
|
|
129
119
|
};
|
|
130
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
131
120
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
132
121
|
return {
|
|
133
122
|
flatResponse,
|
|
@@ -150,8 +139,8 @@ class LocalRulesImpl {
|
|
|
150
139
|
spec: createOrUpdateOperationSpec
|
|
151
140
|
});
|
|
152
141
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
153
|
-
restoreFrom: options
|
|
154
|
-
intervalInMs: options
|
|
142
|
+
restoreFrom: options?.resumeFrom,
|
|
143
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
155
144
|
resourceLocationConfig: "azure-async-operation"
|
|
156
145
|
});
|
|
157
146
|
await poller.poll();
|
|
@@ -181,14 +170,19 @@ class LocalRulesImpl {
|
|
|
181
170
|
return this.client.sendOperationRequest(args, spec);
|
|
182
171
|
};
|
|
183
172
|
const sendOperationFn = async (args, spec) => {
|
|
184
|
-
var _a;
|
|
185
173
|
let currentRawResponse = undefined;
|
|
186
|
-
const providedCallback =
|
|
174
|
+
const providedCallback = args.options?.onResponse;
|
|
187
175
|
const callback = (rawResponse, flatResponse) => {
|
|
188
176
|
currentRawResponse = rawResponse;
|
|
189
|
-
providedCallback
|
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
178
|
+
};
|
|
179
|
+
const updatedArgs = {
|
|
180
|
+
...args,
|
|
181
|
+
options: {
|
|
182
|
+
...args.options,
|
|
183
|
+
onResponse: callback
|
|
184
|
+
}
|
|
190
185
|
};
|
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
192
186
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
193
187
|
return {
|
|
194
188
|
flatResponse,
|
|
@@ -205,8 +199,8 @@ class LocalRulesImpl {
|
|
|
205
199
|
spec: deleteOperationSpec
|
|
206
200
|
});
|
|
207
201
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
208
|
-
restoreFrom: options
|
|
209
|
-
intervalInMs: options
|
|
202
|
+
restoreFrom: options?.resumeFrom,
|
|
203
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
210
204
|
resourceLocationConfig: "azure-async-operation"
|
|
211
205
|
});
|
|
212
206
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localRules.js","sourceRoot":"","sources":["../../../src/operations/localRules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,+BAA+B,CACzC,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,+BAA+B,CAC5C,iBAAyB,EACzB,kBAA0B,EAC1B,OAAuD,EACvD,QA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U,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;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CA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5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;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"]}
|