1 package filesystem
2
3
4
5
6
7
8
9 import (
10 "encoding/json"
11 "github.com/Azure/go-autorest/autorest"
12 "io"
13 )
14
15
16 const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem"
17
18
19 type ACLStatus struct {
20
21 Entries *[]string `json:"entries,omitempty"`
22
23 Group *string `json:"group,omitempty"`
24
25 Owner *string `json:"owner,omitempty"`
26
27 Permission *int32 `json:"permission,omitempty"`
28
29 StickyBit *bool `json:"stickyBit,omitempty"`
30 }
31
32
33 func (as ACLStatus) MarshalJSON() ([]byte, error) {
34 objectMap := make(map[string]interface{})
35 if as.Entries != nil {
36 objectMap["entries"] = as.Entries
37 }
38 if as.Group != nil {
39 objectMap["group"] = as.Group
40 }
41 if as.Owner != nil {
42 objectMap["owner"] = as.Owner
43 }
44 if as.Permission != nil {
45 objectMap["permission"] = as.Permission
46 }
47 return json.Marshal(objectMap)
48 }
49
50
51 type ACLStatusResult struct {
52 autorest.Response `json:"-"`
53
54 ACLStatus *ACLStatus `json:"AclStatus,omitempty"`
55 }
56
57
58
59 type AdlsAccessControlException struct {
60
61 JavaClassName *string `json:"javaClassName,omitempty"`
62
63 Message *string `json:"message,omitempty"`
64
65 Exception Exception `json:"exception,omitempty"`
66 }
67
68
69 func (aace AdlsAccessControlException) MarshalJSON() ([]byte, error) {
70 aace.Exception = ExceptionAccessControlException
71 objectMap := make(map[string]interface{})
72 if aace.Exception != "" {
73 objectMap["exception"] = aace.Exception
74 }
75 return json.Marshal(objectMap)
76 }
77
78
79 func (aace AdlsAccessControlException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
80 return nil, false
81 }
82
83
84 func (aace AdlsAccessControlException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
85 return nil, false
86 }
87
88
89 func (aace AdlsAccessControlException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
90 return nil, false
91 }
92
93
94 func (aace AdlsAccessControlException) AsAdlsIOException() (*AdlsIOException, bool) {
95 return nil, false
96 }
97
98
99 func (aace AdlsAccessControlException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
100 return nil, false
101 }
102
103
104 func (aace AdlsAccessControlException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
105 return nil, false
106 }
107
108
109 func (aace AdlsAccessControlException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
110 return nil, false
111 }
112
113
114 func (aace AdlsAccessControlException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
115 return nil, false
116 }
117
118
119 func (aace AdlsAccessControlException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
120 return &aace, true
121 }
122
123
124 func (aace AdlsAccessControlException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
125 return nil, false
126 }
127
128
129 func (aace AdlsAccessControlException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
130 return &aace, true
131 }
132
133
134
135 type AdlsBadOffsetException struct {
136
137 JavaClassName *string `json:"javaClassName,omitempty"`
138
139 Message *string `json:"message,omitempty"`
140
141 Exception Exception `json:"exception,omitempty"`
142 }
143
144
145 func (aboe AdlsBadOffsetException) MarshalJSON() ([]byte, error) {
146 aboe.Exception = ExceptionBadOffsetException
147 objectMap := make(map[string]interface{})
148 if aboe.Exception != "" {
149 objectMap["exception"] = aboe.Exception
150 }
151 return json.Marshal(objectMap)
152 }
153
154
155 func (aboe AdlsBadOffsetException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
156 return nil, false
157 }
158
159
160 func (aboe AdlsBadOffsetException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
161 return nil, false
162 }
163
164
165 func (aboe AdlsBadOffsetException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
166 return nil, false
167 }
168
169
170 func (aboe AdlsBadOffsetException) AsAdlsIOException() (*AdlsIOException, bool) {
171 return nil, false
172 }
173
174
175 func (aboe AdlsBadOffsetException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
176 return nil, false
177 }
178
179
180 func (aboe AdlsBadOffsetException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
181 return nil, false
182 }
183
184
185 func (aboe AdlsBadOffsetException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
186 return &aboe, true
187 }
188
189
190 func (aboe AdlsBadOffsetException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
191 return nil, false
192 }
193
194
195 func (aboe AdlsBadOffsetException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
196 return nil, false
197 }
198
199
200 func (aboe AdlsBadOffsetException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
201 return nil, false
202 }
203
204
205 func (aboe AdlsBadOffsetException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
206 return &aboe, true
207 }
208
209
210 type AdlsError struct {
211
212 RemoteException BasicAdlsRemoteException `json:"RemoteException,omitempty"`
213 }
214
215
216 func (ae AdlsError) MarshalJSON() ([]byte, error) {
217 objectMap := make(map[string]interface{})
218 return json.Marshal(objectMap)
219 }
220
221
222 func (ae *AdlsError) UnmarshalJSON(body []byte) error {
223 var m map[string]*json.RawMessage
224 err := json.Unmarshal(body, &m)
225 if err != nil {
226 return err
227 }
228 for k, v := range m {
229 switch k {
230 case "RemoteException":
231 if v != nil {
232 remoteException, err := unmarshalBasicAdlsRemoteException(*v)
233 if err != nil {
234 return err
235 }
236 ae.RemoteException = remoteException
237 }
238 }
239 }
240
241 return nil
242 }
243
244
245
246 type AdlsFileAlreadyExistsException struct {
247
248 JavaClassName *string `json:"javaClassName,omitempty"`
249
250 Message *string `json:"message,omitempty"`
251
252 Exception Exception `json:"exception,omitempty"`
253 }
254
255
256 func (afaee AdlsFileAlreadyExistsException) MarshalJSON() ([]byte, error) {
257 afaee.Exception = ExceptionFileAlreadyExistsException
258 objectMap := make(map[string]interface{})
259 if afaee.Exception != "" {
260 objectMap["exception"] = afaee.Exception
261 }
262 return json.Marshal(objectMap)
263 }
264
265
266 func (afaee AdlsFileAlreadyExistsException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
267 return nil, false
268 }
269
270
271 func (afaee AdlsFileAlreadyExistsException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
272 return nil, false
273 }
274
275
276 func (afaee AdlsFileAlreadyExistsException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
277 return nil, false
278 }
279
280
281 func (afaee AdlsFileAlreadyExistsException) AsAdlsIOException() (*AdlsIOException, bool) {
282 return nil, false
283 }
284
285
286 func (afaee AdlsFileAlreadyExistsException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
287 return nil, false
288 }
289
290
291 func (afaee AdlsFileAlreadyExistsException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
292 return &afaee, true
293 }
294
295
296 func (afaee AdlsFileAlreadyExistsException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
297 return nil, false
298 }
299
300
301 func (afaee AdlsFileAlreadyExistsException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
302 return nil, false
303 }
304
305
306 func (afaee AdlsFileAlreadyExistsException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
307 return nil, false
308 }
309
310
311 func (afaee AdlsFileAlreadyExistsException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
312 return nil, false
313 }
314
315
316 func (afaee AdlsFileAlreadyExistsException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
317 return &afaee, true
318 }
319
320
321
322 type AdlsFileNotFoundException struct {
323
324 JavaClassName *string `json:"javaClassName,omitempty"`
325
326 Message *string `json:"message,omitempty"`
327
328 Exception Exception `json:"exception,omitempty"`
329 }
330
331
332 func (afnfe AdlsFileNotFoundException) MarshalJSON() ([]byte, error) {
333 afnfe.Exception = ExceptionFileNotFoundException
334 objectMap := make(map[string]interface{})
335 if afnfe.Exception != "" {
336 objectMap["exception"] = afnfe.Exception
337 }
338 return json.Marshal(objectMap)
339 }
340
341
342 func (afnfe AdlsFileNotFoundException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
343 return nil, false
344 }
345
346
347 func (afnfe AdlsFileNotFoundException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
348 return nil, false
349 }
350
351
352 func (afnfe AdlsFileNotFoundException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
353 return nil, false
354 }
355
356
357 func (afnfe AdlsFileNotFoundException) AsAdlsIOException() (*AdlsIOException, bool) {
358 return nil, false
359 }
360
361
362 func (afnfe AdlsFileNotFoundException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
363 return &afnfe, true
364 }
365
366
367 func (afnfe AdlsFileNotFoundException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
368 return nil, false
369 }
370
371
372 func (afnfe AdlsFileNotFoundException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
373 return nil, false
374 }
375
376
377 func (afnfe AdlsFileNotFoundException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
378 return nil, false
379 }
380
381
382 func (afnfe AdlsFileNotFoundException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
383 return nil, false
384 }
385
386
387 func (afnfe AdlsFileNotFoundException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
388 return nil, false
389 }
390
391
392 func (afnfe AdlsFileNotFoundException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
393 return &afnfe, true
394 }
395
396
397
398 type AdlsIllegalArgumentException struct {
399
400 JavaClassName *string `json:"javaClassName,omitempty"`
401
402 Message *string `json:"message,omitempty"`
403
404 Exception Exception `json:"exception,omitempty"`
405 }
406
407
408 func (aiae AdlsIllegalArgumentException) MarshalJSON() ([]byte, error) {
409 aiae.Exception = ExceptionIllegalArgumentException
410 objectMap := make(map[string]interface{})
411 if aiae.Exception != "" {
412 objectMap["exception"] = aiae.Exception
413 }
414 return json.Marshal(objectMap)
415 }
416
417
418 func (aiae AdlsIllegalArgumentException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
419 return &aiae, true
420 }
421
422
423 func (aiae AdlsIllegalArgumentException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
424 return nil, false
425 }
426
427
428 func (aiae AdlsIllegalArgumentException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
429 return nil, false
430 }
431
432
433 func (aiae AdlsIllegalArgumentException) AsAdlsIOException() (*AdlsIOException, bool) {
434 return nil, false
435 }
436
437
438 func (aiae AdlsIllegalArgumentException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
439 return nil, false
440 }
441
442
443 func (aiae AdlsIllegalArgumentException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
444 return nil, false
445 }
446
447
448 func (aiae AdlsIllegalArgumentException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
449 return nil, false
450 }
451
452
453 func (aiae AdlsIllegalArgumentException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
454 return nil, false
455 }
456
457
458 func (aiae AdlsIllegalArgumentException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
459 return nil, false
460 }
461
462
463 func (aiae AdlsIllegalArgumentException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
464 return nil, false
465 }
466
467
468 func (aiae AdlsIllegalArgumentException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
469 return &aiae, true
470 }
471
472
473
474 type AdlsIOException struct {
475
476 JavaClassName *string `json:"javaClassName,omitempty"`
477
478 Message *string `json:"message,omitempty"`
479
480 Exception Exception `json:"exception,omitempty"`
481 }
482
483
484 func (aie AdlsIOException) MarshalJSON() ([]byte, error) {
485 aie.Exception = ExceptionIOException
486 objectMap := make(map[string]interface{})
487 if aie.Exception != "" {
488 objectMap["exception"] = aie.Exception
489 }
490 return json.Marshal(objectMap)
491 }
492
493
494 func (aie AdlsIOException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
495 return nil, false
496 }
497
498
499 func (aie AdlsIOException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
500 return nil, false
501 }
502
503
504 func (aie AdlsIOException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
505 return nil, false
506 }
507
508
509 func (aie AdlsIOException) AsAdlsIOException() (*AdlsIOException, bool) {
510 return &aie, true
511 }
512
513
514 func (aie AdlsIOException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
515 return nil, false
516 }
517
518
519 func (aie AdlsIOException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
520 return nil, false
521 }
522
523
524 func (aie AdlsIOException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
525 return nil, false
526 }
527
528
529 func (aie AdlsIOException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
530 return nil, false
531 }
532
533
534 func (aie AdlsIOException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
535 return nil, false
536 }
537
538
539 func (aie AdlsIOException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
540 return nil, false
541 }
542
543
544 func (aie AdlsIOException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
545 return &aie, true
546 }
547
548
549 type BasicAdlsRemoteException interface {
550 AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool)
551 AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool)
552 AsAdlsSecurityException() (*AdlsSecurityException, bool)
553 AsAdlsIOException() (*AdlsIOException, bool)
554 AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool)
555 AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool)
556 AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool)
557 AsAdlsRuntimeException() (*AdlsRuntimeException, bool)
558 AsAdlsAccessControlException() (*AdlsAccessControlException, bool)
559 AsAdlsRemoteException() (*AdlsRemoteException, bool)
560 }
561
562
563
564 type AdlsRemoteException struct {
565
566 JavaClassName *string `json:"javaClassName,omitempty"`
567
568 Message *string `json:"message,omitempty"`
569
570 Exception Exception `json:"exception,omitempty"`
571 }
572
573 func unmarshalBasicAdlsRemoteException(body []byte) (BasicAdlsRemoteException, error) {
574 var m map[string]interface{}
575 err := json.Unmarshal(body, &m)
576 if err != nil {
577 return nil, err
578 }
579
580 switch m["exception"] {
581 case string(ExceptionIllegalArgumentException):
582 var aiae AdlsIllegalArgumentException
583 err := json.Unmarshal(body, &aiae)
584 return aiae, err
585 case string(ExceptionUnsupportedOperationException):
586 var auoe AdlsUnsupportedOperationException
587 err := json.Unmarshal(body, &auoe)
588 return auoe, err
589 case string(ExceptionSecurityException):
590 var ase AdlsSecurityException
591 err := json.Unmarshal(body, &ase)
592 return ase, err
593 case string(ExceptionIOException):
594 var aie AdlsIOException
595 err := json.Unmarshal(body, &aie)
596 return aie, err
597 case string(ExceptionFileNotFoundException):
598 var afnfe AdlsFileNotFoundException
599 err := json.Unmarshal(body, &afnfe)
600 return afnfe, err
601 case string(ExceptionFileAlreadyExistsException):
602 var afaee AdlsFileAlreadyExistsException
603 err := json.Unmarshal(body, &afaee)
604 return afaee, err
605 case string(ExceptionBadOffsetException):
606 var aboe AdlsBadOffsetException
607 err := json.Unmarshal(body, &aboe)
608 return aboe, err
609 case string(ExceptionRuntimeException):
610 var are AdlsRuntimeException
611 err := json.Unmarshal(body, &are)
612 return are, err
613 case string(ExceptionAccessControlException):
614 var aace AdlsAccessControlException
615 err := json.Unmarshal(body, &aace)
616 return aace, err
617 default:
618 var are AdlsRemoteException
619 err := json.Unmarshal(body, &are)
620 return are, err
621 }
622 }
623 func unmarshalBasicAdlsRemoteExceptionArray(body []byte) ([]BasicAdlsRemoteException, error) {
624 var rawMessages []*json.RawMessage
625 err := json.Unmarshal(body, &rawMessages)
626 if err != nil {
627 return nil, err
628 }
629
630 areArray := make([]BasicAdlsRemoteException, len(rawMessages))
631
632 for index, rawMessage := range rawMessages {
633 are, err := unmarshalBasicAdlsRemoteException(*rawMessage)
634 if err != nil {
635 return nil, err
636 }
637 areArray[index] = are
638 }
639 return areArray, nil
640 }
641
642
643 func (are AdlsRemoteException) MarshalJSON() ([]byte, error) {
644 are.Exception = ExceptionAdlsRemoteException
645 objectMap := make(map[string]interface{})
646 if are.Exception != "" {
647 objectMap["exception"] = are.Exception
648 }
649 return json.Marshal(objectMap)
650 }
651
652
653 func (are AdlsRemoteException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
654 return nil, false
655 }
656
657
658 func (are AdlsRemoteException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
659 return nil, false
660 }
661
662
663 func (are AdlsRemoteException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
664 return nil, false
665 }
666
667
668 func (are AdlsRemoteException) AsAdlsIOException() (*AdlsIOException, bool) {
669 return nil, false
670 }
671
672
673 func (are AdlsRemoteException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
674 return nil, false
675 }
676
677
678 func (are AdlsRemoteException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
679 return nil, false
680 }
681
682
683 func (are AdlsRemoteException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
684 return nil, false
685 }
686
687
688 func (are AdlsRemoteException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
689 return nil, false
690 }
691
692
693 func (are AdlsRemoteException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
694 return nil, false
695 }
696
697
698 func (are AdlsRemoteException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
699 return &are, true
700 }
701
702
703 func (are AdlsRemoteException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
704 return &are, true
705 }
706
707
708
709 type AdlsRuntimeException struct {
710
711 JavaClassName *string `json:"javaClassName,omitempty"`
712
713 Message *string `json:"message,omitempty"`
714
715 Exception Exception `json:"exception,omitempty"`
716 }
717
718
719 func (are AdlsRuntimeException) MarshalJSON() ([]byte, error) {
720 are.Exception = ExceptionRuntimeException
721 objectMap := make(map[string]interface{})
722 if are.Exception != "" {
723 objectMap["exception"] = are.Exception
724 }
725 return json.Marshal(objectMap)
726 }
727
728
729 func (are AdlsRuntimeException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
730 return nil, false
731 }
732
733
734 func (are AdlsRuntimeException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
735 return nil, false
736 }
737
738
739 func (are AdlsRuntimeException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
740 return nil, false
741 }
742
743
744 func (are AdlsRuntimeException) AsAdlsIOException() (*AdlsIOException, bool) {
745 return nil, false
746 }
747
748
749 func (are AdlsRuntimeException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
750 return nil, false
751 }
752
753
754 func (are AdlsRuntimeException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
755 return nil, false
756 }
757
758
759 func (are AdlsRuntimeException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
760 return nil, false
761 }
762
763
764 func (are AdlsRuntimeException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
765 return &are, true
766 }
767
768
769 func (are AdlsRuntimeException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
770 return nil, false
771 }
772
773
774 func (are AdlsRuntimeException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
775 return nil, false
776 }
777
778
779 func (are AdlsRuntimeException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
780 return &are, true
781 }
782
783
784
785 type AdlsSecurityException struct {
786
787 JavaClassName *string `json:"javaClassName,omitempty"`
788
789 Message *string `json:"message,omitempty"`
790
791 Exception Exception `json:"exception,omitempty"`
792 }
793
794
795 func (ase AdlsSecurityException) MarshalJSON() ([]byte, error) {
796 ase.Exception = ExceptionSecurityException
797 objectMap := make(map[string]interface{})
798 if ase.Exception != "" {
799 objectMap["exception"] = ase.Exception
800 }
801 return json.Marshal(objectMap)
802 }
803
804
805 func (ase AdlsSecurityException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
806 return nil, false
807 }
808
809
810 func (ase AdlsSecurityException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
811 return nil, false
812 }
813
814
815 func (ase AdlsSecurityException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
816 return &ase, true
817 }
818
819
820 func (ase AdlsSecurityException) AsAdlsIOException() (*AdlsIOException, bool) {
821 return nil, false
822 }
823
824
825 func (ase AdlsSecurityException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
826 return nil, false
827 }
828
829
830 func (ase AdlsSecurityException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
831 return nil, false
832 }
833
834
835 func (ase AdlsSecurityException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
836 return nil, false
837 }
838
839
840 func (ase AdlsSecurityException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
841 return nil, false
842 }
843
844
845 func (ase AdlsSecurityException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
846 return nil, false
847 }
848
849
850 func (ase AdlsSecurityException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
851 return nil, false
852 }
853
854
855 func (ase AdlsSecurityException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
856 return &ase, true
857 }
858
859
860
861 type AdlsUnsupportedOperationException struct {
862
863 JavaClassName *string `json:"javaClassName,omitempty"`
864
865 Message *string `json:"message,omitempty"`
866
867 Exception Exception `json:"exception,omitempty"`
868 }
869
870
871 func (auoe AdlsUnsupportedOperationException) MarshalJSON() ([]byte, error) {
872 auoe.Exception = ExceptionUnsupportedOperationException
873 objectMap := make(map[string]interface{})
874 if auoe.Exception != "" {
875 objectMap["exception"] = auoe.Exception
876 }
877 return json.Marshal(objectMap)
878 }
879
880
881 func (auoe AdlsUnsupportedOperationException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
882 return nil, false
883 }
884
885
886 func (auoe AdlsUnsupportedOperationException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
887 return &auoe, true
888 }
889
890
891 func (auoe AdlsUnsupportedOperationException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
892 return nil, false
893 }
894
895
896 func (auoe AdlsUnsupportedOperationException) AsAdlsIOException() (*AdlsIOException, bool) {
897 return nil, false
898 }
899
900
901 func (auoe AdlsUnsupportedOperationException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
902 return nil, false
903 }
904
905
906 func (auoe AdlsUnsupportedOperationException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
907 return nil, false
908 }
909
910
911 func (auoe AdlsUnsupportedOperationException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
912 return nil, false
913 }
914
915
916 func (auoe AdlsUnsupportedOperationException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
917 return nil, false
918 }
919
920
921 func (auoe AdlsUnsupportedOperationException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
922 return nil, false
923 }
924
925
926 func (auoe AdlsUnsupportedOperationException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
927 return nil, false
928 }
929
930
931 func (auoe AdlsUnsupportedOperationException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
932 return &auoe, true
933 }
934
935
936 type ContentSummary struct {
937
938 DirectoryCount *int64 `json:"directoryCount,omitempty"`
939
940 FileCount *int64 `json:"fileCount,omitempty"`
941
942 Length *int64 `json:"length,omitempty"`
943
944 SpaceConsumed *int64 `json:"spaceConsumed,omitempty"`
945 }
946
947
948 func (cs ContentSummary) MarshalJSON() ([]byte, error) {
949 objectMap := make(map[string]interface{})
950 return json.Marshal(objectMap)
951 }
952
953
954 type ContentSummaryResult struct {
955 autorest.Response `json:"-"`
956
957 ContentSummary *ContentSummary `json:"ContentSummary,omitempty"`
958 }
959
960
961 func (csr ContentSummaryResult) MarshalJSON() ([]byte, error) {
962 objectMap := make(map[string]interface{})
963 return json.Marshal(objectMap)
964 }
965
966
967 type FileOperationResult struct {
968 autorest.Response `json:"-"`
969
970 OperationResult *bool `json:"boolean,omitempty"`
971 }
972
973
974 func (forVar FileOperationResult) MarshalJSON() ([]byte, error) {
975 objectMap := make(map[string]interface{})
976 return json.Marshal(objectMap)
977 }
978
979
980 type FileStatuses struct {
981
982 FileStatus *[]FileStatusProperties `json:"FileStatus,omitempty"`
983 }
984
985
986 func (fs FileStatuses) MarshalJSON() ([]byte, error) {
987 objectMap := make(map[string]interface{})
988 return json.Marshal(objectMap)
989 }
990
991
992 type FileStatusesResult struct {
993 autorest.Response `json:"-"`
994
995 FileStatuses *FileStatuses `json:"FileStatuses,omitempty"`
996 }
997
998
999 func (fsr FileStatusesResult) MarshalJSON() ([]byte, error) {
1000 objectMap := make(map[string]interface{})
1001 return json.Marshal(objectMap)
1002 }
1003
1004
1005 type FileStatusProperties struct {
1006
1007 AccessTime *int64 `json:"accessTime,omitempty"`
1008
1009 BlockSize *int64 `json:"blockSize,omitempty"`
1010
1011 ChildrenNum *int64 `json:"childrenNum,omitempty"`
1012
1013 ExpirationTime *int64 `json:"expirationTime,omitempty"`
1014
1015 Group *string `json:"group,omitempty"`
1016
1017 Length *int64 `json:"length,omitempty"`
1018
1019 ModificationTime *int64 `json:"modificationTime,omitempty"`
1020
1021 Owner *string `json:"owner,omitempty"`
1022
1023 PathSuffix *string `json:"pathSuffix,omitempty"`
1024
1025 Permission *string `json:"permission,omitempty"`
1026
1027 Type FileType `json:"type,omitempty"`
1028 }
1029
1030
1031 func (fsp FileStatusProperties) MarshalJSON() ([]byte, error) {
1032 objectMap := make(map[string]interface{})
1033 return json.Marshal(objectMap)
1034 }
1035
1036
1037 type FileStatusResult struct {
1038 autorest.Response `json:"-"`
1039
1040 FileStatus *FileStatusProperties `json:"FileStatus,omitempty"`
1041 }
1042
1043
1044 func (fsr FileStatusResult) MarshalJSON() ([]byte, error) {
1045 objectMap := make(map[string]interface{})
1046 return json.Marshal(objectMap)
1047 }
1048
1049
1050 type ReadCloser struct {
1051 autorest.Response `json:"-"`
1052 Value *io.ReadCloser `json:"value,omitempty"`
1053 }
1054
View as plain text