@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
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
19
19
|
/** Class containing Registries operations. */
|
20
20
|
class RegistriesImpl {
|
21
|
+
client;
|
21
22
|
/**
|
22
23
|
* Initialize a new instance of the class Registries class.
|
23
24
|
* @param client Reference to the service client
|
@@ -39,52 +40,35 @@ class RegistriesImpl {
|
|
39
40
|
return this;
|
40
41
|
},
|
41
42
|
byPage: (settings) => {
|
42
|
-
if (settings
|
43
|
+
if (settings?.maxPageSize) {
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
44
45
|
}
|
45
46
|
return this.listPagingPage(options, settings);
|
46
47
|
},
|
47
48
|
};
|
48
49
|
}
|
49
|
-
listPagingPage(options, settings) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
var _a, e_1, _b, _c;
|
72
|
-
try {
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
74
|
-
_c = _f.value;
|
75
|
-
_d = false;
|
76
|
-
const page = _c;
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
78
|
-
}
|
79
|
-
}
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
81
|
-
finally {
|
82
|
-
try {
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
84
|
-
}
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
86
|
-
}
|
87
|
-
});
|
50
|
+
async *listPagingPage(options, settings) {
|
51
|
+
let result;
|
52
|
+
let continuationToken = settings?.continuationToken;
|
53
|
+
if (!continuationToken) {
|
54
|
+
result = await this._list(options);
|
55
|
+
let page = result.value || [];
|
56
|
+
continuationToken = result.nextLink;
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
58
|
+
yield page;
|
59
|
+
}
|
60
|
+
while (continuationToken) {
|
61
|
+
result = await this._listNext(continuationToken, options);
|
62
|
+
continuationToken = result.nextLink;
|
63
|
+
let page = result.value || [];
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
65
|
+
yield page;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
async *listPagingAll(options) {
|
69
|
+
for await (const page of this.listPagingPage(options)) {
|
70
|
+
yield* page;
|
71
|
+
}
|
88
72
|
}
|
89
73
|
/**
|
90
74
|
* Lists all the container registries under the specified resource group.
|
@@ -101,52 +85,35 @@ class RegistriesImpl {
|
|
101
85
|
return this;
|
102
86
|
},
|
103
87
|
byPage: (settings) => {
|
104
|
-
if (settings
|
88
|
+
if (settings?.maxPageSize) {
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
106
90
|
}
|
107
91
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
108
92
|
},
|
109
93
|
};
|
110
94
|
}
|
111
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
var _a, e_2, _b, _c;
|
134
|
-
try {
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
136
|
-
_c = _f.value;
|
137
|
-
_d = false;
|
138
|
-
const page = _c;
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
140
|
-
}
|
141
|
-
}
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
143
|
-
finally {
|
144
|
-
try {
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
146
|
-
}
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
148
|
-
}
|
149
|
-
});
|
95
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
96
|
+
let result;
|
97
|
+
let continuationToken = settings?.continuationToken;
|
98
|
+
if (!continuationToken) {
|
99
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
100
|
+
let page = result.value || [];
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
103
|
+
yield page;
|
104
|
+
}
|
105
|
+
while (continuationToken) {
|
106
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
107
|
+
continuationToken = result.nextLink;
|
108
|
+
let page = result.value || [];
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
110
|
+
yield page;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
114
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
115
|
+
yield* page;
|
116
|
+
}
|
150
117
|
}
|
151
118
|
/**
|
152
119
|
* Lists the private link resources for a container registry.
|
@@ -164,52 +131,35 @@ class RegistriesImpl {
|
|
164
131
|
return this;
|
165
132
|
},
|
166
133
|
byPage: (settings) => {
|
167
|
-
if (settings
|
134
|
+
if (settings?.maxPageSize) {
|
168
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
169
136
|
}
|
170
137
|
return this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings);
|
171
138
|
},
|
172
139
|
};
|
173
140
|
}
|
174
|
-
listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings) {
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
var _a, e_3, _b, _c;
|
197
|
-
try {
|
198
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
199
|
-
_c = _f.value;
|
200
|
-
_d = false;
|
201
|
-
const page = _c;
|
202
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
203
|
-
}
|
204
|
-
}
|
205
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
206
|
-
finally {
|
207
|
-
try {
|
208
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
209
|
-
}
|
210
|
-
finally { if (e_3) throw e_3.error; }
|
211
|
-
}
|
212
|
-
});
|
141
|
+
async *listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings) {
|
142
|
+
let result;
|
143
|
+
let continuationToken = settings?.continuationToken;
|
144
|
+
if (!continuationToken) {
|
145
|
+
result = await this._listPrivateLinkResources(resourceGroupName, registryName, options);
|
146
|
+
let page = result.value || [];
|
147
|
+
continuationToken = result.nextLink;
|
148
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
149
|
+
yield page;
|
150
|
+
}
|
151
|
+
while (continuationToken) {
|
152
|
+
result = await this._listPrivateLinkResourcesNext(resourceGroupName, registryName, continuationToken, options);
|
153
|
+
continuationToken = result.nextLink;
|
154
|
+
let page = result.value || [];
|
155
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
156
|
+
yield page;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
async *listPrivateLinkResourcesPagingAll(resourceGroupName, registryName, options) {
|
160
|
+
for await (const page of this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options)) {
|
161
|
+
yield* page;
|
162
|
+
}
|
213
163
|
}
|
214
164
|
/**
|
215
165
|
* Copies an image to this container registry from the specified container registry.
|
@@ -223,14 +173,19 @@ class RegistriesImpl {
|
|
223
173
|
return this.client.sendOperationRequest(args, spec);
|
224
174
|
};
|
225
175
|
const sendOperationFn = async (args, spec) => {
|
226
|
-
var _a;
|
227
176
|
let currentRawResponse = undefined;
|
228
|
-
const providedCallback =
|
177
|
+
const providedCallback = args.options?.onResponse;
|
229
178
|
const callback = (rawResponse, flatResponse) => {
|
230
179
|
currentRawResponse = rawResponse;
|
231
|
-
providedCallback
|
180
|
+
providedCallback?.(rawResponse, flatResponse);
|
181
|
+
};
|
182
|
+
const updatedArgs = {
|
183
|
+
...args,
|
184
|
+
options: {
|
185
|
+
...args.options,
|
186
|
+
onResponse: callback,
|
187
|
+
},
|
232
188
|
};
|
233
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
234
189
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
235
190
|
return {
|
236
191
|
flatResponse,
|
@@ -247,8 +202,8 @@ class RegistriesImpl {
|
|
247
202
|
spec: importImageOperationSpec,
|
248
203
|
});
|
249
204
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
250
|
-
restoreFrom: options
|
251
|
-
intervalInMs: options
|
205
|
+
restoreFrom: options?.resumeFrom,
|
206
|
+
intervalInMs: options?.updateIntervalInMs,
|
252
207
|
resourceLocationConfig: "location",
|
253
208
|
});
|
254
209
|
await poller.poll();
|
@@ -310,14 +265,19 @@ class RegistriesImpl {
|
|
310
265
|
return this.client.sendOperationRequest(args, spec);
|
311
266
|
};
|
312
267
|
const sendOperationFn = async (args, spec) => {
|
313
|
-
var _a;
|
314
268
|
let currentRawResponse = undefined;
|
315
|
-
const providedCallback =
|
269
|
+
const providedCallback = args.options?.onResponse;
|
316
270
|
const callback = (rawResponse, flatResponse) => {
|
317
271
|
currentRawResponse = rawResponse;
|
318
|
-
providedCallback
|
272
|
+
providedCallback?.(rawResponse, flatResponse);
|
273
|
+
};
|
274
|
+
const updatedArgs = {
|
275
|
+
...args,
|
276
|
+
options: {
|
277
|
+
...args.options,
|
278
|
+
onResponse: callback,
|
279
|
+
},
|
319
280
|
};
|
320
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
321
281
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
322
282
|
return {
|
323
283
|
flatResponse,
|
@@ -334,8 +294,8 @@ class RegistriesImpl {
|
|
334
294
|
spec: createOperationSpec,
|
335
295
|
});
|
336
296
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
337
|
-
restoreFrom: options
|
338
|
-
intervalInMs: options
|
297
|
+
restoreFrom: options?.resumeFrom,
|
298
|
+
intervalInMs: options?.updateIntervalInMs,
|
339
299
|
resourceLocationConfig: "azure-async-operation",
|
340
300
|
});
|
341
301
|
await poller.poll();
|
@@ -363,14 +323,19 @@ class RegistriesImpl {
|
|
363
323
|
return this.client.sendOperationRequest(args, spec);
|
364
324
|
};
|
365
325
|
const sendOperationFn = async (args, spec) => {
|
366
|
-
var _a;
|
367
326
|
let currentRawResponse = undefined;
|
368
|
-
const providedCallback =
|
327
|
+
const providedCallback = args.options?.onResponse;
|
369
328
|
const callback = (rawResponse, flatResponse) => {
|
370
329
|
currentRawResponse = rawResponse;
|
371
|
-
providedCallback
|
330
|
+
providedCallback?.(rawResponse, flatResponse);
|
331
|
+
};
|
332
|
+
const updatedArgs = {
|
333
|
+
...args,
|
334
|
+
options: {
|
335
|
+
...args.options,
|
336
|
+
onResponse: callback,
|
337
|
+
},
|
372
338
|
};
|
373
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
374
339
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
375
340
|
return {
|
376
341
|
flatResponse,
|
@@ -387,8 +352,8 @@ class RegistriesImpl {
|
|
387
352
|
spec: deleteOperationSpec,
|
388
353
|
});
|
389
354
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
390
|
-
restoreFrom: options
|
391
|
-
intervalInMs: options
|
355
|
+
restoreFrom: options?.resumeFrom,
|
356
|
+
intervalInMs: options?.updateIntervalInMs,
|
392
357
|
resourceLocationConfig: "location",
|
393
358
|
});
|
394
359
|
await poller.poll();
|
@@ -416,14 +381,19 @@ class RegistriesImpl {
|
|
416
381
|
return this.client.sendOperationRequest(args, spec);
|
417
382
|
};
|
418
383
|
const sendOperationFn = async (args, spec) => {
|
419
|
-
var _a;
|
420
384
|
let currentRawResponse = undefined;
|
421
|
-
const providedCallback =
|
385
|
+
const providedCallback = args.options?.onResponse;
|
422
386
|
const callback = (rawResponse, flatResponse) => {
|
423
387
|
currentRawResponse = rawResponse;
|
424
|
-
providedCallback
|
388
|
+
providedCallback?.(rawResponse, flatResponse);
|
389
|
+
};
|
390
|
+
const updatedArgs = {
|
391
|
+
...args,
|
392
|
+
options: {
|
393
|
+
...args.options,
|
394
|
+
onResponse: callback,
|
395
|
+
},
|
425
396
|
};
|
426
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
427
397
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
428
398
|
return {
|
429
399
|
flatResponse,
|
@@ -445,8 +415,8 @@ class RegistriesImpl {
|
|
445
415
|
spec: updateOperationSpec,
|
446
416
|
});
|
447
417
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
448
|
-
restoreFrom: options
|
449
|
-
intervalInMs: options
|
418
|
+
restoreFrom: options?.resumeFrom,
|
419
|
+
intervalInMs: options?.updateIntervalInMs,
|
450
420
|
resourceLocationConfig: "azure-async-operation",
|
451
421
|
});
|
452
422
|
await poller.poll();
|
@@ -528,14 +498,19 @@ class RegistriesImpl {
|
|
528
498
|
return this.client.sendOperationRequest(args, spec);
|
529
499
|
};
|
530
500
|
const sendOperationFn = async (args, spec) => {
|
531
|
-
var _a;
|
532
501
|
let currentRawResponse = undefined;
|
533
|
-
const providedCallback =
|
502
|
+
const providedCallback = args.options?.onResponse;
|
534
503
|
const callback = (rawResponse, flatResponse) => {
|
535
504
|
currentRawResponse = rawResponse;
|
536
|
-
providedCallback
|
505
|
+
providedCallback?.(rawResponse, flatResponse);
|
506
|
+
};
|
507
|
+
const updatedArgs = {
|
508
|
+
...args,
|
509
|
+
options: {
|
510
|
+
...args.options,
|
511
|
+
onResponse: callback,
|
512
|
+
},
|
537
513
|
};
|
538
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
539
514
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
540
515
|
return {
|
541
516
|
flatResponse,
|
@@ -557,8 +532,8 @@ class RegistriesImpl {
|
|
557
532
|
spec: generateCredentialsOperationSpec,
|
558
533
|
});
|
559
534
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
560
|
-
restoreFrom: options
|
561
|
-
intervalInMs: options
|
535
|
+
restoreFrom: options?.resumeFrom,
|
536
|
+
intervalInMs: options?.updateIntervalInMs,
|
562
537
|
resourceLocationConfig: "location",
|
563
538
|
});
|
564
539
|
await poller.poll();
|