@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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing CertificateObjectGlobalRulestack operations. */
|
|
17
16
|
export class CertificateObjectGlobalRulestackImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class CertificateObjectGlobalRulestack class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class CertificateObjectGlobalRulestackImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(globalRulestackName, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(globalRulestackName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(globalRulestackName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(globalRulestackName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(globalRulestackName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(globalRulestackName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(globalRulestackName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(globalRulestackName, options) {
|
|
66
|
+
for await (const page of this.listPagingPage(globalRulestackName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* List CertificateObjectGlobalRulestackResource resources by Tenant
|
|
@@ -113,14 +96,19 @@ export class CertificateObjectGlobalRulestackImpl {
|
|
|
113
96
|
return this.client.sendOperationRequest(args, spec);
|
|
114
97
|
};
|
|
115
98
|
const sendOperationFn = async (args, spec) => {
|
|
116
|
-
var _a;
|
|
117
99
|
let currentRawResponse = undefined;
|
|
118
|
-
const providedCallback =
|
|
100
|
+
const providedCallback = args.options?.onResponse;
|
|
119
101
|
const callback = (rawResponse, flatResponse) => {
|
|
120
102
|
currentRawResponse = rawResponse;
|
|
121
|
-
providedCallback
|
|
103
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = {
|
|
106
|
+
...args,
|
|
107
|
+
options: {
|
|
108
|
+
...args.options,
|
|
109
|
+
onResponse: callback
|
|
110
|
+
}
|
|
122
111
|
};
|
|
123
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
124
112
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
125
113
|
return {
|
|
126
114
|
flatResponse,
|
|
@@ -137,8 +125,8 @@ export class CertificateObjectGlobalRulestackImpl {
|
|
|
137
125
|
spec: createOrUpdateOperationSpec
|
|
138
126
|
});
|
|
139
127
|
const poller = await createHttpPoller(lro, {
|
|
140
|
-
restoreFrom: options
|
|
141
|
-
intervalInMs: options
|
|
128
|
+
restoreFrom: options?.resumeFrom,
|
|
129
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
142
130
|
resourceLocationConfig: "azure-async-operation"
|
|
143
131
|
});
|
|
144
132
|
await poller.poll();
|
|
@@ -166,14 +154,19 @@ export class CertificateObjectGlobalRulestackImpl {
|
|
|
166
154
|
return this.client.sendOperationRequest(args, spec);
|
|
167
155
|
};
|
|
168
156
|
const sendOperationFn = async (args, spec) => {
|
|
169
|
-
var _a;
|
|
170
157
|
let currentRawResponse = undefined;
|
|
171
|
-
const providedCallback =
|
|
158
|
+
const providedCallback = args.options?.onResponse;
|
|
172
159
|
const callback = (rawResponse, flatResponse) => {
|
|
173
160
|
currentRawResponse = rawResponse;
|
|
174
|
-
providedCallback
|
|
161
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
162
|
+
};
|
|
163
|
+
const updatedArgs = {
|
|
164
|
+
...args,
|
|
165
|
+
options: {
|
|
166
|
+
...args.options,
|
|
167
|
+
onResponse: callback
|
|
168
|
+
}
|
|
175
169
|
};
|
|
176
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
177
170
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
178
171
|
return {
|
|
179
172
|
flatResponse,
|
|
@@ -190,8 +183,8 @@ export class CertificateObjectGlobalRulestackImpl {
|
|
|
190
183
|
spec: deleteOperationSpec
|
|
191
184
|
});
|
|
192
185
|
const poller = await createHttpPoller(lro, {
|
|
193
|
-
restoreFrom: options
|
|
194
|
-
intervalInMs: options
|
|
186
|
+
restoreFrom: options?.resumeFrom,
|
|
187
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
195
188
|
resourceLocationConfig: "azure-async-operation"
|
|
196
189
|
});
|
|
197
190
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateObjectGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectGlobalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gB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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 { CertificateObjectGlobalRulestack } 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 CertificateObjectGlobalRulestackResource,\n CertificateObjectGlobalRulestackListNextOptionalParams,\n CertificateObjectGlobalRulestackListOptionalParams,\n CertificateObjectGlobalRulestackListResponse,\n CertificateObjectGlobalRulestackGetOptionalParams,\n CertificateObjectGlobalRulestackGetResponse,\n CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n CertificateObjectGlobalRulestackDeleteOptionalParams,\n CertificateObjectGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectGlobalRulestack operations. */\nexport class CertificateObjectGlobalRulestackImpl\n implements CertificateObjectGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\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?: CertificateObjectGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource[]> {\n let result: CertificateObjectGlobalRulestackListResponse;\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?: CertificateObjectGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackGetOptionalParams\n ): Promise<CertificateObjectGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> => {\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 CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> {\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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?: CertificateObjectGlobalRulestackListNextOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\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}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\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}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource1,\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}/certificates/{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.CertificateObjectGlobalRulestackResourceListResult\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":"certificateObjectGlobalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectGlobalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D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CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,kGAAkG;IACpG,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,kDAAkD;SACvE;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 { CertificateObjectGlobalRulestack } 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 CertificateObjectGlobalRulestackResource,\n CertificateObjectGlobalRulestackListNextOptionalParams,\n CertificateObjectGlobalRulestackListOptionalParams,\n CertificateObjectGlobalRulestackListResponse,\n CertificateObjectGlobalRulestackGetOptionalParams,\n CertificateObjectGlobalRulestackGetResponse,\n CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n CertificateObjectGlobalRulestackDeleteOptionalParams,\n CertificateObjectGlobalRulestackListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectGlobalRulestack operations. */\nexport class CertificateObjectGlobalRulestackImpl\n implements CertificateObjectGlobalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectGlobalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n public list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\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?: CertificateObjectGlobalRulestackListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource[]> {\n let result: CertificateObjectGlobalRulestackListResponse;\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?: CertificateObjectGlobalRulestackListOptionalParams\n ): AsyncIterableIterator<CertificateObjectGlobalRulestackResource> {\n for await (const page of this.listPagingPage(\n globalRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectGlobalRulestackResource resources by Tenant\n * @param globalRulestackName GlobalRulestack resource name\n * @param options The options parameters.\n */\n private _list(\n globalRulestackName: string,\n options?: CertificateObjectGlobalRulestackListOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackGetOptionalParams\n ): Promise<CertificateObjectGlobalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { globalRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>,\n CertificateObjectGlobalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> => {\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 CertificateObjectGlobalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectGlobalRulestackCreateOrUpdateResponse>\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n globalRulestackName: string,\n name: string,\n resource: CertificateObjectGlobalRulestackResource,\n options?: CertificateObjectGlobalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectGlobalRulestackCreateOrUpdateResponse> {\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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 CertificateObjectGlobalRulestackResource\n * @param globalRulestackName GlobalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n globalRulestackName: string,\n name: string,\n options?: CertificateObjectGlobalRulestackDeleteOptionalParams\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?: CertificateObjectGlobalRulestackListNextOptionalParams\n ): Promise<CertificateObjectGlobalRulestackListNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResourceListResult\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}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\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}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectGlobalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource1,\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}/certificates/{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.CertificateObjectGlobalRulestackResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.globalRulestackName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing CertificateObjectLocalRulestack operations. */
|
|
17
16
|
export class CertificateObjectLocalRulestackImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class CertificateObjectLocalRulestack class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class CertificateObjectLocalRulestackImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByLocalRulestacks(resourceGroupName, localRulestackName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByLocalRulestacksNext(resourceGroupName, localRulestackName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByLocalRulestacksPagingAll(resourceGroupName, localRulestackName, options) {
|
|
67
|
+
for await (const page of this.listByLocalRulestacksPagingPage(resourceGroupName, localRulestackName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* List CertificateObjectLocalRulestackResource resources by LocalRulestacks
|
|
@@ -117,14 +100,19 @@ export class CertificateObjectLocalRulestackImpl {
|
|
|
117
100
|
return this.client.sendOperationRequest(args, spec);
|
|
118
101
|
};
|
|
119
102
|
const sendOperationFn = async (args, spec) => {
|
|
120
|
-
var _a;
|
|
121
103
|
let currentRawResponse = undefined;
|
|
122
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
123
105
|
const callback = (rawResponse, flatResponse) => {
|
|
124
106
|
currentRawResponse = rawResponse;
|
|
125
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback
|
|
114
|
+
}
|
|
126
115
|
};
|
|
127
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
128
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
129
117
|
return {
|
|
130
118
|
flatResponse,
|
|
@@ -141,8 +129,8 @@ export class CertificateObjectLocalRulestackImpl {
|
|
|
141
129
|
spec: createOrUpdateOperationSpec
|
|
142
130
|
});
|
|
143
131
|
const poller = await createHttpPoller(lro, {
|
|
144
|
-
restoreFrom: options
|
|
145
|
-
intervalInMs: options
|
|
132
|
+
restoreFrom: options?.resumeFrom,
|
|
133
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
146
134
|
resourceLocationConfig: "azure-async-operation"
|
|
147
135
|
});
|
|
148
136
|
await poller.poll();
|
|
@@ -172,14 +160,19 @@ export class CertificateObjectLocalRulestackImpl {
|
|
|
172
160
|
return this.client.sendOperationRequest(args, spec);
|
|
173
161
|
};
|
|
174
162
|
const sendOperationFn = async (args, spec) => {
|
|
175
|
-
var _a;
|
|
176
163
|
let currentRawResponse = undefined;
|
|
177
|
-
const providedCallback =
|
|
164
|
+
const providedCallback = args.options?.onResponse;
|
|
178
165
|
const callback = (rawResponse, flatResponse) => {
|
|
179
166
|
currentRawResponse = rawResponse;
|
|
180
|
-
providedCallback
|
|
167
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
168
|
+
};
|
|
169
|
+
const updatedArgs = {
|
|
170
|
+
...args,
|
|
171
|
+
options: {
|
|
172
|
+
...args.options,
|
|
173
|
+
onResponse: callback
|
|
174
|
+
}
|
|
181
175
|
};
|
|
182
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
183
176
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
184
177
|
return {
|
|
185
178
|
flatResponse,
|
|
@@ -196,8 +189,8 @@ export class CertificateObjectLocalRulestackImpl {
|
|
|
196
189
|
spec: deleteOperationSpec
|
|
197
190
|
});
|
|
198
191
|
const poller = await createHttpPoller(lro, {
|
|
199
|
-
restoreFrom: options
|
|
200
|
-
intervalInMs: options
|
|
192
|
+
restoreFrom: options?.resumeFrom,
|
|
193
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
201
194
|
resourceLocationConfig: "azure-async-operation"
|
|
202
195
|
});
|
|
203
196
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateObjectLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectLocalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAI9C;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBAAyB,EACzB,kBAA0B,EAC1B,OAA4E;QAE5E,MAAM,IAAI,GAAG,IAAI,CAAC,8BAA8B,CAC9C,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CA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;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 { CertificateObjectLocalRulestack } 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 CertificateObjectLocalRulestackResource,\n CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksResponse,\n CertificateObjectLocalRulestackGetOptionalParams,\n CertificateObjectLocalRulestackGetResponse,\n CertificateObjectLocalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n CertificateObjectLocalRulestackDeleteOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectLocalRulestack operations. */\nexport class CertificateObjectLocalRulestackImpl\n implements CertificateObjectLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectLocalRulestackResource 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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectLocalRulestackResource> {\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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource[]> {\n let result: CertificateObjectLocalRulestackListByLocalRulestacksResponse;\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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectLocalRulestackResource 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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackGetOptionalParams\n ): Promise<CertificateObjectLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\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: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>,\n CertificateObjectLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> => {\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 CertificateObjectLocalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\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: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> {\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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?: CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\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}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\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}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource8,\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}/certificates/{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.CertificateObjectLocalRulestackResourceListResult\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":"certificateObjectLocalRulestack.js","sourceRoot":"","sources":["../../../src/operations/certificateObjectLocalRulestack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oB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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,iDAAiD;SACtE;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 { CertificateObjectLocalRulestack } 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 CertificateObjectLocalRulestackResource,\n CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksResponse,\n CertificateObjectLocalRulestackGetOptionalParams,\n CertificateObjectLocalRulestackGetResponse,\n CertificateObjectLocalRulestackCreateOrUpdateOptionalParams,\n CertificateObjectLocalRulestackCreateOrUpdateResponse,\n CertificateObjectLocalRulestackDeleteOptionalParams,\n CertificateObjectLocalRulestackListByLocalRulestacksNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CertificateObjectLocalRulestack operations. */\nexport class CertificateObjectLocalRulestackImpl\n implements CertificateObjectLocalRulestack {\n private readonly client: PaloAltoNetworksCloudngfw;\n\n /**\n * Initialize a new instance of the class CertificateObjectLocalRulestack class.\n * @param client Reference to the service client\n */\n constructor(client: PaloAltoNetworksCloudngfw) {\n this.client = client;\n }\n\n /**\n * List CertificateObjectLocalRulestackResource 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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): PagedAsyncIterableIterator<CertificateObjectLocalRulestackResource> {\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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource[]> {\n let result: CertificateObjectLocalRulestackListByLocalRulestacksResponse;\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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): AsyncIterableIterator<CertificateObjectLocalRulestackResource> {\n for await (const page of this.listByLocalRulestacksPagingPage(\n resourceGroupName,\n localRulestackName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List CertificateObjectLocalRulestackResource 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?: CertificateObjectLocalRulestackListByLocalRulestacksOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, options },\n listByLocalRulestacksOperationSpec\n );\n }\n\n /**\n * Get a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackGetOptionalParams\n ): Promise<CertificateObjectLocalRulestackGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, localRulestackName, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\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: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>,\n CertificateObjectLocalRulestackCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> => {\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 CertificateObjectLocalRulestackCreateOrUpdateResponse,\n OperationState<CertificateObjectLocalRulestackCreateOrUpdateResponse>\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\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: CertificateObjectLocalRulestackResource,\n options?: CertificateObjectLocalRulestackCreateOrUpdateOptionalParams\n ): Promise<CertificateObjectLocalRulestackCreateOrUpdateResponse> {\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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 CertificateObjectLocalRulestackResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name\n * @param name certificate name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n localRulestackName: string,\n name: string,\n options?: CertificateObjectLocalRulestackDeleteOptionalParams\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?: CertificateObjectLocalRulestackListByLocalRulestacksNextOptionalParams\n ): Promise<CertificateObjectLocalRulestackListByLocalRulestacksNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResourceListResult\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}/certificates/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\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}/certificates/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 201: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 202: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n 204: {\n bodyMapper: Mappers.CertificateObjectLocalRulestackResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource8,\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}/certificates/{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.CertificateObjectLocalRulestackResourceListResult\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"]}
|