@azure/arm-storagesync 9.0.2-alpha.20221214.1 → 9.1.0
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/CHANGELOG.md +19 -10
- package/README.md +7 -7
- package/dist/index.js +225 -59
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/serverEndpointsCreateSample.js +1 -1
- package/dist-esm/samples-dev/serverEndpointsCreateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/microsoftStorageSync.d.ts +2 -0
- package/dist-esm/src/microsoftStorageSync.d.ts.map +1 -1
- package/dist-esm/src/microsoftStorageSync.js +49 -18
- package/dist-esm/src/microsoftStorageSync.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +89 -27
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +61 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/cloudEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/cloudEndpoints.js +8 -4
- package/dist-esm/src/operations/cloudEndpoints.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/registeredServers.d.ts.map +1 -1
- package/dist-esm/src/operations/registeredServers.js +8 -4
- package/dist-esm/src/operations/registeredServers.js.map +1 -1
- package/dist-esm/src/operations/serverEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/serverEndpoints.js +8 -4
- package/dist-esm/src/operations/serverEndpoints.js.map +1 -1
- package/dist-esm/src/operations/storageSyncServices.d.ts.map +1 -1
- package/dist-esm/src/operations/storageSyncServices.js +16 -8
- package/dist-esm/src/operations/storageSyncServices.js.map +1 -1
- package/dist-esm/src/operations/syncGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/syncGroups.js +8 -4
- package/dist-esm/src/operations/syncGroups.js.map +1 -1
- package/dist-esm/src/operations/workflows.d.ts.map +1 -1
- package/dist-esm/src/operations/workflows.js +8 -4
- package/dist-esm/src/operations/workflows.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +13 -9
- package/review/arm-storagesync.api.md +89 -146
- package/src/index.ts +1 -0
- package/src/microsoftStorageSync.ts +60 -20
- package/src/models/index.ts +88 -27
- package/src/operations/cloudEndpoints.ts +12 -6
- package/src/operations/operations.ts +21 -9
- package/src/operations/privateEndpointConnections.ts +13 -7
- package/src/operations/registeredServers.ts +11 -5
- package/src/operations/serverEndpoints.ts +12 -6
- package/src/operations/storageSyncServices.ts +26 -12
- package/src/operations/syncGroups.ts +11 -5
- package/src/operations/workflows.ts +11 -5
- package/src/pagingHelper.ts +39 -0
- package/types/arm-storagesync.d.ts +100 -27
package/dist/index.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var tslib = require('tslib');
|
5
6
|
var coreClient = require('@azure/core-client');
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
7
|
-
var tslib = require('tslib');
|
8
8
|
var coreLro = require('@azure/core-lro');
|
9
9
|
|
10
10
|
function _interopNamespace(e) {
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
30
30
|
|
31
|
+
/*
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
33
|
+
* Licensed under the MIT License.
|
34
|
+
*
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
37
|
+
*/
|
38
|
+
const pageMap = new WeakMap();
|
39
|
+
/**
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
42
|
+
* that point later.
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
45
|
+
*/
|
46
|
+
function getContinuationToken(page) {
|
47
|
+
var _a;
|
48
|
+
if (typeof page !== "object" || page === null) {
|
49
|
+
return undefined;
|
50
|
+
}
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
52
|
+
}
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
54
|
+
var _a;
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
56
|
+
return;
|
57
|
+
}
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
60
|
+
pageMap.set(page, pageInfo);
|
61
|
+
}
|
62
|
+
|
31
63
|
/*
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
33
65
|
* Licensed under the MIT License.
|
@@ -38,138 +70,199 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
38
70
|
/** Known values of {@link IncomingTrafficPolicy} that the service accepts. */
|
39
71
|
exports.KnownIncomingTrafficPolicy = void 0;
|
40
72
|
(function (KnownIncomingTrafficPolicy) {
|
73
|
+
/** AllowAllTraffic */
|
41
74
|
KnownIncomingTrafficPolicy["AllowAllTraffic"] = "AllowAllTraffic";
|
75
|
+
/** AllowVirtualNetworksOnly */
|
42
76
|
KnownIncomingTrafficPolicy["AllowVirtualNetworksOnly"] = "AllowVirtualNetworksOnly";
|
43
77
|
})(exports.KnownIncomingTrafficPolicy || (exports.KnownIncomingTrafficPolicy = {}));
|
44
78
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
45
79
|
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
46
80
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
81
|
+
/** Pending */
|
47
82
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
83
|
+
/** Approved */
|
48
84
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
85
|
+
/** Rejected */
|
49
86
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
50
87
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
51
88
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
52
89
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
53
90
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
91
|
+
/** Succeeded */
|
54
92
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
93
|
+
/** Creating */
|
55
94
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
95
|
+
/** Deleting */
|
56
96
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
97
|
+
/** Failed */
|
57
98
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
58
99
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
59
100
|
/** Known values of {@link CloudEndpointChangeEnumerationActivityState} that the service accepts. */
|
60
101
|
exports.KnownCloudEndpointChangeEnumerationActivityState = void 0;
|
61
102
|
(function (KnownCloudEndpointChangeEnumerationActivityState) {
|
103
|
+
/** InitialEnumerationInProgress */
|
62
104
|
KnownCloudEndpointChangeEnumerationActivityState["InitialEnumerationInProgress"] = "InitialEnumerationInProgress";
|
105
|
+
/** EnumerationInProgress */
|
63
106
|
KnownCloudEndpointChangeEnumerationActivityState["EnumerationInProgress"] = "EnumerationInProgress";
|
64
107
|
})(exports.KnownCloudEndpointChangeEnumerationActivityState || (exports.KnownCloudEndpointChangeEnumerationActivityState = {}));
|
65
108
|
/** Known values of {@link CloudEndpointChangeEnumerationTotalCountsState} that the service accepts. */
|
66
109
|
exports.KnownCloudEndpointChangeEnumerationTotalCountsState = void 0;
|
67
110
|
(function (KnownCloudEndpointChangeEnumerationTotalCountsState) {
|
111
|
+
/** Calculating */
|
68
112
|
KnownCloudEndpointChangeEnumerationTotalCountsState["Calculating"] = "Calculating";
|
113
|
+
/** Final */
|
69
114
|
KnownCloudEndpointChangeEnumerationTotalCountsState["Final"] = "Final";
|
70
115
|
})(exports.KnownCloudEndpointChangeEnumerationTotalCountsState || (exports.KnownCloudEndpointChangeEnumerationTotalCountsState = {}));
|
71
116
|
/** Known values of {@link ChangeDetectionMode} that the service accepts. */
|
72
117
|
exports.KnownChangeDetectionMode = void 0;
|
73
118
|
(function (KnownChangeDetectionMode) {
|
119
|
+
/** Default */
|
74
120
|
KnownChangeDetectionMode["Default"] = "Default";
|
121
|
+
/** Recursive */
|
75
122
|
KnownChangeDetectionMode["Recursive"] = "Recursive";
|
76
123
|
})(exports.KnownChangeDetectionMode || (exports.KnownChangeDetectionMode = {}));
|
77
124
|
/** Known values of {@link FeatureStatus} that the service accepts. */
|
78
125
|
exports.KnownFeatureStatus = void 0;
|
79
126
|
(function (KnownFeatureStatus) {
|
127
|
+
/** On */
|
80
128
|
KnownFeatureStatus["On"] = "on";
|
129
|
+
/** Off */
|
81
130
|
KnownFeatureStatus["Off"] = "off";
|
82
131
|
})(exports.KnownFeatureStatus || (exports.KnownFeatureStatus = {}));
|
83
132
|
/** Known values of {@link InitialDownloadPolicy} that the service accepts. */
|
84
133
|
exports.KnownInitialDownloadPolicy = void 0;
|
85
134
|
(function (KnownInitialDownloadPolicy) {
|
135
|
+
/** NamespaceOnly */
|
86
136
|
KnownInitialDownloadPolicy["NamespaceOnly"] = "NamespaceOnly";
|
137
|
+
/** NamespaceThenModifiedFiles */
|
87
138
|
KnownInitialDownloadPolicy["NamespaceThenModifiedFiles"] = "NamespaceThenModifiedFiles";
|
139
|
+
/** AvoidTieredFiles */
|
88
140
|
KnownInitialDownloadPolicy["AvoidTieredFiles"] = "AvoidTieredFiles";
|
89
141
|
})(exports.KnownInitialDownloadPolicy || (exports.KnownInitialDownloadPolicy = {}));
|
90
142
|
/** Known values of {@link LocalCacheMode} that the service accepts. */
|
91
143
|
exports.KnownLocalCacheMode = void 0;
|
92
144
|
(function (KnownLocalCacheMode) {
|
145
|
+
/** DownloadNewAndModifiedFiles */
|
93
146
|
KnownLocalCacheMode["DownloadNewAndModifiedFiles"] = "DownloadNewAndModifiedFiles";
|
147
|
+
/** UpdateLocallyCachedFiles */
|
94
148
|
KnownLocalCacheMode["UpdateLocallyCachedFiles"] = "UpdateLocallyCachedFiles";
|
95
149
|
})(exports.KnownLocalCacheMode || (exports.KnownLocalCacheMode = {}));
|
96
150
|
/** Known values of {@link InitialUploadPolicy} that the service accepts. */
|
97
151
|
exports.KnownInitialUploadPolicy = void 0;
|
98
152
|
(function (KnownInitialUploadPolicy) {
|
153
|
+
/** ServerAuthoritative */
|
99
154
|
KnownInitialUploadPolicy["ServerAuthoritative"] = "ServerAuthoritative";
|
155
|
+
/** Merge */
|
100
156
|
KnownInitialUploadPolicy["Merge"] = "Merge";
|
101
157
|
})(exports.KnownInitialUploadPolicy || (exports.KnownInitialUploadPolicy = {}));
|
102
158
|
/** Known values of {@link ServerEndpointHealthState} that the service accepts. */
|
103
159
|
exports.KnownServerEndpointHealthState = void 0;
|
104
160
|
(function (KnownServerEndpointHealthState) {
|
161
|
+
/** Unavailable */
|
105
162
|
KnownServerEndpointHealthState["Unavailable"] = "Unavailable";
|
163
|
+
/** Healthy */
|
106
164
|
KnownServerEndpointHealthState["Healthy"] = "Healthy";
|
165
|
+
/** Error */
|
107
166
|
KnownServerEndpointHealthState["Error"] = "Error";
|
108
167
|
})(exports.KnownServerEndpointHealthState || (exports.KnownServerEndpointHealthState = {}));
|
109
168
|
/** Known values of {@link ServerEndpointSyncActivityState} that the service accepts. */
|
110
169
|
exports.KnownServerEndpointSyncActivityState = void 0;
|
111
170
|
(function (KnownServerEndpointSyncActivityState) {
|
171
|
+
/** Upload */
|
112
172
|
KnownServerEndpointSyncActivityState["Upload"] = "Upload";
|
173
|
+
/** Download */
|
113
174
|
KnownServerEndpointSyncActivityState["Download"] = "Download";
|
175
|
+
/** UploadAndDownload */
|
114
176
|
KnownServerEndpointSyncActivityState["UploadAndDownload"] = "UploadAndDownload";
|
115
177
|
})(exports.KnownServerEndpointSyncActivityState || (exports.KnownServerEndpointSyncActivityState = {}));
|
116
178
|
/** Known values of {@link ServerEndpointSyncMode} that the service accepts. */
|
117
179
|
exports.KnownServerEndpointSyncMode = void 0;
|
118
180
|
(function (KnownServerEndpointSyncMode) {
|
181
|
+
/** Regular */
|
119
182
|
KnownServerEndpointSyncMode["Regular"] = "Regular";
|
183
|
+
/** NamespaceDownload */
|
120
184
|
KnownServerEndpointSyncMode["NamespaceDownload"] = "NamespaceDownload";
|
185
|
+
/** InitialUpload */
|
121
186
|
KnownServerEndpointSyncMode["InitialUpload"] = "InitialUpload";
|
187
|
+
/** SnapshotUpload */
|
122
188
|
KnownServerEndpointSyncMode["SnapshotUpload"] = "SnapshotUpload";
|
189
|
+
/** InitialFullDownload */
|
123
190
|
KnownServerEndpointSyncMode["InitialFullDownload"] = "InitialFullDownload";
|
124
191
|
})(exports.KnownServerEndpointSyncMode || (exports.KnownServerEndpointSyncMode = {}));
|
125
192
|
/** Known values of {@link ServerEndpointOfflineDataTransferState} that the service accepts. */
|
126
193
|
exports.KnownServerEndpointOfflineDataTransferState = void 0;
|
127
194
|
(function (KnownServerEndpointOfflineDataTransferState) {
|
195
|
+
/** InProgress */
|
128
196
|
KnownServerEndpointOfflineDataTransferState["InProgress"] = "InProgress";
|
197
|
+
/** Stopping */
|
129
198
|
KnownServerEndpointOfflineDataTransferState["Stopping"] = "Stopping";
|
199
|
+
/** NotRunning */
|
130
200
|
KnownServerEndpointOfflineDataTransferState["NotRunning"] = "NotRunning";
|
201
|
+
/** Complete */
|
131
202
|
KnownServerEndpointOfflineDataTransferState["Complete"] = "Complete";
|
132
203
|
})(exports.KnownServerEndpointOfflineDataTransferState || (exports.KnownServerEndpointOfflineDataTransferState = {}));
|
133
204
|
/** Known values of {@link RegisteredServerAgentVersionStatus} that the service accepts. */
|
134
205
|
exports.KnownRegisteredServerAgentVersionStatus = void 0;
|
135
206
|
(function (KnownRegisteredServerAgentVersionStatus) {
|
207
|
+
/** Ok */
|
136
208
|
KnownRegisteredServerAgentVersionStatus["Ok"] = "Ok";
|
209
|
+
/** NearExpiry */
|
137
210
|
KnownRegisteredServerAgentVersionStatus["NearExpiry"] = "NearExpiry";
|
211
|
+
/** Expired */
|
138
212
|
KnownRegisteredServerAgentVersionStatus["Expired"] = "Expired";
|
213
|
+
/** Blocked */
|
139
214
|
KnownRegisteredServerAgentVersionStatus["Blocked"] = "Blocked";
|
140
215
|
})(exports.KnownRegisteredServerAgentVersionStatus || (exports.KnownRegisteredServerAgentVersionStatus = {}));
|
141
216
|
/** Known values of {@link WorkflowStatus} that the service accepts. */
|
142
217
|
exports.KnownWorkflowStatus = void 0;
|
143
218
|
(function (KnownWorkflowStatus) {
|
219
|
+
/** Active */
|
144
220
|
KnownWorkflowStatus["Active"] = "active";
|
221
|
+
/** Expired */
|
145
222
|
KnownWorkflowStatus["Expired"] = "expired";
|
223
|
+
/** Succeeded */
|
146
224
|
KnownWorkflowStatus["Succeeded"] = "succeeded";
|
225
|
+
/** Aborted */
|
147
226
|
KnownWorkflowStatus["Aborted"] = "aborted";
|
227
|
+
/** Failed */
|
148
228
|
KnownWorkflowStatus["Failed"] = "failed";
|
149
229
|
})(exports.KnownWorkflowStatus || (exports.KnownWorkflowStatus = {}));
|
150
230
|
/** Known values of {@link OperationDirection} that the service accepts. */
|
151
231
|
exports.KnownOperationDirection = void 0;
|
152
232
|
(function (KnownOperationDirection) {
|
233
|
+
/** Do */
|
153
234
|
KnownOperationDirection["Do"] = "do";
|
235
|
+
/** Undo */
|
154
236
|
KnownOperationDirection["Undo"] = "undo";
|
237
|
+
/** Cancel */
|
155
238
|
KnownOperationDirection["Cancel"] = "cancel";
|
156
239
|
})(exports.KnownOperationDirection || (exports.KnownOperationDirection = {}));
|
157
240
|
/** Known values of {@link Reason} that the service accepts. */
|
158
241
|
exports.KnownReason = void 0;
|
159
242
|
(function (KnownReason) {
|
243
|
+
/** Registered */
|
160
244
|
KnownReason["Registered"] = "Registered";
|
245
|
+
/** Unregistered */
|
161
246
|
KnownReason["Unregistered"] = "Unregistered";
|
247
|
+
/** Warned */
|
162
248
|
KnownReason["Warned"] = "Warned";
|
249
|
+
/** Suspended */
|
163
250
|
KnownReason["Suspended"] = "Suspended";
|
251
|
+
/** Deleted */
|
164
252
|
KnownReason["Deleted"] = "Deleted";
|
165
253
|
})(exports.KnownReason || (exports.KnownReason = {}));
|
166
254
|
/** Known values of {@link ProgressType} that the service accepts. */
|
167
255
|
exports.KnownProgressType = void 0;
|
168
256
|
(function (KnownProgressType) {
|
257
|
+
/** None */
|
169
258
|
KnownProgressType["None"] = "none";
|
259
|
+
/** Initialize */
|
170
260
|
KnownProgressType["Initialize"] = "initialize";
|
261
|
+
/** Download */
|
171
262
|
KnownProgressType["Download"] = "download";
|
263
|
+
/** Upload */
|
172
264
|
KnownProgressType["Upload"] = "upload";
|
265
|
+
/** Recall */
|
173
266
|
KnownProgressType["Recall"] = "recall";
|
174
267
|
})(exports.KnownProgressType || (exports.KnownProgressType = {}));
|
175
268
|
|
@@ -4250,20 +4343,31 @@ class OperationsImpl {
|
|
4250
4343
|
[Symbol.asyncIterator]() {
|
4251
4344
|
return this;
|
4252
4345
|
},
|
4253
|
-
byPage: () => {
|
4254
|
-
|
4346
|
+
byPage: (settings) => {
|
4347
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
4348
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
4349
|
+
}
|
4350
|
+
return this.listPagingPage(options, settings);
|
4255
4351
|
}
|
4256
4352
|
};
|
4257
4353
|
}
|
4258
|
-
listPagingPage(options) {
|
4354
|
+
listPagingPage(options, settings) {
|
4259
4355
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
4260
|
-
let result
|
4261
|
-
|
4262
|
-
|
4356
|
+
let result;
|
4357
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
4358
|
+
if (!continuationToken) {
|
4359
|
+
result = yield tslib.__await(this._list(options));
|
4360
|
+
let page = result.value || [];
|
4361
|
+
continuationToken = result.nextLink;
|
4362
|
+
setContinuationToken(page, continuationToken);
|
4363
|
+
yield yield tslib.__await(page);
|
4364
|
+
}
|
4263
4365
|
while (continuationToken) {
|
4264
4366
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
4265
4367
|
continuationToken = result.nextLink;
|
4266
|
-
|
4368
|
+
let page = result.value || [];
|
4369
|
+
setContinuationToken(page, continuationToken);
|
4370
|
+
yield yield tslib.__await(page);
|
4267
4371
|
}
|
4268
4372
|
});
|
4269
4373
|
}
|
@@ -4332,7 +4436,6 @@ const listNextOperationSpec = {
|
|
4332
4436
|
bodyMapper: StorageSyncError
|
4333
4437
|
}
|
4334
4438
|
},
|
4335
|
-
queryParameters: [apiVersion],
|
4336
4439
|
urlParameters: [$host, nextLink],
|
4337
4440
|
headerParameters: [accept],
|
4338
4441
|
serializer: serializer$a
|
@@ -4397,14 +4500,18 @@ class StorageSyncServicesImpl {
|
|
4397
4500
|
[Symbol.asyncIterator]() {
|
4398
4501
|
return this;
|
4399
4502
|
},
|
4400
|
-
byPage: () => {
|
4401
|
-
|
4503
|
+
byPage: (settings) => {
|
4504
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
4505
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
4506
|
+
}
|
4507
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
4402
4508
|
}
|
4403
4509
|
};
|
4404
4510
|
}
|
4405
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
4511
|
+
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
4406
4512
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
4407
|
-
let result
|
4513
|
+
let result;
|
4514
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
4408
4515
|
yield yield tslib.__await(result.value || []);
|
4409
4516
|
});
|
4410
4517
|
}
|
@@ -4439,14 +4546,18 @@ class StorageSyncServicesImpl {
|
|
4439
4546
|
[Symbol.asyncIterator]() {
|
4440
4547
|
return this;
|
4441
4548
|
},
|
4442
|
-
byPage: () => {
|
4443
|
-
|
4549
|
+
byPage: (settings) => {
|
4550
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
4551
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
4552
|
+
}
|
4553
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
4444
4554
|
}
|
4445
4555
|
};
|
4446
4556
|
}
|
4447
|
-
listBySubscriptionPagingPage(options) {
|
4557
|
+
listBySubscriptionPagingPage(options, _settings) {
|
4448
4558
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
4449
|
-
let result
|
4559
|
+
let result;
|
4560
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
4450
4561
|
yield yield tslib.__await(result.value || []);
|
4451
4562
|
});
|
4452
4563
|
}
|
@@ -4917,14 +5028,18 @@ class PrivateEndpointConnectionsImpl {
|
|
4917
5028
|
[Symbol.asyncIterator]() {
|
4918
5029
|
return this;
|
4919
5030
|
},
|
4920
|
-
byPage: () => {
|
4921
|
-
|
5031
|
+
byPage: (settings) => {
|
5032
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
5033
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
5034
|
+
}
|
5035
|
+
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
4922
5036
|
}
|
4923
5037
|
};
|
4924
5038
|
}
|
4925
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options) {
|
5039
|
+
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
4926
5040
|
return tslib.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
|
4927
|
-
let result
|
5041
|
+
let result;
|
5042
|
+
result = yield tslib.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
|
4928
5043
|
yield yield tslib.__await(result.value || []);
|
4929
5044
|
});
|
4930
5045
|
}
|
@@ -5235,14 +5350,18 @@ class SyncGroupsImpl {
|
|
5235
5350
|
[Symbol.asyncIterator]() {
|
5236
5351
|
return this;
|
5237
5352
|
},
|
5238
|
-
byPage: () => {
|
5239
|
-
|
5353
|
+
byPage: (settings) => {
|
5354
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
5355
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
5356
|
+
}
|
5357
|
+
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
5240
5358
|
}
|
5241
5359
|
};
|
5242
5360
|
}
|
5243
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options) {
|
5361
|
+
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
5244
5362
|
return tslib.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
|
5245
|
-
let result
|
5363
|
+
let result;
|
5364
|
+
result = yield tslib.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
|
5246
5365
|
yield yield tslib.__await(result.value || []);
|
5247
5366
|
});
|
5248
5367
|
}
|
@@ -5440,14 +5559,18 @@ class CloudEndpointsImpl {
|
|
5440
5559
|
[Symbol.asyncIterator]() {
|
5441
5560
|
return this;
|
5442
5561
|
},
|
5443
|
-
byPage: () => {
|
5444
|
-
|
5562
|
+
byPage: (settings) => {
|
5563
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
5564
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
5565
|
+
}
|
5566
|
+
return this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, settings);
|
5445
5567
|
}
|
5446
5568
|
};
|
5447
5569
|
}
|
5448
|
-
listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
|
5570
|
+
listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, _settings) {
|
5449
5571
|
return tslib.__asyncGenerator(this, arguments, function* listBySyncGroupPagingPage_1() {
|
5450
|
-
let result
|
5572
|
+
let result;
|
5573
|
+
result = yield tslib.__await(this._listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, options));
|
5451
5574
|
yield yield tslib.__await(result.value || []);
|
5452
5575
|
});
|
5453
5576
|
}
|
@@ -6287,14 +6410,18 @@ class ServerEndpointsImpl {
|
|
6287
6410
|
[Symbol.asyncIterator]() {
|
6288
6411
|
return this;
|
6289
6412
|
},
|
6290
|
-
byPage: () => {
|
6291
|
-
|
6413
|
+
byPage: (settings) => {
|
6414
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
6415
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
6416
|
+
}
|
6417
|
+
return this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, settings);
|
6292
6418
|
}
|
6293
6419
|
};
|
6294
6420
|
}
|
6295
|
-
listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
|
6421
|
+
listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, _settings) {
|
6296
6422
|
return tslib.__asyncGenerator(this, arguments, function* listBySyncGroupPagingPage_1() {
|
6297
|
-
let result
|
6423
|
+
let result;
|
6424
|
+
result = yield tslib.__await(this._listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, options));
|
6298
6425
|
yield yield tslib.__await(result.value || []);
|
6299
6426
|
});
|
6300
6427
|
}
|
@@ -6818,14 +6945,18 @@ class RegisteredServersImpl {
|
|
6818
6945
|
[Symbol.asyncIterator]() {
|
6819
6946
|
return this;
|
6820
6947
|
},
|
6821
|
-
byPage: () => {
|
6822
|
-
|
6948
|
+
byPage: (settings) => {
|
6949
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
6950
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
6951
|
+
}
|
6952
|
+
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
6823
6953
|
}
|
6824
6954
|
};
|
6825
6955
|
}
|
6826
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options) {
|
6956
|
+
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
6827
6957
|
return tslib.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
|
6828
|
-
let result
|
6958
|
+
let result;
|
6959
|
+
result = yield tslib.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
|
6829
6960
|
yield yield tslib.__await(result.value || []);
|
6830
6961
|
});
|
6831
6962
|
}
|
@@ -7223,14 +7354,18 @@ class WorkflowsImpl {
|
|
7223
7354
|
[Symbol.asyncIterator]() {
|
7224
7355
|
return this;
|
7225
7356
|
},
|
7226
|
-
byPage: () => {
|
7227
|
-
|
7357
|
+
byPage: (settings) => {
|
7358
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
7359
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
7360
|
+
}
|
7361
|
+
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
7228
7362
|
}
|
7229
7363
|
};
|
7230
7364
|
}
|
7231
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options) {
|
7365
|
+
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
7232
7366
|
return tslib.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
|
7233
|
-
let result
|
7367
|
+
let result;
|
7368
|
+
result = yield tslib.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
|
7234
7369
|
yield yield tslib.__await(result.value || []);
|
7235
7370
|
});
|
7236
7371
|
}
|
@@ -7422,7 +7557,7 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
|
|
7422
7557
|
* @param options The parameter options
|
7423
7558
|
*/
|
7424
7559
|
constructor(credentials, subscriptionId, options) {
|
7425
|
-
var _a, _b;
|
7560
|
+
var _a, _b, _c;
|
7426
7561
|
if (credentials === undefined) {
|
7427
7562
|
throw new Error("'credentials' cannot be null");
|
7428
7563
|
}
|
@@ -7437,32 +7572,34 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
|
|
7437
7572
|
requestContentType: "application/json; charset=utf-8",
|
7438
7573
|
credential: credentials
|
7439
7574
|
};
|
7440
|
-
const packageDetails = `azsdk-js-arm-storagesync/9.0
|
7575
|
+
const packageDetails = `azsdk-js-arm-storagesync/9.1.0`;
|
7441
7576
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
7442
7577
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
7443
7578
|
: `${packageDetails}`;
|
7444
|
-
if (!options.credentialScopes) {
|
7445
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
7446
|
-
}
|
7447
7579
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
7448
7580
|
userAgentPrefix
|
7449
|
-
},
|
7581
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
7450
7582
|
super(optionsWithDefaults);
|
7583
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
7451
7584
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
7452
7585
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
7453
|
-
|
7586
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
7454
7587
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
7455
|
-
|
7456
|
-
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7460
|
-
|
7461
|
-
|
7462
|
-
|
7463
|
-
|
7464
|
-
|
7465
|
-
|
7588
|
+
}
|
7589
|
+
if (!options ||
|
7590
|
+
!options.pipeline ||
|
7591
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
7592
|
+
!bearerTokenAuthenticationPolicyFound) {
|
7593
|
+
this.pipeline.removePolicy({
|
7594
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
7595
|
+
});
|
7596
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
7597
|
+
credential: credentials,
|
7598
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
7599
|
+
challengeCallbacks: {
|
7600
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
7601
|
+
}
|
7602
|
+
}));
|
7466
7603
|
}
|
7467
7604
|
// Parameter assignments
|
7468
7605
|
this.subscriptionId = subscriptionId;
|
@@ -7479,6 +7616,34 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
|
|
7479
7616
|
this.registeredServers = new RegisteredServersImpl(this);
|
7480
7617
|
this.workflows = new WorkflowsImpl(this);
|
7481
7618
|
this.operationStatusOperations = new OperationStatusOperationsImpl(this);
|
7619
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
7620
|
+
}
|
7621
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
7622
|
+
addCustomApiVersionPolicy(apiVersion) {
|
7623
|
+
if (!apiVersion) {
|
7624
|
+
return;
|
7625
|
+
}
|
7626
|
+
const apiVersionPolicy = {
|
7627
|
+
name: "CustomApiVersionPolicy",
|
7628
|
+
sendRequest(request, next) {
|
7629
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
7630
|
+
const param = request.url.split("?");
|
7631
|
+
if (param.length > 1) {
|
7632
|
+
const newParams = param[1].split("&").map((item) => {
|
7633
|
+
if (item.indexOf("api-version") > -1) {
|
7634
|
+
return "api-version=" + apiVersion;
|
7635
|
+
}
|
7636
|
+
else {
|
7637
|
+
return item;
|
7638
|
+
}
|
7639
|
+
});
|
7640
|
+
request.url = param[0] + "?" + newParams.join("&");
|
7641
|
+
}
|
7642
|
+
return next(request);
|
7643
|
+
});
|
7644
|
+
}
|
7645
|
+
};
|
7646
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
7482
7647
|
}
|
7483
7648
|
/**
|
7484
7649
|
* Get Operation status
|
@@ -7516,4 +7681,5 @@ const locationOperationStatusOperationSpec = {
|
|
7516
7681
|
};
|
7517
7682
|
|
7518
7683
|
exports.MicrosoftStorageSync = MicrosoftStorageSync;
|
7684
|
+
exports.getContinuationToken = getContinuationToken;
|
7519
7685
|
//# sourceMappingURL=index.js.map
|