@azure/arm-storageimportexport 1.3.1 → 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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1999 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +504 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +40 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +570 -422
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +79 -49
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/bitLockerKeys.d.ts +32 -0
- package/dist-esm/src/operations/bitLockerKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/bitLockerKeys.js +101 -0
- package/dist-esm/src/operations/bitLockerKeys.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/jobs.d.ts +92 -0
- package/dist-esm/src/operations/jobs.d.ts.map +1 -0
- package/dist-esm/src/operations/jobs.js +376 -0
- package/dist-esm/src/operations/jobs.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +35 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +117 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/jobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/storageImportExport.d.ts +22 -0
- package/dist-esm/src/storageImportExport.d.ts.map +1 -0
- package/dist-esm/src/storageImportExport.js +54 -0
- package/dist-esm/src/storageImportExport.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +85 -26
- package/review/arm-storageimportexport.api.md +438 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/models/index.ts +432 -839
- package/src/models/mappers.ts +575 -424
- package/src/models/parameters.ts +101 -50
- package/src/operations/bitLockerKeys.ts +90 -55
- package/src/operations/index.ts +3 -5
- package/src/operations/jobs.ts +302 -335
- package/src/operations/locations.ts +85 -78
- package/src/operations/operations.ts +66 -42
- package/src/operationsInterfaces/bitLockerKeys.ts +27 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/jobs.ts +99 -0
- package/src/operationsInterfaces/locations.ts +38 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/storageImportExport.ts +92 -0
- package/tsconfig.json +20 -7
- package/types/arm-storageimportexport.d.ts +671 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-storageimportexport.js +0 -1764
- package/dist/arm-storageimportexport.js.map +0 -1
- package/dist/arm-storageimportexport.min.js +0 -1
- package/dist/arm-storageimportexport.min.js.map +0 -1
- package/esm/models/bitLockerKeysMappers.d.ts +0 -2
- package/esm/models/bitLockerKeysMappers.d.ts.map +0 -1
- package/esm/models/bitLockerKeysMappers.js +0 -11
- package/esm/models/bitLockerKeysMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -928
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/jobsMappers.d.ts +0 -2
- package/esm/models/jobsMappers.d.ts.map +0 -1
- package/esm/models/jobsMappers.js +0 -11
- package/esm/models/jobsMappers.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -11
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -23
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/bitLockerKeys.d.ts +0 -37
- package/esm/operations/bitLockerKeys.d.ts.map +0 -1
- package/esm/operations/bitLockerKeys.js +0 -58
- package/esm/operations/bitLockerKeys.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/jobs.d.ts +0 -189
- package/esm/operations/jobs.d.ts.map +0 -1
- package/esm/operations/jobs.js +0 -276
- package/esm/operations/jobs.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -48
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -79
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/storageImportExportManagementClient.d.ts +0 -27
- package/esm/storageImportExportManagementClient.d.ts.map +0 -1
- package/esm/storageImportExportManagementClient.js +0 -41
- package/esm/storageImportExportManagementClient.js.map +0 -1
- package/esm/storageImportExportManagementClientContext.d.ts +0 -22
- package/esm/storageImportExportManagementClientContext.d.ts.map +0 -1
- package/esm/storageImportExportManagementClientContext.js +0 -60
- package/esm/storageImportExportManagementClientContext.js.map +0 -1
- package/src/models/bitLockerKeysMappers.ts +0 -17
- package/src/models/jobsMappers.ts +0 -27
- package/src/models/locationsMappers.ts +0 -17
- package/src/models/operationsMappers.ts +0 -17
- package/src/storageImportExportManagementClient.ts +0 -54
- package/src/storageImportExportManagementClientContext.ts +0 -67
package/dist/index.js
ADDED
|
@@ -0,0 +1,1999 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
(function (KnownCreatedByType) {
|
|
16
|
+
KnownCreatedByType["User"] = "User";
|
|
17
|
+
KnownCreatedByType["Application"] = "Application";
|
|
18
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
19
|
+
KnownCreatedByType["Key"] = "Key";
|
|
20
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
21
|
+
(function (KnownDriveState) {
|
|
22
|
+
KnownDriveState["Specified"] = "Specified";
|
|
23
|
+
KnownDriveState["Received"] = "Received";
|
|
24
|
+
KnownDriveState["NeverReceived"] = "NeverReceived";
|
|
25
|
+
KnownDriveState["Transferring"] = "Transferring";
|
|
26
|
+
KnownDriveState["Completed"] = "Completed";
|
|
27
|
+
KnownDriveState["CompletedMoreInfo"] = "CompletedMoreInfo";
|
|
28
|
+
KnownDriveState["ShippedBack"] = "ShippedBack";
|
|
29
|
+
})(exports.KnownDriveState || (exports.KnownDriveState = {}));
|
|
30
|
+
(function (KnownEncryptionKekType) {
|
|
31
|
+
KnownEncryptionKekType["MicrosoftManaged"] = "MicrosoftManaged";
|
|
32
|
+
KnownEncryptionKekType["CustomerManaged"] = "CustomerManaged";
|
|
33
|
+
})(exports.KnownEncryptionKekType || (exports.KnownEncryptionKekType = {}));
|
|
34
|
+
(function (KnownIdentityType) {
|
|
35
|
+
KnownIdentityType["None"] = "None";
|
|
36
|
+
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
37
|
+
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
38
|
+
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Copyright (c) Microsoft Corporation.
|
|
42
|
+
* Licensed under the MIT License.
|
|
43
|
+
*
|
|
44
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
45
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
46
|
+
*/
|
|
47
|
+
const LocationsResponse = {
|
|
48
|
+
type: {
|
|
49
|
+
name: "Composite",
|
|
50
|
+
className: "LocationsResponse",
|
|
51
|
+
modelProperties: {
|
|
52
|
+
value: {
|
|
53
|
+
serializedName: "value",
|
|
54
|
+
type: {
|
|
55
|
+
name: "Sequence",
|
|
56
|
+
element: {
|
|
57
|
+
type: {
|
|
58
|
+
name: "Composite",
|
|
59
|
+
className: "Location"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const Location = {
|
|
68
|
+
type: {
|
|
69
|
+
name: "Composite",
|
|
70
|
+
className: "Location",
|
|
71
|
+
modelProperties: {
|
|
72
|
+
id: {
|
|
73
|
+
serializedName: "id",
|
|
74
|
+
type: {
|
|
75
|
+
name: "String"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
name: {
|
|
79
|
+
serializedName: "name",
|
|
80
|
+
type: {
|
|
81
|
+
name: "String"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
type: {
|
|
85
|
+
serializedName: "type",
|
|
86
|
+
type: {
|
|
87
|
+
name: "String"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
recipientName: {
|
|
91
|
+
serializedName: "properties.recipientName",
|
|
92
|
+
type: {
|
|
93
|
+
name: "String"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
streetAddress1: {
|
|
97
|
+
serializedName: "properties.streetAddress1",
|
|
98
|
+
type: {
|
|
99
|
+
name: "String"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
streetAddress2: {
|
|
103
|
+
serializedName: "properties.streetAddress2",
|
|
104
|
+
type: {
|
|
105
|
+
name: "String"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
city: {
|
|
109
|
+
serializedName: "properties.city",
|
|
110
|
+
type: {
|
|
111
|
+
name: "String"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
stateOrProvince: {
|
|
115
|
+
serializedName: "properties.stateOrProvince",
|
|
116
|
+
type: {
|
|
117
|
+
name: "String"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
postalCode: {
|
|
121
|
+
serializedName: "properties.postalCode",
|
|
122
|
+
type: {
|
|
123
|
+
name: "String"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
countryOrRegion: {
|
|
127
|
+
serializedName: "properties.countryOrRegion",
|
|
128
|
+
type: {
|
|
129
|
+
name: "String"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
phone: {
|
|
133
|
+
serializedName: "properties.phone",
|
|
134
|
+
type: {
|
|
135
|
+
name: "String"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
additionalShippingInformation: {
|
|
139
|
+
serializedName: "properties.additionalShippingInformation",
|
|
140
|
+
type: {
|
|
141
|
+
name: "String"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
supportedCarriers: {
|
|
145
|
+
serializedName: "properties.supportedCarriers",
|
|
146
|
+
type: {
|
|
147
|
+
name: "Sequence",
|
|
148
|
+
element: {
|
|
149
|
+
type: {
|
|
150
|
+
name: "String"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
alternateLocations: {
|
|
156
|
+
serializedName: "properties.alternateLocations",
|
|
157
|
+
type: {
|
|
158
|
+
name: "Sequence",
|
|
159
|
+
element: {
|
|
160
|
+
type: {
|
|
161
|
+
name: "String"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const ErrorResponse = {
|
|
170
|
+
type: {
|
|
171
|
+
name: "Composite",
|
|
172
|
+
className: "ErrorResponse",
|
|
173
|
+
modelProperties: {
|
|
174
|
+
code: {
|
|
175
|
+
serializedName: "error.code",
|
|
176
|
+
type: {
|
|
177
|
+
name: "String"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
message: {
|
|
181
|
+
serializedName: "error.message",
|
|
182
|
+
type: {
|
|
183
|
+
name: "String"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
target: {
|
|
187
|
+
serializedName: "error.target",
|
|
188
|
+
type: {
|
|
189
|
+
name: "String"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
details: {
|
|
193
|
+
serializedName: "error.details",
|
|
194
|
+
type: {
|
|
195
|
+
name: "Sequence",
|
|
196
|
+
element: {
|
|
197
|
+
type: {
|
|
198
|
+
name: "Composite",
|
|
199
|
+
className: "ErrorResponseErrorDetailsItem"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
innererror: {
|
|
205
|
+
serializedName: "error.innererror",
|
|
206
|
+
type: {
|
|
207
|
+
name: "Dictionary",
|
|
208
|
+
value: { type: { name: "any" } }
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const ErrorResponseErrorDetailsItem = {
|
|
215
|
+
type: {
|
|
216
|
+
name: "Composite",
|
|
217
|
+
className: "ErrorResponseErrorDetailsItem",
|
|
218
|
+
modelProperties: {
|
|
219
|
+
code: {
|
|
220
|
+
serializedName: "code",
|
|
221
|
+
type: {
|
|
222
|
+
name: "String"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
target: {
|
|
226
|
+
serializedName: "target",
|
|
227
|
+
type: {
|
|
228
|
+
name: "String"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
message: {
|
|
232
|
+
serializedName: "message",
|
|
233
|
+
type: {
|
|
234
|
+
name: "String"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
const ListJobsResponse = {
|
|
241
|
+
type: {
|
|
242
|
+
name: "Composite",
|
|
243
|
+
className: "ListJobsResponse",
|
|
244
|
+
modelProperties: {
|
|
245
|
+
nextLink: {
|
|
246
|
+
serializedName: "nextLink",
|
|
247
|
+
type: {
|
|
248
|
+
name: "String"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
value: {
|
|
252
|
+
serializedName: "value",
|
|
253
|
+
type: {
|
|
254
|
+
name: "Sequence",
|
|
255
|
+
element: {
|
|
256
|
+
type: {
|
|
257
|
+
name: "Composite",
|
|
258
|
+
className: "JobResponse"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
const JobResponse = {
|
|
267
|
+
type: {
|
|
268
|
+
name: "Composite",
|
|
269
|
+
className: "JobResponse",
|
|
270
|
+
modelProperties: {
|
|
271
|
+
systemData: {
|
|
272
|
+
serializedName: "systemData",
|
|
273
|
+
type: {
|
|
274
|
+
name: "Composite",
|
|
275
|
+
className: "SystemData"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
id: {
|
|
279
|
+
serializedName: "id",
|
|
280
|
+
readOnly: true,
|
|
281
|
+
type: {
|
|
282
|
+
name: "String"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
name: {
|
|
286
|
+
serializedName: "name",
|
|
287
|
+
readOnly: true,
|
|
288
|
+
type: {
|
|
289
|
+
name: "String"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
type: {
|
|
293
|
+
serializedName: "type",
|
|
294
|
+
readOnly: true,
|
|
295
|
+
type: {
|
|
296
|
+
name: "String"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
location: {
|
|
300
|
+
serializedName: "location",
|
|
301
|
+
type: {
|
|
302
|
+
name: "String"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
tags: {
|
|
306
|
+
serializedName: "tags",
|
|
307
|
+
type: {
|
|
308
|
+
name: "Dictionary",
|
|
309
|
+
value: { type: { name: "any" } }
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
properties: {
|
|
313
|
+
serializedName: "properties",
|
|
314
|
+
type: {
|
|
315
|
+
name: "Composite",
|
|
316
|
+
className: "JobDetails"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
identity: {
|
|
320
|
+
serializedName: "identity",
|
|
321
|
+
type: {
|
|
322
|
+
name: "Composite",
|
|
323
|
+
className: "IdentityDetails"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const SystemData = {
|
|
330
|
+
type: {
|
|
331
|
+
name: "Composite",
|
|
332
|
+
className: "SystemData",
|
|
333
|
+
modelProperties: {
|
|
334
|
+
createdBy: {
|
|
335
|
+
serializedName: "createdBy",
|
|
336
|
+
type: {
|
|
337
|
+
name: "String"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
createdByType: {
|
|
341
|
+
serializedName: "createdByType",
|
|
342
|
+
type: {
|
|
343
|
+
name: "String"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
createdAt: {
|
|
347
|
+
serializedName: "createdAt",
|
|
348
|
+
type: {
|
|
349
|
+
name: "DateTime"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
lastModifiedBy: {
|
|
353
|
+
serializedName: "lastModifiedBy",
|
|
354
|
+
type: {
|
|
355
|
+
name: "String"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
lastModifiedByType: {
|
|
359
|
+
serializedName: "lastModifiedByType",
|
|
360
|
+
type: {
|
|
361
|
+
name: "String"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
lastModifiedAt: {
|
|
365
|
+
serializedName: "lastModifiedAt",
|
|
366
|
+
type: {
|
|
367
|
+
name: "DateTime"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
const JobDetails = {
|
|
374
|
+
type: {
|
|
375
|
+
name: "Composite",
|
|
376
|
+
className: "JobDetails",
|
|
377
|
+
modelProperties: {
|
|
378
|
+
storageAccountId: {
|
|
379
|
+
serializedName: "storageAccountId",
|
|
380
|
+
type: {
|
|
381
|
+
name: "String"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
jobType: {
|
|
385
|
+
serializedName: "jobType",
|
|
386
|
+
type: {
|
|
387
|
+
name: "String"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
returnAddress: {
|
|
391
|
+
serializedName: "returnAddress",
|
|
392
|
+
type: {
|
|
393
|
+
name: "Composite",
|
|
394
|
+
className: "ReturnAddress"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
returnShipping: {
|
|
398
|
+
serializedName: "returnShipping",
|
|
399
|
+
type: {
|
|
400
|
+
name: "Composite",
|
|
401
|
+
className: "ReturnShipping"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
shippingInformation: {
|
|
405
|
+
serializedName: "shippingInformation",
|
|
406
|
+
type: {
|
|
407
|
+
name: "Composite",
|
|
408
|
+
className: "ShippingInformation"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
deliveryPackage: {
|
|
412
|
+
serializedName: "deliveryPackage",
|
|
413
|
+
type: {
|
|
414
|
+
name: "Composite",
|
|
415
|
+
className: "DeliveryPackageInformation"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
returnPackage: {
|
|
419
|
+
serializedName: "returnPackage",
|
|
420
|
+
type: {
|
|
421
|
+
name: "Composite",
|
|
422
|
+
className: "PackageInformation"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
diagnosticsPath: {
|
|
426
|
+
serializedName: "diagnosticsPath",
|
|
427
|
+
type: {
|
|
428
|
+
name: "String"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
logLevel: {
|
|
432
|
+
serializedName: "logLevel",
|
|
433
|
+
type: {
|
|
434
|
+
name: "String"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
backupDriveManifest: {
|
|
438
|
+
defaultValue: false,
|
|
439
|
+
serializedName: "backupDriveManifest",
|
|
440
|
+
type: {
|
|
441
|
+
name: "Boolean"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
state: {
|
|
445
|
+
defaultValue: "Creating",
|
|
446
|
+
serializedName: "state",
|
|
447
|
+
type: {
|
|
448
|
+
name: "String"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
cancelRequested: {
|
|
452
|
+
defaultValue: false,
|
|
453
|
+
serializedName: "cancelRequested",
|
|
454
|
+
type: {
|
|
455
|
+
name: "Boolean"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
percentComplete: {
|
|
459
|
+
serializedName: "percentComplete",
|
|
460
|
+
type: {
|
|
461
|
+
name: "Number"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
incompleteBlobListUri: {
|
|
465
|
+
serializedName: "incompleteBlobListUri",
|
|
466
|
+
type: {
|
|
467
|
+
name: "String"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
driveList: {
|
|
471
|
+
serializedName: "driveList",
|
|
472
|
+
type: {
|
|
473
|
+
name: "Sequence",
|
|
474
|
+
element: {
|
|
475
|
+
type: {
|
|
476
|
+
name: "Composite",
|
|
477
|
+
className: "DriveStatus"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
export: {
|
|
483
|
+
serializedName: "export",
|
|
484
|
+
type: {
|
|
485
|
+
name: "Composite",
|
|
486
|
+
className: "Export"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
provisioningState: {
|
|
490
|
+
serializedName: "provisioningState",
|
|
491
|
+
type: {
|
|
492
|
+
name: "String"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
encryptionKey: {
|
|
496
|
+
serializedName: "encryptionKey",
|
|
497
|
+
type: {
|
|
498
|
+
name: "Composite",
|
|
499
|
+
className: "EncryptionKeyDetails"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
const ReturnAddress = {
|
|
506
|
+
type: {
|
|
507
|
+
name: "Composite",
|
|
508
|
+
className: "ReturnAddress",
|
|
509
|
+
modelProperties: {
|
|
510
|
+
recipientName: {
|
|
511
|
+
serializedName: "recipientName",
|
|
512
|
+
required: true,
|
|
513
|
+
type: {
|
|
514
|
+
name: "String"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
streetAddress1: {
|
|
518
|
+
serializedName: "streetAddress1",
|
|
519
|
+
required: true,
|
|
520
|
+
type: {
|
|
521
|
+
name: "String"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
streetAddress2: {
|
|
525
|
+
serializedName: "streetAddress2",
|
|
526
|
+
type: {
|
|
527
|
+
name: "String"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
city: {
|
|
531
|
+
serializedName: "city",
|
|
532
|
+
required: true,
|
|
533
|
+
type: {
|
|
534
|
+
name: "String"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
stateOrProvince: {
|
|
538
|
+
serializedName: "stateOrProvince",
|
|
539
|
+
type: {
|
|
540
|
+
name: "String"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
postalCode: {
|
|
544
|
+
serializedName: "postalCode",
|
|
545
|
+
required: true,
|
|
546
|
+
type: {
|
|
547
|
+
name: "String"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
countryOrRegion: {
|
|
551
|
+
serializedName: "countryOrRegion",
|
|
552
|
+
required: true,
|
|
553
|
+
type: {
|
|
554
|
+
name: "String"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
phone: {
|
|
558
|
+
serializedName: "phone",
|
|
559
|
+
required: true,
|
|
560
|
+
type: {
|
|
561
|
+
name: "String"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
email: {
|
|
565
|
+
serializedName: "email",
|
|
566
|
+
required: true,
|
|
567
|
+
type: {
|
|
568
|
+
name: "String"
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
const ReturnShipping = {
|
|
575
|
+
type: {
|
|
576
|
+
name: "Composite",
|
|
577
|
+
className: "ReturnShipping",
|
|
578
|
+
modelProperties: {
|
|
579
|
+
carrierName: {
|
|
580
|
+
serializedName: "carrierName",
|
|
581
|
+
required: true,
|
|
582
|
+
type: {
|
|
583
|
+
name: "String"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
carrierAccountNumber: {
|
|
587
|
+
serializedName: "carrierAccountNumber",
|
|
588
|
+
required: true,
|
|
589
|
+
type: {
|
|
590
|
+
name: "String"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
const ShippingInformation = {
|
|
597
|
+
type: {
|
|
598
|
+
name: "Composite",
|
|
599
|
+
className: "ShippingInformation",
|
|
600
|
+
modelProperties: {
|
|
601
|
+
recipientName: {
|
|
602
|
+
serializedName: "recipientName",
|
|
603
|
+
type: {
|
|
604
|
+
name: "String"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
streetAddress1: {
|
|
608
|
+
serializedName: "streetAddress1",
|
|
609
|
+
type: {
|
|
610
|
+
name: "String"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
streetAddress2: {
|
|
614
|
+
serializedName: "streetAddress2",
|
|
615
|
+
type: {
|
|
616
|
+
name: "String"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
city: {
|
|
620
|
+
serializedName: "city",
|
|
621
|
+
type: {
|
|
622
|
+
name: "String"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
stateOrProvince: {
|
|
626
|
+
serializedName: "stateOrProvince",
|
|
627
|
+
type: {
|
|
628
|
+
name: "String"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
postalCode: {
|
|
632
|
+
serializedName: "postalCode",
|
|
633
|
+
type: {
|
|
634
|
+
name: "String"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
countryOrRegion: {
|
|
638
|
+
serializedName: "countryOrRegion",
|
|
639
|
+
type: {
|
|
640
|
+
name: "String"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
phone: {
|
|
644
|
+
serializedName: "phone",
|
|
645
|
+
type: {
|
|
646
|
+
name: "String"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
additionalInformation: {
|
|
650
|
+
serializedName: "additionalInformation",
|
|
651
|
+
readOnly: true,
|
|
652
|
+
type: {
|
|
653
|
+
name: "String"
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
const DeliveryPackageInformation = {
|
|
660
|
+
type: {
|
|
661
|
+
name: "Composite",
|
|
662
|
+
className: "DeliveryPackageInformation",
|
|
663
|
+
modelProperties: {
|
|
664
|
+
carrierName: {
|
|
665
|
+
serializedName: "carrierName",
|
|
666
|
+
required: true,
|
|
667
|
+
type: {
|
|
668
|
+
name: "String"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
trackingNumber: {
|
|
672
|
+
serializedName: "trackingNumber",
|
|
673
|
+
required: true,
|
|
674
|
+
type: {
|
|
675
|
+
name: "String"
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
driveCount: {
|
|
679
|
+
serializedName: "driveCount",
|
|
680
|
+
type: {
|
|
681
|
+
name: "Number"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
shipDate: {
|
|
685
|
+
serializedName: "shipDate",
|
|
686
|
+
type: {
|
|
687
|
+
name: "String"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
const PackageInformation = {
|
|
694
|
+
type: {
|
|
695
|
+
name: "Composite",
|
|
696
|
+
className: "PackageInformation",
|
|
697
|
+
modelProperties: {
|
|
698
|
+
carrierName: {
|
|
699
|
+
serializedName: "carrierName",
|
|
700
|
+
required: true,
|
|
701
|
+
type: {
|
|
702
|
+
name: "String"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
trackingNumber: {
|
|
706
|
+
serializedName: "trackingNumber",
|
|
707
|
+
required: true,
|
|
708
|
+
type: {
|
|
709
|
+
name: "String"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
driveCount: {
|
|
713
|
+
serializedName: "driveCount",
|
|
714
|
+
required: true,
|
|
715
|
+
type: {
|
|
716
|
+
name: "Number"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
shipDate: {
|
|
720
|
+
serializedName: "shipDate",
|
|
721
|
+
required: true,
|
|
722
|
+
type: {
|
|
723
|
+
name: "String"
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
const DriveStatus = {
|
|
730
|
+
type: {
|
|
731
|
+
name: "Composite",
|
|
732
|
+
className: "DriveStatus",
|
|
733
|
+
modelProperties: {
|
|
734
|
+
driveId: {
|
|
735
|
+
serializedName: "driveId",
|
|
736
|
+
type: {
|
|
737
|
+
name: "String"
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
bitLockerKey: {
|
|
741
|
+
serializedName: "bitLockerKey",
|
|
742
|
+
type: {
|
|
743
|
+
name: "String"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
manifestFile: {
|
|
747
|
+
serializedName: "manifestFile",
|
|
748
|
+
type: {
|
|
749
|
+
name: "String"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
manifestHash: {
|
|
753
|
+
serializedName: "manifestHash",
|
|
754
|
+
type: {
|
|
755
|
+
name: "String"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
driveHeaderHash: {
|
|
759
|
+
serializedName: "driveHeaderHash",
|
|
760
|
+
type: {
|
|
761
|
+
name: "String"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
state: {
|
|
765
|
+
defaultValue: "Specified",
|
|
766
|
+
serializedName: "state",
|
|
767
|
+
type: {
|
|
768
|
+
name: "String"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
copyStatus: {
|
|
772
|
+
serializedName: "copyStatus",
|
|
773
|
+
type: {
|
|
774
|
+
name: "String"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
percentComplete: {
|
|
778
|
+
serializedName: "percentComplete",
|
|
779
|
+
type: {
|
|
780
|
+
name: "Number"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
verboseLogUri: {
|
|
784
|
+
serializedName: "verboseLogUri",
|
|
785
|
+
type: {
|
|
786
|
+
name: "String"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
errorLogUri: {
|
|
790
|
+
serializedName: "errorLogUri",
|
|
791
|
+
type: {
|
|
792
|
+
name: "String"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
manifestUri: {
|
|
796
|
+
serializedName: "manifestUri",
|
|
797
|
+
type: {
|
|
798
|
+
name: "String"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
bytesSucceeded: {
|
|
802
|
+
serializedName: "bytesSucceeded",
|
|
803
|
+
type: {
|
|
804
|
+
name: "Number"
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
const Export = {
|
|
811
|
+
type: {
|
|
812
|
+
name: "Composite",
|
|
813
|
+
className: "Export",
|
|
814
|
+
modelProperties: {
|
|
815
|
+
blobListBlobPath: {
|
|
816
|
+
serializedName: "blobListBlobPath",
|
|
817
|
+
type: {
|
|
818
|
+
name: "String"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
blobPath: {
|
|
822
|
+
serializedName: "blobList.blobPath",
|
|
823
|
+
type: {
|
|
824
|
+
name: "Sequence",
|
|
825
|
+
element: {
|
|
826
|
+
type: {
|
|
827
|
+
name: "String"
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
blobPathPrefix: {
|
|
833
|
+
serializedName: "blobList.blobPathPrefix",
|
|
834
|
+
type: {
|
|
835
|
+
name: "Sequence",
|
|
836
|
+
element: {
|
|
837
|
+
type: {
|
|
838
|
+
name: "String"
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
const EncryptionKeyDetails = {
|
|
847
|
+
type: {
|
|
848
|
+
name: "Composite",
|
|
849
|
+
className: "EncryptionKeyDetails",
|
|
850
|
+
modelProperties: {
|
|
851
|
+
kekType: {
|
|
852
|
+
defaultValue: "MicrosoftManaged",
|
|
853
|
+
serializedName: "kekType",
|
|
854
|
+
type: {
|
|
855
|
+
name: "String"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
kekUrl: {
|
|
859
|
+
serializedName: "kekUrl",
|
|
860
|
+
type: {
|
|
861
|
+
name: "String"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
kekVaultResourceID: {
|
|
865
|
+
serializedName: "kekVaultResourceID",
|
|
866
|
+
type: {
|
|
867
|
+
name: "String"
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
const IdentityDetails = {
|
|
874
|
+
type: {
|
|
875
|
+
name: "Composite",
|
|
876
|
+
className: "IdentityDetails",
|
|
877
|
+
modelProperties: {
|
|
878
|
+
type: {
|
|
879
|
+
defaultValue: "None",
|
|
880
|
+
serializedName: "type",
|
|
881
|
+
type: {
|
|
882
|
+
name: "String"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
principalId: {
|
|
886
|
+
serializedName: "principalId",
|
|
887
|
+
readOnly: true,
|
|
888
|
+
type: {
|
|
889
|
+
name: "String"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
tenantId: {
|
|
893
|
+
serializedName: "tenantId",
|
|
894
|
+
readOnly: true,
|
|
895
|
+
type: {
|
|
896
|
+
name: "String"
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
};
|
|
902
|
+
const UpdateJobParameters = {
|
|
903
|
+
type: {
|
|
904
|
+
name: "Composite",
|
|
905
|
+
className: "UpdateJobParameters",
|
|
906
|
+
modelProperties: {
|
|
907
|
+
tags: {
|
|
908
|
+
serializedName: "tags",
|
|
909
|
+
type: {
|
|
910
|
+
name: "Dictionary",
|
|
911
|
+
value: { type: { name: "any" } }
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
cancelRequested: {
|
|
915
|
+
defaultValue: false,
|
|
916
|
+
serializedName: "properties.cancelRequested",
|
|
917
|
+
type: {
|
|
918
|
+
name: "Boolean"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
state: {
|
|
922
|
+
serializedName: "properties.state",
|
|
923
|
+
type: {
|
|
924
|
+
name: "String"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
returnAddress: {
|
|
928
|
+
serializedName: "properties.returnAddress",
|
|
929
|
+
type: {
|
|
930
|
+
name: "Composite",
|
|
931
|
+
className: "ReturnAddress"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
returnShipping: {
|
|
935
|
+
serializedName: "properties.returnShipping",
|
|
936
|
+
type: {
|
|
937
|
+
name: "Composite",
|
|
938
|
+
className: "ReturnShipping"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
deliveryPackage: {
|
|
942
|
+
serializedName: "properties.deliveryPackage",
|
|
943
|
+
type: {
|
|
944
|
+
name: "Composite",
|
|
945
|
+
className: "DeliveryPackageInformation"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
logLevel: {
|
|
949
|
+
serializedName: "properties.logLevel",
|
|
950
|
+
type: {
|
|
951
|
+
name: "String"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
backupDriveManifest: {
|
|
955
|
+
defaultValue: false,
|
|
956
|
+
serializedName: "properties.backupDriveManifest",
|
|
957
|
+
type: {
|
|
958
|
+
name: "Boolean"
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
driveList: {
|
|
962
|
+
serializedName: "properties.driveList",
|
|
963
|
+
type: {
|
|
964
|
+
name: "Sequence",
|
|
965
|
+
element: {
|
|
966
|
+
type: {
|
|
967
|
+
name: "Composite",
|
|
968
|
+
className: "DriveStatus"
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
const PutJobParameters = {
|
|
977
|
+
type: {
|
|
978
|
+
name: "Composite",
|
|
979
|
+
className: "PutJobParameters",
|
|
980
|
+
modelProperties: {
|
|
981
|
+
location: {
|
|
982
|
+
serializedName: "location",
|
|
983
|
+
type: {
|
|
984
|
+
name: "String"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
tags: {
|
|
988
|
+
serializedName: "tags",
|
|
989
|
+
type: {
|
|
990
|
+
name: "Dictionary",
|
|
991
|
+
value: { type: { name: "any" } }
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
properties: {
|
|
995
|
+
serializedName: "properties",
|
|
996
|
+
type: {
|
|
997
|
+
name: "Composite",
|
|
998
|
+
className: "JobDetails"
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
const GetBitLockerKeysResponse = {
|
|
1005
|
+
type: {
|
|
1006
|
+
name: "Composite",
|
|
1007
|
+
className: "GetBitLockerKeysResponse",
|
|
1008
|
+
modelProperties: {
|
|
1009
|
+
value: {
|
|
1010
|
+
serializedName: "value",
|
|
1011
|
+
type: {
|
|
1012
|
+
name: "Sequence",
|
|
1013
|
+
element: {
|
|
1014
|
+
type: {
|
|
1015
|
+
name: "Composite",
|
|
1016
|
+
className: "DriveBitLockerKey"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
const DriveBitLockerKey = {
|
|
1025
|
+
type: {
|
|
1026
|
+
name: "Composite",
|
|
1027
|
+
className: "DriveBitLockerKey",
|
|
1028
|
+
modelProperties: {
|
|
1029
|
+
bitLockerKey: {
|
|
1030
|
+
serializedName: "bitLockerKey",
|
|
1031
|
+
type: {
|
|
1032
|
+
name: "String"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
driveId: {
|
|
1036
|
+
serializedName: "driveId",
|
|
1037
|
+
type: {
|
|
1038
|
+
name: "String"
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
const ListOperationsResponse = {
|
|
1045
|
+
type: {
|
|
1046
|
+
name: "Composite",
|
|
1047
|
+
className: "ListOperationsResponse",
|
|
1048
|
+
modelProperties: {
|
|
1049
|
+
value: {
|
|
1050
|
+
serializedName: "value",
|
|
1051
|
+
type: {
|
|
1052
|
+
name: "Sequence",
|
|
1053
|
+
element: {
|
|
1054
|
+
type: {
|
|
1055
|
+
name: "Composite",
|
|
1056
|
+
className: "Operation"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
const Operation = {
|
|
1065
|
+
type: {
|
|
1066
|
+
name: "Composite",
|
|
1067
|
+
className: "Operation",
|
|
1068
|
+
modelProperties: {
|
|
1069
|
+
name: {
|
|
1070
|
+
serializedName: "name",
|
|
1071
|
+
required: true,
|
|
1072
|
+
type: {
|
|
1073
|
+
name: "String"
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
provider: {
|
|
1077
|
+
serializedName: "display.provider",
|
|
1078
|
+
type: {
|
|
1079
|
+
name: "String"
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
resource: {
|
|
1083
|
+
serializedName: "display.resource",
|
|
1084
|
+
type: {
|
|
1085
|
+
name: "String"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
operation: {
|
|
1089
|
+
serializedName: "display.operation",
|
|
1090
|
+
type: {
|
|
1091
|
+
name: "String"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
description: {
|
|
1095
|
+
serializedName: "display.description",
|
|
1096
|
+
type: {
|
|
1097
|
+
name: "String"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1105
|
+
__proto__: null,
|
|
1106
|
+
LocationsResponse: LocationsResponse,
|
|
1107
|
+
Location: Location,
|
|
1108
|
+
ErrorResponse: ErrorResponse,
|
|
1109
|
+
ErrorResponseErrorDetailsItem: ErrorResponseErrorDetailsItem,
|
|
1110
|
+
ListJobsResponse: ListJobsResponse,
|
|
1111
|
+
JobResponse: JobResponse,
|
|
1112
|
+
SystemData: SystemData,
|
|
1113
|
+
JobDetails: JobDetails,
|
|
1114
|
+
ReturnAddress: ReturnAddress,
|
|
1115
|
+
ReturnShipping: ReturnShipping,
|
|
1116
|
+
ShippingInformation: ShippingInformation,
|
|
1117
|
+
DeliveryPackageInformation: DeliveryPackageInformation,
|
|
1118
|
+
PackageInformation: PackageInformation,
|
|
1119
|
+
DriveStatus: DriveStatus,
|
|
1120
|
+
Export: Export,
|
|
1121
|
+
EncryptionKeyDetails: EncryptionKeyDetails,
|
|
1122
|
+
IdentityDetails: IdentityDetails,
|
|
1123
|
+
UpdateJobParameters: UpdateJobParameters,
|
|
1124
|
+
PutJobParameters: PutJobParameters,
|
|
1125
|
+
GetBitLockerKeysResponse: GetBitLockerKeysResponse,
|
|
1126
|
+
DriveBitLockerKey: DriveBitLockerKey,
|
|
1127
|
+
ListOperationsResponse: ListOperationsResponse,
|
|
1128
|
+
Operation: Operation
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1131
|
+
/*
|
|
1132
|
+
* Copyright (c) Microsoft Corporation.
|
|
1133
|
+
* Licensed under the MIT License.
|
|
1134
|
+
*
|
|
1135
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1136
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1137
|
+
*/
|
|
1138
|
+
const accept = {
|
|
1139
|
+
parameterPath: "accept",
|
|
1140
|
+
mapper: {
|
|
1141
|
+
defaultValue: "application/json",
|
|
1142
|
+
isConstant: true,
|
|
1143
|
+
serializedName: "Accept",
|
|
1144
|
+
type: {
|
|
1145
|
+
name: "String"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
const $host = {
|
|
1150
|
+
parameterPath: "$host",
|
|
1151
|
+
mapper: {
|
|
1152
|
+
serializedName: "$host",
|
|
1153
|
+
required: true,
|
|
1154
|
+
type: {
|
|
1155
|
+
name: "String"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
skipEncoding: true
|
|
1159
|
+
};
|
|
1160
|
+
const apiVersion = {
|
|
1161
|
+
parameterPath: "apiVersion",
|
|
1162
|
+
mapper: {
|
|
1163
|
+
defaultValue: "2021-01-01",
|
|
1164
|
+
isConstant: true,
|
|
1165
|
+
serializedName: "api-version",
|
|
1166
|
+
type: {
|
|
1167
|
+
name: "String"
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
const acceptLanguage = {
|
|
1172
|
+
parameterPath: "acceptLanguage",
|
|
1173
|
+
mapper: {
|
|
1174
|
+
serializedName: "Accept-Language",
|
|
1175
|
+
type: {
|
|
1176
|
+
name: "String"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
const locationName = {
|
|
1181
|
+
parameterPath: "locationName",
|
|
1182
|
+
mapper: {
|
|
1183
|
+
serializedName: "locationName",
|
|
1184
|
+
required: true,
|
|
1185
|
+
type: {
|
|
1186
|
+
name: "String"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
const top = {
|
|
1191
|
+
parameterPath: ["options", "top"],
|
|
1192
|
+
mapper: {
|
|
1193
|
+
serializedName: "$top",
|
|
1194
|
+
type: {
|
|
1195
|
+
name: "Number"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
const filter = {
|
|
1200
|
+
parameterPath: ["options", "filter"],
|
|
1201
|
+
mapper: {
|
|
1202
|
+
serializedName: "$filter",
|
|
1203
|
+
type: {
|
|
1204
|
+
name: "String"
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
const subscriptionId = {
|
|
1209
|
+
parameterPath: "subscriptionId",
|
|
1210
|
+
mapper: {
|
|
1211
|
+
serializedName: "subscriptionId",
|
|
1212
|
+
required: true,
|
|
1213
|
+
type: {
|
|
1214
|
+
name: "String"
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
const resourceGroupName = {
|
|
1219
|
+
parameterPath: "resourceGroupName",
|
|
1220
|
+
mapper: {
|
|
1221
|
+
serializedName: "resourceGroupName",
|
|
1222
|
+
required: true,
|
|
1223
|
+
type: {
|
|
1224
|
+
name: "String"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
const jobName = {
|
|
1229
|
+
parameterPath: "jobName",
|
|
1230
|
+
mapper: {
|
|
1231
|
+
serializedName: "jobName",
|
|
1232
|
+
required: true,
|
|
1233
|
+
type: {
|
|
1234
|
+
name: "String"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
const contentType = {
|
|
1239
|
+
parameterPath: ["options", "contentType"],
|
|
1240
|
+
mapper: {
|
|
1241
|
+
defaultValue: "application/json",
|
|
1242
|
+
isConstant: true,
|
|
1243
|
+
serializedName: "Content-Type",
|
|
1244
|
+
type: {
|
|
1245
|
+
name: "String"
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
const body = {
|
|
1250
|
+
parameterPath: "body",
|
|
1251
|
+
mapper: UpdateJobParameters
|
|
1252
|
+
};
|
|
1253
|
+
const body1 = {
|
|
1254
|
+
parameterPath: "body",
|
|
1255
|
+
mapper: PutJobParameters
|
|
1256
|
+
};
|
|
1257
|
+
const clientTenantId = {
|
|
1258
|
+
parameterPath: ["options", "clientTenantId"],
|
|
1259
|
+
mapper: {
|
|
1260
|
+
serializedName: "x-ms-client-tenant-id",
|
|
1261
|
+
type: {
|
|
1262
|
+
name: "String"
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
const nextLink = {
|
|
1267
|
+
parameterPath: "nextLink",
|
|
1268
|
+
mapper: {
|
|
1269
|
+
serializedName: "nextLink",
|
|
1270
|
+
required: true,
|
|
1271
|
+
type: {
|
|
1272
|
+
name: "String"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
skipEncoding: true
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
/*
|
|
1279
|
+
* Copyright (c) Microsoft Corporation.
|
|
1280
|
+
* Licensed under the MIT License.
|
|
1281
|
+
*
|
|
1282
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1283
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1284
|
+
*/
|
|
1285
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1286
|
+
/** Class containing Locations operations. */
|
|
1287
|
+
class LocationsImpl {
|
|
1288
|
+
/**
|
|
1289
|
+
* Initialize a new instance of the class Locations class.
|
|
1290
|
+
* @param client Reference to the service client
|
|
1291
|
+
*/
|
|
1292
|
+
constructor(client) {
|
|
1293
|
+
this.client = client;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
1297
|
+
* A location is a Microsoft data center region.
|
|
1298
|
+
* @param options The options parameters.
|
|
1299
|
+
*/
|
|
1300
|
+
list(options) {
|
|
1301
|
+
const iter = this.listPagingAll(options);
|
|
1302
|
+
return {
|
|
1303
|
+
next() {
|
|
1304
|
+
return iter.next();
|
|
1305
|
+
},
|
|
1306
|
+
[Symbol.asyncIterator]() {
|
|
1307
|
+
return this;
|
|
1308
|
+
},
|
|
1309
|
+
byPage: () => {
|
|
1310
|
+
return this.listPagingPage(options);
|
|
1311
|
+
}
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
listPagingPage(options) {
|
|
1315
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1316
|
+
let result = yield tslib.__await(this._list(options));
|
|
1317
|
+
yield yield tslib.__await(result.value || []);
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
listPagingAll(options) {
|
|
1321
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1322
|
+
var e_1, _a;
|
|
1323
|
+
try {
|
|
1324
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1325
|
+
const page = _c.value;
|
|
1326
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1330
|
+
finally {
|
|
1331
|
+
try {
|
|
1332
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1333
|
+
}
|
|
1334
|
+
finally { if (e_1) throw e_1.error; }
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
1340
|
+
* A location is a Microsoft data center region.
|
|
1341
|
+
* @param options The options parameters.
|
|
1342
|
+
*/
|
|
1343
|
+
_list(options) {
|
|
1344
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Returns the details about a location to which you can ship the disks associated with an import or
|
|
1348
|
+
* export job. A location is an Azure region.
|
|
1349
|
+
* @param locationName The name of the location. For example, West US or westus.
|
|
1350
|
+
* @param options The options parameters.
|
|
1351
|
+
*/
|
|
1352
|
+
get(locationName, options) {
|
|
1353
|
+
return this.client.sendOperationRequest({ locationName, options }, getOperationSpec);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
// Operation Specifications
|
|
1357
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1358
|
+
const listOperationSpec = {
|
|
1359
|
+
path: "/providers/Microsoft.ImportExport/locations",
|
|
1360
|
+
httpMethod: "GET",
|
|
1361
|
+
responses: {
|
|
1362
|
+
200: {
|
|
1363
|
+
bodyMapper: LocationsResponse
|
|
1364
|
+
},
|
|
1365
|
+
default: {
|
|
1366
|
+
bodyMapper: ErrorResponse
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
queryParameters: [apiVersion],
|
|
1370
|
+
urlParameters: [$host],
|
|
1371
|
+
headerParameters: [accept, acceptLanguage],
|
|
1372
|
+
serializer
|
|
1373
|
+
};
|
|
1374
|
+
const getOperationSpec = {
|
|
1375
|
+
path: "/providers/Microsoft.ImportExport/locations/{locationName}",
|
|
1376
|
+
httpMethod: "GET",
|
|
1377
|
+
responses: {
|
|
1378
|
+
200: {
|
|
1379
|
+
bodyMapper: Location
|
|
1380
|
+
},
|
|
1381
|
+
default: {
|
|
1382
|
+
bodyMapper: ErrorResponse
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
queryParameters: [apiVersion],
|
|
1386
|
+
urlParameters: [$host, locationName],
|
|
1387
|
+
headerParameters: [accept, acceptLanguage],
|
|
1388
|
+
serializer
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
/*
|
|
1392
|
+
* Copyright (c) Microsoft Corporation.
|
|
1393
|
+
* Licensed under the MIT License.
|
|
1394
|
+
*
|
|
1395
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1396
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1397
|
+
*/
|
|
1398
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1399
|
+
/** Class containing Jobs operations. */
|
|
1400
|
+
class JobsImpl {
|
|
1401
|
+
/**
|
|
1402
|
+
* Initialize a new instance of the class Jobs class.
|
|
1403
|
+
* @param client Reference to the service client
|
|
1404
|
+
*/
|
|
1405
|
+
constructor(client) {
|
|
1406
|
+
this.client = client;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Returns all active and completed jobs in a subscription.
|
|
1410
|
+
* @param options The options parameters.
|
|
1411
|
+
*/
|
|
1412
|
+
listBySubscription(options) {
|
|
1413
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1414
|
+
return {
|
|
1415
|
+
next() {
|
|
1416
|
+
return iter.next();
|
|
1417
|
+
},
|
|
1418
|
+
[Symbol.asyncIterator]() {
|
|
1419
|
+
return this;
|
|
1420
|
+
},
|
|
1421
|
+
byPage: () => {
|
|
1422
|
+
return this.listBySubscriptionPagingPage(options);
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
listBySubscriptionPagingPage(options) {
|
|
1427
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1428
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1429
|
+
yield yield tslib.__await(result.value || []);
|
|
1430
|
+
let continuationToken = result.nextLink;
|
|
1431
|
+
while (continuationToken) {
|
|
1432
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1433
|
+
continuationToken = result.nextLink;
|
|
1434
|
+
yield yield tslib.__await(result.value || []);
|
|
1435
|
+
}
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
listBySubscriptionPagingAll(options) {
|
|
1439
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1440
|
+
var e_1, _a;
|
|
1441
|
+
try {
|
|
1442
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1443
|
+
const page = _c.value;
|
|
1444
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1448
|
+
finally {
|
|
1449
|
+
try {
|
|
1450
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1451
|
+
}
|
|
1452
|
+
finally { if (e_1) throw e_1.error; }
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Returns all active and completed jobs in a resource group.
|
|
1458
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1459
|
+
* user subscription.
|
|
1460
|
+
* @param options The options parameters.
|
|
1461
|
+
*/
|
|
1462
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1463
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1464
|
+
return {
|
|
1465
|
+
next() {
|
|
1466
|
+
return iter.next();
|
|
1467
|
+
},
|
|
1468
|
+
[Symbol.asyncIterator]() {
|
|
1469
|
+
return this;
|
|
1470
|
+
},
|
|
1471
|
+
byPage: () => {
|
|
1472
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1477
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1478
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1479
|
+
yield yield tslib.__await(result.value || []);
|
|
1480
|
+
let continuationToken = result.nextLink;
|
|
1481
|
+
while (continuationToken) {
|
|
1482
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1483
|
+
continuationToken = result.nextLink;
|
|
1484
|
+
yield yield tslib.__await(result.value || []);
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1489
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1490
|
+
var e_2, _a;
|
|
1491
|
+
try {
|
|
1492
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1493
|
+
const page = _c.value;
|
|
1494
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1498
|
+
finally {
|
|
1499
|
+
try {
|
|
1500
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1501
|
+
}
|
|
1502
|
+
finally { if (e_2) throw e_2.error; }
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Returns all active and completed jobs in a subscription.
|
|
1508
|
+
* @param options The options parameters.
|
|
1509
|
+
*/
|
|
1510
|
+
_listBySubscription(options) {
|
|
1511
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Returns all active and completed jobs in a resource group.
|
|
1515
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1516
|
+
* user subscription.
|
|
1517
|
+
* @param options The options parameters.
|
|
1518
|
+
*/
|
|
1519
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1520
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Gets information about an existing job.
|
|
1524
|
+
* @param jobName The name of the import/export job.
|
|
1525
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1526
|
+
* user subscription.
|
|
1527
|
+
* @param options The options parameters.
|
|
1528
|
+
*/
|
|
1529
|
+
get(jobName, resourceGroupName, options) {
|
|
1530
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, options }, getOperationSpec$1);
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Updates specific properties of a job. You can call this operation to notify the Import/Export
|
|
1534
|
+
* service that the hard drives comprising the import or export job have been shipped to the Microsoft
|
|
1535
|
+
* data center. It can also be used to cancel an existing job.
|
|
1536
|
+
* @param jobName The name of the import/export job.
|
|
1537
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1538
|
+
* user subscription.
|
|
1539
|
+
* @param body The parameters to update in the job
|
|
1540
|
+
* @param options The options parameters.
|
|
1541
|
+
*/
|
|
1542
|
+
update(jobName, resourceGroupName, body, options) {
|
|
1543
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, body, options }, updateOperationSpec);
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Creates a new job or updates an existing job in the specified subscription.
|
|
1547
|
+
* @param jobName The name of the import/export job.
|
|
1548
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1549
|
+
* user subscription.
|
|
1550
|
+
* @param body The parameters used for creating the job
|
|
1551
|
+
* @param options The options parameters.
|
|
1552
|
+
*/
|
|
1553
|
+
create(jobName, resourceGroupName, body, options) {
|
|
1554
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, body, options }, createOperationSpec);
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Deletes an existing job. Only jobs in the Creating or Completed states can be deleted.
|
|
1558
|
+
* @param jobName The name of the import/export job.
|
|
1559
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1560
|
+
* user subscription.
|
|
1561
|
+
* @param options The options parameters.
|
|
1562
|
+
*/
|
|
1563
|
+
delete(jobName, resourceGroupName, options) {
|
|
1564
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, options }, deleteOperationSpec);
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* ListBySubscriptionNext
|
|
1568
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1569
|
+
* @param options The options parameters.
|
|
1570
|
+
*/
|
|
1571
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1572
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* ListByResourceGroupNext
|
|
1576
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1577
|
+
* user subscription.
|
|
1578
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1579
|
+
* @param options The options parameters.
|
|
1580
|
+
*/
|
|
1581
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1582
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
// Operation Specifications
|
|
1586
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1587
|
+
const listBySubscriptionOperationSpec = {
|
|
1588
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ImportExport/jobs",
|
|
1589
|
+
httpMethod: "GET",
|
|
1590
|
+
responses: {
|
|
1591
|
+
200: {
|
|
1592
|
+
bodyMapper: ListJobsResponse
|
|
1593
|
+
},
|
|
1594
|
+
default: {
|
|
1595
|
+
bodyMapper: ErrorResponse
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
queryParameters: [apiVersion, top, filter],
|
|
1599
|
+
urlParameters: [$host, subscriptionId],
|
|
1600
|
+
headerParameters: [accept, acceptLanguage],
|
|
1601
|
+
serializer: serializer$1
|
|
1602
|
+
};
|
|
1603
|
+
const listByResourceGroupOperationSpec = {
|
|
1604
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs",
|
|
1605
|
+
httpMethod: "GET",
|
|
1606
|
+
responses: {
|
|
1607
|
+
200: {
|
|
1608
|
+
bodyMapper: ListJobsResponse
|
|
1609
|
+
},
|
|
1610
|
+
default: {
|
|
1611
|
+
bodyMapper: ErrorResponse
|
|
1612
|
+
}
|
|
1613
|
+
},
|
|
1614
|
+
queryParameters: [apiVersion, top, filter],
|
|
1615
|
+
urlParameters: [
|
|
1616
|
+
$host,
|
|
1617
|
+
subscriptionId,
|
|
1618
|
+
resourceGroupName
|
|
1619
|
+
],
|
|
1620
|
+
headerParameters: [accept, acceptLanguage],
|
|
1621
|
+
serializer: serializer$1
|
|
1622
|
+
};
|
|
1623
|
+
const getOperationSpec$1 = {
|
|
1624
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
1625
|
+
httpMethod: "GET",
|
|
1626
|
+
responses: {
|
|
1627
|
+
200: {
|
|
1628
|
+
bodyMapper: JobResponse
|
|
1629
|
+
},
|
|
1630
|
+
default: {
|
|
1631
|
+
bodyMapper: ErrorResponse
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
queryParameters: [apiVersion],
|
|
1635
|
+
urlParameters: [
|
|
1636
|
+
$host,
|
|
1637
|
+
subscriptionId,
|
|
1638
|
+
resourceGroupName,
|
|
1639
|
+
jobName
|
|
1640
|
+
],
|
|
1641
|
+
headerParameters: [accept, acceptLanguage],
|
|
1642
|
+
serializer: serializer$1
|
|
1643
|
+
};
|
|
1644
|
+
const updateOperationSpec = {
|
|
1645
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
1646
|
+
httpMethod: "PATCH",
|
|
1647
|
+
responses: {
|
|
1648
|
+
200: {
|
|
1649
|
+
bodyMapper: JobResponse
|
|
1650
|
+
},
|
|
1651
|
+
default: {
|
|
1652
|
+
bodyMapper: ErrorResponse
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
requestBody: body,
|
|
1656
|
+
queryParameters: [apiVersion],
|
|
1657
|
+
urlParameters: [
|
|
1658
|
+
$host,
|
|
1659
|
+
subscriptionId,
|
|
1660
|
+
resourceGroupName,
|
|
1661
|
+
jobName
|
|
1662
|
+
],
|
|
1663
|
+
headerParameters: [
|
|
1664
|
+
accept,
|
|
1665
|
+
acceptLanguage,
|
|
1666
|
+
contentType
|
|
1667
|
+
],
|
|
1668
|
+
mediaType: "json",
|
|
1669
|
+
serializer: serializer$1
|
|
1670
|
+
};
|
|
1671
|
+
const createOperationSpec = {
|
|
1672
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
1673
|
+
httpMethod: "PUT",
|
|
1674
|
+
responses: {
|
|
1675
|
+
200: {
|
|
1676
|
+
bodyMapper: JobResponse
|
|
1677
|
+
},
|
|
1678
|
+
201: {
|
|
1679
|
+
bodyMapper: JobResponse
|
|
1680
|
+
},
|
|
1681
|
+
default: {
|
|
1682
|
+
bodyMapper: ErrorResponse
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
requestBody: body1,
|
|
1686
|
+
queryParameters: [apiVersion],
|
|
1687
|
+
urlParameters: [
|
|
1688
|
+
$host,
|
|
1689
|
+
subscriptionId,
|
|
1690
|
+
resourceGroupName,
|
|
1691
|
+
jobName
|
|
1692
|
+
],
|
|
1693
|
+
headerParameters: [
|
|
1694
|
+
accept,
|
|
1695
|
+
acceptLanguage,
|
|
1696
|
+
contentType,
|
|
1697
|
+
clientTenantId
|
|
1698
|
+
],
|
|
1699
|
+
mediaType: "json",
|
|
1700
|
+
serializer: serializer$1
|
|
1701
|
+
};
|
|
1702
|
+
const deleteOperationSpec = {
|
|
1703
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
1704
|
+
httpMethod: "DELETE",
|
|
1705
|
+
responses: {
|
|
1706
|
+
200: {},
|
|
1707
|
+
default: {
|
|
1708
|
+
bodyMapper: ErrorResponse
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
queryParameters: [apiVersion],
|
|
1712
|
+
urlParameters: [
|
|
1713
|
+
$host,
|
|
1714
|
+
subscriptionId,
|
|
1715
|
+
resourceGroupName,
|
|
1716
|
+
jobName
|
|
1717
|
+
],
|
|
1718
|
+
headerParameters: [accept, acceptLanguage],
|
|
1719
|
+
serializer: serializer$1
|
|
1720
|
+
};
|
|
1721
|
+
const listBySubscriptionNextOperationSpec = {
|
|
1722
|
+
path: "{nextLink}",
|
|
1723
|
+
httpMethod: "GET",
|
|
1724
|
+
responses: {
|
|
1725
|
+
200: {
|
|
1726
|
+
bodyMapper: ListJobsResponse
|
|
1727
|
+
},
|
|
1728
|
+
default: {
|
|
1729
|
+
bodyMapper: ErrorResponse
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
queryParameters: [apiVersion, top, filter],
|
|
1733
|
+
urlParameters: [
|
|
1734
|
+
$host,
|
|
1735
|
+
subscriptionId,
|
|
1736
|
+
nextLink
|
|
1737
|
+
],
|
|
1738
|
+
headerParameters: [accept, acceptLanguage],
|
|
1739
|
+
serializer: serializer$1
|
|
1740
|
+
};
|
|
1741
|
+
const listByResourceGroupNextOperationSpec = {
|
|
1742
|
+
path: "{nextLink}",
|
|
1743
|
+
httpMethod: "GET",
|
|
1744
|
+
responses: {
|
|
1745
|
+
200: {
|
|
1746
|
+
bodyMapper: ListJobsResponse
|
|
1747
|
+
},
|
|
1748
|
+
default: {
|
|
1749
|
+
bodyMapper: ErrorResponse
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
queryParameters: [apiVersion, top, filter],
|
|
1753
|
+
urlParameters: [
|
|
1754
|
+
$host,
|
|
1755
|
+
subscriptionId,
|
|
1756
|
+
resourceGroupName,
|
|
1757
|
+
nextLink
|
|
1758
|
+
],
|
|
1759
|
+
headerParameters: [accept, acceptLanguage],
|
|
1760
|
+
serializer: serializer$1
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
/*
|
|
1764
|
+
* Copyright (c) Microsoft Corporation.
|
|
1765
|
+
* Licensed under the MIT License.
|
|
1766
|
+
*
|
|
1767
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1768
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1769
|
+
*/
|
|
1770
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1771
|
+
/** Class containing BitLockerKeys operations. */
|
|
1772
|
+
class BitLockerKeysImpl {
|
|
1773
|
+
/**
|
|
1774
|
+
* Initialize a new instance of the class BitLockerKeys class.
|
|
1775
|
+
* @param client Reference to the service client
|
|
1776
|
+
*/
|
|
1777
|
+
constructor(client) {
|
|
1778
|
+
this.client = client;
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Returns the BitLocker Keys for all drives in the specified job.
|
|
1782
|
+
* @param jobName The name of the import/export job.
|
|
1783
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1784
|
+
* user subscription.
|
|
1785
|
+
* @param options The options parameters.
|
|
1786
|
+
*/
|
|
1787
|
+
list(jobName, resourceGroupName, options) {
|
|
1788
|
+
const iter = this.listPagingAll(jobName, resourceGroupName, options);
|
|
1789
|
+
return {
|
|
1790
|
+
next() {
|
|
1791
|
+
return iter.next();
|
|
1792
|
+
},
|
|
1793
|
+
[Symbol.asyncIterator]() {
|
|
1794
|
+
return this;
|
|
1795
|
+
},
|
|
1796
|
+
byPage: () => {
|
|
1797
|
+
return this.listPagingPage(jobName, resourceGroupName, options);
|
|
1798
|
+
}
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
listPagingPage(jobName, resourceGroupName, options) {
|
|
1802
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1803
|
+
let result = yield tslib.__await(this._list(jobName, resourceGroupName, options));
|
|
1804
|
+
yield yield tslib.__await(result.value || []);
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
listPagingAll(jobName, resourceGroupName, options) {
|
|
1808
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1809
|
+
var e_1, _a;
|
|
1810
|
+
try {
|
|
1811
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(jobName, resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1812
|
+
const page = _c.value;
|
|
1813
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1817
|
+
finally {
|
|
1818
|
+
try {
|
|
1819
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1820
|
+
}
|
|
1821
|
+
finally { if (e_1) throw e_1.error; }
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Returns the BitLocker Keys for all drives in the specified job.
|
|
1827
|
+
* @param jobName The name of the import/export job.
|
|
1828
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
1829
|
+
* user subscription.
|
|
1830
|
+
* @param options The options parameters.
|
|
1831
|
+
*/
|
|
1832
|
+
_list(jobName, resourceGroupName, options) {
|
|
1833
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, options }, listOperationSpec$1);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
// Operation Specifications
|
|
1837
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1838
|
+
const listOperationSpec$1 = {
|
|
1839
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}/listBitLockerKeys",
|
|
1840
|
+
httpMethod: "POST",
|
|
1841
|
+
responses: {
|
|
1842
|
+
200: {
|
|
1843
|
+
bodyMapper: GetBitLockerKeysResponse
|
|
1844
|
+
},
|
|
1845
|
+
default: {
|
|
1846
|
+
bodyMapper: ErrorResponse
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
queryParameters: [apiVersion],
|
|
1850
|
+
urlParameters: [
|
|
1851
|
+
$host,
|
|
1852
|
+
subscriptionId,
|
|
1853
|
+
resourceGroupName,
|
|
1854
|
+
jobName
|
|
1855
|
+
],
|
|
1856
|
+
headerParameters: [accept, acceptLanguage],
|
|
1857
|
+
serializer: serializer$2
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
/*
|
|
1861
|
+
* Copyright (c) Microsoft Corporation.
|
|
1862
|
+
* Licensed under the MIT License.
|
|
1863
|
+
*
|
|
1864
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1865
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1866
|
+
*/
|
|
1867
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1868
|
+
/** Class containing Operations operations. */
|
|
1869
|
+
class OperationsImpl {
|
|
1870
|
+
/**
|
|
1871
|
+
* Initialize a new instance of the class Operations class.
|
|
1872
|
+
* @param client Reference to the service client
|
|
1873
|
+
*/
|
|
1874
|
+
constructor(client) {
|
|
1875
|
+
this.client = client;
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
1879
|
+
* @param options The options parameters.
|
|
1880
|
+
*/
|
|
1881
|
+
list(options) {
|
|
1882
|
+
const iter = this.listPagingAll(options);
|
|
1883
|
+
return {
|
|
1884
|
+
next() {
|
|
1885
|
+
return iter.next();
|
|
1886
|
+
},
|
|
1887
|
+
[Symbol.asyncIterator]() {
|
|
1888
|
+
return this;
|
|
1889
|
+
},
|
|
1890
|
+
byPage: () => {
|
|
1891
|
+
return this.listPagingPage(options);
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
listPagingPage(options) {
|
|
1896
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1897
|
+
let result = yield tslib.__await(this._list(options));
|
|
1898
|
+
yield yield tslib.__await(result.value || []);
|
|
1899
|
+
});
|
|
1900
|
+
}
|
|
1901
|
+
listPagingAll(options) {
|
|
1902
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1903
|
+
var e_1, _a;
|
|
1904
|
+
try {
|
|
1905
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1906
|
+
const page = _c.value;
|
|
1907
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1911
|
+
finally {
|
|
1912
|
+
try {
|
|
1913
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1914
|
+
}
|
|
1915
|
+
finally { if (e_1) throw e_1.error; }
|
|
1916
|
+
}
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
/**
|
|
1920
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
1921
|
+
* @param options The options parameters.
|
|
1922
|
+
*/
|
|
1923
|
+
_list(options) {
|
|
1924
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
// Operation Specifications
|
|
1928
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1929
|
+
const listOperationSpec$2 = {
|
|
1930
|
+
path: "/providers/Microsoft.ImportExport/operations",
|
|
1931
|
+
httpMethod: "GET",
|
|
1932
|
+
responses: {
|
|
1933
|
+
200: {
|
|
1934
|
+
bodyMapper: ListOperationsResponse
|
|
1935
|
+
},
|
|
1936
|
+
default: {
|
|
1937
|
+
bodyMapper: ErrorResponse
|
|
1938
|
+
}
|
|
1939
|
+
},
|
|
1940
|
+
queryParameters: [apiVersion],
|
|
1941
|
+
urlParameters: [$host],
|
|
1942
|
+
headerParameters: [accept, acceptLanguage],
|
|
1943
|
+
serializer: serializer$3
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
/*
|
|
1947
|
+
* Copyright (c) Microsoft Corporation.
|
|
1948
|
+
* Licensed under the MIT License.
|
|
1949
|
+
*
|
|
1950
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1951
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1952
|
+
*/
|
|
1953
|
+
class StorageImportExport extends coreClient.ServiceClient {
|
|
1954
|
+
/**
|
|
1955
|
+
* Initializes a new instance of the StorageImportExport class.
|
|
1956
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1957
|
+
* @param subscriptionId The subscription ID for the Azure user.
|
|
1958
|
+
* @param options The parameter options
|
|
1959
|
+
*/
|
|
1960
|
+
constructor(credentials, subscriptionId, options) {
|
|
1961
|
+
if (credentials === undefined) {
|
|
1962
|
+
throw new Error("'credentials' cannot be null");
|
|
1963
|
+
}
|
|
1964
|
+
if (subscriptionId === undefined) {
|
|
1965
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1966
|
+
}
|
|
1967
|
+
// Initializing default values for options
|
|
1968
|
+
if (!options) {
|
|
1969
|
+
options = {};
|
|
1970
|
+
}
|
|
1971
|
+
const defaults = {
|
|
1972
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1973
|
+
credential: credentials
|
|
1974
|
+
};
|
|
1975
|
+
const packageDetails = `azsdk-js-arm-storageimportexport/2.0.0`;
|
|
1976
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1977
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1978
|
+
: `${packageDetails}`;
|
|
1979
|
+
if (!options.credentialScopes) {
|
|
1980
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1981
|
+
}
|
|
1982
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1983
|
+
userAgentPrefix
|
|
1984
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1985
|
+
super(optionsWithDefaults);
|
|
1986
|
+
// Parameter assignments
|
|
1987
|
+
this.subscriptionId = subscriptionId;
|
|
1988
|
+
// Assigning values to Constant parameters
|
|
1989
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1990
|
+
this.apiVersion = options.apiVersion || "2021-01-01";
|
|
1991
|
+
this.locations = new LocationsImpl(this);
|
|
1992
|
+
this.jobs = new JobsImpl(this);
|
|
1993
|
+
this.bitLockerKeys = new BitLockerKeysImpl(this);
|
|
1994
|
+
this.operations = new OperationsImpl(this);
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
exports.StorageImportExport = StorageImportExport;
|
|
1999
|
+
//# sourceMappingURL=index.js.map
|