...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0_preview.1/translatortext/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0_preview.1/translatortext

     1  package translatortext
     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  // Code enumerates the values for code.
    10  type Code string
    11  
    12  const (
    13  	// InternalServerError ...
    14  	InternalServerError Code = "InternalServerError"
    15  	// InvalidArgument ...
    16  	InvalidArgument Code = "InvalidArgument"
    17  	// InvalidRequest ...
    18  	InvalidRequest Code = "InvalidRequest"
    19  	// RequestRateTooHigh ...
    20  	RequestRateTooHigh Code = "RequestRateTooHigh"
    21  	// ResourceNotFound ...
    22  	ResourceNotFound Code = "ResourceNotFound"
    23  	// ServiceUnavailable ...
    24  	ServiceUnavailable Code = "ServiceUnavailable"
    25  	// Unauthorized ...
    26  	Unauthorized Code = "Unauthorized"
    27  )
    28  
    29  // PossibleCodeValues returns an array of possible values for the Code const type.
    30  func PossibleCodeValues() []Code {
    31  	return []Code{InternalServerError, InvalidArgument, InvalidRequest, RequestRateTooHigh, ResourceNotFound, ServiceUnavailable, Unauthorized}
    32  }
    33  
    34  // Status enumerates the values for status.
    35  type Status string
    36  
    37  const (
    38  	// Cancelled ...
    39  	Cancelled Status = "Cancelled"
    40  	// Cancelling ...
    41  	Cancelling Status = "Cancelling"
    42  	// Failed ...
    43  	Failed Status = "Failed"
    44  	// NotStarted ...
    45  	NotStarted Status = "NotStarted"
    46  	// Running ...
    47  	Running Status = "Running"
    48  	// Succeeded ...
    49  	Succeeded Status = "Succeeded"
    50  )
    51  
    52  // PossibleStatusValues returns an array of possible values for the Status const type.
    53  func PossibleStatusValues() []Status {
    54  	return []Status{Cancelled, Cancelling, Failed, NotStarted, Running, Succeeded}
    55  }
    56  
    57  // Status1 enumerates the values for status 1.
    58  type Status1 string
    59  
    60  const (
    61  	// Status1Cancelled ...
    62  	Status1Cancelled Status1 = "Cancelled"
    63  	// Status1Cancelling ...
    64  	Status1Cancelling Status1 = "Cancelling"
    65  	// Status1Failed ...
    66  	Status1Failed Status1 = "Failed"
    67  	// Status1NotStarted ...
    68  	Status1NotStarted Status1 = "NotStarted"
    69  	// Status1Running ...
    70  	Status1Running Status1 = "Running"
    71  	// Status1Succeeded ...
    72  	Status1Succeeded Status1 = "Succeeded"
    73  )
    74  
    75  // PossibleStatus1Values returns an array of possible values for the Status1 const type.
    76  func PossibleStatus1Values() []Status1 {
    77  	return []Status1{Status1Cancelled, Status1Cancelling, Status1Failed, Status1NotStarted, Status1Running, Status1Succeeded}
    78  }
    79  
    80  // StorageSource enumerates the values for storage source.
    81  type StorageSource string
    82  
    83  const (
    84  	// AzureBlob ...
    85  	AzureBlob StorageSource = "AzureBlob"
    86  )
    87  
    88  // PossibleStorageSourceValues returns an array of possible values for the StorageSource const type.
    89  func PossibleStorageSourceValues() []StorageSource {
    90  	return []StorageSource{AzureBlob}
    91  }
    92  
    93  // StorageSource1 enumerates the values for storage source 1.
    94  type StorageSource1 string
    95  
    96  const (
    97  	// StorageSource1AzureBlob ...
    98  	StorageSource1AzureBlob StorageSource1 = "AzureBlob"
    99  )
   100  
   101  // PossibleStorageSource1Values returns an array of possible values for the StorageSource1 const type.
   102  func PossibleStorageSource1Values() []StorageSource1 {
   103  	return []StorageSource1{StorageSource1AzureBlob}
   104  }
   105  
   106  // StorageType enumerates the values for storage type.
   107  type StorageType string
   108  
   109  const (
   110  	// File ...
   111  	File StorageType = "File"
   112  	// Folder ...
   113  	Folder StorageType = "Folder"
   114  )
   115  
   116  // PossibleStorageTypeValues returns an array of possible values for the StorageType const type.
   117  func PossibleStorageTypeValues() []StorageType {
   118  	return []StorageType{File, Folder}
   119  }
   120  

View as plain text