@azure/arm-databox 5.0.0-beta.2 → 5.0.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 +2 -2
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +973 -182
- 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/jobsBookShipmentPickUpSample.js +12 -5
- package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsCancelSample.js +12 -5
- package/dist-esm/samples-dev/jobsCancelSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsCreateSample.js +93 -86
- package/dist-esm/samples-dev/jobsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsDeleteSample.js +12 -5
- package/dist-esm/samples-dev/jobsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsGetSample.js +32 -25
- package/dist-esm/samples-dev/jobsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.js +23 -9
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsListCredentialsSample.js +24 -10
- package/dist-esm/samples-dev/jobsListCredentialsSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsListSample.js +22 -8
- package/dist-esm/samples-dev/jobsListSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js +16 -6
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsUpdateSample.js +39 -32
- package/dist-esm/samples-dev/jobsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/mitigateSample.js +16 -6
- package/dist-esm/samples-dev/mitigateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +23 -8
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js +24 -10
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.js +10 -3
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceValidateAddressSample.js +17 -10
- package/dist-esm/samples-dev/serviceValidateAddressSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js +20 -13
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceValidateInputsSample.js +19 -12
- package/dist-esm/samples-dev/serviceValidateInputsSample.js.map +1 -1
- package/dist-esm/src/dataBoxManagementClient.d.ts +2 -0
- package/dist-esm/src/dataBoxManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataBoxManagementClient.js +50 -19
- package/dist-esm/src/dataBoxManagementClient.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/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +479 -145
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +69 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +11 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +614 -46
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/jobs.d.ts +4 -4
- package/dist-esm/src/operations/jobs.d.ts.map +1 -1
- package/dist-esm/src/operations/jobs.js +107 -49
- package/dist-esm/src/operations/jobs.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +31 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/service.d.ts.map +1 -1
- package/dist-esm/src/operations/service.js +31 -13
- package/dist-esm/src/operations/service.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.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/databox_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/databox_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/databox_operations_test.spec.js +78 -0
- package/dist-esm/test/databox_operations_test.spec.js.map +1 -0
- package/package.json +21 -16
- package/review/arm-databox.api.md +255 -189
- package/src/dataBoxManagementClient.ts +61 -21
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +468 -98
- package/src/models/mappers.ts +634 -42
- package/src/models/parameters.ts +1 -1
- package/src/operations/jobs.ts +96 -57
- package/src/operations/operations.ts +21 -9
- package/src/operations/service.ts +27 -14
- package/src/operationsInterfaces/jobs.ts +4 -4
- package/src/pagingHelper.ts +39 -0
- package/types/arm-databox.d.ts +457 -99
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
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.
|
|
@@ -104,56 +136,124 @@ exports.KnownNotificationStageName = void 0;
|
|
|
104
136
|
/** Known values of {@link DataCenterCode} that the service accepts. */
|
|
105
137
|
exports.KnownDataCenterCode = void 0;
|
|
106
138
|
(function (KnownDataCenterCode) {
|
|
139
|
+
/** Invalid */
|
|
107
140
|
KnownDataCenterCode["Invalid"] = "Invalid";
|
|
141
|
+
/** BY2 */
|
|
108
142
|
KnownDataCenterCode["BY2"] = "BY2";
|
|
143
|
+
/** BY1 */
|
|
109
144
|
KnownDataCenterCode["BY1"] = "BY1";
|
|
145
|
+
/** ORK70 */
|
|
110
146
|
KnownDataCenterCode["ORK70"] = "ORK70";
|
|
147
|
+
/** AM2 */
|
|
111
148
|
KnownDataCenterCode["AM2"] = "AM2";
|
|
149
|
+
/** AMS20 */
|
|
112
150
|
KnownDataCenterCode["AMS20"] = "AMS20";
|
|
151
|
+
/** BY21 */
|
|
113
152
|
KnownDataCenterCode["BY21"] = "BY21";
|
|
153
|
+
/** BY24 */
|
|
114
154
|
KnownDataCenterCode["BY24"] = "BY24";
|
|
155
|
+
/** MWH01 */
|
|
115
156
|
KnownDataCenterCode["MWH01"] = "MWH01";
|
|
157
|
+
/** AMS06 */
|
|
116
158
|
KnownDataCenterCode["AMS06"] = "AMS06";
|
|
159
|
+
/** SSE90 */
|
|
117
160
|
KnownDataCenterCode["SSE90"] = "SSE90";
|
|
161
|
+
/** SYD03 */
|
|
118
162
|
KnownDataCenterCode["SYD03"] = "SYD03";
|
|
163
|
+
/** SYD23 */
|
|
119
164
|
KnownDataCenterCode["SYD23"] = "SYD23";
|
|
165
|
+
/** CBR20 */
|
|
120
166
|
KnownDataCenterCode["CBR20"] = "CBR20";
|
|
167
|
+
/** YTO20 */
|
|
121
168
|
KnownDataCenterCode["YTO20"] = "YTO20";
|
|
169
|
+
/** CWL20 */
|
|
122
170
|
KnownDataCenterCode["CWL20"] = "CWL20";
|
|
171
|
+
/** LON24 */
|
|
123
172
|
KnownDataCenterCode["LON24"] = "LON24";
|
|
173
|
+
/** BOM01 */
|
|
124
174
|
KnownDataCenterCode["BOM01"] = "BOM01";
|
|
175
|
+
/** BL20 */
|
|
125
176
|
KnownDataCenterCode["BL20"] = "BL20";
|
|
177
|
+
/** BL7 */
|
|
126
178
|
KnownDataCenterCode["BL7"] = "BL7";
|
|
179
|
+
/** SEL20 */
|
|
127
180
|
KnownDataCenterCode["SEL20"] = "SEL20";
|
|
181
|
+
/** TYO01 */
|
|
128
182
|
KnownDataCenterCode["TYO01"] = "TYO01";
|
|
183
|
+
/** BN1 */
|
|
129
184
|
KnownDataCenterCode["BN1"] = "BN1";
|
|
185
|
+
/** SN5 */
|
|
130
186
|
KnownDataCenterCode["SN5"] = "SN5";
|
|
187
|
+
/** CYS04 */
|
|
131
188
|
KnownDataCenterCode["CYS04"] = "CYS04";
|
|
189
|
+
/** TYO22 */
|
|
132
190
|
KnownDataCenterCode["TYO22"] = "TYO22";
|
|
191
|
+
/** YTO21 */
|
|
133
192
|
KnownDataCenterCode["YTO21"] = "YTO21";
|
|
193
|
+
/** YQB20 */
|
|
134
194
|
KnownDataCenterCode["YQB20"] = "YQB20";
|
|
195
|
+
/** FRA22 */
|
|
135
196
|
KnownDataCenterCode["FRA22"] = "FRA22";
|
|
197
|
+
/** MAA01 */
|
|
136
198
|
KnownDataCenterCode["MAA01"] = "MAA01";
|
|
199
|
+
/** CPQ02 */
|
|
137
200
|
KnownDataCenterCode["CPQ02"] = "CPQ02";
|
|
201
|
+
/** CPQ20 */
|
|
138
202
|
KnownDataCenterCode["CPQ20"] = "CPQ20";
|
|
203
|
+
/** SIN20 */
|
|
139
204
|
KnownDataCenterCode["SIN20"] = "SIN20";
|
|
205
|
+
/** HKG20 */
|
|
140
206
|
KnownDataCenterCode["HKG20"] = "HKG20";
|
|
207
|
+
/** SG2 */
|
|
141
208
|
KnownDataCenterCode["SG2"] = "SG2";
|
|
209
|
+
/** MEL23 */
|
|
142
210
|
KnownDataCenterCode["MEL23"] = "MEL23";
|
|
211
|
+
/** SEL21 */
|
|
143
212
|
KnownDataCenterCode["SEL21"] = "SEL21";
|
|
213
|
+
/** OSA20 */
|
|
144
214
|
KnownDataCenterCode["OSA20"] = "OSA20";
|
|
215
|
+
/** SHA03 */
|
|
145
216
|
KnownDataCenterCode["SHA03"] = "SHA03";
|
|
217
|
+
/** BJB */
|
|
146
218
|
KnownDataCenterCode["BJB"] = "BJB";
|
|
219
|
+
/** JNB22 */
|
|
147
220
|
KnownDataCenterCode["JNB22"] = "JNB22";
|
|
221
|
+
/** JNB21 */
|
|
148
222
|
KnownDataCenterCode["JNB21"] = "JNB21";
|
|
223
|
+
/** MNZ21 */
|
|
149
224
|
KnownDataCenterCode["MNZ21"] = "MNZ21";
|
|
225
|
+
/** SN8 */
|
|
150
226
|
KnownDataCenterCode["SN8"] = "SN8";
|
|
227
|
+
/** AUH20 */
|
|
151
228
|
KnownDataCenterCode["AUH20"] = "AUH20";
|
|
229
|
+
/** ZRH20 */
|
|
152
230
|
KnownDataCenterCode["ZRH20"] = "ZRH20";
|
|
231
|
+
/** PUS20 */
|
|
153
232
|
KnownDataCenterCode["PUS20"] = "PUS20";
|
|
233
|
+
/** AdHoc */
|
|
154
234
|
KnownDataCenterCode["AdHoc"] = "AdHoc";
|
|
235
|
+
/** CH1 */
|
|
155
236
|
KnownDataCenterCode["CH1"] = "CH1";
|
|
237
|
+
/** DSM05 */
|
|
156
238
|
KnownDataCenterCode["DSM05"] = "DSM05";
|
|
239
|
+
/** DUB07 */
|
|
240
|
+
KnownDataCenterCode["DUB07"] = "DUB07";
|
|
241
|
+
/** PNQ01 */
|
|
242
|
+
KnownDataCenterCode["PNQ01"] = "PNQ01";
|
|
243
|
+
/** SVG20 */
|
|
244
|
+
KnownDataCenterCode["SVG20"] = "SVG20";
|
|
245
|
+
/** OSA02 */
|
|
246
|
+
KnownDataCenterCode["OSA02"] = "OSA02";
|
|
247
|
+
/** OSA22 */
|
|
248
|
+
KnownDataCenterCode["OSA22"] = "OSA22";
|
|
249
|
+
/** PAR22 */
|
|
250
|
+
KnownDataCenterCode["PAR22"] = "PAR22";
|
|
251
|
+
/** BN7 */
|
|
252
|
+
KnownDataCenterCode["BN7"] = "BN7";
|
|
253
|
+
/** SN6 */
|
|
254
|
+
KnownDataCenterCode["SN6"] = "SN6";
|
|
255
|
+
/** BJS20 */
|
|
256
|
+
KnownDataCenterCode["BJS20"] = "BJS20";
|
|
157
257
|
})(exports.KnownDataCenterCode || (exports.KnownDataCenterCode = {}));
|
|
158
258
|
/** Known values of {@link CopyStatus} that the service accepts. */
|
|
159
259
|
exports.KnownCopyStatus = void 0;
|
|
@@ -192,7 +292,7 @@ exports.KnownCopyStatus = void 0;
|
|
|
192
292
|
KnownCopyStatus["DriveNotDetected"] = "DriveNotDetected";
|
|
193
293
|
/** Copy failed due to corrupted drive. */
|
|
194
294
|
KnownCopyStatus["DriveCorrupted"] = "DriveCorrupted";
|
|
195
|
-
/** Copy failed due to modified
|
|
295
|
+
/** Copy failed due to modified or removed metadata files. */
|
|
196
296
|
KnownCopyStatus["MetadataFilesModifiedOrRemoved"] = "MetadataFilesModifiedOrRemoved";
|
|
197
297
|
})(exports.KnownCopyStatus || (exports.KnownCopyStatus = {}));
|
|
198
298
|
|
|
@@ -413,20 +513,21 @@ const CloudError = {
|
|
|
413
513
|
name: "Composite",
|
|
414
514
|
className: "CloudError",
|
|
415
515
|
modelProperties: {
|
|
416
|
-
|
|
417
|
-
serializedName: "
|
|
418
|
-
|
|
419
|
-
name: "String"
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
message: {
|
|
423
|
-
serializedName: "message",
|
|
516
|
+
additionalInfo: {
|
|
517
|
+
serializedName: "additionalInfo",
|
|
518
|
+
readOnly: true,
|
|
424
519
|
type: {
|
|
425
|
-
name: "
|
|
520
|
+
name: "Sequence",
|
|
521
|
+
element: {
|
|
522
|
+
type: {
|
|
523
|
+
name: "Composite",
|
|
524
|
+
className: "AdditionalErrorInfo"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
426
527
|
}
|
|
427
528
|
},
|
|
428
|
-
|
|
429
|
-
serializedName: "
|
|
529
|
+
code: {
|
|
530
|
+
serializedName: "code",
|
|
430
531
|
type: {
|
|
431
532
|
name: "String"
|
|
432
533
|
}
|
|
@@ -444,17 +545,16 @@ const CloudError = {
|
|
|
444
545
|
}
|
|
445
546
|
}
|
|
446
547
|
},
|
|
447
|
-
|
|
448
|
-
serializedName: "
|
|
449
|
-
readOnly: true,
|
|
548
|
+
message: {
|
|
549
|
+
serializedName: "message",
|
|
450
550
|
type: {
|
|
451
|
-
name: "
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
551
|
+
name: "String"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
target: {
|
|
555
|
+
serializedName: "target",
|
|
556
|
+
type: {
|
|
557
|
+
name: "String"
|
|
458
558
|
}
|
|
459
559
|
}
|
|
460
560
|
}
|
|
@@ -465,18 +565,18 @@ const AdditionalErrorInfo = {
|
|
|
465
565
|
name: "Composite",
|
|
466
566
|
className: "AdditionalErrorInfo",
|
|
467
567
|
modelProperties: {
|
|
468
|
-
type: {
|
|
469
|
-
serializedName: "type",
|
|
470
|
-
type: {
|
|
471
|
-
name: "String"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
568
|
info: {
|
|
475
569
|
serializedName: "info",
|
|
476
570
|
type: {
|
|
477
571
|
name: "Dictionary",
|
|
478
572
|
value: { type: { name: "any" } }
|
|
479
573
|
}
|
|
574
|
+
},
|
|
575
|
+
type: {
|
|
576
|
+
serializedName: "type",
|
|
577
|
+
type: {
|
|
578
|
+
name: "String"
|
|
579
|
+
}
|
|
480
580
|
}
|
|
481
581
|
}
|
|
482
582
|
}
|
|
@@ -576,6 +676,13 @@ const JobDetails = {
|
|
|
576
676
|
className: "Preferences"
|
|
577
677
|
}
|
|
578
678
|
},
|
|
679
|
+
reverseShippingDetails: {
|
|
680
|
+
serializedName: "reverseShippingDetails",
|
|
681
|
+
type: {
|
|
682
|
+
name: "Composite",
|
|
683
|
+
className: "ReverseShippingDetails"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
579
686
|
copyLogDetails: {
|
|
580
687
|
serializedName: "copyLogDetails",
|
|
581
688
|
readOnly: true,
|
|
@@ -603,6 +710,13 @@ const JobDetails = {
|
|
|
603
710
|
name: "String"
|
|
604
711
|
}
|
|
605
712
|
},
|
|
713
|
+
deviceErasureDetails: {
|
|
714
|
+
serializedName: "deviceErasureDetails",
|
|
715
|
+
type: {
|
|
716
|
+
name: "Composite",
|
|
717
|
+
className: "DeviceErasureDetails"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
606
720
|
keyEncryptionKey: {
|
|
607
721
|
serializedName: "keyEncryptionKey",
|
|
608
722
|
type: {
|
|
@@ -624,7 +738,13 @@ const JobDetails = {
|
|
|
624
738
|
element: {
|
|
625
739
|
type: {
|
|
626
740
|
name: "Enum",
|
|
627
|
-
allowedValues: [
|
|
741
|
+
allowedValues: [
|
|
742
|
+
"None",
|
|
743
|
+
"MoveToCleanUpDevice",
|
|
744
|
+
"Resume",
|
|
745
|
+
"Restart",
|
|
746
|
+
"ReachOutToOperation"
|
|
747
|
+
]
|
|
628
748
|
}
|
|
629
749
|
}
|
|
630
750
|
}
|
|
@@ -689,7 +809,8 @@ const JobStages = {
|
|
|
689
809
|
"SucceededWithWarnings",
|
|
690
810
|
"WaitingForCustomerActionForKek",
|
|
691
811
|
"WaitingForCustomerActionForCleanUp",
|
|
692
|
-
"CustomerActionPerformedForCleanUp"
|
|
812
|
+
"CustomerActionPerformedForCleanUp",
|
|
813
|
+
"CustomerActionPerformed"
|
|
693
814
|
]
|
|
694
815
|
}
|
|
695
816
|
},
|
|
@@ -860,6 +981,18 @@ const ShippingAddress = {
|
|
|
860
981
|
name: "Enum",
|
|
861
982
|
allowedValues: ["None", "Residential", "Commercial"]
|
|
862
983
|
}
|
|
984
|
+
},
|
|
985
|
+
skipAddressValidation: {
|
|
986
|
+
serializedName: "skipAddressValidation",
|
|
987
|
+
type: {
|
|
988
|
+
name: "Boolean"
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
taxIdentificationNumber: {
|
|
992
|
+
serializedName: "taxIdentificationNumber",
|
|
993
|
+
type: {
|
|
994
|
+
name: "String"
|
|
995
|
+
}
|
|
863
996
|
}
|
|
864
997
|
}
|
|
865
998
|
}
|
|
@@ -1229,12 +1362,32 @@ const Preferences = {
|
|
|
1229
1362
|
className: "TransportPreferences"
|
|
1230
1363
|
}
|
|
1231
1364
|
},
|
|
1365
|
+
reverseTransportPreferences: {
|
|
1366
|
+
serializedName: "reverseTransportPreferences",
|
|
1367
|
+
type: {
|
|
1368
|
+
name: "Composite",
|
|
1369
|
+
className: "TransportPreferences"
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1232
1372
|
encryptionPreferences: {
|
|
1233
1373
|
serializedName: "encryptionPreferences",
|
|
1234
1374
|
type: {
|
|
1235
1375
|
name: "Composite",
|
|
1236
1376
|
className: "EncryptionPreferences"
|
|
1237
1377
|
}
|
|
1378
|
+
},
|
|
1379
|
+
storageAccountAccessTierPreferences: {
|
|
1380
|
+
serializedName: "storageAccountAccessTierPreferences",
|
|
1381
|
+
type: {
|
|
1382
|
+
name: "Sequence",
|
|
1383
|
+
element: {
|
|
1384
|
+
defaultValue: "Archive",
|
|
1385
|
+
isConstant: true,
|
|
1386
|
+
type: {
|
|
1387
|
+
name: "String"
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1238
1391
|
}
|
|
1239
1392
|
}
|
|
1240
1393
|
}
|
|
@@ -1251,6 +1404,13 @@ const TransportPreferences = {
|
|
|
1251
1404
|
name: "Enum",
|
|
1252
1405
|
allowedValues: ["CustomerManaged", "MicrosoftManaged"]
|
|
1253
1406
|
}
|
|
1407
|
+
},
|
|
1408
|
+
isUpdated: {
|
|
1409
|
+
serializedName: "isUpdated",
|
|
1410
|
+
readOnly: true,
|
|
1411
|
+
type: {
|
|
1412
|
+
name: "Boolean"
|
|
1413
|
+
}
|
|
1254
1414
|
}
|
|
1255
1415
|
}
|
|
1256
1416
|
}
|
|
@@ -1267,6 +1427,82 @@ const EncryptionPreferences = {
|
|
|
1267
1427
|
name: "Enum",
|
|
1268
1428
|
allowedValues: ["Enabled", "Disabled"]
|
|
1269
1429
|
}
|
|
1430
|
+
},
|
|
1431
|
+
hardwareEncryption: {
|
|
1432
|
+
serializedName: "hardwareEncryption",
|
|
1433
|
+
type: {
|
|
1434
|
+
name: "Enum",
|
|
1435
|
+
allowedValues: ["Enabled", "Disabled"]
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1441
|
+
const ReverseShippingDetails = {
|
|
1442
|
+
type: {
|
|
1443
|
+
name: "Composite",
|
|
1444
|
+
className: "ReverseShippingDetails",
|
|
1445
|
+
modelProperties: {
|
|
1446
|
+
contactDetails: {
|
|
1447
|
+
serializedName: "contactDetails",
|
|
1448
|
+
type: {
|
|
1449
|
+
name: "Composite",
|
|
1450
|
+
className: "ContactInfo"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
shippingAddress: {
|
|
1454
|
+
serializedName: "shippingAddress",
|
|
1455
|
+
type: {
|
|
1456
|
+
name: "Composite",
|
|
1457
|
+
className: "ShippingAddress"
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
isUpdated: {
|
|
1461
|
+
serializedName: "isUpdated",
|
|
1462
|
+
readOnly: true,
|
|
1463
|
+
type: {
|
|
1464
|
+
name: "Boolean"
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
const ContactInfo = {
|
|
1471
|
+
type: {
|
|
1472
|
+
name: "Composite",
|
|
1473
|
+
className: "ContactInfo",
|
|
1474
|
+
modelProperties: {
|
|
1475
|
+
contactName: {
|
|
1476
|
+
constraints: {
|
|
1477
|
+
MinLength: 1
|
|
1478
|
+
},
|
|
1479
|
+
serializedName: "contactName",
|
|
1480
|
+
required: true,
|
|
1481
|
+
type: {
|
|
1482
|
+
name: "String"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
phone: {
|
|
1486
|
+
constraints: {
|
|
1487
|
+
MinLength: 1
|
|
1488
|
+
},
|
|
1489
|
+
serializedName: "phone",
|
|
1490
|
+
required: true,
|
|
1491
|
+
type: {
|
|
1492
|
+
name: "String"
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
phoneExtension: {
|
|
1496
|
+
serializedName: "phoneExtension",
|
|
1497
|
+
type: {
|
|
1498
|
+
name: "String"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
mobile: {
|
|
1502
|
+
serializedName: "mobile",
|
|
1503
|
+
type: {
|
|
1504
|
+
name: "String"
|
|
1505
|
+
}
|
|
1270
1506
|
}
|
|
1271
1507
|
}
|
|
1272
1508
|
}
|
|
@@ -1297,6 +1533,43 @@ const CopyLogDetails = {
|
|
|
1297
1533
|
}
|
|
1298
1534
|
}
|
|
1299
1535
|
};
|
|
1536
|
+
const DeviceErasureDetails = {
|
|
1537
|
+
type: {
|
|
1538
|
+
name: "Composite",
|
|
1539
|
+
className: "DeviceErasureDetails",
|
|
1540
|
+
modelProperties: {
|
|
1541
|
+
deviceErasureStatus: {
|
|
1542
|
+
serializedName: "deviceErasureStatus",
|
|
1543
|
+
readOnly: true,
|
|
1544
|
+
type: {
|
|
1545
|
+
name: "Enum",
|
|
1546
|
+
allowedValues: [
|
|
1547
|
+
"None",
|
|
1548
|
+
"InProgress",
|
|
1549
|
+
"Succeeded",
|
|
1550
|
+
"Failed",
|
|
1551
|
+
"Cancelled",
|
|
1552
|
+
"Cancelling",
|
|
1553
|
+
"SucceededWithErrors",
|
|
1554
|
+
"WaitingForCustomerAction",
|
|
1555
|
+
"SucceededWithWarnings",
|
|
1556
|
+
"WaitingForCustomerActionForKek",
|
|
1557
|
+
"WaitingForCustomerActionForCleanUp",
|
|
1558
|
+
"CustomerActionPerformedForCleanUp",
|
|
1559
|
+
"CustomerActionPerformed"
|
|
1560
|
+
]
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
erasureOrDestructionCertificateSasKey: {
|
|
1564
|
+
serializedName: "erasureOrDestructionCertificateSasKey",
|
|
1565
|
+
readOnly: true,
|
|
1566
|
+
type: {
|
|
1567
|
+
name: "String"
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1300
1573
|
const KeyEncryptionKey = {
|
|
1301
1574
|
type: {
|
|
1302
1575
|
name: "Composite",
|
|
@@ -1389,7 +1662,13 @@ const LastMitigationActionOnJob = {
|
|
|
1389
1662
|
serializedName: "customerResolution",
|
|
1390
1663
|
type: {
|
|
1391
1664
|
name: "Enum",
|
|
1392
|
-
allowedValues: [
|
|
1665
|
+
allowedValues: [
|
|
1666
|
+
"None",
|
|
1667
|
+
"MoveToCleanUpDevice",
|
|
1668
|
+
"Resume",
|
|
1669
|
+
"Restart",
|
|
1670
|
+
"ReachOutToOperation"
|
|
1671
|
+
]
|
|
1393
1672
|
}
|
|
1394
1673
|
}
|
|
1395
1674
|
}
|
|
@@ -1638,10 +1917,33 @@ const MitigateJobRequest = {
|
|
|
1638
1917
|
modelProperties: {
|
|
1639
1918
|
customerResolutionCode: {
|
|
1640
1919
|
serializedName: "customerResolutionCode",
|
|
1641
|
-
required: true,
|
|
1642
1920
|
type: {
|
|
1643
1921
|
name: "Enum",
|
|
1644
|
-
allowedValues: [
|
|
1922
|
+
allowedValues: [
|
|
1923
|
+
"None",
|
|
1924
|
+
"MoveToCleanUpDevice",
|
|
1925
|
+
"Resume",
|
|
1926
|
+
"Restart",
|
|
1927
|
+
"ReachOutToOperation"
|
|
1928
|
+
]
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
serialNumberCustomerResolutionMap: {
|
|
1932
|
+
serializedName: "serialNumberCustomerResolutionMap",
|
|
1933
|
+
type: {
|
|
1934
|
+
name: "Dictionary",
|
|
1935
|
+
value: {
|
|
1936
|
+
type: {
|
|
1937
|
+
name: "Enum",
|
|
1938
|
+
allowedValues: [
|
|
1939
|
+
"None",
|
|
1940
|
+
"MoveToCleanUpDevice",
|
|
1941
|
+
"Resume",
|
|
1942
|
+
"Restart",
|
|
1943
|
+
"ReachOutToOperation"
|
|
1944
|
+
]
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1645
1947
|
}
|
|
1646
1948
|
}
|
|
1647
1949
|
}
|
|
@@ -1848,6 +2150,18 @@ const SkuInformation = {
|
|
|
1848
2150
|
type: {
|
|
1849
2151
|
name: "String"
|
|
1850
2152
|
}
|
|
2153
|
+
},
|
|
2154
|
+
countriesWithinCommerceBoundary: {
|
|
2155
|
+
serializedName: "properties.countriesWithinCommerceBoundary",
|
|
2156
|
+
readOnly: true,
|
|
2157
|
+
type: {
|
|
2158
|
+
name: "Sequence",
|
|
2159
|
+
element: {
|
|
2160
|
+
type: {
|
|
2161
|
+
name: "String"
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
1851
2165
|
}
|
|
1852
2166
|
}
|
|
1853
2167
|
}
|
|
@@ -2153,6 +2467,20 @@ const UpdateJobDetails = {
|
|
|
2153
2467
|
className: "ShippingAddress"
|
|
2154
2468
|
}
|
|
2155
2469
|
},
|
|
2470
|
+
reverseShippingDetails: {
|
|
2471
|
+
serializedName: "reverseShippingDetails",
|
|
2472
|
+
type: {
|
|
2473
|
+
name: "Composite",
|
|
2474
|
+
className: "ReverseShippingDetails"
|
|
2475
|
+
}
|
|
2476
|
+
},
|
|
2477
|
+
preferences: {
|
|
2478
|
+
serializedName: "preferences",
|
|
2479
|
+
type: {
|
|
2480
|
+
name: "Composite",
|
|
2481
|
+
className: "Preferences"
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2156
2484
|
keyEncryptionKey: {
|
|
2157
2485
|
serializedName: "keyEncryptionKey",
|
|
2158
2486
|
type: {
|
|
@@ -2668,65 +2996,232 @@ const ShareCredentialDetails = {
|
|
|
2668
2996
|
}
|
|
2669
2997
|
}
|
|
2670
2998
|
}
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
}
|
|
2674
|
-
};
|
|
2675
|
-
const ApplianceNetworkConfiguration = {
|
|
2676
|
-
type: {
|
|
2677
|
-
name: "Composite",
|
|
2678
|
-
className: "ApplianceNetworkConfiguration",
|
|
2679
|
-
modelProperties: {
|
|
2680
|
-
name: {
|
|
2681
|
-
serializedName: "name",
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
const ApplianceNetworkConfiguration = {
|
|
3004
|
+
type: {
|
|
3005
|
+
name: "Composite",
|
|
3006
|
+
className: "ApplianceNetworkConfiguration",
|
|
3007
|
+
modelProperties: {
|
|
3008
|
+
name: {
|
|
3009
|
+
serializedName: "name",
|
|
3010
|
+
readOnly: true,
|
|
3011
|
+
type: {
|
|
3012
|
+
name: "String"
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
macAddress: {
|
|
3016
|
+
serializedName: "macAddress",
|
|
3017
|
+
readOnly: true,
|
|
3018
|
+
type: {
|
|
3019
|
+
name: "String"
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
};
|
|
3025
|
+
const ArmBaseObject = {
|
|
3026
|
+
type: {
|
|
3027
|
+
name: "Composite",
|
|
3028
|
+
className: "ArmBaseObject",
|
|
3029
|
+
modelProperties: {
|
|
3030
|
+
name: {
|
|
3031
|
+
serializedName: "name",
|
|
3032
|
+
readOnly: true,
|
|
3033
|
+
type: {
|
|
3034
|
+
name: "String"
|
|
3035
|
+
}
|
|
3036
|
+
},
|
|
3037
|
+
id: {
|
|
3038
|
+
serializedName: "id",
|
|
3039
|
+
readOnly: true,
|
|
3040
|
+
type: {
|
|
3041
|
+
name: "String"
|
|
3042
|
+
}
|
|
3043
|
+
},
|
|
3044
|
+
type: {
|
|
3045
|
+
serializedName: "type",
|
|
3046
|
+
readOnly: true,
|
|
3047
|
+
type: {
|
|
3048
|
+
name: "String"
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
};
|
|
3054
|
+
const GranularCopyLogDetails = {
|
|
3055
|
+
type: {
|
|
3056
|
+
name: "Composite",
|
|
3057
|
+
className: "GranularCopyLogDetails",
|
|
3058
|
+
uberParent: "GranularCopyLogDetails",
|
|
3059
|
+
polymorphicDiscriminator: {
|
|
3060
|
+
serializedName: "copyLogDetailsType",
|
|
3061
|
+
clientName: "copyLogDetailsType"
|
|
3062
|
+
},
|
|
3063
|
+
modelProperties: {
|
|
3064
|
+
copyLogDetailsType: {
|
|
3065
|
+
serializedName: "copyLogDetailsType",
|
|
3066
|
+
required: true,
|
|
3067
|
+
type: {
|
|
3068
|
+
name: "Enum",
|
|
3069
|
+
allowedValues: [
|
|
3070
|
+
"DataBox",
|
|
3071
|
+
"DataBoxDisk",
|
|
3072
|
+
"DataBoxHeavy",
|
|
3073
|
+
"DataBoxCustomerDisk"
|
|
3074
|
+
]
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
};
|
|
3080
|
+
const CopyProgress = {
|
|
3081
|
+
type: {
|
|
3082
|
+
name: "Composite",
|
|
3083
|
+
className: "CopyProgress",
|
|
3084
|
+
modelProperties: {
|
|
3085
|
+
storageAccountName: {
|
|
3086
|
+
serializedName: "storageAccountName",
|
|
3087
|
+
readOnly: true,
|
|
3088
|
+
type: {
|
|
3089
|
+
name: "String"
|
|
3090
|
+
}
|
|
3091
|
+
},
|
|
3092
|
+
transferType: {
|
|
3093
|
+
serializedName: "transferType",
|
|
3094
|
+
readOnly: true,
|
|
3095
|
+
type: {
|
|
3096
|
+
name: "Enum",
|
|
3097
|
+
allowedValues: ["ImportToAzure", "ExportFromAzure"]
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3100
|
+
dataAccountType: {
|
|
3101
|
+
serializedName: "dataAccountType",
|
|
3102
|
+
readOnly: true,
|
|
3103
|
+
type: {
|
|
3104
|
+
name: "Enum",
|
|
3105
|
+
allowedValues: ["StorageAccount", "ManagedDisk"]
|
|
3106
|
+
}
|
|
3107
|
+
},
|
|
3108
|
+
accountId: {
|
|
3109
|
+
serializedName: "accountId",
|
|
3110
|
+
readOnly: true,
|
|
3111
|
+
type: {
|
|
3112
|
+
name: "String"
|
|
3113
|
+
}
|
|
3114
|
+
},
|
|
3115
|
+
bytesProcessed: {
|
|
3116
|
+
serializedName: "bytesProcessed",
|
|
3117
|
+
readOnly: true,
|
|
3118
|
+
type: {
|
|
3119
|
+
name: "Number"
|
|
3120
|
+
}
|
|
3121
|
+
},
|
|
3122
|
+
totalBytesToProcess: {
|
|
3123
|
+
serializedName: "totalBytesToProcess",
|
|
3124
|
+
readOnly: true,
|
|
3125
|
+
type: {
|
|
3126
|
+
name: "Number"
|
|
3127
|
+
}
|
|
3128
|
+
},
|
|
3129
|
+
filesProcessed: {
|
|
3130
|
+
serializedName: "filesProcessed",
|
|
3131
|
+
readOnly: true,
|
|
3132
|
+
type: {
|
|
3133
|
+
name: "Number"
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
totalFilesToProcess: {
|
|
3137
|
+
serializedName: "totalFilesToProcess",
|
|
3138
|
+
readOnly: true,
|
|
3139
|
+
type: {
|
|
3140
|
+
name: "Number"
|
|
3141
|
+
}
|
|
3142
|
+
},
|
|
3143
|
+
invalidFilesProcessed: {
|
|
3144
|
+
serializedName: "invalidFilesProcessed",
|
|
3145
|
+
readOnly: true,
|
|
3146
|
+
type: {
|
|
3147
|
+
name: "Number"
|
|
3148
|
+
}
|
|
3149
|
+
},
|
|
3150
|
+
invalidFileBytesUploaded: {
|
|
3151
|
+
serializedName: "invalidFileBytesUploaded",
|
|
3152
|
+
readOnly: true,
|
|
3153
|
+
type: {
|
|
3154
|
+
name: "Number"
|
|
3155
|
+
}
|
|
3156
|
+
},
|
|
3157
|
+
renamedContainerCount: {
|
|
3158
|
+
serializedName: "renamedContainerCount",
|
|
3159
|
+
readOnly: true,
|
|
3160
|
+
type: {
|
|
3161
|
+
name: "Number"
|
|
3162
|
+
}
|
|
3163
|
+
},
|
|
3164
|
+
filesErroredOut: {
|
|
3165
|
+
serializedName: "filesErroredOut",
|
|
2682
3166
|
readOnly: true,
|
|
2683
3167
|
type: {
|
|
2684
|
-
name: "
|
|
3168
|
+
name: "Number"
|
|
2685
3169
|
}
|
|
2686
3170
|
},
|
|
2687
|
-
|
|
2688
|
-
serializedName: "
|
|
3171
|
+
directoriesErroredOut: {
|
|
3172
|
+
serializedName: "directoriesErroredOut",
|
|
2689
3173
|
readOnly: true,
|
|
2690
3174
|
type: {
|
|
2691
|
-
name: "
|
|
3175
|
+
name: "Number"
|
|
2692
3176
|
}
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
};
|
|
2697
|
-
const ArmBaseObject = {
|
|
2698
|
-
type: {
|
|
2699
|
-
name: "Composite",
|
|
2700
|
-
className: "ArmBaseObject",
|
|
2701
|
-
modelProperties: {
|
|
2702
|
-
name: {
|
|
2703
|
-
serializedName: "name",
|
|
3177
|
+
},
|
|
3178
|
+
invalidDirectoriesProcessed: {
|
|
3179
|
+
serializedName: "invalidDirectoriesProcessed",
|
|
2704
3180
|
readOnly: true,
|
|
2705
3181
|
type: {
|
|
2706
|
-
name: "
|
|
3182
|
+
name: "Number"
|
|
2707
3183
|
}
|
|
2708
3184
|
},
|
|
2709
|
-
|
|
2710
|
-
serializedName: "
|
|
3185
|
+
isEnumerationInProgress: {
|
|
3186
|
+
serializedName: "isEnumerationInProgress",
|
|
2711
3187
|
readOnly: true,
|
|
2712
3188
|
type: {
|
|
2713
|
-
name: "
|
|
3189
|
+
name: "Boolean"
|
|
2714
3190
|
}
|
|
2715
3191
|
},
|
|
2716
|
-
|
|
2717
|
-
serializedName: "
|
|
3192
|
+
error: {
|
|
3193
|
+
serializedName: "error",
|
|
3194
|
+
type: {
|
|
3195
|
+
name: "Composite",
|
|
3196
|
+
className: "CloudError"
|
|
3197
|
+
}
|
|
3198
|
+
},
|
|
3199
|
+
actions: {
|
|
3200
|
+
serializedName: "actions",
|
|
2718
3201
|
readOnly: true,
|
|
2719
3202
|
type: {
|
|
2720
|
-
name: "
|
|
3203
|
+
name: "Sequence",
|
|
3204
|
+
element: {
|
|
3205
|
+
type: {
|
|
3206
|
+
name: "Enum",
|
|
3207
|
+
allowedValues: [
|
|
3208
|
+
"None",
|
|
3209
|
+
"MoveToCleanUpDevice",
|
|
3210
|
+
"Resume",
|
|
3211
|
+
"Restart",
|
|
3212
|
+
"ReachOutToOperation"
|
|
3213
|
+
]
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
2721
3216
|
}
|
|
2722
3217
|
}
|
|
2723
3218
|
}
|
|
2724
3219
|
}
|
|
2725
3220
|
};
|
|
2726
|
-
const
|
|
3221
|
+
const GranularCopyProgress = {
|
|
2727
3222
|
type: {
|
|
2728
3223
|
name: "Composite",
|
|
2729
|
-
className: "
|
|
3224
|
+
className: "GranularCopyProgress",
|
|
2730
3225
|
modelProperties: {
|
|
2731
3226
|
storageAccountName: {
|
|
2732
3227
|
serializedName: "storageAccountName",
|
|
@@ -2834,6 +3329,32 @@ const CopyProgress = {
|
|
|
2834
3329
|
type: {
|
|
2835
3330
|
name: "Boolean"
|
|
2836
3331
|
}
|
|
3332
|
+
},
|
|
3333
|
+
error: {
|
|
3334
|
+
serializedName: "error",
|
|
3335
|
+
type: {
|
|
3336
|
+
name: "Composite",
|
|
3337
|
+
className: "CloudError"
|
|
3338
|
+
}
|
|
3339
|
+
},
|
|
3340
|
+
actions: {
|
|
3341
|
+
serializedName: "actions",
|
|
3342
|
+
readOnly: true,
|
|
3343
|
+
type: {
|
|
3344
|
+
name: "Sequence",
|
|
3345
|
+
element: {
|
|
3346
|
+
type: {
|
|
3347
|
+
name: "Enum",
|
|
3348
|
+
allowedValues: [
|
|
3349
|
+
"None",
|
|
3350
|
+
"MoveToCleanUpDevice",
|
|
3351
|
+
"Resume",
|
|
3352
|
+
"Restart",
|
|
3353
|
+
"ReachOutToOperation"
|
|
3354
|
+
]
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
2837
3358
|
}
|
|
2838
3359
|
}
|
|
2839
3360
|
}
|
|
@@ -2957,6 +3478,32 @@ const DataBoxDiskCopyProgress = {
|
|
|
2957
3478
|
type: {
|
|
2958
3479
|
name: "String"
|
|
2959
3480
|
}
|
|
3481
|
+
},
|
|
3482
|
+
error: {
|
|
3483
|
+
serializedName: "error",
|
|
3484
|
+
type: {
|
|
3485
|
+
name: "Composite",
|
|
3486
|
+
className: "CloudError"
|
|
3487
|
+
}
|
|
3488
|
+
},
|
|
3489
|
+
actions: {
|
|
3490
|
+
serializedName: "actions",
|
|
3491
|
+
readOnly: true,
|
|
3492
|
+
type: {
|
|
3493
|
+
name: "Sequence",
|
|
3494
|
+
element: {
|
|
3495
|
+
type: {
|
|
3496
|
+
name: "Enum",
|
|
3497
|
+
allowedValues: [
|
|
3498
|
+
"None",
|
|
3499
|
+
"MoveToCleanUpDevice",
|
|
3500
|
+
"Resume",
|
|
3501
|
+
"Restart",
|
|
3502
|
+
"ReachOutToOperation"
|
|
3503
|
+
]
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
2960
3507
|
}
|
|
2961
3508
|
}
|
|
2962
3509
|
}
|
|
@@ -3149,6 +3696,30 @@ const DataBoxDiskJobDetails = {
|
|
|
3149
3696
|
}
|
|
3150
3697
|
}
|
|
3151
3698
|
}
|
|
3699
|
+
}, granularCopyProgress: {
|
|
3700
|
+
serializedName: "granularCopyProgress",
|
|
3701
|
+
readOnly: true,
|
|
3702
|
+
type: {
|
|
3703
|
+
name: "Sequence",
|
|
3704
|
+
element: {
|
|
3705
|
+
type: {
|
|
3706
|
+
name: "Composite",
|
|
3707
|
+
className: "DataBoxDiskGranularCopyProgress"
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
}, granularCopyLogDetails: {
|
|
3712
|
+
serializedName: "granularCopyLogDetails",
|
|
3713
|
+
readOnly: true,
|
|
3714
|
+
type: {
|
|
3715
|
+
name: "Sequence",
|
|
3716
|
+
element: {
|
|
3717
|
+
type: {
|
|
3718
|
+
name: "Composite",
|
|
3719
|
+
className: "DataBoxDiskGranularCopyLogDetails"
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3152
3723
|
}, disksAndSizeDetails: {
|
|
3153
3724
|
serializedName: "disksAndSizeDetails",
|
|
3154
3725
|
readOnly: true,
|
|
@@ -3535,6 +4106,20 @@ const JobResource = {
|
|
|
3535
4106
|
type: {
|
|
3536
4107
|
name: "Boolean"
|
|
3537
4108
|
}
|
|
4109
|
+
}, reverseShippingDetailsUpdate: {
|
|
4110
|
+
serializedName: "properties.reverseShippingDetailsUpdate",
|
|
4111
|
+
readOnly: true,
|
|
4112
|
+
type: {
|
|
4113
|
+
name: "Enum",
|
|
4114
|
+
allowedValues: ["Enabled", "Disabled", "NotSupported"]
|
|
4115
|
+
}
|
|
4116
|
+
}, reverseTransportPreferenceUpdate: {
|
|
4117
|
+
serializedName: "properties.reverseTransportPreferenceUpdate",
|
|
4118
|
+
readOnly: true,
|
|
4119
|
+
type: {
|
|
4120
|
+
name: "Enum",
|
|
4121
|
+
allowedValues: ["Enabled", "Disabled", "NotSupported"]
|
|
4122
|
+
}
|
|
3538
4123
|
}, isPrepareToShipEnabled: {
|
|
3539
4124
|
serializedName: "properties.isPrepareToShipEnabled",
|
|
3540
4125
|
readOnly: true,
|
|
@@ -4044,6 +4629,40 @@ const HeavyScheduleAvailabilityRequest = {
|
|
|
4044
4629
|
modelProperties: Object.assign({}, ScheduleAvailabilityRequest.type.modelProperties)
|
|
4045
4630
|
}
|
|
4046
4631
|
};
|
|
4632
|
+
const DataBoxDiskGranularCopyLogDetails = {
|
|
4633
|
+
serializedName: "DataBoxCustomerDisk",
|
|
4634
|
+
type: {
|
|
4635
|
+
name: "Composite",
|
|
4636
|
+
className: "DataBoxDiskGranularCopyLogDetails",
|
|
4637
|
+
uberParent: "GranularCopyLogDetails",
|
|
4638
|
+
polymorphicDiscriminator: GranularCopyLogDetails.type.polymorphicDiscriminator,
|
|
4639
|
+
modelProperties: Object.assign(Object.assign({}, GranularCopyLogDetails.type.modelProperties), { serialNumber: {
|
|
4640
|
+
serializedName: "serialNumber",
|
|
4641
|
+
readOnly: true,
|
|
4642
|
+
type: {
|
|
4643
|
+
name: "String"
|
|
4644
|
+
}
|
|
4645
|
+
}, accountId: {
|
|
4646
|
+
serializedName: "accountId",
|
|
4647
|
+
readOnly: true,
|
|
4648
|
+
type: {
|
|
4649
|
+
name: "String"
|
|
4650
|
+
}
|
|
4651
|
+
}, errorLogLink: {
|
|
4652
|
+
serializedName: "errorLogLink",
|
|
4653
|
+
readOnly: true,
|
|
4654
|
+
type: {
|
|
4655
|
+
name: "String"
|
|
4656
|
+
}
|
|
4657
|
+
}, verboseLogLink: {
|
|
4658
|
+
serializedName: "verboseLogLink",
|
|
4659
|
+
readOnly: true,
|
|
4660
|
+
type: {
|
|
4661
|
+
name: "String"
|
|
4662
|
+
}
|
|
4663
|
+
} })
|
|
4664
|
+
}
|
|
4665
|
+
};
|
|
4047
4666
|
const DataBoxCustomerDiskCopyProgress = {
|
|
4048
4667
|
type: {
|
|
4049
4668
|
name: "Composite",
|
|
@@ -4063,6 +4682,53 @@ const DataBoxCustomerDiskCopyProgress = {
|
|
|
4063
4682
|
} })
|
|
4064
4683
|
}
|
|
4065
4684
|
};
|
|
4685
|
+
const DataBoxDiskGranularCopyProgress = {
|
|
4686
|
+
type: {
|
|
4687
|
+
name: "Composite",
|
|
4688
|
+
className: "DataBoxDiskGranularCopyProgress",
|
|
4689
|
+
modelProperties: Object.assign(Object.assign({}, GranularCopyProgress.type.modelProperties), { serialNumber: {
|
|
4690
|
+
serializedName: "serialNumber",
|
|
4691
|
+
readOnly: true,
|
|
4692
|
+
type: {
|
|
4693
|
+
name: "String"
|
|
4694
|
+
}
|
|
4695
|
+
}, copyStatus: {
|
|
4696
|
+
serializedName: "copyStatus",
|
|
4697
|
+
readOnly: true,
|
|
4698
|
+
type: {
|
|
4699
|
+
name: "String"
|
|
4700
|
+
}
|
|
4701
|
+
} })
|
|
4702
|
+
}
|
|
4703
|
+
};
|
|
4704
|
+
const JobsDeleteHeaders = {
|
|
4705
|
+
type: {
|
|
4706
|
+
name: "Composite",
|
|
4707
|
+
className: "JobsDeleteHeaders",
|
|
4708
|
+
modelProperties: {
|
|
4709
|
+
location: {
|
|
4710
|
+
serializedName: "location",
|
|
4711
|
+
type: {
|
|
4712
|
+
name: "String"
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4717
|
+
};
|
|
4718
|
+
const JobsUpdateHeaders = {
|
|
4719
|
+
type: {
|
|
4720
|
+
name: "Composite",
|
|
4721
|
+
className: "JobsUpdateHeaders",
|
|
4722
|
+
modelProperties: {
|
|
4723
|
+
location: {
|
|
4724
|
+
serializedName: "location",
|
|
4725
|
+
type: {
|
|
4726
|
+
name: "String"
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4066
4732
|
let discriminators = {
|
|
4067
4733
|
JobDetails: JobDetails,
|
|
4068
4734
|
DataAccountDetails: DataAccountDetails,
|
|
@@ -4073,6 +4739,7 @@ let discriminators = {
|
|
|
4073
4739
|
ValidationRequest: ValidationRequest,
|
|
4074
4740
|
JobSecrets: JobSecrets,
|
|
4075
4741
|
ScheduleAvailabilityRequest: ScheduleAvailabilityRequest,
|
|
4742
|
+
GranularCopyLogDetails: GranularCopyLogDetails,
|
|
4076
4743
|
"JobDetails.DataBoxCustomerDisk": DataBoxCustomerDiskJobDetails,
|
|
4077
4744
|
"JobDetails.DataBoxDisk": DataBoxDiskJobDetails,
|
|
4078
4745
|
"JobDetails.DataBoxHeavy": DataBoxHeavyJobDetails,
|
|
@@ -4104,7 +4771,8 @@ let discriminators = {
|
|
|
4104
4771
|
"JobSecrets.DataBox": DataboxJobSecrets,
|
|
4105
4772
|
"ScheduleAvailabilityRequest.DataBox": DataBoxScheduleAvailabilityRequest,
|
|
4106
4773
|
"ScheduleAvailabilityRequest.DataBoxDisk": DiskScheduleAvailabilityRequest,
|
|
4107
|
-
"ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest
|
|
4774
|
+
"ScheduleAvailabilityRequest.DataBoxHeavy": HeavyScheduleAvailabilityRequest,
|
|
4775
|
+
"GranularCopyLogDetails.DataBoxCustomerDisk": DataBoxDiskGranularCopyLogDetails
|
|
4108
4776
|
};
|
|
4109
4777
|
|
|
4110
4778
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
@@ -4138,7 +4806,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4138
4806
|
Preferences: Preferences,
|
|
4139
4807
|
TransportPreferences: TransportPreferences,
|
|
4140
4808
|
EncryptionPreferences: EncryptionPreferences,
|
|
4809
|
+
ReverseShippingDetails: ReverseShippingDetails,
|
|
4810
|
+
ContactInfo: ContactInfo,
|
|
4141
4811
|
CopyLogDetails: CopyLogDetails,
|
|
4812
|
+
DeviceErasureDetails: DeviceErasureDetails,
|
|
4142
4813
|
KeyEncryptionKey: KeyEncryptionKey,
|
|
4143
4814
|
IdentityProperties: IdentityProperties,
|
|
4144
4815
|
UserAssignedProperties: UserAssignedProperties,
|
|
@@ -4186,7 +4857,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4186
4857
|
ShareCredentialDetails: ShareCredentialDetails,
|
|
4187
4858
|
ApplianceNetworkConfiguration: ApplianceNetworkConfiguration,
|
|
4188
4859
|
ArmBaseObject: ArmBaseObject,
|
|
4860
|
+
GranularCopyLogDetails: GranularCopyLogDetails,
|
|
4189
4861
|
CopyProgress: CopyProgress,
|
|
4862
|
+
GranularCopyProgress: GranularCopyProgress,
|
|
4190
4863
|
ImportDiskDetails: ImportDiskDetails,
|
|
4191
4864
|
ExportDiskDetails: ExportDiskDetails,
|
|
4192
4865
|
DiskSecret: DiskSecret,
|
|
@@ -4226,7 +4899,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4226
4899
|
DataBoxScheduleAvailabilityRequest: DataBoxScheduleAvailabilityRequest,
|
|
4227
4900
|
DiskScheduleAvailabilityRequest: DiskScheduleAvailabilityRequest,
|
|
4228
4901
|
HeavyScheduleAvailabilityRequest: HeavyScheduleAvailabilityRequest,
|
|
4902
|
+
DataBoxDiskGranularCopyLogDetails: DataBoxDiskGranularCopyLogDetails,
|
|
4229
4903
|
DataBoxCustomerDiskCopyProgress: DataBoxCustomerDiskCopyProgress,
|
|
4904
|
+
DataBoxDiskGranularCopyProgress: DataBoxDiskGranularCopyProgress,
|
|
4905
|
+
JobsDeleteHeaders: JobsDeleteHeaders,
|
|
4906
|
+
JobsUpdateHeaders: JobsUpdateHeaders,
|
|
4230
4907
|
discriminators: discriminators
|
|
4231
4908
|
});
|
|
4232
4909
|
|
|
@@ -4262,7 +4939,7 @@ const $host = {
|
|
|
4262
4939
|
const apiVersion = {
|
|
4263
4940
|
parameterPath: "apiVersion",
|
|
4264
4941
|
mapper: {
|
|
4265
|
-
defaultValue: "
|
|
4942
|
+
defaultValue: "2022-12-01",
|
|
4266
4943
|
isConstant: true,
|
|
4267
4944
|
serializedName: "api-version",
|
|
4268
4945
|
type: {
|
|
@@ -4435,36 +5112,54 @@ class OperationsImpl {
|
|
|
4435
5112
|
[Symbol.asyncIterator]() {
|
|
4436
5113
|
return this;
|
|
4437
5114
|
},
|
|
4438
|
-
byPage: () => {
|
|
4439
|
-
|
|
5115
|
+
byPage: (settings) => {
|
|
5116
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5117
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5118
|
+
}
|
|
5119
|
+
return this.listPagingPage(options, settings);
|
|
4440
5120
|
}
|
|
4441
5121
|
};
|
|
4442
5122
|
}
|
|
4443
|
-
listPagingPage(options) {
|
|
5123
|
+
listPagingPage(options, settings) {
|
|
4444
5124
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4445
|
-
let result
|
|
4446
|
-
|
|
4447
|
-
|
|
5125
|
+
let result;
|
|
5126
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5127
|
+
if (!continuationToken) {
|
|
5128
|
+
result = yield tslib.__await(this._list(options));
|
|
5129
|
+
let page = result.value || [];
|
|
5130
|
+
continuationToken = result.nextLink;
|
|
5131
|
+
setContinuationToken(page, continuationToken);
|
|
5132
|
+
yield yield tslib.__await(page);
|
|
5133
|
+
}
|
|
4448
5134
|
while (continuationToken) {
|
|
4449
5135
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4450
5136
|
continuationToken = result.nextLink;
|
|
4451
|
-
|
|
5137
|
+
let page = result.value || [];
|
|
5138
|
+
setContinuationToken(page, continuationToken);
|
|
5139
|
+
yield yield tslib.__await(page);
|
|
4452
5140
|
}
|
|
4453
5141
|
});
|
|
4454
5142
|
}
|
|
4455
5143
|
listPagingAll(options) {
|
|
4456
5144
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4457
|
-
var e_1,
|
|
5145
|
+
var _a, e_1, _b, _c;
|
|
4458
5146
|
try {
|
|
4459
|
-
for (var
|
|
4460
|
-
|
|
4461
|
-
|
|
5147
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
5148
|
+
_c = _f.value;
|
|
5149
|
+
_d = false;
|
|
5150
|
+
try {
|
|
5151
|
+
const page = _c;
|
|
5152
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5153
|
+
}
|
|
5154
|
+
finally {
|
|
5155
|
+
_d = true;
|
|
5156
|
+
}
|
|
4462
5157
|
}
|
|
4463
5158
|
}
|
|
4464
5159
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4465
5160
|
finally {
|
|
4466
5161
|
try {
|
|
4467
|
-
if (
|
|
5162
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4468
5163
|
}
|
|
4469
5164
|
finally { if (e_1) throw e_1.error; }
|
|
4470
5165
|
}
|
|
@@ -4515,7 +5210,6 @@ const listNextOperationSpec$1 = {
|
|
|
4515
5210
|
bodyMapper: ApiError
|
|
4516
5211
|
}
|
|
4517
5212
|
},
|
|
4518
|
-
queryParameters: [apiVersion],
|
|
4519
5213
|
urlParameters: [$host, nextLink],
|
|
4520
5214
|
headerParameters: [accept],
|
|
4521
5215
|
serializer: serializer$3
|
|
@@ -4528,25 +5222,17 @@ const listNextOperationSpec$1 = {
|
|
|
4528
5222
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4529
5223
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4530
5224
|
*/
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
});
|
|
4543
|
-
}
|
|
4544
|
-
sendPollRequest(path) {
|
|
4545
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4546
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
4547
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
4548
|
-
});
|
|
4549
|
-
}
|
|
5225
|
+
function createLroSpec(inputs) {
|
|
5226
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
5227
|
+
return {
|
|
5228
|
+
requestMethod: spec.httpMethod,
|
|
5229
|
+
requestPath: spec.path,
|
|
5230
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
5231
|
+
sendPollRequest: (path, options) => {
|
|
5232
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
5233
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
5234
|
+
}
|
|
5235
|
+
};
|
|
4550
5236
|
}
|
|
4551
5237
|
|
|
4552
5238
|
/*
|
|
@@ -4579,36 +5265,54 @@ class JobsImpl {
|
|
|
4579
5265
|
[Symbol.asyncIterator]() {
|
|
4580
5266
|
return this;
|
|
4581
5267
|
},
|
|
4582
|
-
byPage: () => {
|
|
4583
|
-
|
|
5268
|
+
byPage: (settings) => {
|
|
5269
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5270
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5271
|
+
}
|
|
5272
|
+
return this.listPagingPage(options, settings);
|
|
4584
5273
|
}
|
|
4585
5274
|
};
|
|
4586
5275
|
}
|
|
4587
|
-
listPagingPage(options) {
|
|
5276
|
+
listPagingPage(options, settings) {
|
|
4588
5277
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4589
|
-
let result
|
|
4590
|
-
|
|
4591
|
-
|
|
5278
|
+
let result;
|
|
5279
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5280
|
+
if (!continuationToken) {
|
|
5281
|
+
result = yield tslib.__await(this._list(options));
|
|
5282
|
+
let page = result.value || [];
|
|
5283
|
+
continuationToken = result.nextLink;
|
|
5284
|
+
setContinuationToken(page, continuationToken);
|
|
5285
|
+
yield yield tslib.__await(page);
|
|
5286
|
+
}
|
|
4592
5287
|
while (continuationToken) {
|
|
4593
5288
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4594
5289
|
continuationToken = result.nextLink;
|
|
4595
|
-
|
|
5290
|
+
let page = result.value || [];
|
|
5291
|
+
setContinuationToken(page, continuationToken);
|
|
5292
|
+
yield yield tslib.__await(page);
|
|
4596
5293
|
}
|
|
4597
5294
|
});
|
|
4598
5295
|
}
|
|
4599
5296
|
listPagingAll(options) {
|
|
4600
5297
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4601
|
-
var e_1,
|
|
5298
|
+
var _a, e_1, _b, _c;
|
|
4602
5299
|
try {
|
|
4603
|
-
for (var
|
|
4604
|
-
|
|
4605
|
-
|
|
5300
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
5301
|
+
_c = _f.value;
|
|
5302
|
+
_d = false;
|
|
5303
|
+
try {
|
|
5304
|
+
const page = _c;
|
|
5305
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5306
|
+
}
|
|
5307
|
+
finally {
|
|
5308
|
+
_d = true;
|
|
5309
|
+
}
|
|
4606
5310
|
}
|
|
4607
5311
|
}
|
|
4608
5312
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4609
5313
|
finally {
|
|
4610
5314
|
try {
|
|
4611
|
-
if (
|
|
5315
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4612
5316
|
}
|
|
4613
5317
|
finally { if (e_1) throw e_1.error; }
|
|
4614
5318
|
}
|
|
@@ -4628,36 +5332,54 @@ class JobsImpl {
|
|
|
4628
5332
|
[Symbol.asyncIterator]() {
|
|
4629
5333
|
return this;
|
|
4630
5334
|
},
|
|
4631
|
-
byPage: () => {
|
|
4632
|
-
|
|
5335
|
+
byPage: (settings) => {
|
|
5336
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5337
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5338
|
+
}
|
|
5339
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4633
5340
|
}
|
|
4634
5341
|
};
|
|
4635
5342
|
}
|
|
4636
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5343
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4637
5344
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4638
|
-
let result
|
|
4639
|
-
|
|
4640
|
-
|
|
5345
|
+
let result;
|
|
5346
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5347
|
+
if (!continuationToken) {
|
|
5348
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5349
|
+
let page = result.value || [];
|
|
5350
|
+
continuationToken = result.nextLink;
|
|
5351
|
+
setContinuationToken(page, continuationToken);
|
|
5352
|
+
yield yield tslib.__await(page);
|
|
5353
|
+
}
|
|
4641
5354
|
while (continuationToken) {
|
|
4642
5355
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4643
5356
|
continuationToken = result.nextLink;
|
|
4644
|
-
|
|
5357
|
+
let page = result.value || [];
|
|
5358
|
+
setContinuationToken(page, continuationToken);
|
|
5359
|
+
yield yield tslib.__await(page);
|
|
4645
5360
|
}
|
|
4646
5361
|
});
|
|
4647
5362
|
}
|
|
4648
5363
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
4649
5364
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
4650
|
-
var e_2,
|
|
5365
|
+
var _a, e_2, _b, _c;
|
|
4651
5366
|
try {
|
|
4652
|
-
for (var
|
|
4653
|
-
|
|
4654
|
-
|
|
5367
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
5368
|
+
_c = _f.value;
|
|
5369
|
+
_d = false;
|
|
5370
|
+
try {
|
|
5371
|
+
const page = _c;
|
|
5372
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5373
|
+
}
|
|
5374
|
+
finally {
|
|
5375
|
+
_d = true;
|
|
5376
|
+
}
|
|
4655
5377
|
}
|
|
4656
5378
|
}
|
|
4657
5379
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
4658
5380
|
finally {
|
|
4659
5381
|
try {
|
|
4660
|
-
if (
|
|
5382
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4661
5383
|
}
|
|
4662
5384
|
finally { if (e_2) throw e_2.error; }
|
|
4663
5385
|
}
|
|
@@ -4679,30 +5401,41 @@ class JobsImpl {
|
|
|
4679
5401
|
[Symbol.asyncIterator]() {
|
|
4680
5402
|
return this;
|
|
4681
5403
|
},
|
|
4682
|
-
byPage: () => {
|
|
4683
|
-
|
|
5404
|
+
byPage: (settings) => {
|
|
5405
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5406
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5407
|
+
}
|
|
5408
|
+
return this.listCredentialsPagingPage(resourceGroupName, jobName, options, settings);
|
|
4684
5409
|
}
|
|
4685
5410
|
};
|
|
4686
5411
|
}
|
|
4687
|
-
listCredentialsPagingPage(resourceGroupName, jobName, options) {
|
|
5412
|
+
listCredentialsPagingPage(resourceGroupName, jobName, options, _settings) {
|
|
4688
5413
|
return tslib.__asyncGenerator(this, arguments, function* listCredentialsPagingPage_1() {
|
|
4689
|
-
let result
|
|
5414
|
+
let result;
|
|
5415
|
+
result = yield tslib.__await(this._listCredentials(resourceGroupName, jobName, options));
|
|
4690
5416
|
yield yield tslib.__await(result.value || []);
|
|
4691
5417
|
});
|
|
4692
5418
|
}
|
|
4693
5419
|
listCredentialsPagingAll(resourceGroupName, jobName, options) {
|
|
4694
5420
|
return tslib.__asyncGenerator(this, arguments, function* listCredentialsPagingAll_1() {
|
|
4695
|
-
var e_3,
|
|
5421
|
+
var _a, e_3, _b, _c;
|
|
4696
5422
|
try {
|
|
4697
|
-
for (var
|
|
4698
|
-
|
|
4699
|
-
|
|
5423
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listCredentialsPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
5424
|
+
_c = _f.value;
|
|
5425
|
+
_d = false;
|
|
5426
|
+
try {
|
|
5427
|
+
const page = _c;
|
|
5428
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
5429
|
+
}
|
|
5430
|
+
finally {
|
|
5431
|
+
_d = true;
|
|
5432
|
+
}
|
|
4700
5433
|
}
|
|
4701
5434
|
}
|
|
4702
5435
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
4703
5436
|
finally {
|
|
4704
5437
|
try {
|
|
4705
|
-
if (
|
|
5438
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4706
5439
|
}
|
|
4707
5440
|
finally { if (e_3) throw e_3.error; }
|
|
4708
5441
|
}
|
|
@@ -4758,7 +5491,7 @@ class JobsImpl {
|
|
|
4758
5491
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4759
5492
|
return this.client.sendOperationRequest(args, spec);
|
|
4760
5493
|
});
|
|
4761
|
-
const
|
|
5494
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4762
5495
|
var _a;
|
|
4763
5496
|
let currentRawResponse = undefined;
|
|
4764
5497
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4777,9 +5510,13 @@ class JobsImpl {
|
|
|
4777
5510
|
}
|
|
4778
5511
|
};
|
|
4779
5512
|
});
|
|
4780
|
-
const lro =
|
|
4781
|
-
|
|
4782
|
-
|
|
5513
|
+
const lro = createLroSpec({
|
|
5514
|
+
sendOperationFn,
|
|
5515
|
+
args: { resourceGroupName, jobName, jobResource, options },
|
|
5516
|
+
spec: createOperationSpec
|
|
5517
|
+
});
|
|
5518
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5519
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4783
5520
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4784
5521
|
});
|
|
4785
5522
|
yield poller.poll();
|
|
@@ -4813,7 +5550,7 @@ class JobsImpl {
|
|
|
4813
5550
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4814
5551
|
return this.client.sendOperationRequest(args, spec);
|
|
4815
5552
|
});
|
|
4816
|
-
const
|
|
5553
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4817
5554
|
var _a;
|
|
4818
5555
|
let currentRawResponse = undefined;
|
|
4819
5556
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4832,9 +5569,13 @@ class JobsImpl {
|
|
|
4832
5569
|
}
|
|
4833
5570
|
};
|
|
4834
5571
|
});
|
|
4835
|
-
const lro =
|
|
4836
|
-
|
|
4837
|
-
|
|
5572
|
+
const lro = createLroSpec({
|
|
5573
|
+
sendOperationFn,
|
|
5574
|
+
args: { resourceGroupName, jobName, options },
|
|
5575
|
+
spec: deleteOperationSpec
|
|
5576
|
+
});
|
|
5577
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5578
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4838
5579
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4839
5580
|
});
|
|
4840
5581
|
yield poller.poll();
|
|
@@ -4867,7 +5608,7 @@ class JobsImpl {
|
|
|
4867
5608
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4868
5609
|
return this.client.sendOperationRequest(args, spec);
|
|
4869
5610
|
});
|
|
4870
|
-
const
|
|
5611
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4871
5612
|
var _a;
|
|
4872
5613
|
let currentRawResponse = undefined;
|
|
4873
5614
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -4886,9 +5627,13 @@ class JobsImpl {
|
|
|
4886
5627
|
}
|
|
4887
5628
|
};
|
|
4888
5629
|
});
|
|
4889
|
-
const lro =
|
|
4890
|
-
|
|
4891
|
-
|
|
5630
|
+
const lro = createLroSpec({
|
|
5631
|
+
sendOperationFn,
|
|
5632
|
+
args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
|
|
5633
|
+
spec: updateOperationSpec
|
|
5634
|
+
});
|
|
5635
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5636
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4892
5637
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4893
5638
|
});
|
|
4894
5639
|
yield poller.poll();
|
|
@@ -5205,7 +5950,6 @@ const listNextOperationSpec = {
|
|
|
5205
5950
|
bodyMapper: ApiError
|
|
5206
5951
|
}
|
|
5207
5952
|
},
|
|
5208
|
-
queryParameters: [apiVersion, skipToken],
|
|
5209
5953
|
urlParameters: [
|
|
5210
5954
|
$host,
|
|
5211
5955
|
nextLink,
|
|
@@ -5225,7 +5969,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
5225
5969
|
bodyMapper: ApiError
|
|
5226
5970
|
}
|
|
5227
5971
|
},
|
|
5228
|
-
queryParameters: [apiVersion, skipToken],
|
|
5229
5972
|
urlParameters: [
|
|
5230
5973
|
$host,
|
|
5231
5974
|
nextLink,
|
|
@@ -5270,36 +6013,54 @@ class ServiceImpl {
|
|
|
5270
6013
|
[Symbol.asyncIterator]() {
|
|
5271
6014
|
return this;
|
|
5272
6015
|
},
|
|
5273
|
-
byPage: () => {
|
|
5274
|
-
|
|
6016
|
+
byPage: (settings) => {
|
|
6017
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6018
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6019
|
+
}
|
|
6020
|
+
return this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings);
|
|
5275
6021
|
}
|
|
5276
6022
|
};
|
|
5277
6023
|
}
|
|
5278
|
-
listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options) {
|
|
6024
|
+
listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options, settings) {
|
|
5279
6025
|
return tslib.__asyncGenerator(this, arguments, function* listAvailableSkusByResourceGroupPagingPage_1() {
|
|
5280
|
-
let result
|
|
5281
|
-
|
|
5282
|
-
|
|
6026
|
+
let result;
|
|
6027
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6028
|
+
if (!continuationToken) {
|
|
6029
|
+
result = yield tslib.__await(this._listAvailableSkusByResourceGroup(resourceGroupName, location, availableSkuRequest, options));
|
|
6030
|
+
let page = result.value || [];
|
|
6031
|
+
continuationToken = result.nextLink;
|
|
6032
|
+
setContinuationToken(page, continuationToken);
|
|
6033
|
+
yield yield tslib.__await(page);
|
|
6034
|
+
}
|
|
5283
6035
|
while (continuationToken) {
|
|
5284
6036
|
result = yield tslib.__await(this._listAvailableSkusByResourceGroupNext(resourceGroupName, location, availableSkuRequest, continuationToken, options));
|
|
5285
6037
|
continuationToken = result.nextLink;
|
|
5286
|
-
|
|
6038
|
+
let page = result.value || [];
|
|
6039
|
+
setContinuationToken(page, continuationToken);
|
|
6040
|
+
yield yield tslib.__await(page);
|
|
5287
6041
|
}
|
|
5288
6042
|
});
|
|
5289
6043
|
}
|
|
5290
6044
|
listAvailableSkusByResourceGroupPagingAll(resourceGroupName, location, availableSkuRequest, options) {
|
|
5291
6045
|
return tslib.__asyncGenerator(this, arguments, function* listAvailableSkusByResourceGroupPagingAll_1() {
|
|
5292
|
-
var e_1,
|
|
6046
|
+
var _a, e_1, _b, _c;
|
|
5293
6047
|
try {
|
|
5294
|
-
for (var
|
|
5295
|
-
|
|
5296
|
-
|
|
6048
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAvailableSkusByResourceGroupPagingPage(resourceGroupName, location, availableSkuRequest, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
6049
|
+
_c = _f.value;
|
|
6050
|
+
_d = false;
|
|
6051
|
+
try {
|
|
6052
|
+
const page = _c;
|
|
6053
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
6054
|
+
}
|
|
6055
|
+
finally {
|
|
6056
|
+
_d = true;
|
|
6057
|
+
}
|
|
5297
6058
|
}
|
|
5298
6059
|
}
|
|
5299
6060
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5300
6061
|
finally {
|
|
5301
6062
|
try {
|
|
5302
|
-
if (
|
|
6063
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
5303
6064
|
}
|
|
5304
6065
|
finally { if (e_1) throw e_1.error; }
|
|
5305
6066
|
}
|
|
@@ -5526,7 +6287,6 @@ const listAvailableSkusByResourceGroupNextOperationSpec = {
|
|
|
5526
6287
|
bodyMapper: ApiError
|
|
5527
6288
|
}
|
|
5528
6289
|
},
|
|
5529
|
-
queryParameters: [apiVersion],
|
|
5530
6290
|
urlParameters: [
|
|
5531
6291
|
$host,
|
|
5532
6292
|
nextLink,
|
|
@@ -5554,7 +6314,7 @@ class DataBoxManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5554
6314
|
* @param options The parameter options
|
|
5555
6315
|
*/
|
|
5556
6316
|
constructor(credentials, subscriptionId, options) {
|
|
5557
|
-
var _a, _b;
|
|
6317
|
+
var _a, _b, _c;
|
|
5558
6318
|
if (credentials === undefined) {
|
|
5559
6319
|
throw new Error("'credentials' cannot be null");
|
|
5560
6320
|
}
|
|
@@ -5569,41 +6329,71 @@ class DataBoxManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5569
6329
|
requestContentType: "application/json; charset=utf-8",
|
|
5570
6330
|
credential: credentials
|
|
5571
6331
|
};
|
|
5572
|
-
const packageDetails = `azsdk-js-arm-databox/5.0.0
|
|
6332
|
+
const packageDetails = `azsdk-js-arm-databox/5.0.0`;
|
|
5573
6333
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5574
6334
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5575
6335
|
: `${packageDetails}`;
|
|
5576
|
-
if (!options.credentialScopes) {
|
|
5577
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
5578
|
-
}
|
|
5579
6336
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5580
6337
|
userAgentPrefix
|
|
5581
|
-
},
|
|
6338
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5582
6339
|
super(optionsWithDefaults);
|
|
6340
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
5583
6341
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5584
6342
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5585
|
-
|
|
6343
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5586
6344
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
6345
|
+
}
|
|
6346
|
+
if (!options ||
|
|
6347
|
+
!options.pipeline ||
|
|
6348
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
6349
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
6350
|
+
this.pipeline.removePolicy({
|
|
6351
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
6352
|
+
});
|
|
6353
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
6354
|
+
credential: credentials,
|
|
6355
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
6356
|
+
challengeCallbacks: {
|
|
6357
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
6358
|
+
}
|
|
6359
|
+
}));
|
|
5598
6360
|
}
|
|
5599
6361
|
// Parameter assignments
|
|
5600
6362
|
this.subscriptionId = subscriptionId;
|
|
5601
6363
|
// Assigning values to Constant parameters
|
|
5602
6364
|
this.$host = options.$host || "https://management.azure.com";
|
|
5603
|
-
this.apiVersion = options.apiVersion || "
|
|
6365
|
+
this.apiVersion = options.apiVersion || "2022-12-01";
|
|
5604
6366
|
this.operations = new OperationsImpl(this);
|
|
5605
6367
|
this.jobs = new JobsImpl(this);
|
|
5606
6368
|
this.service = new ServiceImpl(this);
|
|
6369
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
6370
|
+
}
|
|
6371
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
6372
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
6373
|
+
if (!apiVersion) {
|
|
6374
|
+
return;
|
|
6375
|
+
}
|
|
6376
|
+
const apiVersionPolicy = {
|
|
6377
|
+
name: "CustomApiVersionPolicy",
|
|
6378
|
+
sendRequest(request, next) {
|
|
6379
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6380
|
+
const param = request.url.split("?");
|
|
6381
|
+
if (param.length > 1) {
|
|
6382
|
+
const newParams = param[1].split("&").map((item) => {
|
|
6383
|
+
if (item.indexOf("api-version") > -1) {
|
|
6384
|
+
return "api-version=" + apiVersion;
|
|
6385
|
+
}
|
|
6386
|
+
else {
|
|
6387
|
+
return item;
|
|
6388
|
+
}
|
|
6389
|
+
});
|
|
6390
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
6391
|
+
}
|
|
6392
|
+
return next(request);
|
|
6393
|
+
});
|
|
6394
|
+
}
|
|
6395
|
+
};
|
|
6396
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
5607
6397
|
}
|
|
5608
6398
|
/**
|
|
5609
6399
|
* Request to mitigate for a given job
|
|
@@ -5642,4 +6432,5 @@ const mitigateOperationSpec = {
|
|
|
5642
6432
|
};
|
|
5643
6433
|
|
|
5644
6434
|
exports.DataBoxManagementClient = DataBoxManagementClient;
|
|
6435
|
+
exports.getContinuationToken = getContinuationToken;
|
|
5645
6436
|
//# sourceMappingURL=index.js.map
|