@azure/arm-databox 3.0.0 → 5.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -73
  4. package/dist/index.js +5592 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/dataBoxManagementClient.d.ts +29 -0
  9. package/dist-esm/src/dataBoxManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/dataBoxManagementClient.js +89 -0
  11. package/dist-esm/src/dataBoxManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2157 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +168 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +163 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +3911 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +24 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +176 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/src/operations/index.js +11 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/jobs.d.ts +161 -0
  37. package/dist-esm/src/operations/jobs.d.ts.map +1 -0
  38. package/dist-esm/src/operations/jobs.js +687 -0
  39. package/dist-esm/src/operations/jobs.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/service.d.ts +83 -0
  45. package/dist-esm/src/operations/service.d.ts.map +1 -0
  46. package/dist-esm/src/operations/service.js +307 -0
  47. package/dist-esm/src/operations/service.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/jobs.d.ts +115 -0
  53. package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/jobs.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/jobs.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/service.d.ts +54 -0
  61. package/dist-esm/src/operationsInterfaces/service.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/service.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/service.js.map +1 -0
  64. package/dist-esm/test/sampleTest.d.ts +2 -0
  65. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  66. package/dist-esm/test/sampleTest.js +40 -0
  67. package/dist-esm/test/sampleTest.js.map +1 -0
  68. package/package.json +65 -31
  69. package/review/arm-databox.api.md +1376 -0
  70. package/rollup.config.js +181 -30
  71. package/src/dataBoxManagementClient.ts +113 -29
  72. package/src/index.ts +12 -0
  73. package/src/lroImpl.ts +34 -0
  74. package/src/models/index.ts +1924 -1354
  75. package/src/models/mappers.ts +3160 -1086
  76. package/src/models/parameters.ts +144 -54
  77. package/src/operations/index.ts +3 -5
  78. package/src/operations/jobs.ts +702 -480
  79. package/src/operations/operations.ts +89 -75
  80. package/src/operations/service.ts +342 -127
  81. package/src/operationsInterfaces/index.ts +11 -0
  82. package/src/operationsInterfaces/jobs.ts +205 -0
  83. package/src/operationsInterfaces/operations.ts +22 -0
  84. package/src/operationsInterfaces/service.ts +107 -0
  85. package/tsconfig.json +3 -3
  86. package/types/arm-databox.d.ts +2558 -0
  87. package/types/tsdoc-metadata.json +11 -0
  88. package/dist/arm-databox.js +0 -3090
  89. package/dist/arm-databox.js.map +0 -1
  90. package/dist/arm-databox.min.js +0 -1
  91. package/dist/arm-databox.min.js.map +0 -1
  92. package/esm/dataBoxManagementClient.d.ts +0 -20
  93. package/esm/dataBoxManagementClient.d.ts.map +0 -1
  94. package/esm/dataBoxManagementClient.js +0 -35
  95. package/esm/dataBoxManagementClient.js.map +0 -1
  96. package/esm/dataBoxManagementClientContext.d.ts +0 -16
  97. package/esm/dataBoxManagementClientContext.d.ts.map +0 -1
  98. package/esm/dataBoxManagementClientContext.js +0 -57
  99. package/esm/dataBoxManagementClientContext.js.map +0 -1
  100. package/esm/models/index.d.ts +0 -1754
  101. package/esm/models/index.d.ts.map +0 -1
  102. package/esm/models/index.js +0 -8
  103. package/esm/models/index.js.map +0 -1
  104. package/esm/models/jobsMappers.d.ts +0 -2
  105. package/esm/models/jobsMappers.d.ts.map +0 -1
  106. package/esm/models/jobsMappers.js +0 -9
  107. package/esm/models/jobsMappers.js.map +0 -1
  108. package/esm/models/mappers.d.ts +0 -75
  109. package/esm/models/mappers.d.ts.map +0 -1
  110. package/esm/models/mappers.js +0 -2020
  111. package/esm/models/mappers.js.map +0 -1
  112. package/esm/models/operationsMappers.d.ts +0 -2
  113. package/esm/models/operationsMappers.d.ts.map +0 -1
  114. package/esm/models/operationsMappers.js +0 -9
  115. package/esm/models/operationsMappers.js.map +0 -1
  116. package/esm/models/parameters.d.ts +0 -12
  117. package/esm/models/parameters.d.ts.map +0 -1
  118. package/esm/models/parameters.js +0 -122
  119. package/esm/models/parameters.js.map +0 -1
  120. package/esm/models/serviceMappers.d.ts +0 -2
  121. package/esm/models/serviceMappers.d.ts.map +0 -1
  122. package/esm/models/serviceMappers.js +0 -9
  123. package/esm/models/serviceMappers.js.map +0 -1
  124. package/esm/operations/index.d.ts.map +0 -1
  125. package/esm/operations/index.js +0 -13
  126. package/esm/operations/index.js.map +0 -1
  127. package/esm/operations/jobs.d.ts +0 -245
  128. package/esm/operations/jobs.d.ts.map +0 -1
  129. package/esm/operations/jobs.js +0 -444
  130. package/esm/operations/jobs.js.map +0 -1
  131. package/esm/operations/operations.d.ts +0 -46
  132. package/esm/operations/operations.d.ts.map +0 -1
  133. package/esm/operations/operations.js +0 -77
  134. package/esm/operations/operations.js.map +0 -1
  135. package/esm/operations/service.d.ts +0 -79
  136. package/esm/operations/service.d.ts.map +0 -1
  137. package/esm/operations/service.js +0 -126
  138. package/esm/operations/service.js.map +0 -1
  139. package/src/dataBoxManagementClientContext.ts +0 -69
  140. package/src/models/jobsMappers.ts +0 -55
  141. package/src/models/operationsMappers.ts +0 -15
  142. package/src/models/serviceMappers.ts +0 -22
@@ -1,3090 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmDatabox = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation. All rights reserved.
16
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
17
- this file except in compliance with the License. You may obtain a copy of the
18
- License at http://www.apache.org/licenses/LICENSE-2.0
19
-
20
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
22
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
23
- MERCHANTABLITY OR NON-INFRINGEMENT.
24
-
25
- See the Apache Version 2.0 License for specific language governing permissions
26
- and limitations under the License.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation. All rights reserved.
56
- * Licensed under the MIT License. See License.txt in the project root for license information.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation. All rights reserved.
68
- * Licensed under the MIT License. See License.txt in the project root for license information.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var ShareCredentialDetails = {
76
- serializedName: "ShareCredentialDetails",
77
- type: {
78
- name: "Composite",
79
- className: "ShareCredentialDetails",
80
- modelProperties: {
81
- shareName: {
82
- readOnly: true,
83
- serializedName: "shareName",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- shareType: {
89
- readOnly: true,
90
- serializedName: "shareType",
91
- type: {
92
- name: "Enum",
93
- allowedValues: [
94
- "UnknownType",
95
- "HCS",
96
- "BlockBlob",
97
- "PageBlob",
98
- "AzureFile",
99
- "ManagedDisk"
100
- ]
101
- }
102
- },
103
- userName: {
104
- readOnly: true,
105
- serializedName: "userName",
106
- type: {
107
- name: "String"
108
- }
109
- },
110
- password: {
111
- readOnly: true,
112
- serializedName: "password",
113
- type: {
114
- name: "String"
115
- }
116
- },
117
- supportedAccessProtocols: {
118
- readOnly: true,
119
- serializedName: "supportedAccessProtocols",
120
- type: {
121
- name: "Sequence",
122
- element: {
123
- type: {
124
- name: "Enum",
125
- allowedValues: [
126
- "SMB",
127
- "NFS"
128
- ]
129
- }
130
- }
131
- }
132
- }
133
- }
134
- }
135
- };
136
- var AccountCredentialDetails = {
137
- serializedName: "AccountCredentialDetails",
138
- type: {
139
- name: "Composite",
140
- className: "AccountCredentialDetails",
141
- modelProperties: {
142
- accountName: {
143
- readOnly: true,
144
- serializedName: "accountName",
145
- type: {
146
- name: "String"
147
- }
148
- },
149
- accountConnectionString: {
150
- readOnly: true,
151
- serializedName: "accountConnectionString",
152
- type: {
153
- name: "String"
154
- }
155
- },
156
- shareCredentialDetails: {
157
- readOnly: true,
158
- serializedName: "shareCredentialDetails",
159
- type: {
160
- name: "Sequence",
161
- element: {
162
- type: {
163
- name: "Composite",
164
- className: "ShareCredentialDetails"
165
- }
166
- }
167
- }
168
- }
169
- }
170
- }
171
- };
172
- var ShippingAddress = {
173
- serializedName: "ShippingAddress",
174
- type: {
175
- name: "Composite",
176
- className: "ShippingAddress",
177
- modelProperties: {
178
- streetAddress1: {
179
- required: true,
180
- serializedName: "streetAddress1",
181
- type: {
182
- name: "String"
183
- }
184
- },
185
- streetAddress2: {
186
- serializedName: "streetAddress2",
187
- type: {
188
- name: "String"
189
- }
190
- },
191
- streetAddress3: {
192
- serializedName: "streetAddress3",
193
- type: {
194
- name: "String"
195
- }
196
- },
197
- city: {
198
- serializedName: "city",
199
- type: {
200
- name: "String"
201
- }
202
- },
203
- stateOrProvince: {
204
- serializedName: "stateOrProvince",
205
- type: {
206
- name: "String"
207
- }
208
- },
209
- country: {
210
- required: true,
211
- serializedName: "country",
212
- type: {
213
- name: "String"
214
- }
215
- },
216
- postalCode: {
217
- required: true,
218
- serializedName: "postalCode",
219
- type: {
220
- name: "String"
221
- }
222
- },
223
- zipExtendedCode: {
224
- serializedName: "zipExtendedCode",
225
- type: {
226
- name: "String"
227
- }
228
- },
229
- companyName: {
230
- serializedName: "companyName",
231
- type: {
232
- name: "String"
233
- }
234
- },
235
- addressType: {
236
- serializedName: "addressType",
237
- type: {
238
- name: "Enum",
239
- allowedValues: [
240
- "None",
241
- "Residential",
242
- "Commercial"
243
- ]
244
- }
245
- }
246
- }
247
- }
248
- };
249
- var AddressValidationOutput = {
250
- serializedName: "AddressValidationOutput",
251
- type: {
252
- name: "Composite",
253
- className: "AddressValidationOutput",
254
- modelProperties: {
255
- validationStatus: {
256
- readOnly: true,
257
- serializedName: "properties.validationStatus",
258
- type: {
259
- name: "Enum",
260
- allowedValues: [
261
- "Valid",
262
- "Invalid",
263
- "Ambiguous"
264
- ]
265
- }
266
- },
267
- alternateAddresses: {
268
- readOnly: true,
269
- serializedName: "properties.alternateAddresses",
270
- type: {
271
- name: "Sequence",
272
- element: {
273
- type: {
274
- name: "Composite",
275
- className: "ShippingAddress"
276
- }
277
- }
278
- }
279
- }
280
- }
281
- }
282
- };
283
- var ApplianceNetworkConfiguration = {
284
- serializedName: "ApplianceNetworkConfiguration",
285
- type: {
286
- name: "Composite",
287
- className: "ApplianceNetworkConfiguration",
288
- modelProperties: {
289
- name: {
290
- readOnly: true,
291
- serializedName: "name",
292
- type: {
293
- name: "String"
294
- }
295
- },
296
- macAddress: {
297
- readOnly: true,
298
- serializedName: "macAddress",
299
- type: {
300
- name: "String"
301
- }
302
- }
303
- }
304
- }
305
- };
306
- var ArmBaseObject = {
307
- serializedName: "ArmBaseObject",
308
- type: {
309
- name: "Composite",
310
- className: "ArmBaseObject",
311
- modelProperties: {
312
- name: {
313
- readOnly: true,
314
- serializedName: "name",
315
- type: {
316
- name: "String"
317
- }
318
- },
319
- id: {
320
- readOnly: true,
321
- serializedName: "id",
322
- type: {
323
- name: "String"
324
- }
325
- },
326
- type: {
327
- readOnly: true,
328
- serializedName: "type",
329
- type: {
330
- name: "String"
331
- }
332
- }
333
- }
334
- }
335
- };
336
- var AvailableSkuRequest = {
337
- serializedName: "AvailableSkuRequest",
338
- type: {
339
- name: "Composite",
340
- className: "AvailableSkuRequest",
341
- modelProperties: {
342
- transferType: {
343
- required: true,
344
- isConstant: true,
345
- serializedName: "transferType",
346
- defaultValue: 'ImportToAzure',
347
- type: {
348
- name: "String"
349
- }
350
- },
351
- country: {
352
- required: true,
353
- serializedName: "country",
354
- type: {
355
- name: "String"
356
- }
357
- },
358
- location: {
359
- required: true,
360
- serializedName: "location",
361
- type: {
362
- name: "String"
363
- }
364
- },
365
- skuNames: {
366
- serializedName: "skuNames",
367
- type: {
368
- name: "Sequence",
369
- element: {
370
- type: {
371
- name: "Enum",
372
- allowedValues: [
373
- "DataBox",
374
- "DataBoxDisk",
375
- "DataBoxHeavy"
376
- ]
377
- }
378
- }
379
- }
380
- }
381
- }
382
- }
383
- };
384
- var Sku = {
385
- serializedName: "Sku",
386
- type: {
387
- name: "Composite",
388
- className: "Sku",
389
- modelProperties: {
390
- name: {
391
- required: true,
392
- serializedName: "name",
393
- type: {
394
- name: "Enum",
395
- allowedValues: [
396
- "DataBox",
397
- "DataBoxDisk",
398
- "DataBoxHeavy"
399
- ]
400
- }
401
- },
402
- displayName: {
403
- serializedName: "displayName",
404
- type: {
405
- name: "String"
406
- }
407
- },
408
- family: {
409
- serializedName: "family",
410
- type: {
411
- name: "String"
412
- }
413
- }
414
- }
415
- }
416
- };
417
- var DestinationToServiceLocationMap = {
418
- serializedName: "DestinationToServiceLocationMap",
419
- type: {
420
- name: "Composite",
421
- className: "DestinationToServiceLocationMap",
422
- modelProperties: {
423
- destinationLocation: {
424
- readOnly: true,
425
- serializedName: "destinationLocation",
426
- type: {
427
- name: "String"
428
- }
429
- },
430
- serviceLocation: {
431
- readOnly: true,
432
- serializedName: "serviceLocation",
433
- type: {
434
- name: "String"
435
- }
436
- }
437
- }
438
- }
439
- };
440
- var SkuCapacity = {
441
- serializedName: "SkuCapacity",
442
- type: {
443
- name: "Composite",
444
- className: "SkuCapacity",
445
- modelProperties: {
446
- usable: {
447
- readOnly: true,
448
- serializedName: "usable",
449
- type: {
450
- name: "String"
451
- }
452
- },
453
- maximum: {
454
- readOnly: true,
455
- serializedName: "maximum",
456
- type: {
457
- name: "String"
458
- }
459
- }
460
- }
461
- }
462
- };
463
- var SkuCost = {
464
- serializedName: "SkuCost",
465
- type: {
466
- name: "Composite",
467
- className: "SkuCost",
468
- modelProperties: {
469
- meterId: {
470
- readOnly: true,
471
- serializedName: "meterId",
472
- type: {
473
- name: "String"
474
- }
475
- },
476
- meterType: {
477
- readOnly: true,
478
- serializedName: "meterType",
479
- type: {
480
- name: "String"
481
- }
482
- }
483
- }
484
- }
485
- };
486
- var SkuInformation = {
487
- serializedName: "SkuInformation",
488
- type: {
489
- name: "Composite",
490
- className: "SkuInformation",
491
- modelProperties: {
492
- sku: {
493
- readOnly: true,
494
- serializedName: "sku",
495
- type: {
496
- name: "Composite",
497
- className: "Sku"
498
- }
499
- },
500
- enabled: {
501
- readOnly: true,
502
- serializedName: "enabled",
503
- type: {
504
- name: "Boolean"
505
- }
506
- },
507
- destinationToServiceLocationMap: {
508
- readOnly: true,
509
- serializedName: "properties.destinationToServiceLocationMap",
510
- type: {
511
- name: "Sequence",
512
- element: {
513
- type: {
514
- name: "Composite",
515
- className: "DestinationToServiceLocationMap"
516
- }
517
- }
518
- }
519
- },
520
- capacity: {
521
- readOnly: true,
522
- serializedName: "properties.capacity",
523
- type: {
524
- name: "Composite",
525
- className: "SkuCapacity"
526
- }
527
- },
528
- costs: {
529
- readOnly: true,
530
- serializedName: "properties.costs",
531
- type: {
532
- name: "Sequence",
533
- element: {
534
- type: {
535
- name: "Composite",
536
- className: "SkuCost"
537
- }
538
- }
539
- }
540
- },
541
- apiVersions: {
542
- readOnly: true,
543
- serializedName: "properties.apiVersions",
544
- type: {
545
- name: "Sequence",
546
- element: {
547
- type: {
548
- name: "String"
549
- }
550
- }
551
- }
552
- },
553
- disabledReason: {
554
- readOnly: true,
555
- serializedName: "properties.disabledReason",
556
- type: {
557
- name: "Enum",
558
- allowedValues: [
559
- "None",
560
- "Country",
561
- "Region",
562
- "Feature",
563
- "OfferType",
564
- "NoSubscriptionInfo"
565
- ]
566
- }
567
- },
568
- disabledReasonMessage: {
569
- readOnly: true,
570
- serializedName: "properties.disabledReasonMessage",
571
- type: {
572
- name: "String"
573
- }
574
- },
575
- requiredFeature: {
576
- readOnly: true,
577
- serializedName: "properties.requiredFeature",
578
- type: {
579
- name: "String"
580
- }
581
- }
582
- }
583
- }
584
- };
585
- var CancellationReason = {
586
- serializedName: "CancellationReason",
587
- type: {
588
- name: "Composite",
589
- className: "CancellationReason",
590
- modelProperties: {
591
- reason: {
592
- required: true,
593
- serializedName: "reason",
594
- type: {
595
- name: "String"
596
- }
597
- }
598
- }
599
- }
600
- };
601
- var NotificationPreference = {
602
- serializedName: "NotificationPreference",
603
- type: {
604
- name: "Composite",
605
- className: "NotificationPreference",
606
- modelProperties: {
607
- stageName: {
608
- required: true,
609
- serializedName: "stageName",
610
- type: {
611
- name: "Enum",
612
- allowedValues: [
613
- "DevicePrepared",
614
- "Dispatched",
615
- "Delivered",
616
- "PickedUp",
617
- "AtAzureDC",
618
- "DataCopy"
619
- ]
620
- }
621
- },
622
- sendNotification: {
623
- required: true,
624
- serializedName: "sendNotification",
625
- type: {
626
- name: "Boolean"
627
- }
628
- }
629
- }
630
- }
631
- };
632
- var ContactDetails = {
633
- serializedName: "ContactDetails",
634
- type: {
635
- name: "Composite",
636
- className: "ContactDetails",
637
- modelProperties: {
638
- contactName: {
639
- required: true,
640
- serializedName: "contactName",
641
- type: {
642
- name: "String"
643
- }
644
- },
645
- phone: {
646
- required: true,
647
- serializedName: "phone",
648
- type: {
649
- name: "String"
650
- }
651
- },
652
- phoneExtension: {
653
- serializedName: "phoneExtension",
654
- type: {
655
- name: "String"
656
- }
657
- },
658
- mobile: {
659
- serializedName: "mobile",
660
- type: {
661
- name: "String"
662
- }
663
- },
664
- emailList: {
665
- required: true,
666
- serializedName: "emailList",
667
- type: {
668
- name: "Sequence",
669
- element: {
670
- type: {
671
- name: "String"
672
- }
673
- }
674
- }
675
- },
676
- notificationPreference: {
677
- serializedName: "notificationPreference",
678
- type: {
679
- name: "Sequence",
680
- element: {
681
- type: {
682
- name: "Composite",
683
- className: "NotificationPreference"
684
- }
685
- }
686
- }
687
- }
688
- }
689
- }
690
- };
691
- var CopyLogDetails = {
692
- serializedName: "CopyLogDetails",
693
- type: {
694
- name: "Composite",
695
- polymorphicDiscriminator: {
696
- serializedName: "copyLogDetailsType",
697
- clientName: "copyLogDetailsType"
698
- },
699
- uberParent: "CopyLogDetails",
700
- className: "CopyLogDetails",
701
- modelProperties: {
702
- copyLogDetailsType: {
703
- required: true,
704
- serializedName: "copyLogDetailsType",
705
- type: {
706
- name: "String"
707
- }
708
- }
709
- }
710
- }
711
- };
712
- var CopyProgress = {
713
- serializedName: "CopyProgress",
714
- type: {
715
- name: "Composite",
716
- className: "CopyProgress",
717
- modelProperties: {
718
- storageAccountName: {
719
- readOnly: true,
720
- serializedName: "storageAccountName",
721
- type: {
722
- name: "String"
723
- }
724
- },
725
- accountId: {
726
- readOnly: true,
727
- serializedName: "accountId",
728
- type: {
729
- name: "String"
730
- }
731
- },
732
- bytesSentToCloud: {
733
- readOnly: true,
734
- serializedName: "bytesSentToCloud",
735
- type: {
736
- name: "Number"
737
- }
738
- },
739
- totalBytesToProcess: {
740
- readOnly: true,
741
- serializedName: "totalBytesToProcess",
742
- type: {
743
- name: "Number"
744
- }
745
- },
746
- filesProcessed: {
747
- readOnly: true,
748
- serializedName: "filesProcessed",
749
- type: {
750
- name: "Number"
751
- }
752
- },
753
- totalFilesToProcess: {
754
- readOnly: true,
755
- serializedName: "totalFilesToProcess",
756
- type: {
757
- name: "Number"
758
- }
759
- }
760
- }
761
- }
762
- };
763
- var DataBoxAccountCopyLogDetails = {
764
- serializedName: "DataBox",
765
- type: {
766
- name: "Composite",
767
- polymorphicDiscriminator: CopyLogDetails.type.polymorphicDiscriminator,
768
- uberParent: "CopyLogDetails",
769
- className: "DataBoxAccountCopyLogDetails",
770
- modelProperties: __assign(__assign({}, CopyLogDetails.type.modelProperties), { accountName: {
771
- readOnly: true,
772
- serializedName: "accountName",
773
- type: {
774
- name: "String"
775
- }
776
- }, copyLogLink: {
777
- readOnly: true,
778
- serializedName: "copyLogLink",
779
- type: {
780
- name: "String"
781
- }
782
- } })
783
- }
784
- };
785
- var DataBoxDiskCopyLogDetails = {
786
- serializedName: "DataBoxDisk",
787
- type: {
788
- name: "Composite",
789
- polymorphicDiscriminator: CopyLogDetails.type.polymorphicDiscriminator,
790
- uberParent: "CopyLogDetails",
791
- className: "DataBoxDiskCopyLogDetails",
792
- modelProperties: __assign(__assign({}, CopyLogDetails.type.modelProperties), { diskSerialNumber: {
793
- readOnly: true,
794
- serializedName: "diskSerialNumber",
795
- type: {
796
- name: "String"
797
- }
798
- }, errorLogLink: {
799
- readOnly: true,
800
- serializedName: "errorLogLink",
801
- type: {
802
- name: "String"
803
- }
804
- }, verboseLogLink: {
805
- readOnly: true,
806
- serializedName: "verboseLogLink",
807
- type: {
808
- name: "String"
809
- }
810
- } })
811
- }
812
- };
813
- var DataBoxDiskCopyProgress = {
814
- serializedName: "DataBoxDiskCopyProgress",
815
- type: {
816
- name: "Composite",
817
- className: "DataBoxDiskCopyProgress",
818
- modelProperties: {
819
- serialNumber: {
820
- readOnly: true,
821
- serializedName: "serialNumber",
822
- type: {
823
- name: "String"
824
- }
825
- },
826
- bytesCopied: {
827
- readOnly: true,
828
- serializedName: "bytesCopied",
829
- type: {
830
- name: "Number"
831
- }
832
- },
833
- percentComplete: {
834
- readOnly: true,
835
- serializedName: "percentComplete",
836
- type: {
837
- name: "Number"
838
- }
839
- },
840
- status: {
841
- readOnly: true,
842
- serializedName: "status",
843
- type: {
844
- name: "Enum",
845
- allowedValues: [
846
- "NotStarted",
847
- "InProgress",
848
- "Completed",
849
- "CompletedWithErrors",
850
- "Failed",
851
- "NotReturned"
852
- ]
853
- }
854
- }
855
- }
856
- }
857
- };
858
- var JobDetails = {
859
- serializedName: "JobDetails",
860
- type: {
861
- name: "Composite",
862
- polymorphicDiscriminator: {
863
- serializedName: "jobDetailsType",
864
- clientName: "jobDetailsType"
865
- },
866
- uberParent: "JobDetails",
867
- className: "JobDetails",
868
- modelProperties: {
869
- expectedDataSizeInTeraBytes: {
870
- serializedName: "expectedDataSizeInTeraBytes",
871
- type: {
872
- name: "Number"
873
- }
874
- },
875
- jobStages: {
876
- readOnly: true,
877
- serializedName: "jobStages",
878
- type: {
879
- name: "Sequence",
880
- element: {
881
- type: {
882
- name: "Composite",
883
- className: "JobStages"
884
- }
885
- }
886
- }
887
- },
888
- contactDetails: {
889
- required: true,
890
- serializedName: "contactDetails",
891
- type: {
892
- name: "Composite",
893
- className: "ContactDetails"
894
- }
895
- },
896
- shippingAddress: {
897
- required: true,
898
- serializedName: "shippingAddress",
899
- type: {
900
- name: "Composite",
901
- className: "ShippingAddress"
902
- }
903
- },
904
- deliveryPackage: {
905
- readOnly: true,
906
- serializedName: "deliveryPackage",
907
- type: {
908
- name: "Composite",
909
- className: "PackageShippingDetails"
910
- }
911
- },
912
- returnPackage: {
913
- readOnly: true,
914
- serializedName: "returnPackage",
915
- type: {
916
- name: "Composite",
917
- className: "PackageShippingDetails"
918
- }
919
- },
920
- destinationAccountDetails: {
921
- required: true,
922
- serializedName: "destinationAccountDetails",
923
- type: {
924
- name: "Sequence",
925
- element: {
926
- type: {
927
- name: "Composite",
928
- className: "DestinationAccountDetails"
929
- }
930
- }
931
- }
932
- },
933
- errorDetails: {
934
- readOnly: true,
935
- serializedName: "errorDetails",
936
- type: {
937
- name: "Sequence",
938
- element: {
939
- type: {
940
- name: "Composite",
941
- className: "JobErrorDetails"
942
- }
943
- }
944
- }
945
- },
946
- preferences: {
947
- serializedName: "preferences",
948
- type: {
949
- name: "Composite",
950
- className: "Preferences"
951
- }
952
- },
953
- copyLogDetails: {
954
- readOnly: true,
955
- serializedName: "copyLogDetails",
956
- type: {
957
- name: "Sequence",
958
- element: {
959
- type: {
960
- name: "Composite",
961
- className: "CopyLogDetails"
962
- }
963
- }
964
- }
965
- },
966
- reverseShipmentLabelSasKey: {
967
- readOnly: true,
968
- serializedName: "reverseShipmentLabelSasKey",
969
- type: {
970
- name: "String"
971
- }
972
- },
973
- chainOfCustodySasKey: {
974
- readOnly: true,
975
- serializedName: "chainOfCustodySasKey",
976
- type: {
977
- name: "String"
978
- }
979
- },
980
- jobDetailsType: {
981
- required: true,
982
- serializedName: "jobDetailsType",
983
- type: {
984
- name: "String"
985
- }
986
- }
987
- }
988
- }
989
- };
990
- var DataBoxDiskJobDetails = {
991
- serializedName: "DataBoxDisk",
992
- type: {
993
- name: "Composite",
994
- polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator,
995
- uberParent: "JobDetails",
996
- className: "DataBoxDiskJobDetails",
997
- modelProperties: __assign(__assign({}, JobDetails.type.modelProperties), { preferredDisks: {
998
- serializedName: "preferredDisks",
999
- type: {
1000
- name: "Dictionary",
1001
- value: {
1002
- type: {
1003
- name: "Number"
1004
- }
1005
- }
1006
- }
1007
- }, copyProgress: {
1008
- readOnly: true,
1009
- serializedName: "copyProgress",
1010
- type: {
1011
- name: "Sequence",
1012
- element: {
1013
- type: {
1014
- name: "Composite",
1015
- className: "DataBoxDiskCopyProgress"
1016
- }
1017
- }
1018
- }
1019
- }, disksAndSizeDetails: {
1020
- readOnly: true,
1021
- serializedName: "disksAndSizeDetails",
1022
- type: {
1023
- name: "Dictionary",
1024
- value: {
1025
- type: {
1026
- name: "Number"
1027
- }
1028
- }
1029
- }
1030
- }, passkey: {
1031
- serializedName: "passkey",
1032
- type: {
1033
- name: "String"
1034
- }
1035
- } })
1036
- }
1037
- };
1038
- var DiskSecret = {
1039
- serializedName: "DiskSecret",
1040
- type: {
1041
- name: "Composite",
1042
- className: "DiskSecret",
1043
- modelProperties: {
1044
- diskSerialNumber: {
1045
- readOnly: true,
1046
- serializedName: "diskSerialNumber",
1047
- type: {
1048
- name: "String"
1049
- }
1050
- },
1051
- bitLockerKey: {
1052
- readOnly: true,
1053
- serializedName: "bitLockerKey",
1054
- type: {
1055
- name: "String"
1056
- }
1057
- }
1058
- }
1059
- }
1060
- };
1061
- var JobSecrets = {
1062
- serializedName: "JobSecrets",
1063
- type: {
1064
- name: "Composite",
1065
- polymorphicDiscriminator: {
1066
- serializedName: "jobSecretsType",
1067
- clientName: "jobSecretsType"
1068
- },
1069
- uberParent: "JobSecrets",
1070
- className: "JobSecrets",
1071
- modelProperties: {
1072
- jobSecretsType: {
1073
- required: true,
1074
- serializedName: "jobSecretsType",
1075
- type: {
1076
- name: "String"
1077
- }
1078
- }
1079
- }
1080
- }
1081
- };
1082
- var DataBoxDiskJobSecrets = {
1083
- serializedName: "DataBoxDisk",
1084
- type: {
1085
- name: "Composite",
1086
- polymorphicDiscriminator: JobSecrets.type.polymorphicDiscriminator,
1087
- uberParent: "JobSecrets",
1088
- className: "DataBoxDiskJobSecrets",
1089
- modelProperties: __assign(__assign({}, JobSecrets.type.modelProperties), { diskSecrets: {
1090
- readOnly: true,
1091
- serializedName: "diskSecrets",
1092
- type: {
1093
- name: "Sequence",
1094
- element: {
1095
- type: {
1096
- name: "Composite",
1097
- className: "DiskSecret"
1098
- }
1099
- }
1100
- }
1101
- }, passKey: {
1102
- readOnly: true,
1103
- serializedName: "passKey",
1104
- type: {
1105
- name: "String"
1106
- }
1107
- }, isPasskeyUserDefined: {
1108
- readOnly: true,
1109
- serializedName: "isPasskeyUserDefined",
1110
- type: {
1111
- name: "Boolean"
1112
- }
1113
- } })
1114
- }
1115
- };
1116
- var DataBoxHeavyAccountCopyLogDetails = {
1117
- serializedName: "DataBoxHeavy",
1118
- type: {
1119
- name: "Composite",
1120
- polymorphicDiscriminator: CopyLogDetails.type.polymorphicDiscriminator,
1121
- uberParent: "CopyLogDetails",
1122
- className: "DataBoxHeavyAccountCopyLogDetails",
1123
- modelProperties: __assign(__assign({}, CopyLogDetails.type.modelProperties), { accountName: {
1124
- readOnly: true,
1125
- serializedName: "accountName",
1126
- type: {
1127
- name: "String"
1128
- }
1129
- }, copyLogLink: {
1130
- readOnly: true,
1131
- serializedName: "copyLogLink",
1132
- type: {
1133
- name: "Sequence",
1134
- element: {
1135
- type: {
1136
- name: "String"
1137
- }
1138
- }
1139
- }
1140
- } })
1141
- }
1142
- };
1143
- var DataBoxHeavyJobDetails = {
1144
- serializedName: "DataBoxHeavy",
1145
- type: {
1146
- name: "Composite",
1147
- polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator,
1148
- uberParent: "JobDetails",
1149
- className: "DataBoxHeavyJobDetails",
1150
- modelProperties: __assign(__assign({}, JobDetails.type.modelProperties), { copyProgress: {
1151
- readOnly: true,
1152
- serializedName: "copyProgress",
1153
- type: {
1154
- name: "Sequence",
1155
- element: {
1156
- type: {
1157
- name: "Composite",
1158
- className: "CopyProgress"
1159
- }
1160
- }
1161
- }
1162
- } })
1163
- }
1164
- };
1165
- var DataBoxHeavySecret = {
1166
- serializedName: "DataBoxHeavySecret",
1167
- type: {
1168
- name: "Composite",
1169
- className: "DataBoxHeavySecret",
1170
- modelProperties: {
1171
- deviceSerialNumber: {
1172
- readOnly: true,
1173
- serializedName: "deviceSerialNumber",
1174
- type: {
1175
- name: "String"
1176
- }
1177
- },
1178
- devicePassword: {
1179
- readOnly: true,
1180
- serializedName: "devicePassword",
1181
- type: {
1182
- name: "String"
1183
- }
1184
- },
1185
- networkConfigurations: {
1186
- readOnly: true,
1187
- serializedName: "networkConfigurations",
1188
- type: {
1189
- name: "Sequence",
1190
- element: {
1191
- type: {
1192
- name: "Composite",
1193
- className: "ApplianceNetworkConfiguration"
1194
- }
1195
- }
1196
- }
1197
- },
1198
- encodedValidationCertPubKey: {
1199
- readOnly: true,
1200
- serializedName: "encodedValidationCertPubKey",
1201
- type: {
1202
- name: "String"
1203
- }
1204
- },
1205
- accountCredentialDetails: {
1206
- readOnly: true,
1207
- serializedName: "accountCredentialDetails",
1208
- type: {
1209
- name: "Sequence",
1210
- element: {
1211
- type: {
1212
- name: "Composite",
1213
- className: "AccountCredentialDetails"
1214
- }
1215
- }
1216
- }
1217
- }
1218
- }
1219
- }
1220
- };
1221
- var DataBoxHeavyJobSecrets = {
1222
- serializedName: "DataBoxHeavy",
1223
- type: {
1224
- name: "Composite",
1225
- polymorphicDiscriminator: JobSecrets.type.polymorphicDiscriminator,
1226
- uberParent: "JobSecrets",
1227
- className: "DataBoxHeavyJobSecrets",
1228
- modelProperties: __assign(__assign({}, JobSecrets.type.modelProperties), { cabinetPodSecrets: {
1229
- readOnly: true,
1230
- serializedName: "cabinetPodSecrets",
1231
- type: {
1232
- name: "Sequence",
1233
- element: {
1234
- type: {
1235
- name: "Composite",
1236
- className: "DataBoxHeavySecret"
1237
- }
1238
- }
1239
- }
1240
- } })
1241
- }
1242
- };
1243
- var DataBoxJobDetails = {
1244
- serializedName: "DataBox",
1245
- type: {
1246
- name: "Composite",
1247
- polymorphicDiscriminator: JobDetails.type.polymorphicDiscriminator,
1248
- uberParent: "JobDetails",
1249
- className: "DataBoxJobDetails",
1250
- modelProperties: __assign(__assign({}, JobDetails.type.modelProperties), { copyProgress: {
1251
- readOnly: true,
1252
- serializedName: "copyProgress",
1253
- type: {
1254
- name: "Sequence",
1255
- element: {
1256
- type: {
1257
- name: "Composite",
1258
- className: "CopyProgress"
1259
- }
1260
- }
1261
- }
1262
- } })
1263
- }
1264
- };
1265
- var DataBoxSecret = {
1266
- serializedName: "DataBoxSecret",
1267
- type: {
1268
- name: "Composite",
1269
- className: "DataBoxSecret",
1270
- modelProperties: {
1271
- deviceSerialNumber: {
1272
- readOnly: true,
1273
- serializedName: "deviceSerialNumber",
1274
- type: {
1275
- name: "String"
1276
- }
1277
- },
1278
- devicePassword: {
1279
- readOnly: true,
1280
- serializedName: "devicePassword",
1281
- type: {
1282
- name: "String"
1283
- }
1284
- },
1285
- networkConfigurations: {
1286
- readOnly: true,
1287
- serializedName: "networkConfigurations",
1288
- type: {
1289
- name: "Sequence",
1290
- element: {
1291
- type: {
1292
- name: "Composite",
1293
- className: "ApplianceNetworkConfiguration"
1294
- }
1295
- }
1296
- }
1297
- },
1298
- encodedValidationCertPubKey: {
1299
- readOnly: true,
1300
- serializedName: "encodedValidationCertPubKey",
1301
- type: {
1302
- name: "String"
1303
- }
1304
- },
1305
- accountCredentialDetails: {
1306
- readOnly: true,
1307
- serializedName: "accountCredentialDetails",
1308
- type: {
1309
- name: "Sequence",
1310
- element: {
1311
- type: {
1312
- name: "Composite",
1313
- className: "AccountCredentialDetails"
1314
- }
1315
- }
1316
- }
1317
- }
1318
- }
1319
- }
1320
- };
1321
- var DataboxJobSecrets = {
1322
- serializedName: "DataBox",
1323
- type: {
1324
- name: "Composite",
1325
- polymorphicDiscriminator: JobSecrets.type.polymorphicDiscriminator,
1326
- uberParent: "JobSecrets",
1327
- className: "DataboxJobSecrets",
1328
- modelProperties: __assign(__assign({}, JobSecrets.type.modelProperties), { podSecrets: {
1329
- serializedName: "podSecrets",
1330
- type: {
1331
- name: "Sequence",
1332
- element: {
1333
- type: {
1334
- name: "Composite",
1335
- className: "DataBoxSecret"
1336
- }
1337
- }
1338
- }
1339
- } })
1340
- }
1341
- };
1342
- var DestinationAccountDetails = {
1343
- serializedName: "DestinationAccountDetails",
1344
- type: {
1345
- name: "Composite",
1346
- polymorphicDiscriminator: {
1347
- serializedName: "dataDestinationType",
1348
- clientName: "dataDestinationType"
1349
- },
1350
- uberParent: "DestinationAccountDetails",
1351
- className: "DestinationAccountDetails",
1352
- modelProperties: {
1353
- accountId: {
1354
- serializedName: "accountId",
1355
- type: {
1356
- name: "String"
1357
- }
1358
- },
1359
- dataDestinationType: {
1360
- required: true,
1361
- serializedName: "dataDestinationType",
1362
- type: {
1363
- name: "String"
1364
- }
1365
- }
1366
- }
1367
- }
1368
- };
1369
- var DestinationManagedDiskDetails = {
1370
- serializedName: "ManagedDisk",
1371
- type: {
1372
- name: "Composite",
1373
- polymorphicDiscriminator: DestinationAccountDetails.type.polymorphicDiscriminator,
1374
- uberParent: "DestinationAccountDetails",
1375
- className: "DestinationManagedDiskDetails",
1376
- modelProperties: __assign(__assign({}, DestinationAccountDetails.type.modelProperties), { resourceGroupId: {
1377
- required: true,
1378
- serializedName: "resourceGroupId",
1379
- type: {
1380
- name: "String"
1381
- }
1382
- }, stagingStorageAccountId: {
1383
- required: true,
1384
- serializedName: "stagingStorageAccountId",
1385
- type: {
1386
- name: "String"
1387
- }
1388
- } })
1389
- }
1390
- };
1391
- var DestinationStorageAccountDetails = {
1392
- serializedName: "StorageAccount",
1393
- type: {
1394
- name: "Composite",
1395
- polymorphicDiscriminator: DestinationAccountDetails.type.polymorphicDiscriminator,
1396
- uberParent: "DestinationAccountDetails",
1397
- className: "DestinationStorageAccountDetails",
1398
- modelProperties: __assign(__assign({}, DestinationAccountDetails.type.modelProperties), { storageAccountId: {
1399
- required: true,
1400
- serializedName: "storageAccountId",
1401
- type: {
1402
- name: "String"
1403
- }
1404
- } })
1405
- }
1406
- };
1407
- var ErrorModel = {
1408
- serializedName: "Error",
1409
- type: {
1410
- name: "Composite",
1411
- className: "ErrorModel",
1412
- modelProperties: {
1413
- code: {
1414
- readOnly: true,
1415
- serializedName: "code",
1416
- type: {
1417
- name: "String"
1418
- }
1419
- },
1420
- message: {
1421
- readOnly: true,
1422
- serializedName: "message",
1423
- type: {
1424
- name: "String"
1425
- }
1426
- }
1427
- }
1428
- }
1429
- };
1430
- var JobErrorDetails = {
1431
- serializedName: "JobErrorDetails",
1432
- type: {
1433
- name: "Composite",
1434
- className: "JobErrorDetails",
1435
- modelProperties: {
1436
- errorMessage: {
1437
- readOnly: true,
1438
- serializedName: "errorMessage",
1439
- type: {
1440
- name: "String"
1441
- }
1442
- },
1443
- errorCode: {
1444
- readOnly: true,
1445
- serializedName: "errorCode",
1446
- type: {
1447
- name: "Number"
1448
- }
1449
- },
1450
- recommendedAction: {
1451
- readOnly: true,
1452
- serializedName: "recommendedAction",
1453
- type: {
1454
- name: "String"
1455
- }
1456
- },
1457
- exceptionMessage: {
1458
- readOnly: true,
1459
- serializedName: "exceptionMessage",
1460
- type: {
1461
- name: "String"
1462
- }
1463
- }
1464
- }
1465
- }
1466
- };
1467
- var JobStages = {
1468
- serializedName: "JobStages",
1469
- type: {
1470
- name: "Composite",
1471
- className: "JobStages",
1472
- modelProperties: {
1473
- stageName: {
1474
- readOnly: true,
1475
- serializedName: "stageName",
1476
- type: {
1477
- name: "Enum",
1478
- allowedValues: [
1479
- "DeviceOrdered",
1480
- "DevicePrepared",
1481
- "Dispatched",
1482
- "Delivered",
1483
- "PickedUp",
1484
- "AtAzureDC",
1485
- "DataCopy",
1486
- "Completed",
1487
- "CompletedWithErrors",
1488
- "Cancelled",
1489
- "Failed_IssueReportedAtCustomer",
1490
- "Failed_IssueDetectedAtAzureDC",
1491
- "Aborted"
1492
- ]
1493
- }
1494
- },
1495
- displayName: {
1496
- readOnly: true,
1497
- serializedName: "displayName",
1498
- type: {
1499
- name: "String"
1500
- }
1501
- },
1502
- stageStatus: {
1503
- readOnly: true,
1504
- serializedName: "stageStatus",
1505
- type: {
1506
- name: "Enum",
1507
- allowedValues: [
1508
- "None",
1509
- "InProgress",
1510
- "Succeeded",
1511
- "Failed",
1512
- "Cancelled",
1513
- "Cancelling",
1514
- "SucceededWithErrors"
1515
- ]
1516
- }
1517
- },
1518
- stageTime: {
1519
- readOnly: true,
1520
- serializedName: "stageTime",
1521
- type: {
1522
- name: "DateTime"
1523
- }
1524
- },
1525
- jobStageDetails: {
1526
- readOnly: true,
1527
- serializedName: "jobStageDetails",
1528
- type: {
1529
- name: "Object"
1530
- }
1531
- },
1532
- errorDetails: {
1533
- readOnly: true,
1534
- serializedName: "errorDetails",
1535
- type: {
1536
- name: "Sequence",
1537
- element: {
1538
- type: {
1539
- name: "Composite",
1540
- className: "JobErrorDetails"
1541
- }
1542
- }
1543
- }
1544
- }
1545
- }
1546
- }
1547
- };
1548
- var PackageShippingDetails = {
1549
- serializedName: "PackageShippingDetails",
1550
- type: {
1551
- name: "Composite",
1552
- className: "PackageShippingDetails",
1553
- modelProperties: {
1554
- carrierName: {
1555
- readOnly: true,
1556
- serializedName: "carrierName",
1557
- type: {
1558
- name: "String"
1559
- }
1560
- },
1561
- trackingId: {
1562
- readOnly: true,
1563
- serializedName: "trackingId",
1564
- type: {
1565
- name: "String"
1566
- }
1567
- },
1568
- trackingUrl: {
1569
- readOnly: true,
1570
- serializedName: "trackingUrl",
1571
- type: {
1572
- name: "String"
1573
- }
1574
- }
1575
- }
1576
- }
1577
- };
1578
- var Preferences = {
1579
- serializedName: "Preferences",
1580
- type: {
1581
- name: "Composite",
1582
- className: "Preferences",
1583
- modelProperties: {
1584
- preferredDataCenterRegion: {
1585
- serializedName: "preferredDataCenterRegion",
1586
- type: {
1587
- name: "Sequence",
1588
- element: {
1589
- type: {
1590
- name: "String"
1591
- }
1592
- }
1593
- }
1594
- }
1595
- }
1596
- }
1597
- };
1598
- var Resource = {
1599
- serializedName: "Resource",
1600
- type: {
1601
- name: "Composite",
1602
- className: "Resource",
1603
- modelProperties: {
1604
- location: {
1605
- required: true,
1606
- serializedName: "location",
1607
- type: {
1608
- name: "String"
1609
- }
1610
- },
1611
- tags: {
1612
- serializedName: "tags",
1613
- type: {
1614
- name: "Dictionary",
1615
- value: {
1616
- type: {
1617
- name: "String"
1618
- }
1619
- }
1620
- }
1621
- },
1622
- sku: {
1623
- required: true,
1624
- serializedName: "sku",
1625
- type: {
1626
- name: "Composite",
1627
- className: "Sku"
1628
- }
1629
- }
1630
- }
1631
- }
1632
- };
1633
- var JobResource = {
1634
- serializedName: "JobResource",
1635
- type: {
1636
- name: "Composite",
1637
- className: "JobResource",
1638
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { isCancellable: {
1639
- readOnly: true,
1640
- serializedName: "properties.isCancellable",
1641
- type: {
1642
- name: "Boolean"
1643
- }
1644
- }, isDeletable: {
1645
- readOnly: true,
1646
- serializedName: "properties.isDeletable",
1647
- type: {
1648
- name: "Boolean"
1649
- }
1650
- }, isShippingAddressEditable: {
1651
- readOnly: true,
1652
- serializedName: "properties.isShippingAddressEditable",
1653
- type: {
1654
- name: "Boolean"
1655
- }
1656
- }, status: {
1657
- readOnly: true,
1658
- serializedName: "properties.status",
1659
- type: {
1660
- name: "Enum",
1661
- allowedValues: [
1662
- "DeviceOrdered",
1663
- "DevicePrepared",
1664
- "Dispatched",
1665
- "Delivered",
1666
- "PickedUp",
1667
- "AtAzureDC",
1668
- "DataCopy",
1669
- "Completed",
1670
- "CompletedWithErrors",
1671
- "Cancelled",
1672
- "Failed_IssueReportedAtCustomer",
1673
- "Failed_IssueDetectedAtAzureDC",
1674
- "Aborted"
1675
- ]
1676
- }
1677
- }, startTime: {
1678
- readOnly: true,
1679
- serializedName: "properties.startTime",
1680
- type: {
1681
- name: "DateTime"
1682
- }
1683
- }, error: {
1684
- readOnly: true,
1685
- serializedName: "properties.error",
1686
- type: {
1687
- name: "Composite",
1688
- className: "ErrorModel"
1689
- }
1690
- }, details: {
1691
- serializedName: "properties.details",
1692
- type: {
1693
- name: "Composite",
1694
- className: "JobDetails"
1695
- }
1696
- }, cancellationReason: {
1697
- readOnly: true,
1698
- serializedName: "properties.cancellationReason",
1699
- type: {
1700
- name: "String"
1701
- }
1702
- }, name: {
1703
- readOnly: true,
1704
- serializedName: "name",
1705
- type: {
1706
- name: "String"
1707
- }
1708
- }, id: {
1709
- readOnly: true,
1710
- serializedName: "id",
1711
- type: {
1712
- name: "String"
1713
- }
1714
- }, type: {
1715
- readOnly: true,
1716
- serializedName: "type",
1717
- type: {
1718
- name: "String"
1719
- }
1720
- } })
1721
- }
1722
- };
1723
- var UpdateJobDetails = {
1724
- serializedName: "UpdateJobDetails",
1725
- type: {
1726
- name: "Composite",
1727
- className: "UpdateJobDetails",
1728
- modelProperties: {
1729
- contactDetails: {
1730
- serializedName: "contactDetails",
1731
- type: {
1732
- name: "Composite",
1733
- className: "ContactDetails"
1734
- }
1735
- },
1736
- shippingAddress: {
1737
- serializedName: "shippingAddress",
1738
- type: {
1739
- name: "Composite",
1740
- className: "ShippingAddress"
1741
- }
1742
- }
1743
- }
1744
- }
1745
- };
1746
- var JobResourceUpdateParameter = {
1747
- serializedName: "JobResourceUpdateParameter",
1748
- type: {
1749
- name: "Composite",
1750
- className: "JobResourceUpdateParameter",
1751
- modelProperties: {
1752
- details: {
1753
- serializedName: "properties.details",
1754
- type: {
1755
- name: "Composite",
1756
- className: "UpdateJobDetails"
1757
- }
1758
- },
1759
- destinationAccountDetails: {
1760
- serializedName: "properties.destinationAccountDetails",
1761
- type: {
1762
- name: "Sequence",
1763
- element: {
1764
- type: {
1765
- name: "Composite",
1766
- className: "DestinationAccountDetails"
1767
- }
1768
- }
1769
- }
1770
- },
1771
- tags: {
1772
- serializedName: "tags",
1773
- type: {
1774
- name: "Dictionary",
1775
- value: {
1776
- type: {
1777
- name: "String"
1778
- }
1779
- }
1780
- }
1781
- }
1782
- }
1783
- }
1784
- };
1785
- var OperationDisplay = {
1786
- serializedName: "OperationDisplay",
1787
- type: {
1788
- name: "Composite",
1789
- className: "OperationDisplay",
1790
- modelProperties: {
1791
- provider: {
1792
- serializedName: "provider",
1793
- type: {
1794
- name: "String"
1795
- }
1796
- },
1797
- resource: {
1798
- serializedName: "resource",
1799
- type: {
1800
- name: "String"
1801
- }
1802
- },
1803
- operation: {
1804
- serializedName: "operation",
1805
- type: {
1806
- name: "String"
1807
- }
1808
- },
1809
- description: {
1810
- serializedName: "description",
1811
- type: {
1812
- name: "String"
1813
- }
1814
- }
1815
- }
1816
- }
1817
- };
1818
- var Operation = {
1819
- serializedName: "Operation",
1820
- type: {
1821
- name: "Composite",
1822
- className: "Operation",
1823
- modelProperties: {
1824
- name: {
1825
- readOnly: true,
1826
- serializedName: "name",
1827
- type: {
1828
- name: "String"
1829
- }
1830
- },
1831
- display: {
1832
- readOnly: true,
1833
- serializedName: "display",
1834
- type: {
1835
- name: "Composite",
1836
- className: "OperationDisplay"
1837
- }
1838
- },
1839
- properties: {
1840
- readOnly: true,
1841
- serializedName: "properties",
1842
- type: {
1843
- name: "Object"
1844
- }
1845
- },
1846
- origin: {
1847
- readOnly: true,
1848
- serializedName: "origin",
1849
- type: {
1850
- name: "String"
1851
- }
1852
- }
1853
- }
1854
- }
1855
- };
1856
- var ShipmentPickUpRequest = {
1857
- serializedName: "ShipmentPickUpRequest",
1858
- type: {
1859
- name: "Composite",
1860
- className: "ShipmentPickUpRequest",
1861
- modelProperties: {
1862
- startTime: {
1863
- required: true,
1864
- serializedName: "startTime",
1865
- type: {
1866
- name: "DateTime"
1867
- }
1868
- },
1869
- endTime: {
1870
- required: true,
1871
- serializedName: "endTime",
1872
- type: {
1873
- name: "DateTime"
1874
- }
1875
- },
1876
- shipmentLocation: {
1877
- required: true,
1878
- serializedName: "shipmentLocation",
1879
- type: {
1880
- name: "String"
1881
- }
1882
- }
1883
- }
1884
- }
1885
- };
1886
- var ShipmentPickUpResponse = {
1887
- serializedName: "ShipmentPickUpResponse",
1888
- type: {
1889
- name: "Composite",
1890
- className: "ShipmentPickUpResponse",
1891
- modelProperties: {
1892
- confirmationNumber: {
1893
- readOnly: true,
1894
- serializedName: "confirmationNumber",
1895
- type: {
1896
- name: "String"
1897
- }
1898
- },
1899
- readyByTime: {
1900
- readOnly: true,
1901
- serializedName: "readyByTime",
1902
- type: {
1903
- name: "DateTime"
1904
- }
1905
- }
1906
- }
1907
- }
1908
- };
1909
- var UnencryptedCredentials = {
1910
- serializedName: "UnencryptedCredentials",
1911
- type: {
1912
- name: "Composite",
1913
- className: "UnencryptedCredentials",
1914
- modelProperties: {
1915
- jobName: {
1916
- readOnly: true,
1917
- serializedName: "jobName",
1918
- type: {
1919
- name: "String"
1920
- }
1921
- },
1922
- jobSecrets: {
1923
- readOnly: true,
1924
- serializedName: "jobSecrets",
1925
- type: {
1926
- name: "Composite",
1927
- className: "JobSecrets"
1928
- }
1929
- }
1930
- }
1931
- }
1932
- };
1933
- var ValidateAddress = {
1934
- serializedName: "ValidateAddress",
1935
- type: {
1936
- name: "Composite",
1937
- className: "ValidateAddress",
1938
- modelProperties: {
1939
- shippingAddress: {
1940
- required: true,
1941
- serializedName: "shippingAddress",
1942
- type: {
1943
- name: "Composite",
1944
- className: "ShippingAddress"
1945
- }
1946
- },
1947
- deviceType: {
1948
- required: true,
1949
- serializedName: "deviceType",
1950
- type: {
1951
- name: "Enum",
1952
- allowedValues: [
1953
- "DataBox",
1954
- "DataBoxDisk",
1955
- "DataBoxHeavy"
1956
- ]
1957
- }
1958
- }
1959
- }
1960
- }
1961
- };
1962
- var OperationList = {
1963
- serializedName: "OperationList",
1964
- type: {
1965
- name: "Composite",
1966
- className: "OperationList",
1967
- modelProperties: {
1968
- value: {
1969
- readOnly: true,
1970
- serializedName: "",
1971
- type: {
1972
- name: "Sequence",
1973
- element: {
1974
- type: {
1975
- name: "Composite",
1976
- className: "Operation"
1977
- }
1978
- }
1979
- }
1980
- },
1981
- nextLink: {
1982
- serializedName: "nextLink",
1983
- type: {
1984
- name: "String"
1985
- }
1986
- }
1987
- }
1988
- }
1989
- };
1990
- var JobResourceList = {
1991
- serializedName: "JobResourceList",
1992
- type: {
1993
- name: "Composite",
1994
- className: "JobResourceList",
1995
- modelProperties: {
1996
- value: {
1997
- serializedName: "",
1998
- type: {
1999
- name: "Sequence",
2000
- element: {
2001
- type: {
2002
- name: "Composite",
2003
- className: "JobResource"
2004
- }
2005
- }
2006
- }
2007
- },
2008
- nextLink: {
2009
- serializedName: "nextLink",
2010
- type: {
2011
- name: "String"
2012
- }
2013
- }
2014
- }
2015
- }
2016
- };
2017
- var UnencryptedCredentialsList = {
2018
- serializedName: "UnencryptedCredentialsList",
2019
- type: {
2020
- name: "Composite",
2021
- className: "UnencryptedCredentialsList",
2022
- modelProperties: {
2023
- value: {
2024
- serializedName: "",
2025
- type: {
2026
- name: "Sequence",
2027
- element: {
2028
- type: {
2029
- name: "Composite",
2030
- className: "UnencryptedCredentials"
2031
- }
2032
- }
2033
- }
2034
- }
2035
- }
2036
- }
2037
- };
2038
- var AvailableSkusResult = {
2039
- serializedName: "AvailableSkusResult",
2040
- type: {
2041
- name: "Composite",
2042
- className: "AvailableSkusResult",
2043
- modelProperties: {
2044
- value: {
2045
- readOnly: true,
2046
- serializedName: "",
2047
- type: {
2048
- name: "Sequence",
2049
- element: {
2050
- type: {
2051
- name: "Composite",
2052
- className: "SkuInformation"
2053
- }
2054
- }
2055
- }
2056
- },
2057
- nextLink: {
2058
- serializedName: "nextLink",
2059
- type: {
2060
- name: "String"
2061
- }
2062
- }
2063
- }
2064
- }
2065
- };
2066
- var discriminators = {
2067
- 'CopyLogDetails': CopyLogDetails,
2068
- 'CopyLogDetails.DataBox': DataBoxAccountCopyLogDetails,
2069
- 'CopyLogDetails.DataBoxDisk': DataBoxDiskCopyLogDetails,
2070
- 'JobDetails.DataBoxDisk': DataBoxDiskJobDetails,
2071
- 'JobSecrets.DataBoxDisk': DataBoxDiskJobSecrets,
2072
- 'CopyLogDetails.DataBoxHeavy': DataBoxHeavyAccountCopyLogDetails,
2073
- 'JobDetails.DataBoxHeavy': DataBoxHeavyJobDetails,
2074
- 'JobSecrets.DataBoxHeavy': DataBoxHeavyJobSecrets,
2075
- 'JobDetails.DataBox': DataBoxJobDetails,
2076
- 'JobSecrets.DataBox': DataboxJobSecrets,
2077
- 'DestinationAccountDetails': DestinationAccountDetails,
2078
- 'DestinationAccountDetails.ManagedDisk': DestinationManagedDiskDetails,
2079
- 'DestinationAccountDetails.StorageAccount': DestinationStorageAccountDetails,
2080
- 'JobDetails': JobDetails,
2081
- 'JobSecrets': JobSecrets
2082
- };
2083
-
2084
- var mappers = /*#__PURE__*/Object.freeze({
2085
- __proto__: null,
2086
- CloudError: CloudError,
2087
- BaseResource: BaseResource,
2088
- ShareCredentialDetails: ShareCredentialDetails,
2089
- AccountCredentialDetails: AccountCredentialDetails,
2090
- ShippingAddress: ShippingAddress,
2091
- AddressValidationOutput: AddressValidationOutput,
2092
- ApplianceNetworkConfiguration: ApplianceNetworkConfiguration,
2093
- ArmBaseObject: ArmBaseObject,
2094
- AvailableSkuRequest: AvailableSkuRequest,
2095
- Sku: Sku,
2096
- DestinationToServiceLocationMap: DestinationToServiceLocationMap,
2097
- SkuCapacity: SkuCapacity,
2098
- SkuCost: SkuCost,
2099
- SkuInformation: SkuInformation,
2100
- CancellationReason: CancellationReason,
2101
- NotificationPreference: NotificationPreference,
2102
- ContactDetails: ContactDetails,
2103
- CopyLogDetails: CopyLogDetails,
2104
- CopyProgress: CopyProgress,
2105
- DataBoxAccountCopyLogDetails: DataBoxAccountCopyLogDetails,
2106
- DataBoxDiskCopyLogDetails: DataBoxDiskCopyLogDetails,
2107
- DataBoxDiskCopyProgress: DataBoxDiskCopyProgress,
2108
- JobDetails: JobDetails,
2109
- DataBoxDiskJobDetails: DataBoxDiskJobDetails,
2110
- DiskSecret: DiskSecret,
2111
- JobSecrets: JobSecrets,
2112
- DataBoxDiskJobSecrets: DataBoxDiskJobSecrets,
2113
- DataBoxHeavyAccountCopyLogDetails: DataBoxHeavyAccountCopyLogDetails,
2114
- DataBoxHeavyJobDetails: DataBoxHeavyJobDetails,
2115
- DataBoxHeavySecret: DataBoxHeavySecret,
2116
- DataBoxHeavyJobSecrets: DataBoxHeavyJobSecrets,
2117
- DataBoxJobDetails: DataBoxJobDetails,
2118
- DataBoxSecret: DataBoxSecret,
2119
- DataboxJobSecrets: DataboxJobSecrets,
2120
- DestinationAccountDetails: DestinationAccountDetails,
2121
- DestinationManagedDiskDetails: DestinationManagedDiskDetails,
2122
- DestinationStorageAccountDetails: DestinationStorageAccountDetails,
2123
- ErrorModel: ErrorModel,
2124
- JobErrorDetails: JobErrorDetails,
2125
- JobStages: JobStages,
2126
- PackageShippingDetails: PackageShippingDetails,
2127
- Preferences: Preferences,
2128
- Resource: Resource,
2129
- JobResource: JobResource,
2130
- UpdateJobDetails: UpdateJobDetails,
2131
- JobResourceUpdateParameter: JobResourceUpdateParameter,
2132
- OperationDisplay: OperationDisplay,
2133
- Operation: Operation,
2134
- ShipmentPickUpRequest: ShipmentPickUpRequest,
2135
- ShipmentPickUpResponse: ShipmentPickUpResponse,
2136
- UnencryptedCredentials: UnencryptedCredentials,
2137
- ValidateAddress: ValidateAddress,
2138
- OperationList: OperationList,
2139
- JobResourceList: JobResourceList,
2140
- UnencryptedCredentialsList: UnencryptedCredentialsList,
2141
- AvailableSkusResult: AvailableSkusResult,
2142
- discriminators: discriminators
2143
- });
2144
-
2145
- /*
2146
- * Copyright (c) Microsoft Corporation. All rights reserved.
2147
- * Licensed under the MIT License. See License.txt in the project root for license information.
2148
- *
2149
- * Code generated by Microsoft (R) AutoRest Code Generator.
2150
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2151
- */
2152
-
2153
- var Mappers = /*#__PURE__*/Object.freeze({
2154
- __proto__: null,
2155
- discriminators: discriminators,
2156
- CloudError: CloudError,
2157
- Operation: Operation,
2158
- OperationDisplay: OperationDisplay,
2159
- OperationList: OperationList
2160
- });
2161
-
2162
- /*
2163
- * Copyright (c) Microsoft Corporation. All rights reserved.
2164
- * Licensed under the MIT License. See License.txt in the project root for
2165
- * license information.
2166
- *
2167
- * Code generated by Microsoft (R) AutoRest Code Generator.
2168
- * Changes may cause incorrect behavior and will be lost if the code is
2169
- * regenerated.
2170
- */
2171
- var acceptLanguage = {
2172
- parameterPath: "acceptLanguage",
2173
- mapper: {
2174
- serializedName: "accept-language",
2175
- defaultValue: 'en-US',
2176
- type: {
2177
- name: "String"
2178
- }
2179
- }
2180
- };
2181
- var apiVersion = {
2182
- parameterPath: "apiVersion",
2183
- mapper: {
2184
- required: true,
2185
- serializedName: "api-version",
2186
- type: {
2187
- name: "String"
2188
- }
2189
- }
2190
- };
2191
- var expand = {
2192
- parameterPath: [
2193
- "options",
2194
- "expand"
2195
- ],
2196
- mapper: {
2197
- serializedName: "$expand",
2198
- type: {
2199
- name: "String"
2200
- }
2201
- }
2202
- };
2203
- var ifMatch = {
2204
- parameterPath: [
2205
- "options",
2206
- "ifMatch"
2207
- ],
2208
- mapper: {
2209
- serializedName: "If-Match",
2210
- type: {
2211
- name: "String"
2212
- }
2213
- }
2214
- };
2215
- var jobName = {
2216
- parameterPath: "jobName",
2217
- mapper: {
2218
- required: true,
2219
- serializedName: "jobName",
2220
- constraints: {
2221
- MaxLength: 24,
2222
- MinLength: 3,
2223
- Pattern: /^[-\w\.]+$/
2224
- },
2225
- type: {
2226
- name: "String"
2227
- }
2228
- }
2229
- };
2230
- var location = {
2231
- parameterPath: "location",
2232
- mapper: {
2233
- required: true,
2234
- serializedName: "location",
2235
- type: {
2236
- name: "String"
2237
- }
2238
- }
2239
- };
2240
- var nextPageLink = {
2241
- parameterPath: "nextPageLink",
2242
- mapper: {
2243
- required: true,
2244
- serializedName: "nextLink",
2245
- type: {
2246
- name: "String"
2247
- }
2248
- },
2249
- skipEncoding: true
2250
- };
2251
- var resourceGroupName = {
2252
- parameterPath: "resourceGroupName",
2253
- mapper: {
2254
- required: true,
2255
- serializedName: "resourceGroupName",
2256
- type: {
2257
- name: "String"
2258
- }
2259
- }
2260
- };
2261
- var skipToken = {
2262
- parameterPath: [
2263
- "options",
2264
- "skipToken"
2265
- ],
2266
- mapper: {
2267
- serializedName: "$skipToken",
2268
- type: {
2269
- name: "String"
2270
- }
2271
- }
2272
- };
2273
- var subscriptionId = {
2274
- parameterPath: "subscriptionId",
2275
- mapper: {
2276
- required: true,
2277
- serializedName: "subscriptionId",
2278
- type: {
2279
- name: "String"
2280
- }
2281
- }
2282
- };
2283
-
2284
- /*
2285
- * Copyright (c) Microsoft Corporation. All rights reserved.
2286
- * Licensed under the MIT License. See License.txt in the project root for
2287
- * license information.
2288
- *
2289
- * Code generated by Microsoft (R) AutoRest Code Generator.
2290
- * Changes may cause incorrect behavior and will be lost if the code is
2291
- * regenerated.
2292
- */
2293
- /** Class representing a Operations. */
2294
- var Operations = /** @class */ (function () {
2295
- /**
2296
- * Create a Operations.
2297
- * @param {DataBoxManagementClientContext} client Reference to the service client.
2298
- */
2299
- function Operations(client) {
2300
- this.client = client;
2301
- }
2302
- Operations.prototype.list = function (options, callback) {
2303
- return this.client.sendOperationRequest({
2304
- options: options
2305
- }, listOperationSpec, callback);
2306
- };
2307
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
2308
- return this.client.sendOperationRequest({
2309
- nextPageLink: nextPageLink,
2310
- options: options
2311
- }, listNextOperationSpec, callback);
2312
- };
2313
- return Operations;
2314
- }());
2315
- // Operation Specifications
2316
- var serializer = new msRest.Serializer(Mappers);
2317
- var listOperationSpec = {
2318
- httpMethod: "GET",
2319
- path: "providers/Microsoft.DataBox/operations",
2320
- queryParameters: [
2321
- apiVersion
2322
- ],
2323
- headerParameters: [
2324
- acceptLanguage
2325
- ],
2326
- responses: {
2327
- 200: {
2328
- bodyMapper: OperationList
2329
- },
2330
- default: {
2331
- bodyMapper: CloudError
2332
- }
2333
- },
2334
- serializer: serializer
2335
- };
2336
- var listNextOperationSpec = {
2337
- httpMethod: "GET",
2338
- baseUrl: "https://management.azure.com",
2339
- path: "{nextLink}",
2340
- urlParameters: [
2341
- nextPageLink
2342
- ],
2343
- headerParameters: [
2344
- acceptLanguage
2345
- ],
2346
- responses: {
2347
- 200: {
2348
- bodyMapper: OperationList
2349
- },
2350
- default: {
2351
- bodyMapper: CloudError
2352
- }
2353
- },
2354
- serializer: serializer
2355
- };
2356
-
2357
- /*
2358
- * Copyright (c) Microsoft Corporation. All rights reserved.
2359
- * Licensed under the MIT License. See License.txt in the project root for license information.
2360
- *
2361
- * Code generated by Microsoft (R) AutoRest Code Generator.
2362
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2363
- */
2364
-
2365
- var Mappers$1 = /*#__PURE__*/Object.freeze({
2366
- __proto__: null,
2367
- discriminators: discriminators,
2368
- AccountCredentialDetails: AccountCredentialDetails,
2369
- ApplianceNetworkConfiguration: ApplianceNetworkConfiguration,
2370
- BaseResource: BaseResource,
2371
- CancellationReason: CancellationReason,
2372
- CloudError: CloudError,
2373
- ContactDetails: ContactDetails,
2374
- CopyLogDetails: CopyLogDetails,
2375
- CopyProgress: CopyProgress,
2376
- DataBoxAccountCopyLogDetails: DataBoxAccountCopyLogDetails,
2377
- DataBoxDiskCopyLogDetails: DataBoxDiskCopyLogDetails,
2378
- DataBoxDiskCopyProgress: DataBoxDiskCopyProgress,
2379
- DataBoxDiskJobDetails: DataBoxDiskJobDetails,
2380
- DataBoxDiskJobSecrets: DataBoxDiskJobSecrets,
2381
- DataBoxHeavyAccountCopyLogDetails: DataBoxHeavyAccountCopyLogDetails,
2382
- DataBoxHeavyJobDetails: DataBoxHeavyJobDetails,
2383
- DataBoxHeavyJobSecrets: DataBoxHeavyJobSecrets,
2384
- DataBoxHeavySecret: DataBoxHeavySecret,
2385
- DataBoxJobDetails: DataBoxJobDetails,
2386
- DataboxJobSecrets: DataboxJobSecrets,
2387
- DataBoxSecret: DataBoxSecret,
2388
- DestinationAccountDetails: DestinationAccountDetails,
2389
- DestinationManagedDiskDetails: DestinationManagedDiskDetails,
2390
- DestinationStorageAccountDetails: DestinationStorageAccountDetails,
2391
- DiskSecret: DiskSecret,
2392
- ErrorModel: ErrorModel,
2393
- JobDetails: JobDetails,
2394
- JobErrorDetails: JobErrorDetails,
2395
- JobResource: JobResource,
2396
- JobResourceList: JobResourceList,
2397
- JobResourceUpdateParameter: JobResourceUpdateParameter,
2398
- JobSecrets: JobSecrets,
2399
- JobStages: JobStages,
2400
- NotificationPreference: NotificationPreference,
2401
- PackageShippingDetails: PackageShippingDetails,
2402
- Preferences: Preferences,
2403
- Resource: Resource,
2404
- ShareCredentialDetails: ShareCredentialDetails,
2405
- ShipmentPickUpRequest: ShipmentPickUpRequest,
2406
- ShipmentPickUpResponse: ShipmentPickUpResponse,
2407
- ShippingAddress: ShippingAddress,
2408
- Sku: Sku,
2409
- UnencryptedCredentials: UnencryptedCredentials,
2410
- UnencryptedCredentialsList: UnencryptedCredentialsList,
2411
- UpdateJobDetails: UpdateJobDetails
2412
- });
2413
-
2414
- /*
2415
- * Copyright (c) Microsoft Corporation. All rights reserved.
2416
- * Licensed under the MIT License. See License.txt in the project root for
2417
- * license information.
2418
- *
2419
- * Code generated by Microsoft (R) AutoRest Code Generator.
2420
- * Changes may cause incorrect behavior and will be lost if the code is
2421
- * regenerated.
2422
- */
2423
- /** Class representing a Jobs. */
2424
- var Jobs = /** @class */ (function () {
2425
- /**
2426
- * Create a Jobs.
2427
- * @param {DataBoxManagementClientContext} client Reference to the service client.
2428
- */
2429
- function Jobs(client) {
2430
- this.client = client;
2431
- }
2432
- Jobs.prototype.list = function (options, callback) {
2433
- return this.client.sendOperationRequest({
2434
- options: options
2435
- }, listOperationSpec$1, callback);
2436
- };
2437
- Jobs.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
2438
- return this.client.sendOperationRequest({
2439
- resourceGroupName: resourceGroupName,
2440
- options: options
2441
- }, listByResourceGroupOperationSpec, callback);
2442
- };
2443
- Jobs.prototype.get = function (resourceGroupName, jobName, options, callback) {
2444
- return this.client.sendOperationRequest({
2445
- resourceGroupName: resourceGroupName,
2446
- jobName: jobName,
2447
- options: options
2448
- }, getOperationSpec, callback);
2449
- };
2450
- /**
2451
- * Creates a new job with the specified parameters. Existing job cannot be updated with this API
2452
- * and should instead be updated with the Update job API.
2453
- * @param resourceGroupName The Resource Group Name
2454
- * @param jobName The name of the job Resource within the specified resource group. job names must
2455
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2456
- * @param jobResource Job details from request body.
2457
- * @param [options] The optional parameters
2458
- * @returns Promise<Models.JobsCreateResponse>
2459
- */
2460
- Jobs.prototype.create = function (resourceGroupName, jobName, jobResource, options) {
2461
- return this.beginCreate(resourceGroupName, jobName, jobResource, options)
2462
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2463
- };
2464
- /**
2465
- * Deletes a job.
2466
- * @param resourceGroupName The Resource Group Name
2467
- * @param jobName The name of the job Resource within the specified resource group. job names must
2468
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2469
- * @param [options] The optional parameters
2470
- * @returns Promise<msRest.RestResponse>
2471
- */
2472
- Jobs.prototype.deleteMethod = function (resourceGroupName, jobName, options) {
2473
- return this.beginDeleteMethod(resourceGroupName, jobName, options)
2474
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2475
- };
2476
- /**
2477
- * Updates the properties of an existing job.
2478
- * @param resourceGroupName The Resource Group Name
2479
- * @param jobName The name of the job Resource within the specified resource group. job names must
2480
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2481
- * @param jobResourceUpdateParameter Job update parameters from request body.
2482
- * @param [options] The optional parameters
2483
- * @returns Promise<Models.JobsUpdateResponse>
2484
- */
2485
- Jobs.prototype.update = function (resourceGroupName, jobName, jobResourceUpdateParameter, options) {
2486
- return this.beginUpdate(resourceGroupName, jobName, jobResourceUpdateParameter, options)
2487
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2488
- };
2489
- Jobs.prototype.bookShipmentPickUp = function (resourceGroupName, jobName, shipmentPickUpRequest, options, callback) {
2490
- return this.client.sendOperationRequest({
2491
- resourceGroupName: resourceGroupName,
2492
- jobName: jobName,
2493
- shipmentPickUpRequest: shipmentPickUpRequest,
2494
- options: options
2495
- }, bookShipmentPickUpOperationSpec, callback);
2496
- };
2497
- Jobs.prototype.cancel = function (resourceGroupName, jobName, reason, options, callback) {
2498
- return this.client.sendOperationRequest({
2499
- resourceGroupName: resourceGroupName,
2500
- jobName: jobName,
2501
- reason: reason,
2502
- options: options
2503
- }, cancelOperationSpec, callback);
2504
- };
2505
- Jobs.prototype.listCredentials = function (resourceGroupName, jobName, options, callback) {
2506
- return this.client.sendOperationRequest({
2507
- resourceGroupName: resourceGroupName,
2508
- jobName: jobName,
2509
- options: options
2510
- }, listCredentialsOperationSpec, callback);
2511
- };
2512
- /**
2513
- * Creates a new job with the specified parameters. Existing job cannot be updated with this API
2514
- * and should instead be updated with the Update job API.
2515
- * @param resourceGroupName The Resource Group Name
2516
- * @param jobName The name of the job Resource within the specified resource group. job names must
2517
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2518
- * @param jobResource Job details from request body.
2519
- * @param [options] The optional parameters
2520
- * @returns Promise<msRestAzure.LROPoller>
2521
- */
2522
- Jobs.prototype.beginCreate = function (resourceGroupName, jobName, jobResource, options) {
2523
- return this.client.sendLRORequest({
2524
- resourceGroupName: resourceGroupName,
2525
- jobName: jobName,
2526
- jobResource: jobResource,
2527
- options: options
2528
- }, beginCreateOperationSpec, options);
2529
- };
2530
- /**
2531
- * Deletes a job.
2532
- * @param resourceGroupName The Resource Group Name
2533
- * @param jobName The name of the job Resource within the specified resource group. job names must
2534
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2535
- * @param [options] The optional parameters
2536
- * @returns Promise<msRestAzure.LROPoller>
2537
- */
2538
- Jobs.prototype.beginDeleteMethod = function (resourceGroupName, jobName, options) {
2539
- return this.client.sendLRORequest({
2540
- resourceGroupName: resourceGroupName,
2541
- jobName: jobName,
2542
- options: options
2543
- }, beginDeleteMethodOperationSpec, options);
2544
- };
2545
- /**
2546
- * Updates the properties of an existing job.
2547
- * @param resourceGroupName The Resource Group Name
2548
- * @param jobName The name of the job Resource within the specified resource group. job names must
2549
- * be between 3 and 24 characters in length and use any alphanumeric and underscore only
2550
- * @param jobResourceUpdateParameter Job update parameters from request body.
2551
- * @param [options] The optional parameters
2552
- * @returns Promise<msRestAzure.LROPoller>
2553
- */
2554
- Jobs.prototype.beginUpdate = function (resourceGroupName, jobName, jobResourceUpdateParameter, options) {
2555
- return this.client.sendLRORequest({
2556
- resourceGroupName: resourceGroupName,
2557
- jobName: jobName,
2558
- jobResourceUpdateParameter: jobResourceUpdateParameter,
2559
- options: options
2560
- }, beginUpdateOperationSpec, options);
2561
- };
2562
- Jobs.prototype.listNext = function (nextPageLink, options, callback) {
2563
- return this.client.sendOperationRequest({
2564
- nextPageLink: nextPageLink,
2565
- options: options
2566
- }, listNextOperationSpec$1, callback);
2567
- };
2568
- Jobs.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
2569
- return this.client.sendOperationRequest({
2570
- nextPageLink: nextPageLink,
2571
- options: options
2572
- }, listByResourceGroupNextOperationSpec, callback);
2573
- };
2574
- return Jobs;
2575
- }());
2576
- // Operation Specifications
2577
- var serializer$1 = new msRest.Serializer(Mappers$1);
2578
- var listOperationSpec$1 = {
2579
- httpMethod: "GET",
2580
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs",
2581
- urlParameters: [
2582
- subscriptionId
2583
- ],
2584
- queryParameters: [
2585
- apiVersion,
2586
- skipToken
2587
- ],
2588
- headerParameters: [
2589
- acceptLanguage
2590
- ],
2591
- responses: {
2592
- 200: {
2593
- bodyMapper: JobResourceList
2594
- },
2595
- default: {
2596
- bodyMapper: CloudError
2597
- }
2598
- },
2599
- serializer: serializer$1
2600
- };
2601
- var listByResourceGroupOperationSpec = {
2602
- httpMethod: "GET",
2603
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs",
2604
- urlParameters: [
2605
- subscriptionId,
2606
- resourceGroupName
2607
- ],
2608
- queryParameters: [
2609
- apiVersion,
2610
- skipToken
2611
- ],
2612
- headerParameters: [
2613
- acceptLanguage
2614
- ],
2615
- responses: {
2616
- 200: {
2617
- bodyMapper: JobResourceList
2618
- },
2619
- default: {
2620
- bodyMapper: CloudError
2621
- }
2622
- },
2623
- serializer: serializer$1
2624
- };
2625
- var getOperationSpec = {
2626
- httpMethod: "GET",
2627
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
2628
- urlParameters: [
2629
- subscriptionId,
2630
- resourceGroupName,
2631
- jobName
2632
- ],
2633
- queryParameters: [
2634
- apiVersion,
2635
- expand
2636
- ],
2637
- headerParameters: [
2638
- acceptLanguage
2639
- ],
2640
- responses: {
2641
- 200: {
2642
- bodyMapper: JobResource
2643
- },
2644
- default: {
2645
- bodyMapper: CloudError
2646
- }
2647
- },
2648
- serializer: serializer$1
2649
- };
2650
- var bookShipmentPickUpOperationSpec = {
2651
- httpMethod: "POST",
2652
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp",
2653
- urlParameters: [
2654
- subscriptionId,
2655
- resourceGroupName,
2656
- jobName
2657
- ],
2658
- queryParameters: [
2659
- apiVersion
2660
- ],
2661
- headerParameters: [
2662
- acceptLanguage
2663
- ],
2664
- requestBody: {
2665
- parameterPath: "shipmentPickUpRequest",
2666
- mapper: __assign(__assign({}, ShipmentPickUpRequest), { required: true })
2667
- },
2668
- responses: {
2669
- 200: {
2670
- bodyMapper: ShipmentPickUpResponse
2671
- },
2672
- default: {
2673
- bodyMapper: CloudError
2674
- }
2675
- },
2676
- serializer: serializer$1
2677
- };
2678
- var cancelOperationSpec = {
2679
- httpMethod: "POST",
2680
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel",
2681
- urlParameters: [
2682
- subscriptionId,
2683
- resourceGroupName,
2684
- jobName
2685
- ],
2686
- queryParameters: [
2687
- apiVersion
2688
- ],
2689
- headerParameters: [
2690
- acceptLanguage
2691
- ],
2692
- requestBody: {
2693
- parameterPath: {
2694
- reason: "reason"
2695
- },
2696
- mapper: __assign(__assign({}, CancellationReason), { required: true })
2697
- },
2698
- responses: {
2699
- 204: {},
2700
- default: {
2701
- bodyMapper: CloudError
2702
- }
2703
- },
2704
- serializer: serializer$1
2705
- };
2706
- var listCredentialsOperationSpec = {
2707
- httpMethod: "POST",
2708
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials",
2709
- urlParameters: [
2710
- subscriptionId,
2711
- resourceGroupName,
2712
- jobName
2713
- ],
2714
- queryParameters: [
2715
- apiVersion
2716
- ],
2717
- headerParameters: [
2718
- acceptLanguage
2719
- ],
2720
- responses: {
2721
- 200: {
2722
- bodyMapper: UnencryptedCredentialsList
2723
- },
2724
- default: {
2725
- bodyMapper: CloudError
2726
- }
2727
- },
2728
- serializer: serializer$1
2729
- };
2730
- var beginCreateOperationSpec = {
2731
- httpMethod: "PUT",
2732
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
2733
- urlParameters: [
2734
- subscriptionId,
2735
- resourceGroupName,
2736
- jobName
2737
- ],
2738
- queryParameters: [
2739
- apiVersion
2740
- ],
2741
- headerParameters: [
2742
- acceptLanguage
2743
- ],
2744
- requestBody: {
2745
- parameterPath: "jobResource",
2746
- mapper: __assign(__assign({}, JobResource), { required: true })
2747
- },
2748
- responses: {
2749
- 200: {
2750
- bodyMapper: JobResource
2751
- },
2752
- 202: {},
2753
- default: {
2754
- bodyMapper: CloudError
2755
- }
2756
- },
2757
- serializer: serializer$1
2758
- };
2759
- var beginDeleteMethodOperationSpec = {
2760
- httpMethod: "DELETE",
2761
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
2762
- urlParameters: [
2763
- subscriptionId,
2764
- resourceGroupName,
2765
- jobName
2766
- ],
2767
- queryParameters: [
2768
- apiVersion
2769
- ],
2770
- headerParameters: [
2771
- acceptLanguage
2772
- ],
2773
- responses: {
2774
- 202: {},
2775
- 204: {},
2776
- default: {
2777
- bodyMapper: CloudError
2778
- }
2779
- },
2780
- serializer: serializer$1
2781
- };
2782
- var beginUpdateOperationSpec = {
2783
- httpMethod: "PATCH",
2784
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
2785
- urlParameters: [
2786
- subscriptionId,
2787
- resourceGroupName,
2788
- jobName
2789
- ],
2790
- queryParameters: [
2791
- apiVersion
2792
- ],
2793
- headerParameters: [
2794
- ifMatch,
2795
- acceptLanguage
2796
- ],
2797
- requestBody: {
2798
- parameterPath: "jobResourceUpdateParameter",
2799
- mapper: __assign(__assign({}, JobResourceUpdateParameter), { required: true })
2800
- },
2801
- responses: {
2802
- 200: {
2803
- bodyMapper: JobResource
2804
- },
2805
- 202: {},
2806
- default: {
2807
- bodyMapper: CloudError
2808
- }
2809
- },
2810
- serializer: serializer$1
2811
- };
2812
- var listNextOperationSpec$1 = {
2813
- httpMethod: "GET",
2814
- baseUrl: "https://management.azure.com",
2815
- path: "{nextLink}",
2816
- urlParameters: [
2817
- nextPageLink
2818
- ],
2819
- headerParameters: [
2820
- acceptLanguage
2821
- ],
2822
- responses: {
2823
- 200: {
2824
- bodyMapper: JobResourceList
2825
- },
2826
- default: {
2827
- bodyMapper: CloudError
2828
- }
2829
- },
2830
- serializer: serializer$1
2831
- };
2832
- var listByResourceGroupNextOperationSpec = {
2833
- httpMethod: "GET",
2834
- baseUrl: "https://management.azure.com",
2835
- path: "{nextLink}",
2836
- urlParameters: [
2837
- nextPageLink
2838
- ],
2839
- headerParameters: [
2840
- acceptLanguage
2841
- ],
2842
- responses: {
2843
- 200: {
2844
- bodyMapper: JobResourceList
2845
- },
2846
- default: {
2847
- bodyMapper: CloudError
2848
- }
2849
- },
2850
- serializer: serializer$1
2851
- };
2852
-
2853
- /*
2854
- * Copyright (c) Microsoft Corporation. All rights reserved.
2855
- * Licensed under the MIT License. See License.txt in the project root for license information.
2856
- *
2857
- * Code generated by Microsoft (R) AutoRest Code Generator.
2858
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2859
- */
2860
-
2861
- var Mappers$2 = /*#__PURE__*/Object.freeze({
2862
- __proto__: null,
2863
- discriminators: discriminators,
2864
- AddressValidationOutput: AddressValidationOutput,
2865
- AvailableSkuRequest: AvailableSkuRequest,
2866
- AvailableSkusResult: AvailableSkusResult,
2867
- CloudError: CloudError,
2868
- DestinationToServiceLocationMap: DestinationToServiceLocationMap,
2869
- ShippingAddress: ShippingAddress,
2870
- Sku: Sku,
2871
- SkuCapacity: SkuCapacity,
2872
- SkuCost: SkuCost,
2873
- SkuInformation: SkuInformation,
2874
- ValidateAddress: ValidateAddress
2875
- });
2876
-
2877
- /*
2878
- * Copyright (c) Microsoft Corporation. All rights reserved.
2879
- * Licensed under the MIT License. See License.txt in the project root for
2880
- * license information.
2881
- *
2882
- * Code generated by Microsoft (R) AutoRest Code Generator.
2883
- * Changes may cause incorrect behavior and will be lost if the code is
2884
- * regenerated.
2885
- */
2886
- /** Class representing a Service. */
2887
- var Service = /** @class */ (function () {
2888
- /**
2889
- * Create a Service.
2890
- * @param {DataBoxManagementClientContext} client Reference to the service client.
2891
- */
2892
- function Service(client) {
2893
- this.client = client;
2894
- }
2895
- Service.prototype.listAvailableSkus = function (location, availableSkuRequest, options, callback) {
2896
- return this.client.sendOperationRequest({
2897
- location: location,
2898
- availableSkuRequest: availableSkuRequest,
2899
- options: options
2900
- }, listAvailableSkusOperationSpec, callback);
2901
- };
2902
- Service.prototype.validateAddressMethod = function (location, shippingAddress, deviceType, options, callback) {
2903
- return this.client.sendOperationRequest({
2904
- location: location,
2905
- shippingAddress: shippingAddress,
2906
- deviceType: deviceType,
2907
- options: options
2908
- }, validateAddressMethodOperationSpec, callback);
2909
- };
2910
- Service.prototype.listAvailableSkusNext = function (nextPageLink, options, callback) {
2911
- return this.client.sendOperationRequest({
2912
- nextPageLink: nextPageLink,
2913
- options: options
2914
- }, listAvailableSkusNextOperationSpec, callback);
2915
- };
2916
- return Service;
2917
- }());
2918
- // Operation Specifications
2919
- var serializer$2 = new msRest.Serializer(Mappers$2);
2920
- var listAvailableSkusOperationSpec = {
2921
- httpMethod: "POST",
2922
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/availableSkus",
2923
- urlParameters: [
2924
- subscriptionId,
2925
- location
2926
- ],
2927
- queryParameters: [
2928
- apiVersion
2929
- ],
2930
- headerParameters: [
2931
- acceptLanguage
2932
- ],
2933
- requestBody: {
2934
- parameterPath: "availableSkuRequest",
2935
- mapper: __assign(__assign({}, AvailableSkuRequest), { required: true })
2936
- },
2937
- responses: {
2938
- 200: {
2939
- bodyMapper: AvailableSkusResult
2940
- },
2941
- default: {
2942
- bodyMapper: CloudError
2943
- }
2944
- },
2945
- serializer: serializer$2
2946
- };
2947
- var validateAddressMethodOperationSpec = {
2948
- httpMethod: "POST",
2949
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress",
2950
- urlParameters: [
2951
- subscriptionId,
2952
- location
2953
- ],
2954
- queryParameters: [
2955
- apiVersion
2956
- ],
2957
- headerParameters: [
2958
- acceptLanguage
2959
- ],
2960
- requestBody: {
2961
- parameterPath: {
2962
- shippingAddress: "shippingAddress",
2963
- deviceType: "deviceType"
2964
- },
2965
- mapper: __assign(__assign({}, ValidateAddress), { required: true })
2966
- },
2967
- responses: {
2968
- 200: {
2969
- bodyMapper: AddressValidationOutput
2970
- },
2971
- default: {
2972
- bodyMapper: CloudError
2973
- }
2974
- },
2975
- serializer: serializer$2
2976
- };
2977
- var listAvailableSkusNextOperationSpec = {
2978
- httpMethod: "POST",
2979
- baseUrl: "https://management.azure.com",
2980
- path: "{nextLink}",
2981
- urlParameters: [
2982
- nextPageLink
2983
- ],
2984
- headerParameters: [
2985
- acceptLanguage
2986
- ],
2987
- responses: {
2988
- 200: {
2989
- bodyMapper: AvailableSkusResult
2990
- },
2991
- default: {
2992
- bodyMapper: CloudError
2993
- }
2994
- },
2995
- serializer: serializer$2
2996
- };
2997
-
2998
- /*
2999
- * Copyright (c) Microsoft Corporation. All rights reserved.
3000
- * Licensed under the MIT License. See License.txt in the project root for
3001
- * license information.
3002
- *
3003
- * Code generated by Microsoft (R) AutoRest Code Generator.
3004
- * Changes may cause incorrect behavior and will be lost if the code is
3005
- * regenerated.
3006
- */
3007
- var packageName = "@azure/arm-databox";
3008
- var packageVersion = "3.0.0";
3009
- var DataBoxManagementClientContext = /** @class */ (function (_super) {
3010
- __extends(DataBoxManagementClientContext, _super);
3011
- /**
3012
- * Initializes a new instance of the DataBoxManagementClient class.
3013
- * @param credentials Credentials needed for the client to connect to Azure.
3014
- * @param subscriptionId The Subscription Id
3015
- * @param [options] The parameter options
3016
- */
3017
- function DataBoxManagementClientContext(credentials, subscriptionId, options) {
3018
- var _this = this;
3019
- if (credentials == undefined) {
3020
- throw new Error("'credentials' cannot be null.");
3021
- }
3022
- if (subscriptionId == undefined) {
3023
- throw new Error("'subscriptionId' cannot be null.");
3024
- }
3025
- if (!options) {
3026
- options = {};
3027
- }
3028
- if (!options.userAgent) {
3029
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
3030
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
3031
- }
3032
- _this = _super.call(this, credentials, options) || this;
3033
- _this.apiVersion = "2018-01-01";
3034
- _this.acceptLanguage = "en-US";
3035
- _this.longRunningOperationRetryTimeout = 30;
3036
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
3037
- _this.requestContentType = "application/json; charset=utf-8";
3038
- _this.credentials = credentials;
3039
- _this.subscriptionId = subscriptionId;
3040
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
3041
- _this.acceptLanguage = options.acceptLanguage;
3042
- }
3043
- if (options.longRunningOperationRetryTimeout !== null &&
3044
- options.longRunningOperationRetryTimeout !== undefined) {
3045
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
3046
- }
3047
- return _this;
3048
- }
3049
- return DataBoxManagementClientContext;
3050
- }(msRestAzure.AzureServiceClient));
3051
-
3052
- /*
3053
- * Copyright (c) Microsoft Corporation. All rights reserved.
3054
- * Licensed under the MIT License. See License.txt in the project root for
3055
- * license information.
3056
- *
3057
- * Code generated by Microsoft (R) AutoRest Code Generator.
3058
- * Changes may cause incorrect behavior and will be lost if the code is
3059
- * regenerated.
3060
- */
3061
- var DataBoxManagementClient = /** @class */ (function (_super) {
3062
- __extends(DataBoxManagementClient, _super);
3063
- /**
3064
- * Initializes a new instance of the DataBoxManagementClient class.
3065
- * @param credentials Credentials needed for the client to connect to Azure.
3066
- * @param subscriptionId The Subscription Id
3067
- * @param [options] The parameter options
3068
- */
3069
- function DataBoxManagementClient(credentials, subscriptionId, options) {
3070
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
3071
- _this.operations = new Operations(_this);
3072
- _this.jobs = new Jobs(_this);
3073
- _this.service = new Service(_this);
3074
- return _this;
3075
- }
3076
- return DataBoxManagementClient;
3077
- }(DataBoxManagementClientContext));
3078
-
3079
- exports.DataBoxManagementClient = DataBoxManagementClient;
3080
- exports.DataBoxManagementClientContext = DataBoxManagementClientContext;
3081
- exports.DataBoxManagementMappers = mappers;
3082
- exports.DataBoxManagementModels = index;
3083
- exports.Jobs = Jobs;
3084
- exports.Operations = Operations;
3085
- exports.Service = Service;
3086
-
3087
- Object.defineProperty(exports, '__esModule', { value: true });
3088
-
3089
- })));
3090
- //# sourceMappingURL=arm-databox.js.map