...

Source file src/github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/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  	// ExceptionThrottledException ...
    45  	ExceptionThrottledException Exception = "ThrottledException"
    46  	// ExceptionUnsupportedOperationException ...
    47  	ExceptionUnsupportedOperationException Exception = "UnsupportedOperationException"
    48  )
    49  
    50  // PossibleExceptionValues returns an array of possible values for the Exception const type.
    51  func PossibleExceptionValues() []Exception {
    52  	return []Exception{ExceptionAccessControlException, ExceptionAdlsRemoteException, ExceptionBadOffsetException, ExceptionFileAlreadyExistsException, ExceptionFileNotFoundException, ExceptionIllegalArgumentException, ExceptionIOException, ExceptionRuntimeException, ExceptionSecurityException, ExceptionThrottledException, ExceptionUnsupportedOperationException}
    53  }
    54  
    55  // ExpiryOptionType enumerates the values for expiry option type.
    56  type ExpiryOptionType string
    57  
    58  const (
    59  	// Absolute ...
    60  	Absolute ExpiryOptionType = "Absolute"
    61  	// NeverExpire ...
    62  	NeverExpire ExpiryOptionType = "NeverExpire"
    63  	// RelativeToCreationDate ...
    64  	RelativeToCreationDate ExpiryOptionType = "RelativeToCreationDate"
    65  	// RelativeToNow ...
    66  	RelativeToNow ExpiryOptionType = "RelativeToNow"
    67  )
    68  
    69  // PossibleExpiryOptionTypeValues returns an array of possible values for the ExpiryOptionType const type.
    70  func PossibleExpiryOptionTypeValues() []ExpiryOptionType {
    71  	return []ExpiryOptionType{Absolute, NeverExpire, RelativeToCreationDate, RelativeToNow}
    72  }
    73  
    74  // FileType enumerates the values for file type.
    75  type FileType string
    76  
    77  const (
    78  	// DIRECTORY ...
    79  	DIRECTORY FileType = "DIRECTORY"
    80  	// FILE ...
    81  	FILE FileType = "FILE"
    82  )
    83  
    84  // PossibleFileTypeValues returns an array of possible values for the FileType const type.
    85  func PossibleFileTypeValues() []FileType {
    86  	return []FileType{DIRECTORY, FILE}
    87  }
    88  
    89  // SyncFlag enumerates the values for sync flag.
    90  type SyncFlag string
    91  
    92  const (
    93  	// CLOSE ...
    94  	CLOSE SyncFlag = "CLOSE"
    95  	// DATA ...
    96  	DATA SyncFlag = "DATA"
    97  	// METADATA ...
    98  	METADATA SyncFlag = "METADATA"
    99  )
   100  
   101  // PossibleSyncFlagValues returns an array of possible values for the SyncFlag const type.
   102  func PossibleSyncFlagValues() []SyncFlag {
   103  	return []SyncFlag{CLOSE, DATA, METADATA}
   104  }
   105  

View as plain text