-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPool.enums.gen.go
43 lines (33 loc) · 913 Bytes
/
Pool.enums.gen.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
// This is a generated file. DO NOT EDIT manually.
package go_xen_client
//PoolAllowedOperations: pool_allowed_operations enum type
type PoolAllowedOperations int
const(
PoolAllowedOperationsHaEnable PoolAllowedOperations = iota //Indicates this pool is in the process of enabling HA
PoolAllowedOperationsHaDisable //Indicates this pool is in the process of disabling HA
PoolAllowedOperationsClusterCreate //Indicates this pool is in the process of creating a cluster
)
func (e PoolAllowedOperations) String() string {
switch e {
case 0:
return "ha_enable"
case 1:
return "ha_disable"
case 2:
return "cluster_create"
default:
return ""
}
}
func ToPoolAllowedOperations(strValue string) PoolAllowedOperations {
switch strValue {
case "ha_enable":
return 0
case "ha_disable":
return 1
case "cluster_create":
return 2
default:
return -1
}
}