...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/datalake/store/2015-10-01-preview/filesystem

     1  package 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  
     9  // AppendModeType enumerates the values for append mode type.
    10  type AppendModeType string
    11  
    12  const (
    13  	// Autocreate ...
    14  	Autocreate AppendModeType = "autocreate"
    15  )
    16  
    17  // PossibleAppendModeTypeValues returns an array of possible values for the AppendModeType const type.
    18  func PossibleAppendModeTypeValues() []AppendModeType {
    19  	return []AppendModeType{Autocreate}
    20  }
    21  
    22  // Exception enumerates the values for exception.
    23  type Exception string
    24  
    25  const (
    26  	// ExceptionAccessControlException ...
    27  	ExceptionAccessControlException Exception = "AccessControlException"
    28  	// ExceptionAdlsRemoteException ...
    29  	ExceptionAdlsRemoteException Exception = "AdlsRemoteException"
    30  	// ExceptionBadOffsetException ...
    31  	ExceptionBadOffsetException Exception = "BadOffsetException"
    32  	// ExceptionFileAlreadyExistsException ...
    33  	ExceptionFileAlreadyExistsException Exception = "FileAlreadyExistsException"
    34  	// ExceptionFileNotFoundException ...
    35  	ExceptionFileNotFoundException Exception = "FileNotFoundException"
    36  	// ExceptionIllegalArgumentException ...
    37  	ExceptionIllegalArgumentException Exception = "IllegalArgumentException"
    38  	// ExceptionIOException ...
    39  	ExceptionIOException Exception = "IOException"
    40  	// ExceptionRuntimeException ...
    41  	ExceptionRuntimeException Exception = "RuntimeException"
    42  	// ExceptionSecurityException ...
    43  	ExceptionSecurityException Exception = "SecurityException"
    44  	// ExceptionUnsupportedOperationException ...
    45  	ExceptionUnsupportedOperationException Exception = "UnsupportedOperationException"
    46  )
    47  
    48  // PossibleExceptionValues returns an array of possible values for the Exception const type.
    49  func PossibleExceptionValues() []Exception {
    50  	return []Exception{ExceptionAccessControlException, ExceptionAdlsRemoteException, ExceptionBadOffsetException, ExceptionFileAlreadyExistsException, ExceptionFileNotFoundException, ExceptionIllegalArgumentException, ExceptionIOException, ExceptionRuntimeException, ExceptionSecurityException, ExceptionUnsupportedOperationException}
    51  }
    52  
    53  // ExpiryOptionType enumerates the values for expiry option type.
    54  type ExpiryOptionType string
    55  
    56  const (
    57  	// Absolute ...
    58  	Absolute ExpiryOptionType = "Absolute"
    59  	// NeverExpire ...
    60  	NeverExpire ExpiryOptionType = "NeverExpire"
    61  	// RelativeToCreationDate ...
    62  	RelativeToCreationDate ExpiryOptionType = "RelativeToCreationDate"
    63  	// RelativeToNow ...
    64  	RelativeToNow ExpiryOptionType = "RelativeToNow"
    65  )
    66  
    67  // PossibleExpiryOptionTypeValues returns an array of possible values for the ExpiryOptionType const type.
    68  func PossibleExpiryOptionTypeValues() []ExpiryOptionType {
    69  	return []ExpiryOptionType{Absolute, NeverExpire, RelativeToCreationDate, RelativeToNow}
    70  }
    71  
    72  // FileType enumerates the values for file type.
    73  type FileType string
    74  
    75  const (
    76  	// DIRECTORY ...
    77  	DIRECTORY FileType = "DIRECTORY"
    78  	// FILE ...
    79  	FILE FileType = "FILE"
    80  )
    81  
    82  // PossibleFileTypeValues returns an array of possible values for the FileType const type.
    83  func PossibleFileTypeValues() []FileType {
    84  	return []FileType{DIRECTORY, FILE}
    85  }
    86  

View as plain text