/
zz_generated_models.go
559 lines (414 loc) · 21.2 KB
/
zz_generated_models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armstorageimportexport
import "time"
// BitLockerKeysClientListOptions contains the optional parameters for the BitLockerKeysClient.List method.
type BitLockerKeysClientListOptions struct {
}
// DeliveryPackageInformation - Contains information about the delivery package being shipped by the customer to the Microsoft
// data center.
type DeliveryPackageInformation struct {
// REQUIRED; The name of the carrier that is used to ship the import or export drives.
CarrierName *string `json:"carrierName,omitempty"`
// REQUIRED; The tracking number of the package.
TrackingNumber *string `json:"trackingNumber,omitempty"`
// The number of drives included in the package.
DriveCount *int64 `json:"driveCount,omitempty"`
// The date when the package is shipped.
ShipDate *string `json:"shipDate,omitempty"`
}
// DriveBitLockerKey - BitLocker recovery key or password to the specified drive
type DriveBitLockerKey struct {
// BitLocker recovery key or password
BitLockerKey *string `json:"bitLockerKey,omitempty"`
// Drive ID
DriveID *string `json:"driveId,omitempty"`
}
// DriveStatus - Provides information about the drive's status
type DriveStatus struct {
// The BitLocker key used to encrypt the drive.
BitLockerKey *string `json:"bitLockerKey,omitempty"`
// Bytes successfully transferred for the drive.
BytesSucceeded *int64 `json:"bytesSucceeded,omitempty"`
// Detailed status about the data transfer process. This field is not returned in the response until the drive is in the Transferring
// state.
CopyStatus *string `json:"copyStatus,omitempty"`
// The drive header hash value.
DriveHeaderHash *string `json:"driveHeaderHash,omitempty"`
// The drive's hardware serial number, without spaces.
DriveID *string `json:"driveId,omitempty"`
// A URI that points to the blob containing the error log for the data transfer operation.
ErrorLogURI *string `json:"errorLogUri,omitempty"`
// The relative path of the manifest file on the drive.
ManifestFile *string `json:"manifestFile,omitempty"`
// The Base16-encoded MD5 hash of the manifest file on the drive.
ManifestHash *string `json:"manifestHash,omitempty"`
// A URI that points to the blob containing the drive manifest file.
ManifestURI *string `json:"manifestUri,omitempty"`
// Percentage completed for the drive.
PercentComplete *int64 `json:"percentComplete,omitempty"`
// The drive's current state.
State *DriveState `json:"state,omitempty"`
// A URI that points to the blob containing the verbose log for the data transfer operation.
VerboseLogURI *string `json:"verboseLogUri,omitempty"`
}
// EncryptionKeyDetails - Specifies the encryption key properties
type EncryptionKeyDetails struct {
// The type of kek encryption key
KekType *EncryptionKekType `json:"kekType,omitempty"`
// Specifies the url for kek encryption key.
KekURL *string `json:"kekUrl,omitempty"`
// Specifies the keyvault resource id for kek encryption key.
KekVaultResourceID *string `json:"kekVaultResourceID,omitempty"`
}
// ErrorResponse - Response when errors occurred
type ErrorResponse struct {
// Describes the error information.
Error *ErrorResponseError `json:"error,omitempty"`
}
// ErrorResponseError - Describes the error information.
type ErrorResponseError struct {
// Provides information about the error code.
Code *string `json:"code,omitempty"`
// Describes the error details if present.
Details []*ErrorResponseErrorDetailsItem `json:"details,omitempty"`
// Inner error object if present.
Innererror interface{} `json:"innererror,omitempty"`
// Provides information about the error message.
Message *string `json:"message,omitempty"`
// Provides information about the error target.
Target *string `json:"target,omitempty"`
}
type ErrorResponseErrorDetailsItem struct {
// Provides information about the error code.
Code *string `json:"code,omitempty"`
// Provides information about the error message.
Message *string `json:"message,omitempty"`
// Provides information about the error target.
Target *string `json:"target,omitempty"`
}
// Export - A property containing information about the blobs to be exported for an export job. This property is required
// for export jobs, but must not be specified for import jobs.
type Export struct {
// A list of the blobs to be exported.
BlobList *ExportBlobList `json:"blobList,omitempty"`
// The relative URI to the block blob that contains the list of blob paths or blob path prefixes as defined above, beginning
// with the container name. If the blob is in root container, the URI must begin
// with $root.
BlobListBlobPath *string `json:"blobListBlobPath,omitempty"`
}
// ExportBlobList - A list of the blobs to be exported.
type ExportBlobList struct {
// A collection of blob-path strings.
BlobPath []*string `json:"blobPath,omitempty"`
// A collection of blob-prefix strings.
BlobPathPrefix []*string `json:"blobPathPrefix,omitempty"`
}
// GetBitLockerKeysResponse - GetBitLockerKeys response
type GetBitLockerKeysResponse struct {
// drive status
Value []*DriveBitLockerKey `json:"value,omitempty"`
}
// IdentityDetails - Specifies the identity properties.
type IdentityDetails struct {
// The type of identity
Type *IdentityType `json:"type,omitempty"`
// READ-ONLY; Specifies the principal id for the identity for the job.
PrincipalID *string `json:"principalId,omitempty" azure:"ro"`
// READ-ONLY; Specifies the tenant id for the identity for the job.
TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}
// JobDetails - Specifies the job properties
type JobDetails struct {
// Default value is false. Indicates whether the manifest files on the drives should be copied to block blobs.
BackupDriveManifest *bool `json:"backupDriveManifest,omitempty"`
// Indicates whether a request has been submitted to cancel the job.
CancelRequested *bool `json:"cancelRequested,omitempty"`
// Contains information about the package being shipped by the customer to the Microsoft data center.
DeliveryPackage *DeliveryPackageInformation `json:"deliveryPackage,omitempty"`
// The virtual blob directory to which the copy logs and backups of drive manifest files (if enabled) will be stored.
DiagnosticsPath *string `json:"diagnosticsPath,omitempty"`
// List of up to ten drives that comprise the job. The drive list is a required element for an import job; it is not specified
// for export jobs.
DriveList []*DriveStatus `json:"driveList,omitempty"`
// Contains information about the encryption key.
EncryptionKey *EncryptionKeyDetails `json:"encryptionKey,omitempty"`
// A property containing information about the blobs to be exported for an export job. This property is included for export
// jobs only.
Export *Export `json:"export,omitempty"`
// A blob path that points to a block blob containing a list of blob names that were not exported due to insufficient drive
// space. If all blobs were exported successfully, then this element is not
// included in the response.
IncompleteBlobListURI *string `json:"incompleteBlobListUri,omitempty"`
// The type of job
JobType *string `json:"jobType,omitempty"`
// Default value is Error. Indicates whether error logging or verbose logging will be enabled.
LogLevel *string `json:"logLevel,omitempty"`
// Overall percentage completed for the job.
PercentComplete *int64 `json:"percentComplete,omitempty"`
// Specifies the provisioning state of the job.
ProvisioningState *string `json:"provisioningState,omitempty"`
// Specifies the return address information for the job.
ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
// Contains information about the package being shipped from the Microsoft data center to the customer to return the drives.
// The format is the same as the deliveryPackage property above. This property is
// not included if the drives have not yet been returned.
ReturnPackage *PackageInformation `json:"returnPackage,omitempty"`
// Specifies the return carrier and customer's account with the carrier.
ReturnShipping *ReturnShipping `json:"returnShipping,omitempty"`
// Contains information about the Microsoft datacenter to which the drives should be shipped.
ShippingInformation *ShippingInformation `json:"shippingInformation,omitempty"`
// Current state of the job.
State *string `json:"state,omitempty"`
// The resource identifier of the storage account where data will be imported to or exported from.
StorageAccountID *string `json:"storageAccountId,omitempty"`
}
// JobResponse - Contains the job information.
type JobResponse struct {
// Specifies the job identity details
Identity *IdentityDetails `json:"identity,omitempty"`
// Specifies the Azure location where the job is created.
Location *string `json:"location,omitempty"`
// Specifies the job properties
Properties *JobDetails `json:"properties,omitempty"`
// Specifies the tags that are assigned to the job.
Tags interface{} `json:"tags,omitempty"`
// READ-ONLY; Specifies the resource identifier of the job.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Specifies the name of the job.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; SystemData of ImportExport Jobs.
SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
// READ-ONLY; Specifies the type of the job resource.
Type *string `json:"type,omitempty" azure:"ro"`
}
// JobsClientCreateOptions contains the optional parameters for the JobsClient.Create method.
type JobsClientCreateOptions struct {
// The tenant ID of the client making the request.
ClientTenantID *string
}
// JobsClientDeleteOptions contains the optional parameters for the JobsClient.Delete method.
type JobsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// JobsClientGetOptions contains the optional parameters for the JobsClient.Get method.
type JobsClientGetOptions struct {
// placeholder for future optional parameters
}
// JobsClientListByResourceGroupOptions contains the optional parameters for the JobsClient.ListByResourceGroup method.
type JobsClientListByResourceGroupOptions struct {
// Can be used to restrict the results to certain conditions.
Filter *string
// An integer value that specifies how many jobs at most should be returned. The value cannot exceed 100.
Top *int64
}
// JobsClientListBySubscriptionOptions contains the optional parameters for the JobsClient.ListBySubscription method.
type JobsClientListBySubscriptionOptions struct {
// Can be used to restrict the results to certain conditions.
Filter *string
// An integer value that specifies how many jobs at most should be returned. The value cannot exceed 100.
Top *int64
}
// JobsClientUpdateOptions contains the optional parameters for the JobsClient.Update method.
type JobsClientUpdateOptions struct {
// placeholder for future optional parameters
}
// ListJobsResponse - List jobs response
type ListJobsResponse struct {
// link to next batch of jobs
NextLink *string `json:"nextLink,omitempty"`
// Job list
Value []*JobResponse `json:"value,omitempty"`
}
// ListOperationsResponse - List operations response
type ListOperationsResponse struct {
// operations
Value []*Operation `json:"value,omitempty"`
}
// Location - Provides information about an Azure data center location.
type Location struct {
// Specifies the resource identifier of the location.
ID *string `json:"id,omitempty"`
// Specifies the name of the location. Use List Locations to get all supported locations.
Name *string `json:"name,omitempty"`
// location properties
Properties *LocationProperties `json:"properties,omitempty"`
// Specifies the type of the location.
Type *string `json:"type,omitempty"`
}
// LocationProperties - location properties
type LocationProperties struct {
// Additional shipping information for customer, specific to datacenter to which customer should send their disks.
AdditionalShippingInformation *string `json:"additionalShippingInformation,omitempty"`
// A list of location IDs that should be used to ship shipping drives to for jobs created against the current location. If
// the current location is active, it will be part of the list. If it is
// temporarily closed due to maintenance, this list may contain other locations.
AlternateLocations []*string `json:"alternateLocations,omitempty"`
// The city name to use when shipping the drives to the Azure data center.
City *string `json:"city,omitempty"`
// The country or region to use when shipping the drives to the Azure data center.
CountryOrRegion *string `json:"countryOrRegion,omitempty"`
// The phone number for the Azure data center.
Phone *string `json:"phone,omitempty"`
// The postal code to use when shipping the drives to the Azure data center.
PostalCode *string `json:"postalCode,omitempty"`
// The recipient name to use when shipping the drives to the Azure data center.
RecipientName *string `json:"recipientName,omitempty"`
// The state or province to use when shipping the drives to the Azure data center.
StateOrProvince *string `json:"stateOrProvince,omitempty"`
// The first line of the street address to use when shipping the drives to the Azure data center.
StreetAddress1 *string `json:"streetAddress1,omitempty"`
// The second line of the street address to use when shipping the drives to the Azure data center.
StreetAddress2 *string `json:"streetAddress2,omitempty"`
// A list of carriers that are supported at this location.
SupportedCarriers []*string `json:"supportedCarriers,omitempty"`
}
// LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method.
type LocationsClientGetOptions struct {
// placeholder for future optional parameters
}
// LocationsClientListOptions contains the optional parameters for the LocationsClient.List method.
type LocationsClientListOptions struct {
}
// LocationsResponse - Locations response
type LocationsResponse struct {
// locations
Value []*Location `json:"value,omitempty"`
}
// Operation - Describes a supported operation by the Storage Import/Export job API.
type Operation struct {
// REQUIRED; operation display properties
Display *OperationDisplay `json:"display,omitempty"`
// REQUIRED; Name of the operation.
Name *string `json:"name,omitempty"`
}
// OperationDisplay - operation display properties
type OperationDisplay struct {
// Short description of the operation.
Description *string `json:"description,omitempty"`
// The display name of the operation.
Operation *string `json:"operation,omitempty"`
// The resource provider name to which the operation belongs.
Provider *string `json:"provider,omitempty"`
// The name of the resource to which the operation belongs.
Resource *string `json:"resource,omitempty"`
}
// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions struct {
}
// PackageInformation - Contains information about the package being shipped by the customer to the Microsoft data center.
type PackageInformation struct {
// REQUIRED; The name of the carrier that is used to ship the import or export drives.
CarrierName *string `json:"carrierName,omitempty"`
// REQUIRED; The number of drives included in the package.
DriveCount *int64 `json:"driveCount,omitempty"`
// REQUIRED; The date when the package is shipped.
ShipDate *string `json:"shipDate,omitempty"`
// REQUIRED; The tracking number of the package.
TrackingNumber *string `json:"trackingNumber,omitempty"`
}
// PutJobParameters - Put Job parameters
type PutJobParameters struct {
// Specifies the supported Azure location where the job should be created
Location *string `json:"location,omitempty"`
// Specifies the job properties
Properties *JobDetails `json:"properties,omitempty"`
// Specifies the tags that will be assigned to the job.
Tags interface{} `json:"tags,omitempty"`
}
// ReturnAddress - Specifies the return address information for the job.
type ReturnAddress struct {
// REQUIRED; The city name to use when returning the drives.
City *string `json:"city,omitempty"`
// REQUIRED; The country or region to use when returning the drives.
CountryOrRegion *string `json:"countryOrRegion,omitempty"`
// REQUIRED; Email address of the recipient of the returned drives.
Email *string `json:"email,omitempty"`
// REQUIRED; Phone number of the recipient of the returned drives.
Phone *string `json:"phone,omitempty"`
// REQUIRED; The postal code to use when returning the drives.
PostalCode *string `json:"postalCode,omitempty"`
// REQUIRED; The name of the recipient who will receive the hard drives when they are returned.
RecipientName *string `json:"recipientName,omitempty"`
// REQUIRED; The first line of the street address to use when returning the drives.
StreetAddress1 *string `json:"streetAddress1,omitempty"`
// The state or province to use when returning the drives.
StateOrProvince *string `json:"stateOrProvince,omitempty"`
// The second line of the street address to use when returning the drives.
StreetAddress2 *string `json:"streetAddress2,omitempty"`
}
// ReturnShipping - Specifies the return carrier and customer's account with the carrier.
type ReturnShipping struct {
// REQUIRED; The customer's account number with the carrier.
CarrierAccountNumber *string `json:"carrierAccountNumber,omitempty"`
// REQUIRED; The carrier's name.
CarrierName *string `json:"carrierName,omitempty"`
}
// ShippingInformation - Contains information about the Microsoft datacenter to which the drives should be shipped.
type ShippingInformation struct {
// The city name to use when returning the drives.
City *string `json:"city,omitempty"`
// The country or region to use when returning the drives.
CountryOrRegion *string `json:"countryOrRegion,omitempty"`
// Phone number of the recipient of the returned drives.
Phone *string `json:"phone,omitempty"`
// The postal code to use when returning the drives.
PostalCode *string `json:"postalCode,omitempty"`
// The name of the recipient who will receive the hard drives when they are returned.
RecipientName *string `json:"recipientName,omitempty"`
// The state or province to use when returning the drives.
StateOrProvince *string `json:"stateOrProvince,omitempty"`
// The first line of the street address to use when returning the drives.
StreetAddress1 *string `json:"streetAddress1,omitempty"`
// The second line of the street address to use when returning the drives.
StreetAddress2 *string `json:"streetAddress2,omitempty"`
// READ-ONLY; Additional shipping information for customer, specific to datacenter to which customer should send their disks.
AdditionalInformation *string `json:"additionalInformation,omitempty" azure:"ro"`
}
// SystemData - Metadata pertaining to creation and last modification of the resource.
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// The type of identity that created the resource.
CreatedByType *CreatedByType `json:"createdByType,omitempty"`
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"`
// The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"`
}
// UpdateJobParameters - Update Job parameters
type UpdateJobParameters struct {
// Specifies the properties of a UpdateJob.
Properties *UpdateJobParametersProperties `json:"properties,omitempty"`
// Specifies the tags that will be assigned to the job
Tags interface{} `json:"tags,omitempty"`
}
// UpdateJobParametersProperties - Specifies the properties of a UpdateJob.
type UpdateJobParametersProperties struct {
// Indicates whether the manifest files on the drives should be copied to block blobs.
BackupDriveManifest *bool `json:"backupDriveManifest,omitempty"`
// If specified, the value must be true. The service will attempt to cancel the job.
CancelRequested *bool `json:"cancelRequested,omitempty"`
// Contains information about the package being shipped by the customer to the Microsoft data center.
DeliveryPackage *DeliveryPackageInformation `json:"deliveryPackage,omitempty"`
// List of drives that comprise the job.
DriveList []*DriveStatus `json:"driveList,omitempty"`
// Indicates whether error logging or verbose logging is enabled.
LogLevel *string `json:"logLevel,omitempty"`
// Specifies the return address information for the job.
ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
// Specifies the return carrier and customer's account with the carrier.
ReturnShipping *ReturnShipping `json:"returnShipping,omitempty"`
// If specified, the value must be Shipping, which tells the Import/Export service that the package for the job has been shipped.
// The ReturnAddress and DeliveryPackage properties must have been set
// either in this request or in a previous request, otherwise the request will fail.
State *string `json:"state,omitempty"`
}