-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVMSS.enums.gen.go
82 lines (64 loc) · 1.28 KB
/
VMSS.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
73
74
75
76
77
78
79
80
81
// This is a generated file. DO NOT EDIT manually.
package go_xen_client
//VmssFrequency: vmss_frequency enum type
type VmssFrequency int
const(
VmssFrequencyHourly VmssFrequency = iota //Hourly snapshots
VmssFrequencyDaily //Daily snapshots
VmssFrequencyWeekly //Weekly snapshots
)
func (e VmssFrequency) String() string {
switch e {
case 0:
return "hourly"
case 1:
return "daily"
case 2:
return "weekly"
default:
return ""
}
}
func ToVmssFrequency(strValue string) VmssFrequency {
switch strValue {
case "hourly":
return 0
case "daily":
return 1
case "weekly":
return 2
default:
return -1
}
}
//VmssType: vmss_type enum type
type VmssType int
const(
VmssTypeSnapshot VmssType = iota //The snapshot is a disk snapshot
VmssTypeCheckpoint //The snapshot is a checkpoint
VmssTypeSnapshotWithQuiesce //The snapshot is a VSS
)
func (e VmssType) String() string {
switch e {
case 0:
return "snapshot"
case 1:
return "checkpoint"
case 2:
return "snapshot_with_quiesce"
default:
return ""
}
}
func ToVmssType(strValue string) VmssType {
switch strValue {
case "snapshot":
return 0
case "checkpoint":
return 1
case "snapshot_with_quiesce":
return 2
default:
return -1
}
}