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