@azure/arm-storageimportexport 0.1.0 → 2.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  4. package/dist/index.js +1999 -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/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +504 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +40 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +25 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/{esm → dist-esm/src}/models/mappers.js +570 -422
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +17 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/parameters.js +79 -49
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/dist-esm/src/operations/bitLockerKeys.d.ts +32 -0
  25. package/dist-esm/src/operations/bitLockerKeys.d.ts.map +1 -0
  26. package/dist-esm/src/operations/bitLockerKeys.js +101 -0
  27. package/dist-esm/src/operations/bitLockerKeys.js.map +1 -0
  28. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/operations/index.js +3 -5
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/jobs.d.ts +92 -0
  33. package/dist-esm/src/operations/jobs.d.ts.map +1 -0
  34. package/dist-esm/src/operations/jobs.js +376 -0
  35. package/dist-esm/src/operations/jobs.js.map +1 -0
  36. package/dist-esm/src/operations/locations.d.ts +35 -0
  37. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/locations.js +117 -0
  39. package/dist-esm/src/operations/locations.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +26 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +90 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts +14 -0
  45. package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/bitLockerKeys.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/bitLockerKeys.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/jobs.d.ts +54 -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/locations.d.ts +19 -0
  57. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  64. package/dist-esm/src/storageImportExport.d.ts +22 -0
  65. package/dist-esm/src/storageImportExport.d.ts.map +1 -0
  66. package/dist-esm/src/storageImportExport.js +54 -0
  67. package/dist-esm/src/storageImportExport.js.map +1 -0
  68. package/dist-esm/test/sampleTest.d.ts +2 -0
  69. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  70. package/dist-esm/test/sampleTest.js +40 -0
  71. package/dist-esm/test/sampleTest.js.map +1 -0
  72. package/package.json +87 -26
  73. package/review/arm-storageimportexport.api.md +438 -0
  74. package/rollup.config.js +184 -27
  75. package/src/index.ts +12 -0
  76. package/src/models/index.ts +568 -0
  77. package/{lib → src}/models/mappers.ts +575 -424
  78. package/src/models/parameters.ts +171 -0
  79. package/src/operations/bitLockerKeys.ts +125 -0
  80. package/{lib → src}/operations/index.ts +3 -5
  81. package/src/operations/jobs.ts +467 -0
  82. package/src/operations/locations.ts +134 -0
  83. package/src/operations/operations.ts +98 -0
  84. package/src/operationsInterfaces/bitLockerKeys.ts +27 -0
  85. package/src/operationsInterfaces/index.ts +12 -0
  86. package/src/operationsInterfaces/jobs.ts +99 -0
  87. package/src/operationsInterfaces/locations.ts +38 -0
  88. package/src/operationsInterfaces/operations.ts +22 -0
  89. package/src/storageImportExport.ts +92 -0
  90. package/tsconfig.json +20 -7
  91. package/types/arm-storageimportexport.d.ts +671 -0
  92. package/types/tsdoc-metadata.json +11 -0
  93. package/dist/arm-storageimportexport.js +0 -1754
  94. package/dist/arm-storageimportexport.js.map +0 -1
  95. package/dist/arm-storageimportexport.min.js +0 -1
  96. package/dist/arm-storageimportexport.min.js.map +0 -1
  97. package/esm/models/bitLockerKeysMappers.d.ts +0 -2
  98. package/esm/models/bitLockerKeysMappers.d.ts.map +0 -1
  99. package/esm/models/bitLockerKeysMappers.js +0 -11
  100. package/esm/models/bitLockerKeysMappers.js.map +0 -1
  101. package/esm/models/index.d.ts +0 -928
  102. package/esm/models/index.d.ts.map +0 -1
  103. package/esm/models/index.js +0 -10
  104. package/esm/models/index.js.map +0 -1
  105. package/esm/models/jobsMappers.d.ts +0 -2
  106. package/esm/models/jobsMappers.d.ts.map +0 -1
  107. package/esm/models/jobsMappers.js +0 -11
  108. package/esm/models/jobsMappers.js.map +0 -1
  109. package/esm/models/locationsMappers.d.ts +0 -2
  110. package/esm/models/locationsMappers.d.ts.map +0 -1
  111. package/esm/models/locationsMappers.js +0 -11
  112. package/esm/models/locationsMappers.js.map +0 -1
  113. package/esm/models/mappers.d.ts +0 -23
  114. package/esm/models/mappers.d.ts.map +0 -1
  115. package/esm/models/mappers.js.map +0 -1
  116. package/esm/models/operationsMappers.d.ts +0 -2
  117. package/esm/models/operationsMappers.d.ts.map +0 -1
  118. package/esm/models/operationsMappers.js +0 -11
  119. package/esm/models/operationsMappers.js.map +0 -1
  120. package/esm/models/parameters.d.ts +0 -12
  121. package/esm/models/parameters.d.ts.map +0 -1
  122. package/esm/models/parameters.js.map +0 -1
  123. package/esm/operations/bitLockerKeys.d.ts +0 -37
  124. package/esm/operations/bitLockerKeys.d.ts.map +0 -1
  125. package/esm/operations/bitLockerKeys.js +0 -58
  126. package/esm/operations/bitLockerKeys.js.map +0 -1
  127. package/esm/operations/index.d.ts.map +0 -1
  128. package/esm/operations/index.js.map +0 -1
  129. package/esm/operations/jobs.d.ts +0 -189
  130. package/esm/operations/jobs.d.ts.map +0 -1
  131. package/esm/operations/jobs.js +0 -276
  132. package/esm/operations/jobs.js.map +0 -1
  133. package/esm/operations/locations.d.ts +0 -48
  134. package/esm/operations/locations.d.ts.map +0 -1
  135. package/esm/operations/locations.js +0 -79
  136. package/esm/operations/locations.js.map +0 -1
  137. package/esm/operations/operations.d.ts +0 -28
  138. package/esm/operations/operations.d.ts.map +0 -1
  139. package/esm/operations/operations.js +0 -51
  140. package/esm/operations/operations.js.map +0 -1
  141. package/esm/storageImportExportManagementClient.d.ts +0 -21
  142. package/esm/storageImportExportManagementClient.d.ts.map +0 -1
  143. package/esm/storageImportExportManagementClient.js +0 -36
  144. package/esm/storageImportExportManagementClient.js.map +0 -1
  145. package/esm/storageImportExportManagementClientContext.d.ts +0 -16
  146. package/esm/storageImportExportManagementClientContext.d.ts.map +0 -1
  147. package/esm/storageImportExportManagementClientContext.js +0 -55
  148. package/esm/storageImportExportManagementClientContext.js.map +0 -1
  149. package/lib/models/bitLockerKeysMappers.ts +0 -17
  150. package/lib/models/index.ts +0 -975
  151. package/lib/models/jobsMappers.ts +0 -27
  152. package/lib/models/locationsMappers.ts +0 -17
  153. package/lib/models/operationsMappers.ts +0 -17
  154. package/lib/models/parameters.ts +0 -120
  155. package/lib/operations/bitLockerKeys.ts +0 -90
  156. package/lib/operations/jobs.ts +0 -500
  157. package/lib/operations/locations.ts +0 -127
  158. package/lib/operations/operations.ts +0 -74
  159. package/lib/storageImportExportManagementClient.ts +0 -48
  160. package/lib/storageImportExportManagementClientContext.ts +0 -61
@@ -1,975 +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
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
12
- import * as msRest from "@azure/ms-rest-js";
13
-
14
- export { BaseResource, CloudError };
15
-
16
-
17
- /**
18
- * @interface
19
- * An interface representing ErrorResponseErrorDetailsItem.
20
- */
21
- export interface ErrorResponseErrorDetailsItem {
22
- /**
23
- * @member {string} [code] Provides information about the error code.
24
- */
25
- code?: string;
26
- /**
27
- * @member {string} [target] Provides information about the error target.
28
- */
29
- target?: string;
30
- /**
31
- * @member {string} [message] Provides information about the error message.
32
- */
33
- message?: string;
34
- }
35
-
36
- /**
37
- * @interface
38
- * An interface representing ErrorResponse.
39
- * Response when errors occurred
40
- *
41
- */
42
- export interface ErrorResponse {
43
- /**
44
- * @member {string} [code] Provides information about the error code.
45
- */
46
- code?: string;
47
- /**
48
- * @member {string} [message] Provides information about the error message.
49
- */
50
- message?: string;
51
- /**
52
- * @member {string} [target] Provides information about the error target.
53
- */
54
- target?: string;
55
- /**
56
- * @member {ErrorResponseErrorDetailsItem[]} [details] Describes the error
57
- * details if present.
58
- */
59
- details?: ErrorResponseErrorDetailsItem[];
60
- /**
61
- * @member {any} [innererror] Inner error object if present.
62
- */
63
- innererror?: any;
64
- }
65
-
66
- /**
67
- * @interface
68
- * An interface representing ReturnAddress.
69
- * Specifies the return address information for the job.
70
- *
71
- */
72
- export interface ReturnAddress {
73
- /**
74
- * @member {string} recipientName The name of the recipient who will receive
75
- * the hard drives when they are returned.
76
- */
77
- recipientName: string;
78
- /**
79
- * @member {string} streetAddress1 The first line of the street address to
80
- * use when returning the drives.
81
- */
82
- streetAddress1: string;
83
- /**
84
- * @member {string} [streetAddress2] The second line of the street address to
85
- * use when returning the drives.
86
- */
87
- streetAddress2?: string;
88
- /**
89
- * @member {string} city The city name to use when returning the drives.
90
- */
91
- city: string;
92
- /**
93
- * @member {string} [stateOrProvince] The state or province to use when
94
- * returning the drives.
95
- */
96
- stateOrProvince?: string;
97
- /**
98
- * @member {string} postalCode The postal code to use when returning the
99
- * drives.
100
- */
101
- postalCode: string;
102
- /**
103
- * @member {string} countryOrRegion The country or region to use when
104
- * returning the drives.
105
- */
106
- countryOrRegion: string;
107
- /**
108
- * @member {string} phone Phone number of the recipient of the returned
109
- * drives.
110
- */
111
- phone: string;
112
- /**
113
- * @member {string} email Email address of the recipient of the returned
114
- * drives.
115
- */
116
- email: string;
117
- }
118
-
119
- /**
120
- * @interface
121
- * An interface representing ReturnShipping.
122
- * Specifies the return carrier and customer's account with the carrier.
123
- *
124
- */
125
- export interface ReturnShipping {
126
- /**
127
- * @member {string} carrierName The carrier's name.
128
- */
129
- carrierName: string;
130
- /**
131
- * @member {string} carrierAccountNumber The customer's account number with
132
- * the carrier.
133
- */
134
- carrierAccountNumber: string;
135
- }
136
-
137
- /**
138
- * @interface
139
- * An interface representing ShippingInformation.
140
- * Contains information about the Microsoft datacenter to which the drives
141
- * should be shipped.
142
- *
143
- */
144
- export interface ShippingInformation {
145
- /**
146
- * @member {string} recipientName The name of the recipient who will receive
147
- * the hard drives when they are returned.
148
- */
149
- recipientName: string;
150
- /**
151
- * @member {string} streetAddress1 The first line of the street address to
152
- * use when returning the drives.
153
- */
154
- streetAddress1: string;
155
- /**
156
- * @member {string} [streetAddress2] The second line of the street address to
157
- * use when returning the drives.
158
- */
159
- streetAddress2?: string;
160
- /**
161
- * @member {string} city The city name to use when returning the drives.
162
- */
163
- city: string;
164
- /**
165
- * @member {string} stateOrProvince The state or province to use when
166
- * returning the drives.
167
- */
168
- stateOrProvince: string;
169
- /**
170
- * @member {string} postalCode The postal code to use when returning the
171
- * drives.
172
- */
173
- postalCode: string;
174
- /**
175
- * @member {string} countryOrRegion The country or region to use when
176
- * returning the drives.
177
- */
178
- countryOrRegion: string;
179
- /**
180
- * @member {string} [phone] Phone number of the recipient of the returned
181
- * drives.
182
- */
183
- phone?: string;
184
- }
185
-
186
- /**
187
- * @interface
188
- * An interface representing PackageInfomation.
189
- * Contains information about the package being shipped by the customer to the
190
- * Microsoft data center.
191
- *
192
- */
193
- export interface PackageInfomation {
194
- /**
195
- * @member {string} carrierName The name of the carrier that is used to ship
196
- * the import or export drives.
197
- */
198
- carrierName: string;
199
- /**
200
- * @member {string} trackingNumber The tracking number of the package.
201
- */
202
- trackingNumber: string;
203
- /**
204
- * @member {number} driveCount The number of drives included in the package.
205
- */
206
- driveCount: number;
207
- /**
208
- * @member {string} shipDate The date when the package is shipped.
209
- */
210
- shipDate: string;
211
- }
212
-
213
- /**
214
- * @interface
215
- * An interface representing DriveStatus.
216
- * Provides information about the drive's status
217
- *
218
- */
219
- export interface DriveStatus {
220
- /**
221
- * @member {string} [driveId] The drive's hardware serial number, without
222
- * spaces.
223
- */
224
- driveId?: string;
225
- /**
226
- * @member {string} [bitLockerKey] The BitLocker key used to encrypt the
227
- * drive.
228
- */
229
- bitLockerKey?: string;
230
- /**
231
- * @member {string} [manifestFile] The relative path of the manifest file on
232
- * the drive.
233
- */
234
- manifestFile?: string;
235
- /**
236
- * @member {string} [manifestHash] The Base16-encoded MD5 hash of the
237
- * manifest file on the drive.
238
- */
239
- manifestHash?: string;
240
- /**
241
- * @member {string} [driveHeaderHash] The drive header hash value.
242
- */
243
- driveHeaderHash?: string;
244
- /**
245
- * @member {DriveState} [state] The drive's current state. Possible values
246
- * include: 'Specified', 'Received', 'NeverReceived', 'Transferring',
247
- * 'Completed', 'CompletedMoreInfo', 'ShippedBack'
248
- */
249
- state?: DriveState;
250
- /**
251
- * @member {string} [copyStatus] Detailed status about the data transfer
252
- * process. This field is not returned in the response until the drive is in
253
- * the Transferring state.
254
- */
255
- copyStatus?: string;
256
- /**
257
- * @member {number} [percentComplete] Percentage completed for the drive.
258
- */
259
- percentComplete?: number;
260
- /**
261
- * @member {string} [verboseLogUri] A URI that points to the blob containing
262
- * the verbose log for the data transfer operation.
263
- */
264
- verboseLogUri?: string;
265
- /**
266
- * @member {string} [errorLogUri] A URI that points to the blob containing
267
- * the error log for the data transfer operation.
268
- */
269
- errorLogUri?: string;
270
- /**
271
- * @member {string} [manifestUri] A URI that points to the blob containing
272
- * the drive manifest file.
273
- */
274
- manifestUri?: string;
275
- /**
276
- * @member {number} [bytesSucceeded] Bytes successfully transferred for the
277
- * drive.
278
- */
279
- bytesSucceeded?: number;
280
- }
281
-
282
- /**
283
- * @interface
284
- * An interface representing ExportModel.
285
- * A property containing information about the blobs to be exported for an
286
- * export job. This property is required for export jobs, but must not be
287
- * specified for import jobs.
288
- *
289
- */
290
- export interface ExportModel {
291
- /**
292
- * @member {string[]} [blobPath] A collection of blob-path strings.
293
- */
294
- blobPath?: string[];
295
- /**
296
- * @member {string[]} [blobPathPrefix] A collection of blob-prefix strings.
297
- */
298
- blobPathPrefix?: string[];
299
- /**
300
- * @member {string} [blobListblobPath] The relative URI to the block blob
301
- * that contains the list of blob paths or blob path prefixes as defined
302
- * above, beginning with the container name. If the blob is in root
303
- * container, the URI must begin with $root.
304
- */
305
- blobListblobPath?: string;
306
- }
307
-
308
- /**
309
- * @interface
310
- * An interface representing JobDetails.
311
- * Specifies the job properties
312
- *
313
- */
314
- export interface JobDetails {
315
- /**
316
- * @member {string} [storageAccountId] The resource identifier of the storage
317
- * account where data will be imported to or exported from.
318
- */
319
- storageAccountId?: string;
320
- /**
321
- * @member {string} [jobType] The type of job
322
- */
323
- jobType?: string;
324
- /**
325
- * @member {ReturnAddress} [returnAddress] Specifies the return address
326
- * information for the job.
327
- */
328
- returnAddress?: ReturnAddress;
329
- /**
330
- * @member {ReturnShipping} [returnShipping] Specifies the return carrier and
331
- * customer's account with the carrier.
332
- */
333
- returnShipping?: ReturnShipping;
334
- /**
335
- * @member {ShippingInformation} [shippingInformation] Contains information
336
- * about the Microsoft datacenter to which the drives should be shipped.
337
- */
338
- shippingInformation?: ShippingInformation;
339
- /**
340
- * @member {PackageInfomation} [deliveryPackage] Contains information about
341
- * the package being shipped by the customer to the Microsoft data center.
342
- */
343
- deliveryPackage?: PackageInfomation;
344
- /**
345
- * @member {PackageInfomation} [returnPackage] Contains information about the
346
- * package being shipped from the Microsoft data center to the customer to
347
- * return the drives. The format is the same as the deliveryPackage property
348
- * above. This property is not included if the drives have not yet been
349
- * returned.
350
- */
351
- returnPackage?: PackageInfomation;
352
- /**
353
- * @member {string} [diagnosticsPath] The virtual blob directory to which the
354
- * copy logs and backups of drive manifest files (if enabled) will be stored.
355
- */
356
- diagnosticsPath?: string;
357
- /**
358
- * @member {string} [logLevel] Default value is Error. Indicates whether
359
- * error logging or verbose logging will be enabled.
360
- */
361
- logLevel?: string;
362
- /**
363
- * @member {boolean} [backupDriveManifest] Default value is false. Indicates
364
- * whether the manifest files on the drives should be copied to block blobs.
365
- */
366
- backupDriveManifest?: boolean;
367
- /**
368
- * @member {string} [state] Current state of the job.
369
- */
370
- state?: string;
371
- /**
372
- * @member {boolean} [cancelRequested] Indicates whether a request has been
373
- * submitted to cancel the job.
374
- */
375
- cancelRequested?: boolean;
376
- /**
377
- * @member {number} [percentComplete] Overall percentage completed for the
378
- * job.
379
- */
380
- percentComplete?: number;
381
- /**
382
- * @member {string} [incompleteBlobListUri] A blob path that points to a
383
- * block blob containing a list of blob names that were not exported due to
384
- * insufficient drive space. If all blobs were exported successfully, then
385
- * this element is not included in the response.
386
- */
387
- incompleteBlobListUri?: string;
388
- /**
389
- * @member {DriveStatus[]} [driveList] List of up to ten drives that comprise
390
- * the job. The drive list is a required element for an import job; it is not
391
- * specified for export jobs.
392
- */
393
- driveList?: DriveStatus[];
394
- /**
395
- * @member {ExportModel} [exportProperty] A property containing information
396
- * about the blobs to be exported for an export job. This property is
397
- * included for export jobs only.
398
- */
399
- exportProperty?: ExportModel;
400
- /**
401
- * @member {string} [provisioningState] Specifies the provisioning state of
402
- * the job.
403
- */
404
- provisioningState?: string;
405
- }
406
-
407
- /**
408
- * @interface
409
- * An interface representing PutJobParameters.
410
- * Put Job parameters
411
- *
412
- */
413
- export interface PutJobParameters {
414
- /**
415
- * @member {string} [location] Specifies the supported Azure location where
416
- * the job should be created
417
- */
418
- location?: string;
419
- /**
420
- * @member {any} [tags] Specifies the tags that will be assigned to the job.
421
- */
422
- tags?: any;
423
- /**
424
- * @member {JobDetails} [properties] Specifies the job properties
425
- */
426
- properties?: JobDetails;
427
- }
428
-
429
- /**
430
- * @interface
431
- * An interface representing UpdateJobParameters.
432
- * Update Job parameters
433
- *
434
- */
435
- export interface UpdateJobParameters {
436
- /**
437
- * @member {any} [tags] Specifies the tags that will be assigned to the job
438
- */
439
- tags?: any;
440
- /**
441
- * @member {boolean} [cancelRequested] If specified, the value must be true.
442
- * The service will attempt to cancel the job.
443
- */
444
- cancelRequested?: boolean;
445
- /**
446
- * @member {string} [state] If specified, the value must be Shipping, which
447
- * tells the Import/Export service that the package for the job has been
448
- * shipped. The ReturnAddress and DeliveryPackage properties must have been
449
- * set either in this request or in a previous request, otherwise the request
450
- * will fail.
451
- */
452
- state?: string;
453
- /**
454
- * @member {ReturnAddress} [returnAddress] Specifies the return address
455
- * information for the job.
456
- */
457
- returnAddress?: ReturnAddress;
458
- /**
459
- * @member {ReturnShipping} [returnShipping] Specifies the return carrier and
460
- * customer's account with the carrier.
461
- */
462
- returnShipping?: ReturnShipping;
463
- /**
464
- * @member {PackageInfomation} [deliveryPackage] Contains information about
465
- * the package being shipped by the customer to the Microsoft data center.
466
- */
467
- deliveryPackage?: PackageInfomation;
468
- /**
469
- * @member {string} [logLevel] Indicates whether error logging or verbose
470
- * logging is enabled.
471
- */
472
- logLevel?: string;
473
- /**
474
- * @member {boolean} [backupDriveManifest] Indicates whether the manifest
475
- * files on the drives should be copied to block blobs.
476
- */
477
- backupDriveManifest?: boolean;
478
- /**
479
- * @member {DriveStatus[]} [driveList] List of drives that comprise the job.
480
- */
481
- driveList?: DriveStatus[];
482
- }
483
-
484
- /**
485
- * @interface
486
- * An interface representing JobResponse.
487
- * Contains the job information.
488
- *
489
- * @extends BaseResource
490
- */
491
- export interface JobResponse extends BaseResource {
492
- /**
493
- * @member {string} [id] Specifies the resource identifier of the job.
494
- * **NOTE: This property will not be serialized. It can only be populated by
495
- * the server.**
496
- */
497
- readonly id?: string;
498
- /**
499
- * @member {string} [name] Specifies the name of the job.
500
- * **NOTE: This property will not be serialized. It can only be populated by
501
- * the server.**
502
- */
503
- readonly name?: string;
504
- /**
505
- * @member {string} [type] Specifies the type of the job resource.
506
- * **NOTE: This property will not be serialized. It can only be populated by
507
- * the server.**
508
- */
509
- readonly type?: string;
510
- /**
511
- * @member {string} [location] Specifies the Azure location where the job is
512
- * created.
513
- */
514
- location?: string;
515
- /**
516
- * @member {any} [tags] Specifies the tags that are assigned to the job.
517
- */
518
- tags?: any;
519
- /**
520
- * @member {JobDetails} [properties] Specifies the job properties
521
- */
522
- properties?: JobDetails;
523
- }
524
-
525
- /**
526
- * @interface
527
- * An interface representing Operation.
528
- * Describes a supported operation by the Storage Import/Export job API.
529
- *
530
- */
531
- export interface Operation {
532
- /**
533
- * @member {string} name Name of the operation.
534
- */
535
- name: string;
536
- /**
537
- * @member {string} [provider] The resource provider name to which the
538
- * operation belongs.
539
- */
540
- provider?: string;
541
- /**
542
- * @member {string} [resource] The name of the resource to which the
543
- * operation belongs.
544
- */
545
- resource?: string;
546
- /**
547
- * @member {string} [operation] The display name of the operation.
548
- */
549
- operation?: string;
550
- /**
551
- * @member {string} [description] Short description of the operation.
552
- */
553
- description?: string;
554
- }
555
-
556
- /**
557
- * @interface
558
- * An interface representing Location.
559
- * Provides information about an Azure data center location.
560
- *
561
- */
562
- export interface Location {
563
- /**
564
- * @member {string} [id] Specifies the resource identifier of the location.
565
- */
566
- id?: string;
567
- /**
568
- * @member {string} [name] Specifies the name of the location. Use List
569
- * Locations to get all supported locations.
570
- */
571
- name?: string;
572
- /**
573
- * @member {string} [type] Specifies the type of the location.
574
- */
575
- type?: string;
576
- /**
577
- * @member {string} [recipientName] The recipient name to use when shipping
578
- * the drives to the Azure data center.
579
- */
580
- recipientName?: string;
581
- /**
582
- * @member {string} [streetAddress1] The first line of the street address to
583
- * use when shipping the drives to the Azure data center.
584
- */
585
- streetAddress1?: string;
586
- /**
587
- * @member {string} [streetAddress2] The second line of the street address to
588
- * use when shipping the drives to the Azure data center.
589
- */
590
- streetAddress2?: string;
591
- /**
592
- * @member {string} [city] The city name to use when shipping the drives to
593
- * the Azure data center.
594
- */
595
- city?: string;
596
- /**
597
- * @member {string} [stateOrProvince] The state or province to use when
598
- * shipping the drives to the Azure data center.
599
- */
600
- stateOrProvince?: string;
601
- /**
602
- * @member {string} [postalCode] The postal code to use when shipping the
603
- * drives to the Azure data center.
604
- */
605
- postalCode?: string;
606
- /**
607
- * @member {string} [countryOrRegion] The country or region to use when
608
- * shipping the drives to the Azure data center.
609
- */
610
- countryOrRegion?: string;
611
- /**
612
- * @member {string} [phone] The phone number for the Azure data center.
613
- */
614
- phone?: string;
615
- /**
616
- * @member {string[]} [supportedCarriers] A list of carriers that are
617
- * supported at this location.
618
- */
619
- supportedCarriers?: string[];
620
- /**
621
- * @member {string[]} [alternateLocations] A list of location IDs that should
622
- * be used to ship shipping drives to for jobs created against the current
623
- * location. If the current location is active, it will be part of the list.
624
- * If it is temporarily closed due to maintenance, this list may contain
625
- * other locations.
626
- */
627
- alternateLocations?: string[];
628
- }
629
-
630
- /**
631
- * @interface
632
- * An interface representing DriveBitLockerKey.
633
- * BitLocker recovery key or password to the specified drive
634
- *
635
- */
636
- export interface DriveBitLockerKey {
637
- /**
638
- * @member {string} [bitLockerKey] BitLocker recovery key or password
639
- */
640
- bitLockerKey?: string;
641
- /**
642
- * @member {string} [driveId] Drive ID
643
- */
644
- driveId?: string;
645
- }
646
-
647
- /**
648
- * @interface
649
- * An interface representing JobsListBySubscriptionOptionalParams.
650
- * Optional Parameters.
651
- *
652
- * @extends RequestOptionsBase
653
- */
654
- export interface JobsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase {
655
- /**
656
- * @member {number} [top] An integer value that specifies how many jobs at
657
- * most should be returned. The value cannot exceed 100.
658
- */
659
- top?: number;
660
- /**
661
- * @member {string} [filter] Can be used to restrict the results to certain
662
- * conditions.
663
- */
664
- filter?: string;
665
- }
666
-
667
- /**
668
- * @interface
669
- * An interface representing JobsListByResourceGroupOptionalParams.
670
- * Optional Parameters.
671
- *
672
- * @extends RequestOptionsBase
673
- */
674
- export interface JobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
675
- /**
676
- * @member {number} [top] An integer value that specifies how many jobs at
677
- * most should be returned. The value cannot exceed 100.
678
- */
679
- top?: number;
680
- /**
681
- * @member {string} [filter] Can be used to restrict the results to certain
682
- * conditions.
683
- */
684
- filter?: string;
685
- }
686
-
687
- /**
688
- * @interface
689
- * An interface representing JobsCreateOptionalParams.
690
- * Optional Parameters.
691
- *
692
- * @extends RequestOptionsBase
693
- */
694
- export interface JobsCreateOptionalParams extends msRest.RequestOptionsBase {
695
- /**
696
- * @member {string} [clientTenantId] The tenant ID of the client making the
697
- * request.
698
- */
699
- clientTenantId?: string;
700
- }
701
-
702
- /**
703
- * @interface
704
- * An interface representing StorageImportExportManagementClientOptions.
705
- * @extends AzureServiceClientOptions
706
- */
707
- export interface StorageImportExportManagementClientOptions extends AzureServiceClientOptions {
708
- /**
709
- * @member {string} [baseUri]
710
- */
711
- baseUri?: string;
712
- }
713
-
714
-
715
- /**
716
- * @interface
717
- * An interface representing the LocationsResponse.
718
- * Locations response
719
- *
720
- * @extends Array<Location>
721
- */
722
- export interface LocationsResponse extends Array<Location> {
723
- }
724
-
725
- /**
726
- * @interface
727
- * An interface representing the ListJobsResponse.
728
- * List jobs response
729
- *
730
- * @extends Array<JobResponse>
731
- */
732
- export interface ListJobsResponse extends Array<JobResponse> {
733
- /**
734
- * @member {string} [nextLink] link to next batch of jobs
735
- */
736
- nextLink?: string;
737
- }
738
-
739
- /**
740
- * @interface
741
- * An interface representing the GetBitLockerKeysResponse.
742
- * GetBitLockerKeys response
743
- *
744
- * @extends Array<DriveBitLockerKey>
745
- */
746
- export interface GetBitLockerKeysResponse extends Array<DriveBitLockerKey> {
747
- }
748
-
749
- /**
750
- * @interface
751
- * An interface representing the ListOperationsResponse.
752
- * List operations response
753
- *
754
- * @extends Array<Operation>
755
- */
756
- export interface ListOperationsResponse extends Array<Operation> {
757
- }
758
-
759
- /**
760
- * Defines values for DriveState.
761
- * Possible values include: 'Specified', 'Received', 'NeverReceived', 'Transferring', 'Completed',
762
- * 'CompletedMoreInfo', 'ShippedBack'
763
- * @readonly
764
- * @enum {string}
765
- */
766
- export type DriveState = 'Specified' | 'Received' | 'NeverReceived' | 'Transferring' | 'Completed' | 'CompletedMoreInfo' | 'ShippedBack';
767
-
768
- /**
769
- * Contains response data for the list operation.
770
- */
771
- export type LocationsListResponse = LocationsResponse & {
772
- /**
773
- * The underlying HTTP response.
774
- */
775
- _response: msRest.HttpResponse & {
776
- /**
777
- * The response body as text (string format)
778
- */
779
- bodyAsText: string;
780
- /**
781
- * The response body as parsed JSON or XML
782
- */
783
- parsedBody: LocationsResponse;
784
- };
785
- };
786
-
787
- /**
788
- * Contains response data for the get operation.
789
- */
790
- export type LocationsGetResponse = Location & {
791
- /**
792
- * The underlying HTTP response.
793
- */
794
- _response: msRest.HttpResponse & {
795
- /**
796
- * The response body as text (string format)
797
- */
798
- bodyAsText: string;
799
- /**
800
- * The response body as parsed JSON or XML
801
- */
802
- parsedBody: Location;
803
- };
804
- };
805
-
806
- /**
807
- * Contains response data for the listBySubscription operation.
808
- */
809
- export type JobsListBySubscriptionResponse = ListJobsResponse & {
810
- /**
811
- * The underlying HTTP response.
812
- */
813
- _response: msRest.HttpResponse & {
814
- /**
815
- * The response body as text (string format)
816
- */
817
- bodyAsText: string;
818
- /**
819
- * The response body as parsed JSON or XML
820
- */
821
- parsedBody: ListJobsResponse;
822
- };
823
- };
824
-
825
- /**
826
- * Contains response data for the listByResourceGroup operation.
827
- */
828
- export type JobsListByResourceGroupResponse = ListJobsResponse & {
829
- /**
830
- * The underlying HTTP response.
831
- */
832
- _response: msRest.HttpResponse & {
833
- /**
834
- * The response body as text (string format)
835
- */
836
- bodyAsText: string;
837
- /**
838
- * The response body as parsed JSON or XML
839
- */
840
- parsedBody: ListJobsResponse;
841
- };
842
- };
843
-
844
- /**
845
- * Contains response data for the get operation.
846
- */
847
- export type JobsGetResponse = JobResponse & {
848
- /**
849
- * The underlying HTTP response.
850
- */
851
- _response: msRest.HttpResponse & {
852
- /**
853
- * The response body as text (string format)
854
- */
855
- bodyAsText: string;
856
- /**
857
- * The response body as parsed JSON or XML
858
- */
859
- parsedBody: JobResponse;
860
- };
861
- };
862
-
863
- /**
864
- * Contains response data for the update operation.
865
- */
866
- export type JobsUpdateResponse = JobResponse & {
867
- /**
868
- * The underlying HTTP response.
869
- */
870
- _response: msRest.HttpResponse & {
871
- /**
872
- * The response body as text (string format)
873
- */
874
- bodyAsText: string;
875
- /**
876
- * The response body as parsed JSON or XML
877
- */
878
- parsedBody: JobResponse;
879
- };
880
- };
881
-
882
- /**
883
- * Contains response data for the create operation.
884
- */
885
- export type JobsCreateResponse = JobResponse & {
886
- /**
887
- * The underlying HTTP response.
888
- */
889
- _response: msRest.HttpResponse & {
890
- /**
891
- * The response body as text (string format)
892
- */
893
- bodyAsText: string;
894
- /**
895
- * The response body as parsed JSON or XML
896
- */
897
- parsedBody: JobResponse;
898
- };
899
- };
900
-
901
- /**
902
- * Contains response data for the listBySubscriptionNext operation.
903
- */
904
- export type JobsListBySubscriptionNextResponse = ListJobsResponse & {
905
- /**
906
- * The underlying HTTP response.
907
- */
908
- _response: msRest.HttpResponse & {
909
- /**
910
- * The response body as text (string format)
911
- */
912
- bodyAsText: string;
913
- /**
914
- * The response body as parsed JSON or XML
915
- */
916
- parsedBody: ListJobsResponse;
917
- };
918
- };
919
-
920
- /**
921
- * Contains response data for the listByResourceGroupNext operation.
922
- */
923
- export type JobsListByResourceGroupNextResponse = ListJobsResponse & {
924
- /**
925
- * The underlying HTTP response.
926
- */
927
- _response: msRest.HttpResponse & {
928
- /**
929
- * The response body as text (string format)
930
- */
931
- bodyAsText: string;
932
- /**
933
- * The response body as parsed JSON or XML
934
- */
935
- parsedBody: ListJobsResponse;
936
- };
937
- };
938
-
939
- /**
940
- * Contains response data for the list operation.
941
- */
942
- export type BitLockerKeysListResponse = GetBitLockerKeysResponse & {
943
- /**
944
- * The underlying HTTP response.
945
- */
946
- _response: msRest.HttpResponse & {
947
- /**
948
- * The response body as text (string format)
949
- */
950
- bodyAsText: string;
951
- /**
952
- * The response body as parsed JSON or XML
953
- */
954
- parsedBody: GetBitLockerKeysResponse;
955
- };
956
- };
957
-
958
- /**
959
- * Contains response data for the list operation.
960
- */
961
- export type OperationsListResponse = ListOperationsResponse & {
962
- /**
963
- * The underlying HTTP response.
964
- */
965
- _response: msRest.HttpResponse & {
966
- /**
967
- * The response body as text (string format)
968
- */
969
- bodyAsText: string;
970
- /**
971
- * The response body as parsed JSON or XML
972
- */
973
- parsedBody: ListOperationsResponse;
974
- };
975
- };