forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_models.go
730 lines (680 loc) · 41.8 KB
/
zz_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
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
//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.
// DO NOT EDIT.
package generated
import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"time"
)
type ACLFailedEntry struct {
ErrorMessage *string
Name *string
Type *string
}
type PathHierarchyListSegment struct {
// REQUIRED
PathItems []*PathItemInternal `xml:"Blob"`
PathPrefixes []*PathPrefix `xml:"PathPrefix"`
}
// PathItemInternal - An Azure Storage blob
type PathItemInternal struct {
// REQUIRED
Deleted *bool `xml:"Deleted"`
// REQUIRED
Name *string `xml:"Name"`
// REQUIRED; Properties of a blob
Properties *PathPropertiesInternal `xml:"Properties"`
// REQUIRED
Snapshot *string `xml:"Snapshot"`
DeletionID *string `xml:"DeletionId"`
IsCurrentVersion *bool `xml:"IsCurrentVersion"`
VersionID *string `xml:"VersionId"`
}
type PathPrefix struct {
// REQUIRED
Name *string `xml:"Name"`
}
// PathPropertiesInternal - Properties of a blob
type PathPropertiesInternal struct {
// REQUIRED
ETag *azcore.ETag `xml:"Etag"`
// REQUIRED
LastModified *time.Time `xml:"Last-Modified"`
AccessTierChangeTime *time.Time `xml:"AccessTierChangeTime"`
AccessTierInferred *bool `xml:"AccessTierInferred"`
BlobSequenceNumber *int64 `xml:"x-ms-blob-sequence-number"`
CacheControl *string `xml:"Cache-Control"`
ContentDisposition *string `xml:"Content-Disposition"`
ContentEncoding *string `xml:"Content-Encoding"`
ContentLanguage *string `xml:"Content-Language"`
// Size in bytes
ContentLength *int64 `xml:"Content-Length"`
ContentMD5 []byte `xml:"Content-MD5"`
ContentType *string `xml:"Content-Type"`
CopyCompletionTime *time.Time `xml:"CopyCompletionTime"`
CopyID *string `xml:"CopyId"`
CopyProgress *string `xml:"CopyProgress"`
CopySource *string `xml:"CopySource"`
CopyStatusDescription *string `xml:"CopyStatusDescription"`
CreationTime *time.Time `xml:"Creation-Time"`
CustomerProvidedKeySHA256 *string `xml:"CustomerProvidedKeySha256"`
DeleteTime *time.Time `xml:"DeleteTime"`
DeletedTime *time.Time `xml:"DeletedTime"`
DestinationSnapshot *string `xml:"DestinationSnapshot"`
// The name of the encryption scope under which the blob is encrypted.
EncryptionScope *string `xml:"EncryptionScope"`
ExpiresOn *time.Time `xml:"Expiry-Time"`
IncrementalCopy *bool `xml:"IncrementalCopy"`
IsSealed *bool `xml:"Sealed"`
LastAccessedOn *time.Time `xml:"LastAccessTime"`
RemainingRetentionDays *int32 `xml:"RemainingRetentionDays"`
ServerEncrypted *bool `xml:"ServerEncrypted"`
TagCount *int32 `xml:"TagCount"`
}
// CPKInfo contains a group of parameters for the PathClient.Create method.
type CPKInfo struct {
// The algorithm used to produce the encryption key hash. Currently, the only accepted value is "AES256". Must be provided
// if the x-ms-encryption-key header is provided.
EncryptionAlgorithm *EncryptionAlgorithmType
// Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption
// is performed with the root account encryption key. For more information, see
// Encryption at Rest for Azure Storage Services.
EncryptionKey *string
// The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.
EncryptionKeySHA256 *string
}
type FileSystem struct {
ETag *string
LastModified *string
Name *string
}
// FileSystemClientCreateOptions contains the optional parameters for the FileSystemClient.Create method.
type FileSystemClientCreateOptions struct {
// Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and
// value pairs "n1=v1, n2=v2, …", where each value is a base64 encoded string. Note
// that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties
// not included in the list will be removed. All properties are removed if the
// header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then
// make a conditional request with the E-Tag and include values for all properties.
Properties *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// FileSystemClientDeleteOptions contains the optional parameters for the FileSystemClient.Delete method.
type FileSystemClientDeleteOptions struct {
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// FileSystemClientGetPropertiesOptions contains the optional parameters for the FileSystemClient.GetProperties method.
type FileSystemClientGetPropertiesOptions struct {
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// FileSystemClientListBlobHierarchySegmentOptions contains the optional parameters for the FileSystemClient.NewListBlobHierarchySegmentPager
// method.
type FileSystemClientListBlobHierarchySegmentOptions struct {
// When the request includes this parameter, the operation returns a PathPrefix element in the response body that acts as
// a placeholder for all blobs whose names begin with the same substring up to the
// appearance of the delimiter character. The delimiter may be a single character or a string.
Delimiter *string
// Include this parameter to specify one or more datasets to include in the response.
Include []ListBlobsIncludeItem
// A string value that identifies the portion of the list of containers to be returned with the next listing operation. The
// operation returns the NextMarker value within the response body if the listing
// operation did not return all containers remaining to be listed with the current page. The NextMarker value can be used
// as the value for the marker parameter in a subsequent call to request the next
// page of list items. The marker value is opaque to the client.
Marker *string
// An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response
// will include up to 5,000 items.
MaxResults *int32
// Filters results to filesystems within the specified prefix.
Prefix *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// Include this parameter to specify one or more datasets to include in the response.. Specifying any value will set the value
// to deleted.
Showonly *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// FileSystemClientListPathsOptions contains the optional parameters for the FileSystemClient.NewListPathsPager method.
type FileSystemClientListPathsOptions struct {
// Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number
// of paths to be deleted exceeds this limit, a continuation token is returned in
// this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation
// of the delete operation to continue deleting the directory.
Continuation *string
// An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response
// will include up to 5,000 items.
MaxResults *int32
// Optional. Filters results to paths within the specified directory. An error occurs if the directory does not exist.
Path *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned
// in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be
// transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as
// Azure Active Directory Object IDs. The default value is false. Note that group
// and application Object IDs are not translated because they do not have unique friendly names.
Upn *bool
}
// FileSystemClientSetPropertiesOptions contains the optional parameters for the FileSystemClient.SetProperties method.
type FileSystemClientSetPropertiesOptions struct {
// Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and
// value pairs "n1=v1, n2=v2, …", where each value is a base64 encoded string. Note
// that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties
// not included in the list will be removed. All properties are removed if the
// header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then
// make a conditional request with the E-Tag and include values for all properties.
Properties *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
type FileSystemList struct {
Filesystems []*FileSystem
}
// LeaseAccessConditions contains a group of parameters for the PathClient.Create method.
type LeaseAccessConditions struct {
// If specified, the operation only succeeds if the resource's lease is active and matches this ID.
LeaseID *string
}
// ListPathsHierarchySegmentResponse - An enumeration of blobs
type ListPathsHierarchySegmentResponse struct {
// REQUIRED
FileSystemName *string `xml:"ContainerName,attr"`
// REQUIRED
Segment *PathHierarchyListSegment `xml:"Blobs"`
// REQUIRED
ServiceEndpoint *string `xml:"ServiceEndpoint,attr"`
Delimiter *string `xml:"Delimiter"`
Marker *string `xml:"Marker"`
MaxResults *int32 `xml:"MaxResults"`
NextMarker *string `xml:"NextMarker"`
Prefix *string `xml:"Prefix"`
}
// ModifiedAccessConditions contains a group of parameters for the FileSystemClient.SetProperties method.
type ModifiedAccessConditions struct {
// Specify an ETag value to operate only on blobs with a matching value.
IfMatch *azcore.ETag
// Specify this header value to operate only on a blob if it has been modified since the specified date/time.
IfModifiedSince *time.Time
// Specify an ETag value to operate only on blobs without a matching value.
IfNoneMatch *azcore.ETag
// Specify this header value to operate only on a blob if it has not been modified since the specified date/time.
IfUnmodifiedSince *time.Time
}
type Path struct {
ContentLength *int64
CreationTime *string
ETag *string
EncryptionContext *string
// The name of the encryption scope under which the blob is encrypted.
EncryptionScope *string
ExpiryTime *string
Group *string
IsDirectory *bool
LastModified *string
Name *string
Owner *string
Permissions *string
}
// PathClientAppendDataOptions contains the optional parameters for the PathClient.AppendData method.
type PathClientAppendDataOptions struct {
// Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes
// for "Append Data".
ContentLength *int64
// If file should be flushed after the append
Flush *bool
// Optional. If "acquire" it will acquire the lease. If "auto-renew" it will renew the lease. If "release" it will release
// the lease only on flush. If "acquire-release" it will acquire & complete the
// operation & release the lease once operation is done.
LeaseAction *LeaseAction
// The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration
// must be between 15 and 60 seconds or -1 for infinite lease.
LeaseDuration *int64
// This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file.
// It is required when uploading data to be appended to the file and when flushing
// previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is
// not immediately flushed, or written, to the file. To flush, the previously
// uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all
// data has been written, and there must not be a request entity body included
// with the request.
Position *int64
// Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is
// not in the correct format. See Guid Constructor (String) for a list of valid GUID
// string formats.
ProposedLeaseID *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Specify the transactional crc64 for the body, to be validated by the service.
TransactionalContentCRC64 []byte
}
// PathClientCreateOptions contains the optional parameters for the PathClient.Create method.
type PathClientCreateOptions struct {
// Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries.
// Each access control entry (ACE) consists of a scope, a type, a user or group
// identifier, and permissions in the format "[scope:][type]:[id]:[permissions]".
ACL *string
// Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number
// of paths to be deleted exceeds this limit, a continuation token is returned in
// this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation
// of the delete operation to continue deleting the directory.
Continuation *string
// Specifies the encryption context to set on the file.
EncryptionContext *string
// The time to set the blob to expiry
ExpiresOn *string
// Required. Indicates mode of the expiry time
ExpiryOptions *PathExpiryOptions
// Optional. The owning group of the blob or directory.
Group *string
// The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration
// must be between 15 and 60 seconds or -1 for infinite lease.
LeaseDuration *int64
// Optional. Valid only when namespace is enabled. This parameter determines the behavior of the rename operation. The value
// must be "legacy" or "posix", and the default value will be "posix".
Mode *PathRenameMode
// Optional. The owner of the blob or directory.
Owner *string
// Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file
// owner, the file owning group, and others. Each class may be granted read,
// write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g.
// 0766) are supported.
Permissions *string
// Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and
// value pairs "n1=v1, n2=v2, …", where each value is a base64 encoded string. Note
// that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties
// not included in the list will be removed. All properties are removed if the
// header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then
// make a conditional request with the E-Tag and include values for all properties.
Properties *string
// Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is
// not in the correct format. See Guid Constructor (String) for a list of valid GUID
// string formats.
ProposedLeaseID *string
// An optional file or directory to be renamed. The value must have the following format: "/{filesystem}/{path}". If "x-ms-properties"
// is specified, the properties will overwrite the existing properties;
// otherwise, the existing properties will be preserved. This value must be a URL percent-encoded string. Note that the string
// may only contain ASCII characters in the ISO-8859-1 character set.
RenameSource *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// Required only for Create File and Create Directory. The value must be "file" or "directory".
Resource *PathResourceType
// A lease ID for the source path. If specified, the source path must have an active lease and the lease ID must match.
SourceLeaseID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Optional and only valid if Hierarchical Namespace is enabled for the account. When creating a file or directory and the
// parent folder does not have a default ACL, the umask restricts the permissions
// of the file or directory to be created. The resulting permission is given by p bitwise and not u, where p is the permission
// and u is the umask. For example, if p is 0777 and u is 0057, then the
// resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is
// 0027. The umask must be specified in 4-digit octal notation (e.g. 0766).
Umask *string
}
// PathClientDeleteOptions contains the optional parameters for the PathClient.Delete method.
type PathClientDeleteOptions struct {
// Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number
// of paths to be deleted exceeds this limit, a continuation token is returned in
// this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation
// of the delete operation to continue deleting the directory.
Continuation *string
// If true, paginated behavior will be seen. Pagination is for the recursive ACL checks as a POSIX requirement in the server
// and Delete in an atomic operation once the ACL checks are completed. If false
// or missing, normal default behavior will kick in, which may timeout in case of very large directories due to recursive
// ACL checks. This new parameter is introduced for backward compatibility.
Paginated *bool
// Required
Recursive *bool
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathClientFlushDataOptions contains the optional parameters for the PathClient.FlushData method.
type PathClientFlushDataOptions struct {
// Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled,
// a file changed event is raised. This event has a property indicating whether
// this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close
// of a file stream. The close query parameter is valid only when the action is
// "flush" and change notifications are enabled. If the value of close is "true" and the flush operation completes successfully,
// the service raises a file change notification with a property indicating
// that this is the final update (the file stream has been closed). If "false" a change notification is raised indicating
// the file has changed. The default is false. This query parameter is set to true
// by the Hadoop ABFS driver to indicate that the file stream has been closed."
Close *bool
// Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes
// for "Append Data".
ContentLength *int64
// Optional. If "acquire" it will acquire the lease. If "auto-renew" it will renew the lease. If "release" it will release
// the lease only on flush. If "acquire-release" it will acquire & complete the
// operation & release the lease once operation is done.
LeaseAction *LeaseAction
// The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration
// must be between 15 and 60 seconds or -1 for infinite lease.
LeaseDuration *int64
// This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file.
// It is required when uploading data to be appended to the file and when flushing
// previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is
// not immediately flushed, or written, to the file. To flush, the previously
// uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all
// data has been written, and there must not be a request entity body included
// with the request.
Position *int64
// Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is
// not in the correct format. See Guid Constructor (String) for a list of valid GUID
// string formats.
ProposedLeaseID *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// Valid only for flush operations. If "true", uncommitted data is retained after the flush operation completes; otherwise,
// the uncommitted data is deleted after the flush operation. The default is
// false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional
// parameter allows data after the flush position to be retained for a future flush
// operation.
RetainUncommittedData *bool
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathClientGetPropertiesOptions contains the optional parameters for the PathClient.GetProperties method.
type PathClientGetPropertiesOptions struct {
// Optional. If the value is "getStatus" only the system defined properties for the path are returned. If the value is "getAccessControl"
// the access control list is returned in the response headers
// (Hierarchical Namespace must be enabled for the account), otherwise the properties are returned.
Action *PathGetPropertiesAction
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned
// in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be
// transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as
// Azure Active Directory Object IDs. The default value is false. Note that group
// and application Object IDs are not translated because they do not have unique friendly names.
Upn *bool
}
// PathClientLeaseOptions contains the optional parameters for the PathClient.Lease method.
type PathClientLeaseOptions struct {
// Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is
// not in the correct format. See Guid Constructor (String) for a list of valid GUID
// string formats.
ProposedLeaseID *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// The lease break period duration is optional to break a lease, and specifies the break period of the lease in seconds. The
// lease break duration must be between 0 and 60 seconds.
XMSLeaseBreakPeriod *int32
}
// PathClientReadOptions contains the optional parameters for the PathClient.Read method.
type PathClientReadOptions struct {
// The HTTP Range request header specifies one or more byte ranges of the resource to be retrieved.
Range *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Optional. When this header is set to "true" and specified together with the Range header, the service returns the MD5 hash
// for the range, as long as the range is less than or equal to 4MB in size. If
// this header is specified without the Range header, the service returns status code 400 (Bad Request). If this header is
// set to true when the range exceeds 4 MB in size, the service returns status code
// 400 (Bad Request).
XMSRangeGetContentMD5 *bool
}
// PathClientSetAccessControlOptions contains the optional parameters for the PathClient.SetAccessControl method.
type PathClientSetAccessControlOptions struct {
// Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries.
// Each access control entry (ACE) consists of a scope, a type, a user or group
// identifier, and permissions in the format "[scope:][type]:[id]:[permissions]".
ACL *string
// Optional. The owning group of the blob or directory.
Group *string
// Optional. The owner of the blob or directory.
Owner *string
// Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file
// owner, the file owning group, and others. Each class may be granted read,
// write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g.
// 0766) are supported.
Permissions *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathClientSetAccessControlRecursiveOptions contains the optional parameters for the PathClient.SetAccessControlRecursive
// method.
type PathClientSetAccessControlRecursiveOptions struct {
// Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries.
// Each access control entry (ACE) consists of a scope, a type, a user or group
// identifier, and permissions in the format "[scope:][type]:[id]:[permissions]".
ACL *string
// Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number
// of paths to be deleted exceeds this limit, a continuation token is returned in
// this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation
// of the delete operation to continue deleting the directory.
Continuation *string
// Optional. Valid for "SetAccessControlRecursive" operation. If set to false, the operation will terminate quickly on encountering
// user errors (4XX). If true, the operation will ignore user errors and
// proceed with the operation on other sub-entities of the directory. Continuation token will only be returned when forceFlag
// is true in case of user errors. If not set the default value is false for
// this.
ForceFlag *bool
// Optional. It specifies the maximum number of files or directories on which the acl change will be applied. If omitted or
// greater than 2,000, the request will process up to 2,000 items
MaxRecords *int32
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathClientSetExpiryOptions contains the optional parameters for the PathClient.SetExpiry method.
type PathClientSetExpiryOptions struct {
// The time to set the blob to expiry
ExpiresOn *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathClientUndeleteOptions contains the optional parameters for the PathClient.Undelete method.
type PathClientUndeleteOptions struct {
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
// Only for hierarchical namespace enabled accounts. Optional. The path of the soft deleted blob to undelete.
UndeleteSource *string
}
// PathClientUpdateOptions contains the optional parameters for the PathClient.Update method.
type PathClientUpdateOptions struct {
// Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries.
// Each access control entry (ACE) consists of a scope, a type, a user or group
// identifier, and permissions in the format "[scope:][type]:[id]:[permissions]".
ACL *string
// Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled,
// a file changed event is raised. This event has a property indicating whether
// this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close
// of a file stream. The close query parameter is valid only when the action is
// "flush" and change notifications are enabled. If the value of close is "true" and the flush operation completes successfully,
// the service raises a file change notification with a property indicating
// that this is the final update (the file stream has been closed). If "false" a change notification is raised indicating
// the file has changed. The default is false. This query parameter is set to true
// by the Hadoop ABFS driver to indicate that the file stream has been closed."
Close *bool
// Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes
// for "Append Data".
ContentLength *int64
// Optional. The number of paths processed with each invocation is limited. If the number of paths to be processed exceeds
// this limit, a continuation token is returned in the response header
// x-ms-continuation. When a continuation token is returned in the response, it must be percent-encoded and specified in a
// subsequent invocation of setAccessControlRecursive operation.
Continuation *string
// Optional. Valid for "SetAccessControlRecursive" operation. If set to false, the operation will terminate quickly on encountering
// user errors (4XX). If true, the operation will ignore user errors and
// proceed with the operation on other sub-entities of the directory. Continuation token will only be returned when forceFlag
// is true in case of user errors. If not set the default value is false for
// this.
ForceFlag *bool
// Optional. The owning group of the blob or directory.
Group *string
// Optional. Valid for "SetAccessControlRecursive" operation. It specifies the maximum number of files or directories on which
// the acl change will be applied. If omitted or greater than 2,000, the
// request will process up to 2,000 items
MaxRecords *int32
// Optional. The owner of the blob or directory.
Owner *string
// Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file
// owner, the file owning group, and others. Each class may be granted read,
// write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g.
// 0766) are supported.
Permissions *string
// This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file.
// It is required when uploading data to be appended to the file and when flushing
// previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is
// not immediately flushed, or written, to the file. To flush, the previously
// uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all
// data has been written, and there must not be a request entity body included
// with the request.
Position *int64
// Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and
// value pairs "n1=v1, n2=v2, …", where each value is a base64 encoded string. Note
// that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties
// not included in the list will be removed. All properties are removed if the
// header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then
// make a conditional request with the E-Tag and include values for all properties.
Properties *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// Valid only for flush operations. If "true", uncommitted data is retained after the flush operation completes; otherwise,
// the uncommitted data is deleted after the flush operation. The default is
// false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional
// parameter allows data after the flush position to be retained for a future flush
// operation.
RetainUncommittedData *bool
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
// PathHTTPHeaders contains a group of parameters for the PathClient.Create method.
type PathHTTPHeaders struct {
// Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.
CacheControl *string
// Optional. Sets the blob's Content-Disposition header.
ContentDisposition *string
// Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read
// request.
ContentEncoding *string
// Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read
// request.
ContentLanguage *string
// Specify the transactional md5 for the body, to be validated by the service.
ContentMD5 []byte
// Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request.
ContentType *string
// Specify the transactional md5 for the body, to be validated by the service.
TransactionalContentHash []byte
}
type PathList struct {
Paths []*Path
}
// ServiceClientListFileSystemsOptions contains the optional parameters for the ServiceClient.NewListFileSystemsPager method.
type ServiceClientListFileSystemsOptions struct {
// Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number
// of paths to be deleted exceeds this limit, a continuation token is returned in
// this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation
// of the delete operation to continue deleting the directory.
Continuation *string
// An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response
// will include up to 5,000 items.
MaxResults *int32
// Filters results to filesystems within the specified prefix.
Prefix *string
// Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage
// analytics logging is enabled.
RequestID *string
// The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
// [https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations]
Timeout *int32
}
type SetAccessControlRecursiveResponse struct {
DirectoriesSuccessful *int32
FailedEntries []*ACLFailedEntry
FailureCount *int32
FilesSuccessful *int32
}
// SourceModifiedAccessConditions contains a group of parameters for the PathClient.Create method.
type SourceModifiedAccessConditions struct {
// Specify an ETag value to operate only on blobs with a matching value.
SourceIfMatch *azcore.ETag
// Specify this header value to operate only on a blob if it has been modified since the specified date/time.
SourceIfModifiedSince *time.Time
// Specify an ETag value to operate only on blobs without a matching value.
SourceIfNoneMatch *azcore.ETag
// Specify this header value to operate only on a blob if it has not been modified since the specified date/time.
SourceIfUnmodifiedSince *time.Time
}
type StorageError struct {
// The service error response object.
Error *StorageErrorError
}
// StorageErrorError - The service error response object.
type StorageErrorError struct {
// The service error code.
Code *string
// The service error message.
Message *string
}