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