@azure/arm-paloaltonetworksngfw 1.1.1-alpha.20250718.1 → 1.1.1-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +307 -146
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/browser/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/browser/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/browser/operations/firewallStatus.js +23 -40
- package/dist/browser/operations/firewallStatus.js.map +1 -1
- package/dist/browser/operations/firewalls.js +67 -91
- package/dist/browser/operations/firewalls.js.map +1 -1
- package/dist/browser/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/browser/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/browser/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/browser/operations/globalRulestack.js +56 -58
- package/dist/browser/operations/globalRulestack.js.map +1 -1
- package/dist/browser/operations/localRules.js +45 -52
- package/dist/browser/operations/localRules.js.map +1 -1
- package/dist/browser/operations/localRulestacks.js +78 -97
- package/dist/browser/operations/localRulestacks.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/postRules.js +45 -52
- package/dist/browser/operations/postRules.js.map +1 -1
- package/dist/browser/operations/preRules.js +45 -52
- package/dist/browser/operations/preRules.js.map +1 -1
- package/dist/browser/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/browser/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/browser/operations/prefixListLocalRulestack.js +45 -52
- package/dist/browser/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/browser/paloAltoNetworksCloudngfw.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +307 -146
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/certificateObjectGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/certificateObjectLocalRulestack.js +45 -51
- package/dist/commonjs/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/commonjs/operations/firewallStatus.js +23 -39
- package/dist/commonjs/operations/firewallStatus.js.map +1 -1
- package/dist/commonjs/operations/firewalls.js +67 -90
- package/dist/commonjs/operations/firewalls.js.map +1 -1
- package/dist/commonjs/operations/fqdnListGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/fqdnListLocalRulestack.js +45 -51
- package/dist/commonjs/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/commonjs/operations/globalRulestack.js +56 -57
- package/dist/commonjs/operations/globalRulestack.js.map +1 -1
- package/dist/commonjs/operations/localRules.js +45 -51
- package/dist/commonjs/operations/localRules.js.map +1 -1
- package/dist/commonjs/operations/localRulestacks.js +78 -96
- package/dist/commonjs/operations/localRulestacks.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/postRules.js +45 -51
- package/dist/commonjs/operations/postRules.js.map +1 -1
- package/dist/commonjs/operations/preRules.js +45 -51
- package/dist/commonjs/operations/preRules.js.map +1 -1
- package/dist/commonjs/operations/prefixListGlobalRulestack.js +45 -51
- package/dist/commonjs/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/commonjs/operations/prefixListLocalRulestack.js +45 -51
- package/dist/commonjs/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/commonjs/paloAltoNetworksCloudngfw.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +307 -146
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/esm/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/esm/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/esm/operations/firewallStatus.js +23 -40
- package/dist/esm/operations/firewallStatus.js.map +1 -1
- package/dist/esm/operations/firewalls.js +67 -91
- package/dist/esm/operations/firewalls.js.map +1 -1
- package/dist/esm/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/esm/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/esm/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/esm/operations/globalRulestack.js +56 -58
- package/dist/esm/operations/globalRulestack.js.map +1 -1
- package/dist/esm/operations/localRules.js +45 -52
- package/dist/esm/operations/localRules.js.map +1 -1
- package/dist/esm/operations/localRulestacks.js +78 -97
- package/dist/esm/operations/localRulestacks.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/postRules.js +45 -52
- package/dist/esm/operations/postRules.js.map +1 -1
- package/dist/esm/operations/preRules.js +45 -52
- package/dist/esm/operations/preRules.js.map +1 -1
- package/dist/esm/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/esm/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/esm/operations/prefixListLocalRulestack.js +45 -52
- package/dist/esm/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/esm/paloAltoNetworksCloudngfw.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +307 -146
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/certificateObjectGlobalRulestack.js +45 -52
- package/dist/react-native/operations/certificateObjectGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/certificateObjectLocalRulestack.js +45 -52
- package/dist/react-native/operations/certificateObjectLocalRulestack.js.map +1 -1
- package/dist/react-native/operations/firewallStatus.js +23 -40
- package/dist/react-native/operations/firewallStatus.js.map +1 -1
- package/dist/react-native/operations/firewalls.js +67 -91
- package/dist/react-native/operations/firewalls.js.map +1 -1
- package/dist/react-native/operations/fqdnListGlobalRulestack.js +45 -52
- package/dist/react-native/operations/fqdnListGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/fqdnListLocalRulestack.js +45 -52
- package/dist/react-native/operations/fqdnListLocalRulestack.js.map +1 -1
- package/dist/react-native/operations/globalRulestack.js +56 -58
- package/dist/react-native/operations/globalRulestack.js.map +1 -1
- package/dist/react-native/operations/localRules.js +45 -52
- package/dist/react-native/operations/localRules.js.map +1 -1
- package/dist/react-native/operations/localRulestacks.js +78 -97
- package/dist/react-native/operations/localRulestacks.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/postRules.js +45 -52
- package/dist/react-native/operations/postRules.js.map +1 -1
- package/dist/react-native/operations/preRules.js +45 -52
- package/dist/react-native/operations/preRules.js.map +1 -1
- package/dist/react-native/operations/prefixListGlobalRulestack.js +45 -52
- package/dist/react-native/operations/prefixListGlobalRulestack.js.map +1 -1
- package/dist/react-native/operations/prefixListLocalRulestack.js +45 -52
- package/dist/react-native/operations/prefixListLocalRulestack.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/paloAltoNetworksCloudngfw.js +27 -5
- package/dist/react-native/paloAltoNetworksCloudngfw.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-paloaltonetworksngfw-node.api.md +2026 -2026
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing PrefixListGlobalRulestack operations. */
|
|
20
20
|
class PrefixListGlobalRulestackImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class PrefixListGlobalRulestack class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class PrefixListGlobalRulestackImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listPagingPage(globalRulestackName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listPagingPage(globalRulestackName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._list(globalRulestackName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listNext(globalRulestackName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listPagingAll(globalRulestackName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(globalRulestackName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listPagingAll(globalRulestackName, options) {
|
|
70
|
+
for await (const page of this.listPagingPage(globalRulestackName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* List PrefixListGlobalRulestackResource resources by Tenant
|
|
@@ -116,14 +100,19 @@ class PrefixListGlobalRulestackImpl {
|
|
|
116
100
|
return this.client.sendOperationRequest(args, spec);
|
|
117
101
|
};
|
|
118
102
|
const sendOperationFn = async (args, spec) => {
|
|
119
|
-
var _a;
|
|
120
103
|
let currentRawResponse = undefined;
|
|
121
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
122
105
|
const callback = (rawResponse, flatResponse) => {
|
|
123
106
|
currentRawResponse = rawResponse;
|
|
124
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback
|
|
114
|
+
}
|
|
125
115
|
};
|
|
126
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
127
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
128
117
|
return {
|
|
129
118
|
flatResponse,
|
|
@@ -140,8 +129,8 @@ class PrefixListGlobalRulestackImpl {
|
|
|
140
129
|
spec: createOrUpdateOperationSpec
|
|
141
130
|
});
|
|
142
131
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
143
|
-
restoreFrom: options
|
|
144
|
-
intervalInMs: options
|
|
132
|
+
restoreFrom: options?.resumeFrom,
|
|
133
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
145
134
|
resourceLocationConfig: "azure-async-operation"
|
|
146
135
|
});
|
|
147
136
|
await poller.poll();
|
|
@@ -169,14 +158,19 @@ class PrefixListGlobalRulestackImpl {
|
|
|
169
158
|
return this.client.sendOperationRequest(args, spec);
|
|
170
159
|
};
|
|
171
160
|
const sendOperationFn = async (args, spec) => {
|
|
172
|
-
var _a;
|
|
173
161
|
let currentRawResponse = undefined;
|
|
174
|
-
const providedCallback =
|
|
162
|
+
const providedCallback = args.options?.onResponse;
|
|
175
163
|
const callback = (rawResponse, flatResponse) => {
|
|
176
164
|
currentRawResponse = rawResponse;
|
|
177
|
-
providedCallback
|
|
165
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
166
|
+
};
|
|
167
|
+
const updatedArgs = {
|
|
168
|
+
...args,
|
|
169
|
+
options: {
|
|
170
|
+
...args.options,
|
|
171
|
+
onResponse: callback
|
|
172
|
+
}
|
|
178
173
|
};
|
|
179
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
180
174
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
181
175
|
return {
|
|
182
176
|
flatResponse,
|
|
@@ -193,8 +187,8 @@ class PrefixListGlobalRulestackImpl {
|
|
|
193
187
|
spec: deleteOperationSpec
|
|
194
188
|
});
|
|
195
189
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
196
|
-
restoreFrom: options
|
|
197
|
-
intervalInMs: options
|
|
190
|
+
restoreFrom: options?.resumeFrom,
|
|
191
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
198
192
|
resourceLocationConfig: "azure-async-operation"
|
|
199
193
|
});
|
|
200
194
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixListGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListGlobalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAa,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,mBAA2B,EAC3B,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC9D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAA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mB,GAA6B;IACpD,IAAI,EACF,iGAAiG;IACnG,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrefixListGlobalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListGlobalRulestackResource,\n PrefixListGlobalRulestackListNextOptionalParams,\n PrefixListGlobalRulestackListOptionalParams,\n PrefixListGlobalRulestackListResponse,\n PrefixListGlobalRulestackGetOptionalParams,\n PrefixListGlobalRulestackGetResponse,\n PrefixListGlobalRulestackCreateOrUpdateOptionalParams,\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n PrefixListGlobalRulestackDeleteOptionalParams,\n PrefixListGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListGlobalRulestack operations. */\nexport class PrefixListGlobalRulestackImpl\n implements PrefixListGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<PrefixListGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource[]> {\n let result: PrefixListGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n globalRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): Promise<PrefixListGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackGetOptionalParams\n ): Promise<PrefixListGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>,\n PrefixListGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, name, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n globalRulestackName: string,\n nextLink: string,\n options?: PrefixListGlobalRulestackListNextOptionalParams\n ): Promise<PrefixListGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"prefixListGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListGlobalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAa,6BAA6B;IAEvB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,mBAA2B,EAC3B,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC9D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC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B,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrefixListGlobalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListGlobalRulestackResource,\n PrefixListGlobalRulestackListNextOptionalParams,\n PrefixListGlobalRulestackListOptionalParams,\n PrefixListGlobalRulestackListResponse,\n PrefixListGlobalRulestackGetOptionalParams,\n PrefixListGlobalRulestackGetResponse,\n PrefixListGlobalRulestackCreateOrUpdateOptionalParams,\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n PrefixListGlobalRulestackDeleteOptionalParams,\n PrefixListGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListGlobalRulestack operations. */\nexport class PrefixListGlobalRulestackImpl\n implements PrefixListGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<PrefixListGlobalRulestackResource> {\n const iter = this.listPagingAll(globalRulestackName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(globalRulestackName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource[]> {\n let result: PrefixListGlobalRulestackListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(globalRulestackName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n globalRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<PrefixListGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: PrefixListGlobalRulestackListOptionalParams\n ): Promise<PrefixListGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackGetOptionalParams\n ): Promise<PrefixListGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>,\n PrefixListGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListGlobalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListGlobalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: PrefixListGlobalRulestackResource,\n options?: PrefixListGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListGlobalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n globalRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { globalRulestackName, name, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a PrefixListGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: PrefixListGlobalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(globalRulestackName, name, options);\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param globalRulestackName GlobalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n globalRulestackName: string,\n nextLink: string,\n options?: PrefixListGlobalRulestackListNextOptionalParams\n ): Promise<PrefixListGlobalRulestackListNextResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.globalRulestackName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks/{globalRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.name\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing PrefixListLocalRulestack operations. */
|
|
20
20
|
class PrefixListLocalRulestackImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class PrefixListLocalRulestack class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class PrefixListLocalRulestackImpl {
|
|
|
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 PrefixListResource resources by LocalRulestacks
|
|
@@ -120,14 +104,19 @@ class PrefixListLocalRulestackImpl {
|
|
|
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,
|
|
@@ -144,8 +133,8 @@ class PrefixListLocalRulestackImpl {
|
|
|
144
133
|
spec: createOrUpdateOperationSpec
|
|
145
134
|
});
|
|
146
135
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
147
|
-
restoreFrom: options
|
|
148
|
-
intervalInMs: options
|
|
136
|
+
restoreFrom: options?.resumeFrom,
|
|
137
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
149
138
|
resourceLocationConfig: "azure-async-operation"
|
|
150
139
|
});
|
|
151
140
|
await poller.poll();
|
|
@@ -175,14 +164,19 @@ class PrefixListLocalRulestackImpl {
|
|
|
175
164
|
return this.client.sendOperationRequest(args, spec);
|
|
176
165
|
};
|
|
177
166
|
const sendOperationFn = async (args, spec) => {
|
|
178
|
-
var _a;
|
|
179
167
|
let currentRawResponse = undefined;
|
|
180
|
-
const providedCallback =
|
|
168
|
+
const providedCallback = args.options?.onResponse;
|
|
181
169
|
const callback = (rawResponse, flatResponse) => {
|
|
182
170
|
currentRawResponse = rawResponse;
|
|
183
|
-
providedCallback
|
|
171
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
172
|
+
};
|
|
173
|
+
const updatedArgs = {
|
|
174
|
+
...args,
|
|
175
|
+
options: {
|
|
176
|
+
...args.options,
|
|
177
|
+
onResponse: callback
|
|
178
|
+
}
|
|
184
179
|
};
|
|
185
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
186
180
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
187
181
|
return {
|
|
188
182
|
flatResponse,
|
|
@@ -199,8 +193,8 @@ class PrefixListLocalRulestackImpl {
|
|
|
199
193
|
spec: deleteOperationSpec
|
|
200
194
|
});
|
|
201
195
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
202
|
-
restoreFrom: options
|
|
203
|
-
intervalInMs: options
|
|
196
|
+
restoreFrom: options?.resumeFrom,
|
|
197
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
204
198
|
resourceLocationConfig: "azure-async-operation"
|
|
205
199
|
});
|
|
206
200
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixListLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListLocalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBAAyB,EACzB,kBAA0B,EAC1B,OAAqE;QAErE,MAAM,IAAI,GAAG,IAAI,CAAC,8BAA8B,CAC9C,iBAAiB,EACjB,kBAAkB,E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AE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrefixListLocalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListResource,\n PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksResponse,\n PrefixListLocalRulestackGetOptionalParams,\n PrefixListLocalRulestackGetResponse,\n PrefixListLocalRulestackCreateOrUpdateOptionalParams,\n PrefixListLocalRulestackCreateOrUpdateResponse,\n PrefixListLocalRulestackDeleteOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListLocalRulestack operations. */\nexport class PrefixListLocalRulestackImpl implements PrefixListLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<PrefixListResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListResource[]> {\n let result: PrefixListLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<PrefixListResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackGetOptionalParams\n ): Promise<PrefixListLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>,\n PrefixListLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListLocalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, localRulestackName, name, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"prefixListLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/prefixListLocalRulestack.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAA4B;IAEnD;;;OAG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U,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrefixListLocalRulestack } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PaloAltoNetworksCloudngfw } from \"../paloAltoNetworksCloudngfw.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrefixListResource,\n PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksResponse,\n PrefixListLocalRulestackGetOptionalParams,\n PrefixListLocalRulestackGetResponse,\n PrefixListLocalRulestackCreateOrUpdateOptionalParams,\n PrefixListLocalRulestackCreateOrUpdateResponse,\n PrefixListLocalRulestackDeleteOptionalParams,\n PrefixListLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrefixListLocalRulestack operations. */\nexport class PrefixListLocalRulestackImpl implements PrefixListLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class PrefixListLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n public listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<PrefixListResource> {\n const iter = this.listByLocalRulestacksPagingAll(\n resourceGroupName,\n localRulestackName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByLocalRulestacksPagingPage(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrefixListResource[]> {\n let result: PrefixListLocalRulestackListByLocalRulestacksResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocalRulestacks(\n resourceGroupName,\n localRulestackName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocalRulestacksNext(\n resourceGroupName,\n localRulestackName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocalRulestacksPagingAll(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<PrefixListResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List PrefixListResource resources by LocalRulestacks\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param options The options parameters.\n */\n private _listByLocalRulestacks(\n resourceGroupName: string,\n localRulestackName: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackGetOptionalParams\n ): Promise<PrefixListLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>,\n PrefixListLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, localRulestackName, name, resource, options },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrefixListLocalRulestackCreateOrUpdateResponse,\n OperationState<PrefixListLocalRulestackCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n resource: PrefixListResource,\n options?: PrefixListLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<PrefixListLocalRulestackCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n localRulestackName,\n name,\n resource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, localRulestackName, name, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a PrefixListResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name Local Rule priority\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: PrefixListLocalRulestackDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n localRulestackName,\n name,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByLocalRulestacksNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param nextLink The nextLink from the previous successful call to the ListByLocalRulestacks method.\n * @param options The options parameters.\n */\n private _listByLocalRulestacksNext(\n resourceGroupName: string,\n localRulestackName: string,\n nextLink: string,\n options?: PrefixListLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<PrefixListLocalRulestackListByLocalRulestacksNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, nextLink, options },\n listByLocalRulestacksNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocalRulestacksOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResource\n },\n 201: {\n bodyMapper: Mappers.PrefixListResource\n },\n 202: {\n bodyMapper: Mappers.PrefixListResource\n },\n 204: {\n bodyMapper: Mappers.PrefixListResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}/prefixlists/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocalRulestacksNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrefixListResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.localRulestackName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
|
|
|
18
18
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
19
|
*/
|
|
20
20
|
function getContinuationToken(page) {
|
|
21
|
-
var _a;
|
|
22
21
|
if (typeof page !== "object" || page === null) {
|
|
23
22
|
return undefined;
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
26
25
|
}
|
|
27
26
|
function setContinuationToken(page, continuationToken) {
|
|
28
|
-
var _a;
|
|
29
27
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
|
-
const pageInfo =
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
33
31
|
pageInfo.continuationToken = continuationToken;
|
|
34
32
|
pageMap.set(page, pageInfo);
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|