-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessage.enums.gen.go
73 lines (58 loc) · 898 Bytes
/
Message.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
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
// This is a generated file. DO NOT EDIT manually.
package go_xen_client
//Cls: cls enum type
type Cls int
const(
ClsVM Cls = iota //VM
ClsHost //Host
ClsSR //SR
ClsPool //Pool
ClsVMPP //VMPP
ClsVMSS //VMSS
ClsPVSProxy //PVS_proxy
ClsVDI //VDI
)
func (e Cls) String() string {
switch e {
case 0:
return "VM"
case 1:
return "Host"
case 2:
return "SR"
case 3:
return "Pool"
case 4:
return "VMPP"
case 5:
return "VMSS"
case 6:
return "PVS_proxy"
case 7:
return "VDI"
default:
return ""
}
}
func ToCls(strValue string) Cls {
switch strValue {
case "VM":
return 0
case "Host":
return 1
case "SR":
return 2
case "Pool":
return 3
case "VMPP":
return 4
case "VMSS":
return 5
case "PVS_proxy":
return 6
case "VDI":
return 7
default:
return -1
}
}