-
Notifications
You must be signed in to change notification settings - Fork 596
/
enums.go
261 lines (224 loc) · 7.71 KB
/
enums.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
type AccessorStatus string
// Enum values for AccessorStatus
const (
AccessorStatusAvailable AccessorStatus = "AVAILABLE"
AccessorStatusPendingDeletion AccessorStatus = "PENDING_DELETION"
AccessorStatusDeleted AccessorStatus = "DELETED"
)
// Values returns all known values for AccessorStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AccessorStatus) Values() []AccessorStatus {
return []AccessorStatus{
"AVAILABLE",
"PENDING_DELETION",
"DELETED",
}
}
type AccessorType string
// Enum values for AccessorType
const (
AccessorTypeBillingToken AccessorType = "BILLING_TOKEN"
)
// Values returns all known values for AccessorType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (AccessorType) Values() []AccessorType {
return []AccessorType{
"BILLING_TOKEN",
}
}
type Edition string
// Enum values for Edition
const (
EditionStarter Edition = "STARTER"
EditionStandard Edition = "STANDARD"
)
// Values returns all known values for Edition. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Edition) Values() []Edition {
return []Edition{
"STARTER",
"STANDARD",
}
}
type Framework string
// Enum values for Framework
const (
FrameworkHyperledgerFabric Framework = "HYPERLEDGER_FABRIC"
FrameworkEthereum Framework = "ETHEREUM"
)
// Values returns all known values for Framework. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Framework) Values() []Framework {
return []Framework{
"HYPERLEDGER_FABRIC",
"ETHEREUM",
}
}
type InvitationStatus string
// Enum values for InvitationStatus
const (
InvitationStatusPending InvitationStatus = "PENDING"
InvitationStatusAccepted InvitationStatus = "ACCEPTED"
InvitationStatusAccepting InvitationStatus = "ACCEPTING"
InvitationStatusRejected InvitationStatus = "REJECTED"
InvitationStatusExpired InvitationStatus = "EXPIRED"
)
// Values returns all known values for InvitationStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (InvitationStatus) Values() []InvitationStatus {
return []InvitationStatus{
"PENDING",
"ACCEPTED",
"ACCEPTING",
"REJECTED",
"EXPIRED",
}
}
type MemberStatus string
// Enum values for MemberStatus
const (
MemberStatusCreating MemberStatus = "CREATING"
MemberStatusAvailable MemberStatus = "AVAILABLE"
MemberStatusCreateFailed MemberStatus = "CREATE_FAILED"
MemberStatusUpdating MemberStatus = "UPDATING"
MemberStatusDeleting MemberStatus = "DELETING"
MemberStatusDeleted MemberStatus = "DELETED"
MemberStatusInaccessibleEncryptionKey MemberStatus = "INACCESSIBLE_ENCRYPTION_KEY"
)
// Values returns all known values for MemberStatus. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (MemberStatus) Values() []MemberStatus {
return []MemberStatus{
"CREATING",
"AVAILABLE",
"CREATE_FAILED",
"UPDATING",
"DELETING",
"DELETED",
"INACCESSIBLE_ENCRYPTION_KEY",
}
}
type NetworkStatus string
// Enum values for NetworkStatus
const (
NetworkStatusCreating NetworkStatus = "CREATING"
NetworkStatusAvailable NetworkStatus = "AVAILABLE"
NetworkStatusCreateFailed NetworkStatus = "CREATE_FAILED"
NetworkStatusDeleting NetworkStatus = "DELETING"
NetworkStatusDeleted NetworkStatus = "DELETED"
)
// Values returns all known values for NetworkStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (NetworkStatus) Values() []NetworkStatus {
return []NetworkStatus{
"CREATING",
"AVAILABLE",
"CREATE_FAILED",
"DELETING",
"DELETED",
}
}
type NodeStatus string
// Enum values for NodeStatus
const (
NodeStatusCreating NodeStatus = "CREATING"
NodeStatusAvailable NodeStatus = "AVAILABLE"
NodeStatusUnhealthy NodeStatus = "UNHEALTHY"
NodeStatusCreateFailed NodeStatus = "CREATE_FAILED"
NodeStatusUpdating NodeStatus = "UPDATING"
NodeStatusDeleting NodeStatus = "DELETING"
NodeStatusDeleted NodeStatus = "DELETED"
NodeStatusFailed NodeStatus = "FAILED"
NodeStatusInaccessibleEncryptionKey NodeStatus = "INACCESSIBLE_ENCRYPTION_KEY"
)
// Values returns all known values for NodeStatus. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (NodeStatus) Values() []NodeStatus {
return []NodeStatus{
"CREATING",
"AVAILABLE",
"UNHEALTHY",
"CREATE_FAILED",
"UPDATING",
"DELETING",
"DELETED",
"FAILED",
"INACCESSIBLE_ENCRYPTION_KEY",
}
}
type ProposalStatus string
// Enum values for ProposalStatus
const (
ProposalStatusInProgress ProposalStatus = "IN_PROGRESS"
ProposalStatusApproved ProposalStatus = "APPROVED"
ProposalStatusRejected ProposalStatus = "REJECTED"
ProposalStatusExpired ProposalStatus = "EXPIRED"
ProposalStatusActionFailed ProposalStatus = "ACTION_FAILED"
)
// Values returns all known values for ProposalStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ProposalStatus) Values() []ProposalStatus {
return []ProposalStatus{
"IN_PROGRESS",
"APPROVED",
"REJECTED",
"EXPIRED",
"ACTION_FAILED",
}
}
type StateDBType string
// Enum values for StateDBType
const (
StateDBTypeLevelDB StateDBType = "LevelDB"
StateDBTypeCouchDB StateDBType = "CouchDB"
)
// Values returns all known values for StateDBType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (StateDBType) Values() []StateDBType {
return []StateDBType{
"LevelDB",
"CouchDB",
}
}
type ThresholdComparator string
// Enum values for ThresholdComparator
const (
ThresholdComparatorGreaterThan ThresholdComparator = "GREATER_THAN"
ThresholdComparatorGreaterThanOrEqualTo ThresholdComparator = "GREATER_THAN_OR_EQUAL_TO"
)
// Values returns all known values for ThresholdComparator. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ThresholdComparator) Values() []ThresholdComparator {
return []ThresholdComparator{
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
}
}
type VoteValue string
// Enum values for VoteValue
const (
VoteValueYes VoteValue = "YES"
VoteValueNo VoteValue = "NO"
)
// Values returns all known values for VoteValue. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (VoteValue) Values() []VoteValue {
return []VoteValue{
"YES",
"NO",
}
}