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/datalake/store/2016-11-01/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 *string `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', 'ExceptionThrottledException'
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// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
124func (aace AdlsAccessControlException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
125	return nil, false
126}
127
128// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
129func (aace AdlsAccessControlException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
130	return nil, false
131}
132
133// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsAccessControlException.
134func (aace AdlsAccessControlException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
135	return &aace, true
136}
137
138// AdlsBadOffsetException a WebHDFS exception thrown indicating the append or read is from a bad offset.
139// Thrown when a 400 error response code is returned for append and open operations (Bad request).
140type AdlsBadOffsetException struct {
141	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
142	JavaClassName *string `json:"javaClassName,omitempty"`
143	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
144	Message *string `json:"message,omitempty"`
145	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
146	Exception Exception `json:"exception,omitempty"`
147}
148
149// MarshalJSON is the custom marshaler for AdlsBadOffsetException.
150func (aboe AdlsBadOffsetException) MarshalJSON() ([]byte, error) {
151	aboe.Exception = ExceptionBadOffsetException
152	objectMap := make(map[string]interface{})
153	if aboe.Exception != "" {
154		objectMap["exception"] = aboe.Exception
155	}
156	return json.Marshal(objectMap)
157}
158
159// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
160func (aboe AdlsBadOffsetException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
161	return nil, false
162}
163
164// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
165func (aboe AdlsBadOffsetException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
166	return nil, false
167}
168
169// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
170func (aboe AdlsBadOffsetException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
171	return nil, false
172}
173
174// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
175func (aboe AdlsBadOffsetException) AsAdlsIOException() (*AdlsIOException, bool) {
176	return nil, false
177}
178
179// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
180func (aboe AdlsBadOffsetException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
181	return nil, false
182}
183
184// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
185func (aboe AdlsBadOffsetException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
186	return nil, false
187}
188
189// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
190func (aboe AdlsBadOffsetException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
191	return &aboe, true
192}
193
194// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
195func (aboe AdlsBadOffsetException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
196	return nil, false
197}
198
199// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
200func (aboe AdlsBadOffsetException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
201	return nil, false
202}
203
204// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
205func (aboe AdlsBadOffsetException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
206	return nil, false
207}
208
209// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
210func (aboe AdlsBadOffsetException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
211	return nil, false
212}
213
214// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsBadOffsetException.
215func (aboe AdlsBadOffsetException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
216	return &aboe, true
217}
218
219// AdlsError data Lake Store filesystem error containing a specific WebHDFS exception.
220type AdlsError struct {
221	// RemoteException - READ-ONLY; the object representing the actual WebHDFS exception being returned.
222	RemoteException BasicAdlsRemoteException `json:"remoteException,omitempty"`
223}
224
225// MarshalJSON is the custom marshaler for AdlsError.
226func (ae AdlsError) MarshalJSON() ([]byte, error) {
227	objectMap := make(map[string]interface{})
228	return json.Marshal(objectMap)
229}
230
231// UnmarshalJSON is the custom unmarshaler for AdlsError struct.
232func (ae *AdlsError) UnmarshalJSON(body []byte) error {
233	var m map[string]*json.RawMessage
234	err := json.Unmarshal(body, &m)
235	if err != nil {
236		return err
237	}
238	for k, v := range m {
239		switch k {
240		case "remoteException":
241			if v != nil {
242				remoteException, err := unmarshalBasicAdlsRemoteException(*v)
243				if err != nil {
244					return err
245				}
246				ae.RemoteException = remoteException
247			}
248		}
249	}
250
251	return nil
252}
253
254// AdlsFileAlreadyExistsException a WebHDFS exception thrown indicating the file or folder already exists.
255// Thrown when a 403 error response code is returned (forbidden).
256type AdlsFileAlreadyExistsException struct {
257	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
258	JavaClassName *string `json:"javaClassName,omitempty"`
259	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
260	Message *string `json:"message,omitempty"`
261	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
262	Exception Exception `json:"exception,omitempty"`
263}
264
265// MarshalJSON is the custom marshaler for AdlsFileAlreadyExistsException.
266func (afaee AdlsFileAlreadyExistsException) MarshalJSON() ([]byte, error) {
267	afaee.Exception = ExceptionFileAlreadyExistsException
268	objectMap := make(map[string]interface{})
269	if afaee.Exception != "" {
270		objectMap["exception"] = afaee.Exception
271	}
272	return json.Marshal(objectMap)
273}
274
275// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
276func (afaee AdlsFileAlreadyExistsException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
277	return nil, false
278}
279
280// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
281func (afaee AdlsFileAlreadyExistsException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
282	return nil, false
283}
284
285// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
286func (afaee AdlsFileAlreadyExistsException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
287	return nil, false
288}
289
290// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
291func (afaee AdlsFileAlreadyExistsException) AsAdlsIOException() (*AdlsIOException, bool) {
292	return nil, false
293}
294
295// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
296func (afaee AdlsFileAlreadyExistsException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
297	return nil, false
298}
299
300// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
301func (afaee AdlsFileAlreadyExistsException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
302	return &afaee, true
303}
304
305// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
306func (afaee AdlsFileAlreadyExistsException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
307	return nil, false
308}
309
310// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
311func (afaee AdlsFileAlreadyExistsException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
312	return nil, false
313}
314
315// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
316func (afaee AdlsFileAlreadyExistsException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
317	return nil, false
318}
319
320// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
321func (afaee AdlsFileAlreadyExistsException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
322	return nil, false
323}
324
325// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
326func (afaee AdlsFileAlreadyExistsException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
327	return nil, false
328}
329
330// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileAlreadyExistsException.
331func (afaee AdlsFileAlreadyExistsException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
332	return &afaee, true
333}
334
335// AdlsFileNotFoundException a WebHDFS exception thrown indicating the file or folder could not be found.
336// Thrown when a 404 error response code is returned (not found).
337type AdlsFileNotFoundException struct {
338	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
339	JavaClassName *string `json:"javaClassName,omitempty"`
340	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
341	Message *string `json:"message,omitempty"`
342	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
343	Exception Exception `json:"exception,omitempty"`
344}
345
346// MarshalJSON is the custom marshaler for AdlsFileNotFoundException.
347func (afnfe AdlsFileNotFoundException) MarshalJSON() ([]byte, error) {
348	afnfe.Exception = ExceptionFileNotFoundException
349	objectMap := make(map[string]interface{})
350	if afnfe.Exception != "" {
351		objectMap["exception"] = afnfe.Exception
352	}
353	return json.Marshal(objectMap)
354}
355
356// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
357func (afnfe AdlsFileNotFoundException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
358	return nil, false
359}
360
361// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
362func (afnfe AdlsFileNotFoundException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
363	return nil, false
364}
365
366// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
367func (afnfe AdlsFileNotFoundException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
368	return nil, false
369}
370
371// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
372func (afnfe AdlsFileNotFoundException) AsAdlsIOException() (*AdlsIOException, bool) {
373	return nil, false
374}
375
376// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
377func (afnfe AdlsFileNotFoundException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
378	return &afnfe, true
379}
380
381// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
382func (afnfe AdlsFileNotFoundException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
383	return nil, false
384}
385
386// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
387func (afnfe AdlsFileNotFoundException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
388	return nil, false
389}
390
391// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
392func (afnfe AdlsFileNotFoundException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
393	return nil, false
394}
395
396// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
397func (afnfe AdlsFileNotFoundException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
398	return nil, false
399}
400
401// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
402func (afnfe AdlsFileNotFoundException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
403	return nil, false
404}
405
406// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
407func (afnfe AdlsFileNotFoundException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
408	return nil, false
409}
410
411// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsFileNotFoundException.
412func (afnfe AdlsFileNotFoundException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
413	return &afnfe, true
414}
415
416// AdlsIllegalArgumentException a WebHDFS exception thrown indicating that one more arguments is incorrect.
417// Thrown when a 400 error response code is returned (bad request).
418type AdlsIllegalArgumentException struct {
419	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
420	JavaClassName *string `json:"javaClassName,omitempty"`
421	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
422	Message *string `json:"message,omitempty"`
423	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
424	Exception Exception `json:"exception,omitempty"`
425}
426
427// MarshalJSON is the custom marshaler for AdlsIllegalArgumentException.
428func (aiae AdlsIllegalArgumentException) MarshalJSON() ([]byte, error) {
429	aiae.Exception = ExceptionIllegalArgumentException
430	objectMap := make(map[string]interface{})
431	if aiae.Exception != "" {
432		objectMap["exception"] = aiae.Exception
433	}
434	return json.Marshal(objectMap)
435}
436
437// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
438func (aiae AdlsIllegalArgumentException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
439	return &aiae, true
440}
441
442// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
443func (aiae AdlsIllegalArgumentException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
444	return nil, false
445}
446
447// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
448func (aiae AdlsIllegalArgumentException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
449	return nil, false
450}
451
452// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
453func (aiae AdlsIllegalArgumentException) AsAdlsIOException() (*AdlsIOException, bool) {
454	return nil, false
455}
456
457// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
458func (aiae AdlsIllegalArgumentException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
459	return nil, false
460}
461
462// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
463func (aiae AdlsIllegalArgumentException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
464	return nil, false
465}
466
467// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
468func (aiae AdlsIllegalArgumentException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
469	return nil, false
470}
471
472// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
473func (aiae AdlsIllegalArgumentException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
474	return nil, false
475}
476
477// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
478func (aiae AdlsIllegalArgumentException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
479	return nil, false
480}
481
482// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
483func (aiae AdlsIllegalArgumentException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
484	return nil, false
485}
486
487// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
488func (aiae AdlsIllegalArgumentException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
489	return nil, false
490}
491
492// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIllegalArgumentException.
493func (aiae AdlsIllegalArgumentException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
494	return &aiae, true
495}
496
497// AdlsIOException a WebHDFS exception thrown indicating there was an IO (read or write) error. Thrown when
498// a 403 error response code is returned (forbidden).
499type AdlsIOException struct {
500	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
501	JavaClassName *string `json:"javaClassName,omitempty"`
502	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
503	Message *string `json:"message,omitempty"`
504	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
505	Exception Exception `json:"exception,omitempty"`
506}
507
508// MarshalJSON is the custom marshaler for AdlsIOException.
509func (aie AdlsIOException) MarshalJSON() ([]byte, error) {
510	aie.Exception = ExceptionIOException
511	objectMap := make(map[string]interface{})
512	if aie.Exception != "" {
513		objectMap["exception"] = aie.Exception
514	}
515	return json.Marshal(objectMap)
516}
517
518// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsIOException.
519func (aie AdlsIOException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
520	return nil, false
521}
522
523// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsIOException.
524func (aie AdlsIOException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
525	return nil, false
526}
527
528// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsIOException.
529func (aie AdlsIOException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
530	return nil, false
531}
532
533// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsIOException.
534func (aie AdlsIOException) AsAdlsIOException() (*AdlsIOException, bool) {
535	return &aie, true
536}
537
538// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsIOException.
539func (aie AdlsIOException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
540	return nil, false
541}
542
543// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsIOException.
544func (aie AdlsIOException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
545	return nil, false
546}
547
548// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsIOException.
549func (aie AdlsIOException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
550	return nil, false
551}
552
553// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsIOException.
554func (aie AdlsIOException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
555	return nil, false
556}
557
558// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsIOException.
559func (aie AdlsIOException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
560	return nil, false
561}
562
563// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsIOException.
564func (aie AdlsIOException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
565	return nil, false
566}
567
568// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIOException.
569func (aie AdlsIOException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
570	return nil, false
571}
572
573// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsIOException.
574func (aie AdlsIOException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
575	return &aie, true
576}
577
578// BasicAdlsRemoteException data Lake Store filesystem exception based on the WebHDFS definition for RemoteExceptions.
579// This is a WebHDFS 'catch all' exception
580type BasicAdlsRemoteException interface {
581	AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool)
582	AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool)
583	AsAdlsSecurityException() (*AdlsSecurityException, bool)
584	AsAdlsIOException() (*AdlsIOException, bool)
585	AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool)
586	AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool)
587	AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool)
588	AsAdlsRuntimeException() (*AdlsRuntimeException, bool)
589	AsAdlsAccessControlException() (*AdlsAccessControlException, bool)
590	AsAdlsThrottledException() (*AdlsThrottledException, bool)
591	AsAdlsRemoteException() (*AdlsRemoteException, bool)
592}
593
594// AdlsRemoteException data Lake Store filesystem exception based on the WebHDFS definition for
595// RemoteExceptions. This is a WebHDFS 'catch all' exception
596type AdlsRemoteException struct {
597	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
598	JavaClassName *string `json:"javaClassName,omitempty"`
599	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
600	Message *string `json:"message,omitempty"`
601	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
602	Exception Exception `json:"exception,omitempty"`
603}
604
605func unmarshalBasicAdlsRemoteException(body []byte) (BasicAdlsRemoteException, error) {
606	var m map[string]interface{}
607	err := json.Unmarshal(body, &m)
608	if err != nil {
609		return nil, err
610	}
611
612	switch m["exception"] {
613	case string(ExceptionIllegalArgumentException):
614		var aiae AdlsIllegalArgumentException
615		err := json.Unmarshal(body, &aiae)
616		return aiae, err
617	case string(ExceptionUnsupportedOperationException):
618		var auoe AdlsUnsupportedOperationException
619		err := json.Unmarshal(body, &auoe)
620		return auoe, err
621	case string(ExceptionSecurityException):
622		var ase AdlsSecurityException
623		err := json.Unmarshal(body, &ase)
624		return ase, err
625	case string(ExceptionIOException):
626		var aie AdlsIOException
627		err := json.Unmarshal(body, &aie)
628		return aie, err
629	case string(ExceptionFileNotFoundException):
630		var afnfe AdlsFileNotFoundException
631		err := json.Unmarshal(body, &afnfe)
632		return afnfe, err
633	case string(ExceptionFileAlreadyExistsException):
634		var afaee AdlsFileAlreadyExistsException
635		err := json.Unmarshal(body, &afaee)
636		return afaee, err
637	case string(ExceptionBadOffsetException):
638		var aboe AdlsBadOffsetException
639		err := json.Unmarshal(body, &aboe)
640		return aboe, err
641	case string(ExceptionRuntimeException):
642		var are AdlsRuntimeException
643		err := json.Unmarshal(body, &are)
644		return are, err
645	case string(ExceptionAccessControlException):
646		var aace AdlsAccessControlException
647		err := json.Unmarshal(body, &aace)
648		return aace, err
649	case string(ExceptionThrottledException):
650		var ate AdlsThrottledException
651		err := json.Unmarshal(body, &ate)
652		return ate, err
653	default:
654		var are AdlsRemoteException
655		err := json.Unmarshal(body, &are)
656		return are, err
657	}
658}
659func unmarshalBasicAdlsRemoteExceptionArray(body []byte) ([]BasicAdlsRemoteException, error) {
660	var rawMessages []*json.RawMessage
661	err := json.Unmarshal(body, &rawMessages)
662	if err != nil {
663		return nil, err
664	}
665
666	areArray := make([]BasicAdlsRemoteException, len(rawMessages))
667
668	for index, rawMessage := range rawMessages {
669		are, err := unmarshalBasicAdlsRemoteException(*rawMessage)
670		if err != nil {
671			return nil, err
672		}
673		areArray[index] = are
674	}
675	return areArray, nil
676}
677
678// MarshalJSON is the custom marshaler for AdlsRemoteException.
679func (are AdlsRemoteException) MarshalJSON() ([]byte, error) {
680	are.Exception = ExceptionAdlsRemoteException
681	objectMap := make(map[string]interface{})
682	if are.Exception != "" {
683		objectMap["exception"] = are.Exception
684	}
685	return json.Marshal(objectMap)
686}
687
688// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
689func (are AdlsRemoteException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
690	return nil, false
691}
692
693// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
694func (are AdlsRemoteException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
695	return nil, false
696}
697
698// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
699func (are AdlsRemoteException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
700	return nil, false
701}
702
703// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
704func (are AdlsRemoteException) AsAdlsIOException() (*AdlsIOException, bool) {
705	return nil, false
706}
707
708// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
709func (are AdlsRemoteException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
710	return nil, false
711}
712
713// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
714func (are AdlsRemoteException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
715	return nil, false
716}
717
718// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
719func (are AdlsRemoteException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
720	return nil, false
721}
722
723// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
724func (are AdlsRemoteException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
725	return nil, false
726}
727
728// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
729func (are AdlsRemoteException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
730	return nil, false
731}
732
733// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
734func (are AdlsRemoteException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
735	return nil, false
736}
737
738// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
739func (are AdlsRemoteException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
740	return &are, true
741}
742
743// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRemoteException.
744func (are AdlsRemoteException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
745	return &are, true
746}
747
748// AdlsRuntimeException a WebHDFS exception thrown when an unexpected error occurs during an operation.
749// Thrown when a 500 error response code is returned (Internal server error).
750type AdlsRuntimeException struct {
751	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
752	JavaClassName *string `json:"javaClassName,omitempty"`
753	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
754	Message *string `json:"message,omitempty"`
755	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
756	Exception Exception `json:"exception,omitempty"`
757}
758
759// MarshalJSON is the custom marshaler for AdlsRuntimeException.
760func (are AdlsRuntimeException) MarshalJSON() ([]byte, error) {
761	are.Exception = ExceptionRuntimeException
762	objectMap := make(map[string]interface{})
763	if are.Exception != "" {
764		objectMap["exception"] = are.Exception
765	}
766	return json.Marshal(objectMap)
767}
768
769// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
770func (are AdlsRuntimeException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
771	return nil, false
772}
773
774// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
775func (are AdlsRuntimeException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
776	return nil, false
777}
778
779// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
780func (are AdlsRuntimeException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
781	return nil, false
782}
783
784// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
785func (are AdlsRuntimeException) AsAdlsIOException() (*AdlsIOException, bool) {
786	return nil, false
787}
788
789// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
790func (are AdlsRuntimeException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
791	return nil, false
792}
793
794// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
795func (are AdlsRuntimeException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
796	return nil, false
797}
798
799// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
800func (are AdlsRuntimeException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
801	return nil, false
802}
803
804// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
805func (are AdlsRuntimeException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
806	return &are, true
807}
808
809// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
810func (are AdlsRuntimeException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
811	return nil, false
812}
813
814// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
815func (are AdlsRuntimeException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
816	return nil, false
817}
818
819// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
820func (are AdlsRuntimeException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
821	return nil, false
822}
823
824// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsRuntimeException.
825func (are AdlsRuntimeException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
826	return &are, true
827}
828
829// AdlsSecurityException a WebHDFS exception thrown indicating that access is denied. Thrown when a 401
830// error response code is returned (Unauthorized).
831type AdlsSecurityException struct {
832	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
833	JavaClassName *string `json:"javaClassName,omitempty"`
834	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
835	Message *string `json:"message,omitempty"`
836	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
837	Exception Exception `json:"exception,omitempty"`
838}
839
840// MarshalJSON is the custom marshaler for AdlsSecurityException.
841func (ase AdlsSecurityException) MarshalJSON() ([]byte, error) {
842	ase.Exception = ExceptionSecurityException
843	objectMap := make(map[string]interface{})
844	if ase.Exception != "" {
845		objectMap["exception"] = ase.Exception
846	}
847	return json.Marshal(objectMap)
848}
849
850// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
851func (ase AdlsSecurityException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
852	return nil, false
853}
854
855// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
856func (ase AdlsSecurityException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
857	return nil, false
858}
859
860// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
861func (ase AdlsSecurityException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
862	return &ase, true
863}
864
865// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
866func (ase AdlsSecurityException) AsAdlsIOException() (*AdlsIOException, bool) {
867	return nil, false
868}
869
870// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
871func (ase AdlsSecurityException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
872	return nil, false
873}
874
875// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
876func (ase AdlsSecurityException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
877	return nil, false
878}
879
880// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
881func (ase AdlsSecurityException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
882	return nil, false
883}
884
885// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
886func (ase AdlsSecurityException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
887	return nil, false
888}
889
890// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
891func (ase AdlsSecurityException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
892	return nil, false
893}
894
895// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
896func (ase AdlsSecurityException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
897	return nil, false
898}
899
900// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
901func (ase AdlsSecurityException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
902	return nil, false
903}
904
905// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsSecurityException.
906func (ase AdlsSecurityException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
907	return &ase, true
908}
909
910// AdlsThrottledException a WebHDFS exception thrown indicating that the request is being throttled.
911// Reducing the number of requests or request size helps to mitigate this error.
912type AdlsThrottledException struct {
913	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
914	JavaClassName *string `json:"javaClassName,omitempty"`
915	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
916	Message *string `json:"message,omitempty"`
917	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
918	Exception Exception `json:"exception,omitempty"`
919}
920
921// MarshalJSON is the custom marshaler for AdlsThrottledException.
922func (ate AdlsThrottledException) MarshalJSON() ([]byte, error) {
923	ate.Exception = ExceptionThrottledException
924	objectMap := make(map[string]interface{})
925	if ate.Exception != "" {
926		objectMap["exception"] = ate.Exception
927	}
928	return json.Marshal(objectMap)
929}
930
931// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
932func (ate AdlsThrottledException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
933	return nil, false
934}
935
936// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
937func (ate AdlsThrottledException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
938	return nil, false
939}
940
941// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
942func (ate AdlsThrottledException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
943	return nil, false
944}
945
946// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
947func (ate AdlsThrottledException) AsAdlsIOException() (*AdlsIOException, bool) {
948	return nil, false
949}
950
951// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
952func (ate AdlsThrottledException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
953	return nil, false
954}
955
956// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
957func (ate AdlsThrottledException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
958	return nil, false
959}
960
961// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
962func (ate AdlsThrottledException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
963	return nil, false
964}
965
966// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
967func (ate AdlsThrottledException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
968	return nil, false
969}
970
971// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
972func (ate AdlsThrottledException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
973	return nil, false
974}
975
976// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
977func (ate AdlsThrottledException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
978	return &ate, true
979}
980
981// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
982func (ate AdlsThrottledException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
983	return nil, false
984}
985
986// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsThrottledException.
987func (ate AdlsThrottledException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
988	return &ate, true
989}
990
991// AdlsUnsupportedOperationException a WebHDFS exception thrown indicating that the requested operation is
992// not supported. Thrown when a 400 error response code is returned (bad request).
993type AdlsUnsupportedOperationException struct {
994	// JavaClassName - READ-ONLY; the full class package name for the exception thrown, such as 'java.lang.IllegalArgumentException'.
995	JavaClassName *string `json:"javaClassName,omitempty"`
996	// Message - READ-ONLY; the message associated with the exception that was thrown, such as 'Invalid value for webhdfs parameter "permission":...'.
997	Message *string `json:"message,omitempty"`
998	// Exception - Possible values include: 'ExceptionAdlsRemoteException', 'ExceptionIllegalArgumentException', 'ExceptionUnsupportedOperationException', 'ExceptionSecurityException', 'ExceptionIOException', 'ExceptionFileNotFoundException', 'ExceptionFileAlreadyExistsException', 'ExceptionBadOffsetException', 'ExceptionRuntimeException', 'ExceptionAccessControlException', 'ExceptionThrottledException'
999	Exception Exception `json:"exception,omitempty"`
1000}
1001
1002// MarshalJSON is the custom marshaler for AdlsUnsupportedOperationException.
1003func (auoe AdlsUnsupportedOperationException) MarshalJSON() ([]byte, error) {
1004	auoe.Exception = ExceptionUnsupportedOperationException
1005	objectMap := make(map[string]interface{})
1006	if auoe.Exception != "" {
1007		objectMap["exception"] = auoe.Exception
1008	}
1009	return json.Marshal(objectMap)
1010}
1011
1012// AsAdlsIllegalArgumentException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1013func (auoe AdlsUnsupportedOperationException) AsAdlsIllegalArgumentException() (*AdlsIllegalArgumentException, bool) {
1014	return nil, false
1015}
1016
1017// AsAdlsUnsupportedOperationException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1018func (auoe AdlsUnsupportedOperationException) AsAdlsUnsupportedOperationException() (*AdlsUnsupportedOperationException, bool) {
1019	return &auoe, true
1020}
1021
1022// AsAdlsSecurityException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1023func (auoe AdlsUnsupportedOperationException) AsAdlsSecurityException() (*AdlsSecurityException, bool) {
1024	return nil, false
1025}
1026
1027// AsAdlsIOException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1028func (auoe AdlsUnsupportedOperationException) AsAdlsIOException() (*AdlsIOException, bool) {
1029	return nil, false
1030}
1031
1032// AsAdlsFileNotFoundException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1033func (auoe AdlsUnsupportedOperationException) AsAdlsFileNotFoundException() (*AdlsFileNotFoundException, bool) {
1034	return nil, false
1035}
1036
1037// AsAdlsFileAlreadyExistsException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1038func (auoe AdlsUnsupportedOperationException) AsAdlsFileAlreadyExistsException() (*AdlsFileAlreadyExistsException, bool) {
1039	return nil, false
1040}
1041
1042// AsAdlsBadOffsetException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1043func (auoe AdlsUnsupportedOperationException) AsAdlsBadOffsetException() (*AdlsBadOffsetException, bool) {
1044	return nil, false
1045}
1046
1047// AsAdlsRuntimeException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1048func (auoe AdlsUnsupportedOperationException) AsAdlsRuntimeException() (*AdlsRuntimeException, bool) {
1049	return nil, false
1050}
1051
1052// AsAdlsAccessControlException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1053func (auoe AdlsUnsupportedOperationException) AsAdlsAccessControlException() (*AdlsAccessControlException, bool) {
1054	return nil, false
1055}
1056
1057// AsAdlsThrottledException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1058func (auoe AdlsUnsupportedOperationException) AsAdlsThrottledException() (*AdlsThrottledException, bool) {
1059	return nil, false
1060}
1061
1062// AsAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1063func (auoe AdlsUnsupportedOperationException) AsAdlsRemoteException() (*AdlsRemoteException, bool) {
1064	return nil, false
1065}
1066
1067// AsBasicAdlsRemoteException is the BasicAdlsRemoteException implementation for AdlsUnsupportedOperationException.
1068func (auoe AdlsUnsupportedOperationException) AsBasicAdlsRemoteException() (BasicAdlsRemoteException, bool) {
1069	return &auoe, true
1070}
1071
1072// ContentSummary data Lake Store content summary information
1073type ContentSummary struct {
1074	// DirectoryCount - READ-ONLY; the number of directories.
1075	DirectoryCount *int64 `json:"directoryCount,omitempty"`
1076	// FileCount - READ-ONLY; the number of files.
1077	FileCount *int64 `json:"fileCount,omitempty"`
1078	// Length - READ-ONLY; the number of bytes used by the content.
1079	Length *int64 `json:"length,omitempty"`
1080	// SpaceConsumed - READ-ONLY; the disk space consumed by the content.
1081	SpaceConsumed *int64 `json:"spaceConsumed,omitempty"`
1082}
1083
1084// MarshalJSON is the custom marshaler for ContentSummary.
1085func (cs ContentSummary) MarshalJSON() ([]byte, error) {
1086	objectMap := make(map[string]interface{})
1087	return json.Marshal(objectMap)
1088}
1089
1090// ContentSummaryResult data Lake Store filesystem content summary information response.
1091type ContentSummaryResult struct {
1092	autorest.Response `json:"-"`
1093	// ContentSummary - READ-ONLY; the content summary for the specified path
1094	ContentSummary *ContentSummary `json:"contentSummary,omitempty"`
1095}
1096
1097// MarshalJSON is the custom marshaler for ContentSummaryResult.
1098func (csr ContentSummaryResult) MarshalJSON() ([]byte, error) {
1099	objectMap := make(map[string]interface{})
1100	return json.Marshal(objectMap)
1101}
1102
1103// FileOperationResult the result of the request or operation.
1104type FileOperationResult struct {
1105	autorest.Response `json:"-"`
1106	// OperationResult - READ-ONLY; the result of the operation or request.
1107	OperationResult *bool `json:"boolean,omitempty"`
1108}
1109
1110// MarshalJSON is the custom marshaler for FileOperationResult.
1111func (forVar FileOperationResult) MarshalJSON() ([]byte, error) {
1112	objectMap := make(map[string]interface{})
1113	return json.Marshal(objectMap)
1114}
1115
1116// FileStatuses data Lake Store file status list information.
1117type FileStatuses struct {
1118	// FileStatus - READ-ONLY; the object containing the list of properties of the files.
1119	FileStatus *[]FileStatusProperties `json:"fileStatus,omitempty"`
1120}
1121
1122// MarshalJSON is the custom marshaler for FileStatuses.
1123func (fs FileStatuses) MarshalJSON() ([]byte, error) {
1124	objectMap := make(map[string]interface{})
1125	return json.Marshal(objectMap)
1126}
1127
1128// FileStatusesResult data Lake Store filesystem file status list information response.
1129type FileStatusesResult struct {
1130	autorest.Response `json:"-"`
1131	// FileStatuses - READ-ONLY; the object representing the list of file statuses.
1132	FileStatuses *FileStatuses `json:"fileStatuses,omitempty"`
1133}
1134
1135// MarshalJSON is the custom marshaler for FileStatusesResult.
1136func (fsr FileStatusesResult) MarshalJSON() ([]byte, error) {
1137	objectMap := make(map[string]interface{})
1138	return json.Marshal(objectMap)
1139}
1140
1141// FileStatusProperties data Lake Store file or directory information.
1142type FileStatusProperties struct {
1143	// AccessTime - READ-ONLY; the last access time as ticks since the epoch.
1144	AccessTime *int64 `json:"accessTime,omitempty"`
1145	// BlockSize - READ-ONLY; the block size for the file.
1146	BlockSize *int64 `json:"blockSize,omitempty"`
1147	// ExpirationTime - READ-ONLY; Gets the expiration time, if any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue there is no expiration.
1148	ExpirationTime *int64 `json:"msExpirationTime,omitempty"`
1149	// Group - READ-ONLY; the group owner.
1150	Group *string `json:"group,omitempty"`
1151	// Length - READ-ONLY; the number of bytes in a file.
1152	Length *int64 `json:"length,omitempty"`
1153	// ModificationTime - READ-ONLY; the modification time as ticks since the epoch.
1154	ModificationTime *int64 `json:"modificationTime,omitempty"`
1155	// Owner - READ-ONLY; the user who is the owner.
1156	Owner *string `json:"owner,omitempty"`
1157	// PathSuffix - READ-ONLY; the path suffix.
1158	PathSuffix *string `json:"pathSuffix,omitempty"`
1159	// Permission - READ-ONLY; the permission represented as an string.
1160	Permission *string `json:"permission,omitempty"`
1161	// Type - READ-ONLY; the type of the path object. Possible values include: 'FILE', 'DIRECTORY'
1162	Type FileType `json:"type,omitempty"`
1163	// ACLBit - READ-ONLY; flag to indicate if extended acls are enabled
1164	ACLBit *bool `json:"aclBit,omitempty"`
1165}
1166
1167// MarshalJSON is the custom marshaler for FileStatusProperties.
1168func (fsp FileStatusProperties) MarshalJSON() ([]byte, error) {
1169	objectMap := make(map[string]interface{})
1170	return json.Marshal(objectMap)
1171}
1172
1173// FileStatusResult data Lake Store filesystem file status information response.
1174type FileStatusResult struct {
1175	autorest.Response `json:"-"`
1176	// FileStatus - READ-ONLY; the file status object associated with the specified path.
1177	FileStatus *FileStatusProperties `json:"fileStatus,omitempty"`
1178}
1179
1180// MarshalJSON is the custom marshaler for FileStatusResult.
1181func (fsr FileStatusResult) MarshalJSON() ([]byte, error) {
1182	objectMap := make(map[string]interface{})
1183	return json.Marshal(objectMap)
1184}
1185
1186// ReadCloser ...
1187type ReadCloser struct {
1188	autorest.Response `json:"-"`
1189	Value             *io.ReadCloser `json:"value,omitempty"`
1190}
1191