1package filesystem
2
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// Licensed under the MIT License. See License.txt in the project root for license information.
5//
6// Code generated by Microsoft (R) AutoRest Code Generator.
7// Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
9import (
10	"encoding/json"
11	"github.com/Azure/go-autorest/autorest"
12	"io"
13)
14
15// The package's fully qualified name.
16const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem"
17
18// ACLStatus data Lake Store file or directory Access Control List information.
19type ACLStatus struct {
20	// Entries - the list of ACLSpec entries on a file or directory.
21	Entries *[]string `json:"entries,omitempty"`
22	// Group - the group owner, an AAD Object ID.
23	Group *string `json:"group,omitempty"`
24	// Owner - the user owner, an AAD Object ID.
25	Owner *string `json:"owner,omitempty"`
26	// Permission - The octal representation of the unnamed user, mask and other permissions.
27	Permission *int32 `json:"permission,omitempty"`
28	// StickyBit - READ-ONLY; the indicator of whether the sticky bit is on or off.
29	StickyBit *bool `json:"stickyBit,omitempty"`
30}
31
32// MarshalJSON is the custom marshaler for ACLStatus.
33func (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// ACLStatusResult data Lake Store file or directory Access Control List information.
51type ACLStatusResult struct {
52	autorest.Response `json:"-"`
53	// ACLStatus - the AclStatus object for a given file or directory.
54	ACLStatus *ACLStatus `json:"AclStatus,omitempty"`
55}
56
57// AdlsAccessControlException a WebHDFS exception thrown indicating that access is denied due to
58// insufficient permissions. Thrown when a 403 error response code is returned (forbidden).
59type AdlsAccessControlException struct {
60	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
61	JavaClassName *string `json:"javaClassName,omitempty"`
62	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
63	Message *string `json:"message,omitempty"`
64	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
65	Exception Exception `json:"exception,omitempty"`
66}
67
68// MarshalJSON is the custom marshaler for AdlsAccessControlException.
69func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
79func (aace AdlsAccessControlException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
80	return nil, false
81}
82
83// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
84func (aace AdlsAccessControlException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
85	return nil, false
86}
87
88// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
89func (aace AdlsAccessControlException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
90	return nil, false
91}
92
93// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
94func (aace AdlsAccessControlException) AsAdlsIOException() (*AdlsIOException, bool) {
95	return nil, false
96}
97
98// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
99func (aace AdlsAccessControlException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
100	return nil, false
101}
102
103// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
104func (aace AdlsAccessControlException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
105	return nil, false
106}
107
108// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
109func (aace AdlsAccessControlException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
110	return nil, false
111}
112
113// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
114func (aace AdlsAccessControlException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
115	return nil, false
116}
117
118// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
119func (aace AdlsAccessControlException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
120	return &aace, true
121}
122
123// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
124func (aace AdlsAccessControlException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
125	return nil, false
126}
127
128// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
129func (aace AdlsAccessControlException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
130	return &aace, true
131}
132
133// AdlsBadOffsetException a WebHDFS exception thrown indicating the append or read is from a bad offset.
134// Thrown when a 400 error response code is returned for append and open operations (Bad request).
135type AdlsBadOffsetException struct {
136	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
137	JavaClassName *string `json:"javaClassName,omitempty"`
138	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
139	Message *string `json:"message,omitempty"`
140	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
141	Exception Exception `json:"exception,omitempty"`
142}
143
144// MarshalJSON is the custom marshaler for AdlsBadOffsetException.
145func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
155func (aboe AdlsBadOffsetException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
156	return nil, false
157}
158
159// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
160func (aboe AdlsBadOffsetException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
161	return nil, false
162}
163
164// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
165func (aboe AdlsBadOffsetException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
166	return nil, false
167}
168
169// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
170func (aboe AdlsBadOffsetException) AsAdlsIOException() (*AdlsIOException, bool) {
171	return nil, false
172}
173
174// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
175func (aboe AdlsBadOffsetException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
176	return nil, false
177}
178
179// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
180func (aboe AdlsBadOffsetException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
181	return nil, false
182}
183
184// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
185func (aboe AdlsBadOffsetException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
186	return &aboe, true
187}
188
189// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
190func (aboe AdlsBadOffsetException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
191	return nil, false
192}
193
194// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
195func (aboe AdlsBadOffsetException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
196	return nil, false
197}
198
199// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
200func (aboe AdlsBadOffsetException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
201	return nil, false
202}
203
204// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
205func (aboe AdlsBadOffsetException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
206	return &aboe, true
207}
208
209// AdlsError data Lake Store filesystem error containing a specific WebHDFS exception.
210type AdlsError struct {
211	// RemoteException - READ-ONLY; the object representing the actual WebHDFS exception being returned.
212	RemoteException BasicAdlsRemoteException `json:"RemoteException,omitempty"`
213}
214
215// MarshalJSON is the custom marshaler for AdlsError.
216func (ae AdlsError) MarshalJSON() ([]byte, error) {
217	objectMap := make(map[string]interface{})
218	return json.Marshal(objectMap)
219}
220
221// UnmarshalJSON is the custom unmarshaler for AdlsError struct.
222func (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// AdlsFileAlreadyExistsException a WebHDFS exception thrown indicating the file or folder already exists.
245// Thrown when a 403 error response code is returned (forbidden).
246type AdlsFileAlreadyExistsException struct {
247	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
248	JavaClassName *string `json:"javaClassName,omitempty"`
249	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
250	Message *string `json:"message,omitempty"`
251	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
252	Exception Exception `json:"exception,omitempty"`
253}
254
255// MarshalJSON is the custom marshaler for AdlsFileAlreadyExistsException.
256func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
266func (afaee AdlsFileAlreadyExistsException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
267	return nil, false
268}
269
270// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
271func (afaee AdlsFileAlreadyExistsException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
272	return nil, false
273}
274
275// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
276func (afaee AdlsFileAlreadyExistsException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
277	return nil, false
278}
279
280// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
281func (afaee AdlsFileAlreadyExistsException) AsAdlsIOException() (*AdlsIOException, bool) {
282	return nil, false
283}
284
285// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
286func (afaee AdlsFileAlreadyExistsException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
287	return nil, false
288}
289
290// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
291func (afaee AdlsFileAlreadyExistsException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
292	return &afaee, true
293}
294
295// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
296func (afaee AdlsFileAlreadyExistsException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
297	return nil, false
298}
299
300// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
301func (afaee AdlsFileAlreadyExistsException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
302	return nil, false
303}
304
305// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
306func (afaee AdlsFileAlreadyExistsException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
307	return nil, false
308}
309
310// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
311func (afaee AdlsFileAlreadyExistsException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
312	return nil, false
313}
314
315// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
316func (afaee AdlsFileAlreadyExistsException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
317	return &afaee, true
318}
319
320// AdlsFileNotFoundException a WebHDFS exception thrown indicating the file or folder could not be found.
321// Thrown when a 404 error response code is returned (not found).
322type AdlsFileNotFoundException struct {
323	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
324	JavaClassName *string `json:"javaClassName,omitempty"`
325	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
326	Message *string `json:"message,omitempty"`
327	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
328	Exception Exception `json:"exception,omitempty"`
329}
330
331// MarshalJSON is the custom marshaler for AdlsFileNotFoundException.
332func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
342func (afnfe AdlsFileNotFoundException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
343	return nil, false
344}
345
346// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
347func (afnfe AdlsFileNotFoundException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
348	return nil, false
349}
350
351// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
352func (afnfe AdlsFileNotFoundException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
353	return nil, false
354}
355
356// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
357func (afnfe AdlsFileNotFoundException) AsAdlsIOException() (*AdlsIOException, bool) {
358	return nil, false
359}
360
361// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
362func (afnfe AdlsFileNotFoundException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
363	return &afnfe, true
364}
365
366// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
367func (afnfe AdlsFileNotFoundException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
368	return nil, false
369}
370
371// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
372func (afnfe AdlsFileNotFoundException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
373	return nil, false
374}
375
376// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
377func (afnfe AdlsFileNotFoundException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
378	return nil, false
379}
380
381// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
382func (afnfe AdlsFileNotFoundException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
383	return nil, false
384}
385
386// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
387func (afnfe AdlsFileNotFoundException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
388	return nil, false
389}
390
391// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
392func (afnfe AdlsFileNotFoundException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
393	return &afnfe, true
394}
395
396// AdlsIllegalArgumentException a WebHDFS exception thrown indicating that one more arguments is incorrect.
397// Thrown when a 400 error response code is returned (bad request).
398type AdlsIllegalArgumentException struct {
399	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
400	JavaClassName *string `json:"javaClassName,omitempty"`
401	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
402	Message *string `json:"message,omitempty"`
403	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
404	Exception Exception `json:"exception,omitempty"`
405}
406
407// MarshalJSON is the custom marshaler for AdlsIllegalArgumentException.
408func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
418func (aiae AdlsIllegalArgumentException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
419	return &aiae, true
420}
421
422// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
423func (aiae AdlsIllegalArgumentException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
424	return nil, false
425}
426
427// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
428func (aiae AdlsIllegalArgumentException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
429	return nil, false
430}
431
432// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
433func (aiae AdlsIllegalArgumentException) AsAdlsIOException() (*AdlsIOException, bool) {
434	return nil, false
435}
436
437// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
438func (aiae AdlsIllegalArgumentException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
439	return nil, false
440}
441
442// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
443func (aiae AdlsIllegalArgumentException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
444	return nil, false
445}
446
447// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
448func (aiae AdlsIllegalArgumentException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
449	return nil, false
450}
451
452// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
453func (aiae AdlsIllegalArgumentException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
454	return nil, false
455}
456
457// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
458func (aiae AdlsIllegalArgumentException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
459	return nil, false
460}
461
462// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
463func (aiae AdlsIllegalArgumentException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
464	return nil, false
465}
466
467// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
468func (aiae AdlsIllegalArgumentException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
469	return &aiae, true
470}
471
472// AdlsIOException a WebHDFS exception thrown indicating there was an IO (read or write) error. Thrown when
473// a 403 error response code is returned (forbidden).
474type AdlsIOException struct {
475	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
476	JavaClassName *string `json:"javaClassName,omitempty"`
477	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
478	Message *string `json:"message,omitempty"`
479	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
480	Exception Exception `json:"exception,omitempty"`
481}
482
483// MarshalJSON is the custom marshaler for AdlsIOException.
484func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsIOException.
494func (aie AdlsIOException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
495	return nil, false
496}
497
498// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsIOException.
499func (aie AdlsIOException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
500	return nil, false
501}
502
503// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsIOException.
504func (aie AdlsIOException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
505	return nil, false
506}
507
508// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsIOException.
509func (aie AdlsIOException) AsAdlsIOException() (*AdlsIOException, bool) {
510	return &aie, true
511}
512
513// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsIOException.
514func (aie AdlsIOException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
515	return nil, false
516}
517
518// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsIOException.
519func (aie AdlsIOException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
520	return nil, false
521}
522
523// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsIOException.
524func (aie AdlsIOException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
525	return nil, false
526}
527
528// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsIOException.
529func (aie AdlsIOException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
530	return nil, false
531}
532
533// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsIOException.
534func (aie AdlsIOException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
535	return nil, false
536}
537
538// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIOException.
539func (aie AdlsIOException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
540	return nil, false
541}
542
543// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIOException.
544func (aie AdlsIOException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
545	return &aie, true
546}
547
548// BasicAdlsRemoteException data Lake Store filesystem exception based on the WebHDFS definition for RemoteExceptions.
549type 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// AdlsRemoteException data Lake Store filesystem exception based on the WebHDFS definition for
563// RemoteExceptions.
564type AdlsRemoteException struct {
565	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
566	JavaClassName *string `json:"javaClassName,omitempty"`
567	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
568	Message *string `json:"message,omitempty"`
569	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
570	Exception Exception `json:"exception,omitempty"`
571}
572
573func 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}
623func 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// MarshalJSON is the custom marshaler for AdlsRemoteException.
643func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
653func (are AdlsRemoteException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
654	return nil, false
655}
656
657// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
658func (are AdlsRemoteException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
659	return nil, false
660}
661
662// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
663func (are AdlsRemoteException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
664	return nil, false
665}
666
667// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
668func (are AdlsRemoteException) AsAdlsIOException() (*AdlsIOException, bool) {
669	return nil, false
670}
671
672// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
673func (are AdlsRemoteException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
674	return nil, false
675}
676
677// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
678func (are AdlsRemoteException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
679	return nil, false
680}
681
682// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
683func (are AdlsRemoteException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
684	return nil, false
685}
686
687// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
688func (are AdlsRemoteException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
689	return nil, false
690}
691
692// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
693func (are AdlsRemoteException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
694	return nil, false
695}
696
697// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
698func (are AdlsRemoteException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
699	return &are, true
700}
701
702// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
703func (are AdlsRemoteException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
704	return &are, true
705}
706
707// AdlsRuntimeException a WebHDFS exception thrown when an unexpected error occurs during an operation.
708// Thrown when a 500 error response code is returned (Internal server error).
709type AdlsRuntimeException struct {
710	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
711	JavaClassName *string `json:"javaClassName,omitempty"`
712	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
713	Message *string `json:"message,omitempty"`
714	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
715	Exception Exception `json:"exception,omitempty"`
716}
717
718// MarshalJSON is the custom marshaler for AdlsRuntimeException.
719func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
729func (are AdlsRuntimeException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
730	return nil, false
731}
732
733// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
734func (are AdlsRuntimeException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
735	return nil, false
736}
737
738// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
739func (are AdlsRuntimeException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
740	return nil, false
741}
742
743// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
744func (are AdlsRuntimeException) AsAdlsIOException() (*AdlsIOException, bool) {
745	return nil, false
746}
747
748// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
749func (are AdlsRuntimeException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
750	return nil, false
751}
752
753// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
754func (are AdlsRuntimeException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
755	return nil, false
756}
757
758// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
759func (are AdlsRuntimeException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
760	return nil, false
761}
762
763// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
764func (are AdlsRuntimeException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
765	return &are, true
766}
767
768// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
769func (are AdlsRuntimeException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
770	return nil, false
771}
772
773// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
774func (are AdlsRuntimeException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
775	return nil, false
776}
777
778// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
779func (are AdlsRuntimeException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
780	return &are, true
781}
782
783// AdlsSecurityException a WebHDFS exception thrown indicating that access is denied. Thrown when a 401
784// error response code is returned (Unauthorized).
785type AdlsSecurityException struct {
786	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
787	JavaClassName *string `json:"javaClassName,omitempty"`
788	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
789	Message *string `json:"message,omitempty"`
790	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
791	Exception Exception `json:"exception,omitempty"`
792}
793
794// MarshalJSON is the custom marshaler for AdlsSecurityException.
795func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
805func (ase AdlsSecurityException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
806	return nil, false
807}
808
809// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
810func (ase AdlsSecurityException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
811	return nil, false
812}
813
814// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
815func (ase AdlsSecurityException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
816	return &ase, true
817}
818
819// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
820func (ase AdlsSecurityException) AsAdlsIOException() (*AdlsIOException, bool) {
821	return nil, false
822}
823
824// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
825func (ase AdlsSecurityException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
826	return nil, false
827}
828
829// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
830func (ase AdlsSecurityException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
831	return nil, false
832}
833
834// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
835func (ase AdlsSecurityException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
836	return nil, false
837}
838
839// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
840func (ase AdlsSecurityException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
841	return nil, false
842}
843
844// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
845func (ase AdlsSecurityException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
846	return nil, false
847}
848
849// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
850func (ase AdlsSecurityException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
851	return nil, false
852}
853
854// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
855func (ase AdlsSecurityException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
856	return &ase, true
857}
858
859// AdlsUnsupportedOperationException a WebHDFS exception thrown indicating that the requested operation is
860// not supported. Thrown when a 400 error response code is returned (bad request).
861type AdlsUnsupportedOperationException struct {
862	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
863	JavaClassName *string `json:"javaClassName,omitempty"`
864	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
865	Message *string `json:"message,omitempty"`
866	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException'
867	Exception Exception `json:"exception,omitempty"`
868}
869
870// MarshalJSON is the custom marshaler for AdlsUnsupportedOperationException.
871func (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// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
881func (auoe AdlsUnsupportedOperationException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
882	return nil, false
883}
884
885// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
886func (auoe AdlsUnsupportedOperationException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
887	return &auoe, true
888}
889
890// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
891func (auoe AdlsUnsupportedOperationException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
892	return nil, false
893}
894
895// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
896func (auoe AdlsUnsupportedOperationException) AsAdlsIOException() (*AdlsIOException, bool) {
897	return nil, false
898}
899
900// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
901func (auoe AdlsUnsupportedOperationException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
902	return nil, false
903}
904
905// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
906func (auoe AdlsUnsupportedOperationException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
907	return nil, false
908}
909
910// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
911func (auoe AdlsUnsupportedOperationException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
912	return nil, false
913}
914
915// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
916func (auoe AdlsUnsupportedOperationException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
917	return nil, false
918}
919
920// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
921func (auoe AdlsUnsupportedOperationException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
922	return nil, false
923}
924
925// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
926func (auoe AdlsUnsupportedOperationException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
927	return nil, false
928}
929
930// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
931func (auoe AdlsUnsupportedOperationException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
932	return &auoe, true
933}
934
935// ContentSummary data Lake Store content summary information
936type ContentSummary struct {
937	// DirectoryCount - READ-ONLY; the number of directories.
938	DirectoryCount *int64 `json:"directoryCount,omitempty"`
939	// FileCount - READ-ONLY; the number of files.
940	FileCount *int64 `json:"fileCount,omitempty"`
941	// Length - READ-ONLY; the number of bytes used by the content.
942	Length *int64 `json:"length,omitempty"`
943	// SpaceConsumed - READ-ONLY; the disk space consumed by the content.
944	SpaceConsumed *int64 `json:"spaceConsumed,omitempty"`
945}
946
947// MarshalJSON is the custom marshaler for ContentSummary.
948func (cs ContentSummary) MarshalJSON() ([]byte, error) {
949	objectMap := make(map[string]interface{})
950	return json.Marshal(objectMap)
951}
952
953// ContentSummaryResult data Lake Store filesystem content summary information response.
954type ContentSummaryResult struct {
955	autorest.Response `json:"-"`
956	// ContentSummary - READ-ONLY; the content summary for the specified path
957	ContentSummary *ContentSummary `json:"ContentSummary,omitempty"`
958}
959
960// MarshalJSON is the custom marshaler for ContentSummaryResult.
961func (csr ContentSummaryResult) MarshalJSON() ([]byte, error) {
962	objectMap := make(map[string]interface{})
963	return json.Marshal(objectMap)
964}
965
966// FileOperationResult the result of the request or operation.
967type FileOperationResult struct {
968	autorest.Response `json:"-"`
969	// OperationResult - READ-ONLY; the result of the operation or request.
970	OperationResult *bool `json:"boolean,omitempty"`
971}
972
973// MarshalJSON is the custom marshaler for FileOperationResult.
974func (forVar FileOperationResult) MarshalJSON() ([]byte, error) {
975	objectMap := make(map[string]interface{})
976	return json.Marshal(objectMap)
977}
978
979// FileStatuses data Lake Store file status list information.
980type FileStatuses struct {
981	// FileStatus - READ-ONLY; the object containing the list of properties of the files.
982	FileStatus *[]FileStatusProperties `json:"FileStatus,omitempty"`
983}
984
985// MarshalJSON is the custom marshaler for FileStatuses.
986func (fs FileStatuses) MarshalJSON() ([]byte, error) {
987	objectMap := make(map[string]interface{})
988	return json.Marshal(objectMap)
989}
990
991// FileStatusesResult data Lake Store filesystem file status list information response.
992type FileStatusesResult struct {
993	autorest.Response `json:"-"`
994	// FileStatuses - READ-ONLY; the object representing the list of file statuses.
995	FileStatuses *FileStatuses `json:"FileStatuses,omitempty"`
996}
997
998// MarshalJSON is the custom marshaler for FileStatusesResult.
999func (fsr FileStatusesResult) MarshalJSON() ([]byte, error) {
1000	objectMap := make(map[string]interface{})
1001	return json.Marshal(objectMap)
1002}
1003
1004// FileStatusProperties data Lake Store file or directory information.
1005type FileStatusProperties struct {
1006	// AccessTime - READ-ONLY; the last access time as ticks since the epoch.
1007	AccessTime *int64 `json:"accessTime,omitempty"`
1008	// BlockSize - READ-ONLY; the block size for the file.
1009	BlockSize *int64 `json:"blockSize,omitempty"`
1010	// ChildrenNum - READ-ONLY; the number of children in the directory.
1011	ChildrenNum *int64 `json:"childrenNum,omitempty"`
1012	// ExpirationTime - READ-ONLY; Gets the expiration time, if any, as ticks since the epoch. If this is set to 0 or DateTime.MaxValue there is no expiration.
1013	ExpirationTime *int64 `json:"expirationTime,omitempty"`
1014	// Group - READ-ONLY; the group owner.
1015	Group *string `json:"group,omitempty"`
1016	// Length - READ-ONLY; the number of bytes in a file.
1017	Length *int64 `json:"length,omitempty"`
1018	// ModificationTime - READ-ONLY; the modification time as ticks since the epoch.
1019	ModificationTime *int64 `json:"modificationTime,omitempty"`
1020	// Owner - READ-ONLY; the user who is the owner.
1021	Owner *string `json:"owner,omitempty"`
1022	// PathSuffix - READ-ONLY; the path suffix.
1023	PathSuffix *string `json:"pathSuffix,omitempty"`
1024	// Permission - READ-ONLY; the permission represented as an string.
1025	Permission *string `json:"permission,omitempty"`
1026	// Type - READ-ONLY; the type of the path object. Possible values include: 'FILE', 'DIRECTORY'
1027	Type FileType `json:"type,omitempty"`
1028}
1029
1030// MarshalJSON is the custom marshaler for FileStatusProperties.
1031func (fsp FileStatusProperties) MarshalJSON() ([]byte, error) {
1032	objectMap := make(map[string]interface{})
1033	return json.Marshal(objectMap)
1034}
1035
1036// FileStatusResult data Lake Store filesystem file status information response.
1037type FileStatusResult struct {
1038	autorest.Response `json:"-"`
1039	// FileStatus - READ-ONLY; the file status object associated with the specified path.
1040	FileStatus *FileStatusProperties `json:"FileStatus,omitempty"`
1041}
1042
1043// MarshalJSON is the custom marshaler for FileStatusResult.
1044func (fsr FileStatusResult) MarshalJSON() ([]byte, error) {
1045	objectMap := make(map[string]interface{})
1046	return json.Marshal(objectMap)
1047}
1048
1049// ReadCloser ...
1050type ReadCloser struct {
1051	autorest.Response `json:"-"`
1052	Value             *io.ReadCloser `json:"value,omitempty"`
1053}
1054