-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
76 lines (59 loc) · 2.11 KB
/
api_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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package licensemanager
type InventoryFilterCondition string
// Enum values for InventoryFilterCondition
const (
InventoryFilterConditionEquals InventoryFilterCondition = "EQUALS"
InventoryFilterConditionNotEquals InventoryFilterCondition = "NOT_EQUALS"
InventoryFilterConditionBeginsWith InventoryFilterCondition = "BEGINS_WITH"
InventoryFilterConditionContains InventoryFilterCondition = "CONTAINS"
)
func (enum InventoryFilterCondition) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum InventoryFilterCondition) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type LicenseConfigurationStatus string
// Enum values for LicenseConfigurationStatus
const (
LicenseConfigurationStatusAvailable LicenseConfigurationStatus = "AVAILABLE"
LicenseConfigurationStatusDisabled LicenseConfigurationStatus = "DISABLED"
)
func (enum LicenseConfigurationStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum LicenseConfigurationStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type LicenseCountingType string
// Enum values for LicenseCountingType
const (
LicenseCountingTypeVCpu LicenseCountingType = "vCPU"
LicenseCountingTypeInstance LicenseCountingType = "Instance"
LicenseCountingTypeCore LicenseCountingType = "Core"
LicenseCountingTypeSocket LicenseCountingType = "Socket"
)
func (enum LicenseCountingType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum LicenseCountingType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ResourceType string
// Enum values for ResourceType
const (
ResourceTypeEc2Instance ResourceType = "EC2_INSTANCE"
ResourceTypeEc2Host ResourceType = "EC2_HOST"
ResourceTypeEc2Ami ResourceType = "EC2_AMI"
)
func (enum ResourceType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ResourceType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}