/
api_enums.go
56 lines (43 loc) · 1.36 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package resourcegroupstaggingapi
type ErrorCode string
// Enum values for ErrorCode
const (
ErrorCodeInternalServiceException ErrorCode = "InternalServiceException"
ErrorCodeInvalidParameterException ErrorCode = "InvalidParameterException"
)
func (enum ErrorCode) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ErrorCode) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type GroupByAttribute string
// Enum values for GroupByAttribute
const (
GroupByAttributeTargetId GroupByAttribute = "TARGET_ID"
GroupByAttributeRegion GroupByAttribute = "REGION"
GroupByAttributeResourceType GroupByAttribute = "RESOURCE_TYPE"
)
func (enum GroupByAttribute) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum GroupByAttribute) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type TargetIdType string
// Enum values for TargetIdType
const (
TargetIdTypeAccount TargetIdType = "ACCOUNT"
TargetIdTypeOu TargetIdType = "OU"
TargetIdTypeRoot TargetIdType = "ROOT"
)
func (enum TargetIdType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum TargetIdType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}