@azure/arm-containerregistry 11.0.0-alpha.20250718.1 → 11.0.0-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/containerRegistryManagementClient.js +32 -5
- package/dist/browser/containerRegistryManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +471 -220
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/agentPools.js +56 -58
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/archiveVersions.js +45 -52
- package/dist/browser/operations/archiveVersions.js.map +1 -1
- package/dist/browser/operations/archives.js +45 -52
- package/dist/browser/operations/archives.js.map +1 -1
- package/dist/browser/operations/cacheRules.js +56 -58
- package/dist/browser/operations/cacheRules.js.map +1 -1
- package/dist/browser/operations/connectedRegistries.js +67 -64
- package/dist/browser/operations/connectedRegistries.js.map +1 -1
- package/dist/browser/operations/credentialSets.js +56 -58
- package/dist/browser/operations/credentialSets.js.map +1 -1
- package/dist/browser/operations/exportPipelines.js +45 -52
- package/dist/browser/operations/exportPipelines.js.map +1 -1
- package/dist/browser/operations/importPipelines.js +45 -52
- package/dist/browser/operations/importPipelines.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/pipelineRuns.js +45 -52
- package/dist/browser/operations/pipelineRuns.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +45 -52
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/registries.js +125 -151
- package/dist/browser/operations/registries.js.map +1 -1
- package/dist/browser/operations/replications.js +56 -58
- package/dist/browser/operations/replications.js.map +1 -1
- package/dist/browser/operations/runs.js +23 -40
- package/dist/browser/operations/runs.js.map +1 -1
- package/dist/browser/operations/scopeMaps.js +56 -58
- package/dist/browser/operations/scopeMaps.js.map +1 -1
- package/dist/browser/operations/taskRuns.js +45 -52
- package/dist/browser/operations/taskRuns.js.map +1 -1
- package/dist/browser/operations/tasks.js +23 -40
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/tokens.js +56 -58
- package/dist/browser/operations/tokens.js.map +1 -1
- package/dist/browser/operations/webhooks.js +78 -97
- package/dist/browser/operations/webhooks.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/containerRegistryManagementClient.js +32 -5
- package/dist/commonjs/containerRegistryManagementClient.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 +471 -220
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/agentPools.js +56 -57
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/archiveVersions.js +45 -51
- package/dist/commonjs/operations/archiveVersions.js.map +1 -1
- package/dist/commonjs/operations/archives.js +45 -51
- package/dist/commonjs/operations/archives.js.map +1 -1
- package/dist/commonjs/operations/cacheRules.js +56 -57
- package/dist/commonjs/operations/cacheRules.js.map +1 -1
- package/dist/commonjs/operations/connectedRegistries.js +67 -63
- package/dist/commonjs/operations/connectedRegistries.js.map +1 -1
- package/dist/commonjs/operations/credentialSets.js +56 -57
- package/dist/commonjs/operations/credentialSets.js.map +1 -1
- package/dist/commonjs/operations/exportPipelines.js +45 -51
- package/dist/commonjs/operations/exportPipelines.js.map +1 -1
- package/dist/commonjs/operations/importPipelines.js +45 -51
- package/dist/commonjs/operations/importPipelines.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/pipelineRuns.js +45 -51
- package/dist/commonjs/operations/pipelineRuns.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/registries.js +125 -150
- package/dist/commonjs/operations/registries.js.map +1 -1
- package/dist/commonjs/operations/replications.js +56 -57
- package/dist/commonjs/operations/replications.js.map +1 -1
- package/dist/commonjs/operations/runs.js +23 -39
- package/dist/commonjs/operations/runs.js.map +1 -1
- package/dist/commonjs/operations/scopeMaps.js +56 -57
- package/dist/commonjs/operations/scopeMaps.js.map +1 -1
- package/dist/commonjs/operations/taskRuns.js +45 -51
- package/dist/commonjs/operations/taskRuns.js.map +1 -1
- package/dist/commonjs/operations/tasks.js +23 -39
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/tokens.js +56 -57
- package/dist/commonjs/operations/tokens.js.map +1 -1
- package/dist/commonjs/operations/webhooks.js +78 -96
- package/dist/commonjs/operations/webhooks.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/containerRegistryManagementClient.js +32 -5
- package/dist/esm/containerRegistryManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +471 -220
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/agentPools.js +56 -58
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/archiveVersions.js +45 -52
- package/dist/esm/operations/archiveVersions.js.map +1 -1
- package/dist/esm/operations/archives.js +45 -52
- package/dist/esm/operations/archives.js.map +1 -1
- package/dist/esm/operations/cacheRules.js +56 -58
- package/dist/esm/operations/cacheRules.js.map +1 -1
- package/dist/esm/operations/connectedRegistries.js +67 -64
- package/dist/esm/operations/connectedRegistries.js.map +1 -1
- package/dist/esm/operations/credentialSets.js +56 -58
- package/dist/esm/operations/credentialSets.js.map +1 -1
- package/dist/esm/operations/exportPipelines.js +45 -52
- package/dist/esm/operations/exportPipelines.js.map +1 -1
- package/dist/esm/operations/importPipelines.js +45 -52
- package/dist/esm/operations/importPipelines.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/pipelineRuns.js +45 -52
- package/dist/esm/operations/pipelineRuns.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +45 -52
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/registries.js +125 -151
- package/dist/esm/operations/registries.js.map +1 -1
- package/dist/esm/operations/replications.js +56 -58
- package/dist/esm/operations/replications.js.map +1 -1
- package/dist/esm/operations/runs.js +23 -40
- package/dist/esm/operations/runs.js.map +1 -1
- package/dist/esm/operations/scopeMaps.js +56 -58
- package/dist/esm/operations/scopeMaps.js.map +1 -1
- package/dist/esm/operations/taskRuns.js +45 -52
- package/dist/esm/operations/taskRuns.js.map +1 -1
- package/dist/esm/operations/tasks.js +23 -40
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/tokens.js +56 -58
- package/dist/esm/operations/tokens.js.map +1 -1
- package/dist/esm/operations/webhooks.js +78 -97
- package/dist/esm/operations/webhooks.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/containerRegistryManagementClient.js +32 -5
- package/dist/react-native/containerRegistryManagementClient.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 +471 -220
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/agentPools.js +56 -58
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/archiveVersions.js +45 -52
- package/dist/react-native/operations/archiveVersions.js.map +1 -1
- package/dist/react-native/operations/archives.js +45 -52
- package/dist/react-native/operations/archives.js.map +1 -1
- package/dist/react-native/operations/cacheRules.js +56 -58
- package/dist/react-native/operations/cacheRules.js.map +1 -1
- package/dist/react-native/operations/connectedRegistries.js +67 -64
- package/dist/react-native/operations/connectedRegistries.js.map +1 -1
- package/dist/react-native/operations/credentialSets.js +56 -58
- package/dist/react-native/operations/credentialSets.js.map +1 -1
- package/dist/react-native/operations/exportPipelines.js +45 -52
- package/dist/react-native/operations/exportPipelines.js.map +1 -1
- package/dist/react-native/operations/importPipelines.js +45 -52
- package/dist/react-native/operations/importPipelines.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/pipelineRuns.js +45 -52
- package/dist/react-native/operations/pipelineRuns.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +45 -52
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/registries.js +125 -151
- package/dist/react-native/operations/registries.js.map +1 -1
- package/dist/react-native/operations/replications.js +56 -58
- package/dist/react-native/operations/replications.js.map +1 -1
- package/dist/react-native/operations/runs.js +23 -40
- package/dist/react-native/operations/runs.js.map +1 -1
- package/dist/react-native/operations/scopeMaps.js +56 -58
- package/dist/react-native/operations/scopeMaps.js.map +1 -1
- package/dist/react-native/operations/taskRuns.js +45 -52
- package/dist/react-native/operations/taskRuns.js.map +1 -1
- package/dist/react-native/operations/tasks.js +23 -40
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operations/tokens.js +56 -58
- package/dist/react-native/operations/tokens.js.map +1 -1
- package/dist/react-native/operations/webhooks.js +78 -97
- package/dist/react-native/operations/webhooks.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
@@ -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 Webhooks operations. */
|
17
16
|
export class WebhooksImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class Webhooks class.
|
20
20
|
* @param client Reference to the service client
|
@@ -38,52 +38,35 @@ export class WebhooksImpl {
|
|
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.listPagingPage(resourceGroupName, registryName, options, settings);
|
45
45
|
},
|
46
46
|
};
|
47
47
|
}
|
48
|
-
listPagingPage(resourceGroupName, registryName, options, settings) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}
|
66
|
-
});
|
48
|
+
async *listPagingPage(resourceGroupName, registryName, options, settings) {
|
49
|
+
let result;
|
50
|
+
let continuationToken = settings?.continuationToken;
|
51
|
+
if (!continuationToken) {
|
52
|
+
result = await this._list(resourceGroupName, registryName, 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._listNext(resourceGroupName, registryName, continuationToken, options);
|
60
|
+
continuationToken = result.nextLink;
|
61
|
+
let page = result.value || [];
|
62
|
+
setContinuationToken(page, continuationToken);
|
63
|
+
yield page;
|
64
|
+
}
|
67
65
|
}
|
68
|
-
listPagingAll(resourceGroupName, registryName, options) {
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, registryName, 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 *listPagingAll(resourceGroupName, registryName, options) {
|
67
|
+
for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {
|
68
|
+
yield* page;
|
69
|
+
}
|
87
70
|
}
|
88
71
|
/**
|
89
72
|
* Lists recent events for the specified webhook.
|
@@ -102,52 +85,35 @@ export class WebhooksImpl {
|
|
102
85
|
return this;
|
103
86
|
},
|
104
87
|
byPage: (settings) => {
|
105
|
-
if (settings
|
88
|
+
if (settings?.maxPageSize) {
|
106
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
107
90
|
}
|
108
91
|
return this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings);
|
109
92
|
},
|
110
93
|
};
|
111
94
|
}
|
112
|
-
listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings) {
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
}
|
130
|
-
});
|
95
|
+
async *listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings) {
|
96
|
+
let result;
|
97
|
+
let continuationToken = settings?.continuationToken;
|
98
|
+
if (!continuationToken) {
|
99
|
+
result = await this._listEvents(resourceGroupName, registryName, webhookName, options);
|
100
|
+
let page = result.value || [];
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
setContinuationToken(page, continuationToken);
|
103
|
+
yield page;
|
104
|
+
}
|
105
|
+
while (continuationToken) {
|
106
|
+
result = await this._listEventsNext(resourceGroupName, registryName, webhookName, continuationToken, options);
|
107
|
+
continuationToken = result.nextLink;
|
108
|
+
let page = result.value || [];
|
109
|
+
setContinuationToken(page, continuationToken);
|
110
|
+
yield page;
|
111
|
+
}
|
131
112
|
}
|
132
|
-
listEventsPagingAll(resourceGroupName, registryName, webhookName, options) {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
for (var _d = true, _e = __asyncValues(this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
137
|
-
_c = _f.value;
|
138
|
-
_d = false;
|
139
|
-
const page = _c;
|
140
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
141
|
-
}
|
142
|
-
}
|
143
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
144
|
-
finally {
|
145
|
-
try {
|
146
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
147
|
-
}
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
149
|
-
}
|
150
|
-
});
|
113
|
+
async *listEventsPagingAll(resourceGroupName, registryName, webhookName, options) {
|
114
|
+
for await (const page of this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options)) {
|
115
|
+
yield* page;
|
116
|
+
}
|
151
117
|
}
|
152
118
|
/**
|
153
119
|
* Lists all the webhooks for the specified container registry.
|
@@ -181,14 +147,19 @@ export class WebhooksImpl {
|
|
181
147
|
return this.client.sendOperationRequest(args, spec);
|
182
148
|
};
|
183
149
|
const sendOperationFn = async (args, spec) => {
|
184
|
-
var _a;
|
185
150
|
let currentRawResponse = undefined;
|
186
|
-
const providedCallback =
|
151
|
+
const providedCallback = args.options?.onResponse;
|
187
152
|
const callback = (rawResponse, flatResponse) => {
|
188
153
|
currentRawResponse = rawResponse;
|
189
|
-
providedCallback
|
154
|
+
providedCallback?.(rawResponse, flatResponse);
|
155
|
+
};
|
156
|
+
const updatedArgs = {
|
157
|
+
...args,
|
158
|
+
options: {
|
159
|
+
...args.options,
|
160
|
+
onResponse: callback,
|
161
|
+
},
|
190
162
|
};
|
191
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
192
163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
193
164
|
return {
|
194
165
|
flatResponse,
|
@@ -211,8 +182,8 @@ export class WebhooksImpl {
|
|
211
182
|
spec: createOperationSpec,
|
212
183
|
});
|
213
184
|
const poller = await createHttpPoller(lro, {
|
214
|
-
restoreFrom: options
|
215
|
-
intervalInMs: options
|
185
|
+
restoreFrom: options?.resumeFrom,
|
186
|
+
intervalInMs: options?.updateIntervalInMs,
|
216
187
|
resourceLocationConfig: "azure-async-operation",
|
217
188
|
});
|
218
189
|
await poller.poll();
|
@@ -242,14 +213,19 @@ export class WebhooksImpl {
|
|
242
213
|
return this.client.sendOperationRequest(args, spec);
|
243
214
|
};
|
244
215
|
const sendOperationFn = async (args, spec) => {
|
245
|
-
var _a;
|
246
216
|
let currentRawResponse = undefined;
|
247
|
-
const providedCallback =
|
217
|
+
const providedCallback = args.options?.onResponse;
|
248
218
|
const callback = (rawResponse, flatResponse) => {
|
249
219
|
currentRawResponse = rawResponse;
|
250
|
-
providedCallback
|
220
|
+
providedCallback?.(rawResponse, flatResponse);
|
221
|
+
};
|
222
|
+
const updatedArgs = {
|
223
|
+
...args,
|
224
|
+
options: {
|
225
|
+
...args.options,
|
226
|
+
onResponse: callback,
|
227
|
+
},
|
251
228
|
};
|
252
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
253
229
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
254
230
|
return {
|
255
231
|
flatResponse,
|
@@ -266,8 +242,8 @@ export class WebhooksImpl {
|
|
266
242
|
spec: deleteOperationSpec,
|
267
243
|
});
|
268
244
|
const poller = await createHttpPoller(lro, {
|
269
|
-
restoreFrom: options
|
270
|
-
intervalInMs: options
|
245
|
+
restoreFrom: options?.resumeFrom,
|
246
|
+
intervalInMs: options?.updateIntervalInMs,
|
271
247
|
resourceLocationConfig: "location",
|
272
248
|
});
|
273
249
|
await poller.poll();
|
@@ -297,14 +273,19 @@ export class WebhooksImpl {
|
|
297
273
|
return this.client.sendOperationRequest(args, spec);
|
298
274
|
};
|
299
275
|
const sendOperationFn = async (args, spec) => {
|
300
|
-
var _a;
|
301
276
|
let currentRawResponse = undefined;
|
302
|
-
const providedCallback =
|
277
|
+
const providedCallback = args.options?.onResponse;
|
303
278
|
const callback = (rawResponse, flatResponse) => {
|
304
279
|
currentRawResponse = rawResponse;
|
305
|
-
providedCallback
|
280
|
+
providedCallback?.(rawResponse, flatResponse);
|
281
|
+
};
|
282
|
+
const updatedArgs = {
|
283
|
+
...args,
|
284
|
+
options: {
|
285
|
+
...args.options,
|
286
|
+
onResponse: callback,
|
287
|
+
},
|
306
288
|
};
|
307
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
308
289
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
309
290
|
return {
|
310
291
|
flatResponse,
|
@@ -327,8 +308,8 @@ export class WebhooksImpl {
|
|
327
308
|
spec: updateOperationSpec,
|
328
309
|
});
|
329
310
|
const poller = await createHttpPoller(lro, {
|
330
|
-
restoreFrom: options
|
331
|
-
intervalInMs: options
|
311
|
+
restoreFrom: options?.resumeFrom,
|
312
|
+
intervalInMs: options?.updateIntervalInMs,
|
332
313
|
resourceLocationConfig: "azure-async-operation",
|
333
314
|
});
|
334
315
|
await poller.poll();
|
@@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AU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;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 { Webhooks } 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 { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Webhook,\n WebhooksListNextOptionalParams,\n WebhooksListOptionalParams,\n WebhooksListResponse,\n Event,\n WebhooksListEventsNextOptionalParams,\n WebhooksListEventsOptionalParams,\n WebhooksListEventsResponse,\n WebhooksGetOptionalParams,\n WebhooksGetResponse,\n WebhookCreateParameters,\n WebhooksCreateOptionalParams,\n WebhooksCreateResponse,\n WebhooksDeleteOptionalParams,\n WebhookUpdateParameters,\n WebhooksUpdateOptionalParams,\n WebhooksUpdateResponse,\n WebhooksPingOptionalParams,\n WebhooksPingResponse,\n WebhooksGetCallbackConfigOptionalParams,\n WebhooksGetCallbackConfigResponse,\n WebhooksListNextResponse,\n WebhooksListEventsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Webhooks operations. */\nexport class WebhooksImpl implements Webhooks {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Webhooks class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the webhooks for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): PagedAsyncIterableIterator<Webhook> {\n const iter = this.listPagingAll(resourceGroupName, registryName, 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(\n resourceGroupName,\n registryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Webhook[]> {\n let result: WebhooksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, 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 resourceGroupName,\n registryName,\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 resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): AsyncIterableIterator<Webhook> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists recent events for the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n public listEvents(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): PagedAsyncIterableIterator<Event> {\n const iter = this.listEventsPagingAll(\n resourceGroupName,\n registryName,\n webhookName,\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.listEventsPagingPage(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listEventsPagingPage(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Event[]> {\n let result: WebhooksListEventsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listEvents(\n resourceGroupName,\n registryName,\n webhookName,\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._listEventsNext(\n resourceGroupName,\n registryName,\n webhookName,\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 *listEventsPagingAll(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): AsyncIterableIterator<Event> {\n for await (const page of this.listEventsPagingPage(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the webhooks for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): Promise<WebhooksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksGetOptionalParams,\n ): Promise<WebhooksGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a webhook for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookCreateParameters The parameters for creating a webhook.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookCreateParameters: WebhookCreateParameters,\n options?: WebhooksCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WebhooksCreateResponse>,\n WebhooksCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WebhooksCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n webhookName,\n webhookCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n WebhooksCreateResponse,\n OperationState<WebhooksCreateResponse>\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 * Creates a webhook for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookCreateParameters The parameters for creating a webhook.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookCreateParameters: WebhookCreateParameters,\n options?: WebhooksCreateOptionalParams,\n ): Promise<WebhooksCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n webhookName,\n webhookCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a webhook from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksDeleteOptionalParams,\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: coreClient.FullOperationResponse | undefined =\n 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, registryName, webhookName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a webhook from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a webhook with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookUpdateParameters The parameters for updating a webhook.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookUpdateParameters: WebhookUpdateParameters,\n options?: WebhooksUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WebhooksUpdateResponse>,\n WebhooksUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WebhooksUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n webhookName,\n webhookUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n WebhooksUpdateResponse,\n OperationState<WebhooksUpdateResponse>\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 * Updates a webhook with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookUpdateParameters The parameters for updating a webhook.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookUpdateParameters: WebhookUpdateParameters,\n options?: WebhooksUpdateOptionalParams,\n ): Promise<WebhooksUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n webhookName,\n webhookUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers a ping event to be sent to the webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n ping(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksPingOptionalParams,\n ): Promise<WebhooksPingResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n pingOperationSpec,\n );\n }\n\n /**\n * Lists recent events for the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n private _listEvents(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): Promise<WebhooksListEventsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n listEventsOperationSpec,\n );\n }\n\n /**\n * Gets the configuration of service URI and custom headers for the webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n getCallbackConfig(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksGetCallbackConfigOptionalParams,\n ): Promise<WebhooksGetCallbackConfigResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n getCallbackConfigOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\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 resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: WebhooksListNextOptionalParams,\n ): Promise<WebhooksListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListEventsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param nextLink The nextLink from the previous successful call to the ListEvents method.\n * @param options The options parameters.\n */\n private _listEventsNext(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n nextLink: string,\n options?: WebhooksListEventsNextOptionalParams,\n ): Promise<WebhooksListEventsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, nextLink, options },\n listEventsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebhookListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n 201: {\n bodyMapper: Mappers.Webhook,\n },\n 202: {\n bodyMapper: Mappers.Webhook,\n },\n 204: {\n bodyMapper: Mappers.Webhook,\n },\n },\n requestBody: Parameters.webhookCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n 201: {\n bodyMapper: Mappers.Webhook,\n },\n 202: {\n bodyMapper: Mappers.Webhook,\n },\n 204: {\n bodyMapper: Mappers.Webhook,\n },\n },\n requestBody: Parameters.webhookUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst pingOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventInfo,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listEventsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCallbackConfigOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CallbackConfig,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\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.WebhookListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listEventsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/operations/webhooks.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,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa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vB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;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 { Webhooks } 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 { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Webhook,\n WebhooksListNextOptionalParams,\n WebhooksListOptionalParams,\n WebhooksListResponse,\n Event,\n WebhooksListEventsNextOptionalParams,\n WebhooksListEventsOptionalParams,\n WebhooksListEventsResponse,\n WebhooksGetOptionalParams,\n WebhooksGetResponse,\n WebhookCreateParameters,\n WebhooksCreateOptionalParams,\n WebhooksCreateResponse,\n WebhooksDeleteOptionalParams,\n WebhookUpdateParameters,\n WebhooksUpdateOptionalParams,\n WebhooksUpdateResponse,\n WebhooksPingOptionalParams,\n WebhooksPingResponse,\n WebhooksGetCallbackConfigOptionalParams,\n WebhooksGetCallbackConfigResponse,\n WebhooksListNextResponse,\n WebhooksListEventsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Webhooks operations. */\nexport class WebhooksImpl implements Webhooks {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class Webhooks class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the webhooks for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): PagedAsyncIterableIterator<Webhook> {\n const iter = this.listPagingAll(resourceGroupName, registryName, 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(\n resourceGroupName,\n registryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Webhook[]> {\n let result: WebhooksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, 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 resourceGroupName,\n registryName,\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 resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): AsyncIterableIterator<Webhook> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n registryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists recent events for the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n public listEvents(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): PagedAsyncIterableIterator<Event> {\n const iter = this.listEventsPagingAll(\n resourceGroupName,\n registryName,\n webhookName,\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.listEventsPagingPage(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listEventsPagingPage(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Event[]> {\n let result: WebhooksListEventsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listEvents(\n resourceGroupName,\n registryName,\n webhookName,\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._listEventsNext(\n resourceGroupName,\n registryName,\n webhookName,\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 *listEventsPagingAll(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): AsyncIterableIterator<Event> {\n for await (const page of this.listEventsPagingPage(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the webhooks for the specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: WebhooksListOptionalParams,\n ): Promise<WebhooksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the properties of the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksGetOptionalParams,\n ): Promise<WebhooksGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a webhook for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookCreateParameters The parameters for creating a webhook.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookCreateParameters: WebhookCreateParameters,\n options?: WebhooksCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WebhooksCreateResponse>,\n WebhooksCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WebhooksCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n webhookName,\n webhookCreateParameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n WebhooksCreateResponse,\n OperationState<WebhooksCreateResponse>\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 * Creates a webhook for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookCreateParameters The parameters for creating a webhook.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookCreateParameters: WebhookCreateParameters,\n options?: WebhooksCreateOptionalParams,\n ): Promise<WebhooksCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n webhookName,\n webhookCreateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a webhook from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksDeleteOptionalParams,\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: coreClient.FullOperationResponse | undefined =\n 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, registryName, webhookName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a webhook from a container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n registryName,\n webhookName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a webhook with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookUpdateParameters The parameters for updating a webhook.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookUpdateParameters: WebhookUpdateParameters,\n options?: WebhooksUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WebhooksUpdateResponse>,\n WebhooksUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WebhooksUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n webhookName,\n webhookUpdateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n WebhooksUpdateResponse,\n OperationState<WebhooksUpdateResponse>\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 * Updates a webhook with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param webhookUpdateParameters The parameters for updating a webhook.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n webhookUpdateParameters: WebhookUpdateParameters,\n options?: WebhooksUpdateOptionalParams,\n ): Promise<WebhooksUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n webhookName,\n webhookUpdateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Triggers a ping event to be sent to the webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n ping(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksPingOptionalParams,\n ): Promise<WebhooksPingResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n pingOperationSpec,\n );\n }\n\n /**\n * Lists recent events for the specified webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n private _listEvents(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksListEventsOptionalParams,\n ): Promise<WebhooksListEventsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n listEventsOperationSpec,\n );\n }\n\n /**\n * Gets the configuration of service URI and custom headers for the webhook.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param options The options parameters.\n */\n getCallbackConfig(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n options?: WebhooksGetCallbackConfigOptionalParams,\n ): Promise<WebhooksGetCallbackConfigResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, options },\n getCallbackConfigOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\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 resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: WebhooksListNextOptionalParams,\n ): Promise<WebhooksListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListEventsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the container registry.\n * @param webhookName The name of the webhook.\n * @param nextLink The nextLink from the previous successful call to the ListEvents method.\n * @param options The options parameters.\n */\n private _listEventsNext(\n resourceGroupName: string,\n registryName: string,\n webhookName: string,\n nextLink: string,\n options?: WebhooksListEventsNextOptionalParams,\n ): Promise<WebhooksListEventsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, webhookName, nextLink, options },\n listEventsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebhookListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n 201: {\n bodyMapper: Mappers.Webhook,\n },\n 202: {\n bodyMapper: Mappers.Webhook,\n },\n 204: {\n bodyMapper: Mappers.Webhook,\n },\n },\n requestBody: Parameters.webhookCreateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Webhook,\n },\n 201: {\n bodyMapper: Mappers.Webhook,\n },\n 202: {\n bodyMapper: Mappers.Webhook,\n },\n 204: {\n bodyMapper: Mappers.Webhook,\n },\n },\n requestBody: Parameters.webhookUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst pingOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventInfo,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listEventsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getCallbackConfigOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CallbackConfig,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.webhookName,\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.WebhookListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listEventsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.nextLink,\n Parameters.webhookName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
package/dist/esm/pagingHelper.js
CHANGED
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
15
15
|
*/
|
16
16
|
export function getContinuationToken(page) {
|
17
|
-
var _a;
|
18
17
|
if (typeof page !== "object" || page === null) {
|
19
18
|
return undefined;
|
20
19
|
}
|
21
|
-
return
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
22
21
|
}
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
24
|
-
var _a;
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
26
24
|
return;
|
27
25
|
}
|
28
|
-
const pageInfo =
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
30
28
|
pageMap.set(page, pageInfo);
|
31
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
10
10
|
import { ArchivesImpl, ArchiveVersionsImpl, CacheRulesImpl, ConnectedRegistriesImpl, CredentialSetsImpl, ExportPipelinesImpl, RegistriesImpl, ImportPipelinesImpl, OperationsImpl, PipelineRunsImpl, PrivateEndpointConnectionsImpl, ReplicationsImpl, ScopeMapsImpl, TokensImpl, WebhooksImpl, AgentPoolsImpl, RunsImpl, TaskRunsImpl, TasksImpl, } from "./operations/index.js";
|
11
11
|
export class ContainerRegistryManagementClient extends coreClient.ServiceClient {
|
12
|
+
$host;
|
13
|
+
apiVersion;
|
14
|
+
subscriptionId;
|
12
15
|
/**
|
13
16
|
* Initializes a new instance of the ContainerRegistryManagementClient class.
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -16,7 +19,6 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
|
|
16
19
|
* @param options The parameter options
|
17
20
|
*/
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
19
|
-
var _a, _b, _c;
|
20
22
|
if (credentials === undefined) {
|
21
23
|
throw new Error("'credentials' cannot be null");
|
22
24
|
}
|
@@ -35,12 +37,17 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
37
39
|
: `${packageDetails}`;
|
38
|
-
const optionsWithDefaults =
|
40
|
+
const optionsWithDefaults = {
|
41
|
+
...defaults,
|
42
|
+
...options,
|
43
|
+
userAgentOptions: {
|
39
44
|
userAgentPrefix,
|
40
|
-
},
|
45
|
+
},
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
47
|
+
};
|
41
48
|
super(optionsWithDefaults);
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
43
|
-
if (
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
@@ -54,7 +61,8 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
|
|
54
61
|
});
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
56
63
|
credential: credentials,
|
57
|
-
scopes:
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
58
66
|
challengeCallbacks: {
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
60
68
|
},
|
@@ -111,5 +119,24 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
|
|
111
119
|
};
|
112
120
|
this.pipeline.addPolicy(apiVersionPolicy);
|
113
121
|
}
|
122
|
+
archives;
|
123
|
+
archiveVersions;
|
124
|
+
cacheRules;
|
125
|
+
connectedRegistries;
|
126
|
+
credentialSets;
|
127
|
+
exportPipelines;
|
128
|
+
registries;
|
129
|
+
importPipelines;
|
130
|
+
operations;
|
131
|
+
pipelineRuns;
|
132
|
+
privateEndpointConnections;
|
133
|
+
replications;
|
134
|
+
scopeMaps;
|
135
|
+
tokens;
|
136
|
+
webhooks;
|
137
|
+
agentPools;
|
138
|
+
runs;
|
139
|
+
taskRuns;
|
140
|
+
tasks;
|
114
141
|
}
|
115
142
|
//# sourceMappingURL=containerRegistryManagementClient.js.map
|