-
Notifications
You must be signed in to change notification settings - Fork 844
/
enums.go
303 lines (257 loc) · 9.78 KB
/
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
package face
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AccessoryType enumerates the values for accessory type.
type AccessoryType string
const (
// Glasses ...
Glasses AccessoryType = "glasses"
// HeadWear ...
HeadWear AccessoryType = "headWear"
// Mask ...
Mask AccessoryType = "mask"
)
// PossibleAccessoryTypeValues returns an array of possible values for the AccessoryType const type.
func PossibleAccessoryTypeValues() []AccessoryType {
return []AccessoryType{Glasses, HeadWear, Mask}
}
// AttributeType enumerates the values for attribute type.
type AttributeType string
const (
// AttributeTypeAccessories ...
AttributeTypeAccessories AttributeType = "accessories"
// AttributeTypeAge ...
AttributeTypeAge AttributeType = "age"
// AttributeTypeBlur ...
AttributeTypeBlur AttributeType = "blur"
// AttributeTypeEmotion ...
AttributeTypeEmotion AttributeType = "emotion"
// AttributeTypeExposure ...
AttributeTypeExposure AttributeType = "exposure"
// AttributeTypeFacialHair ...
AttributeTypeFacialHair AttributeType = "facialHair"
// AttributeTypeGender ...
AttributeTypeGender AttributeType = "gender"
// AttributeTypeGlasses ...
AttributeTypeGlasses AttributeType = "glasses"
// AttributeTypeHair ...
AttributeTypeHair AttributeType = "hair"
// AttributeTypeHeadPose ...
AttributeTypeHeadPose AttributeType = "headPose"
// AttributeTypeMakeup ...
AttributeTypeMakeup AttributeType = "makeup"
// AttributeTypeNoise ...
AttributeTypeNoise AttributeType = "noise"
// AttributeTypeOcclusion ...
AttributeTypeOcclusion AttributeType = "occlusion"
// AttributeTypeSmile ...
AttributeTypeSmile AttributeType = "smile"
)
// PossibleAttributeTypeValues returns an array of possible values for the AttributeType const type.
func PossibleAttributeTypeValues() []AttributeType {
return []AttributeType{AttributeTypeAccessories, AttributeTypeAge, AttributeTypeBlur, AttributeTypeEmotion, AttributeTypeExposure, AttributeTypeFacialHair, AttributeTypeGender, AttributeTypeGlasses, AttributeTypeHair, AttributeTypeHeadPose, AttributeTypeMakeup, AttributeTypeNoise, AttributeTypeOcclusion, AttributeTypeSmile}
}
// BlurLevel enumerates the values for blur level.
type BlurLevel string
const (
// High ...
High BlurLevel = "High"
// Low ...
Low BlurLevel = "Low"
// Medium ...
Medium BlurLevel = "Medium"
)
// PossibleBlurLevelValues returns an array of possible values for the BlurLevel const type.
func PossibleBlurLevelValues() []BlurLevel {
return []BlurLevel{High, Low, Medium}
}
// DetectionModel enumerates the values for detection model.
type DetectionModel string
const (
// Detection01 ...
Detection01 DetectionModel = "detection_01"
// Detection02 ...
Detection02 DetectionModel = "detection_02"
)
// PossibleDetectionModelValues returns an array of possible values for the DetectionModel const type.
func PossibleDetectionModelValues() []DetectionModel {
return []DetectionModel{Detection01, Detection02}
}
// ExposureLevel enumerates the values for exposure level.
type ExposureLevel string
const (
// GoodExposure ...
GoodExposure ExposureLevel = "GoodExposure"
// OverExposure ...
OverExposure ExposureLevel = "OverExposure"
// UnderExposure ...
UnderExposure ExposureLevel = "UnderExposure"
)
// PossibleExposureLevelValues returns an array of possible values for the ExposureLevel const type.
func PossibleExposureLevelValues() []ExposureLevel {
return []ExposureLevel{GoodExposure, OverExposure, UnderExposure}
}
// FindSimilarMatchMode enumerates the values for find similar match mode.
type FindSimilarMatchMode string
const (
// MatchFace ...
MatchFace FindSimilarMatchMode = "matchFace"
// MatchPerson ...
MatchPerson FindSimilarMatchMode = "matchPerson"
)
// PossibleFindSimilarMatchModeValues returns an array of possible values for the FindSimilarMatchMode const type.
func PossibleFindSimilarMatchModeValues() []FindSimilarMatchMode {
return []FindSimilarMatchMode{MatchFace, MatchPerson}
}
// Gender enumerates the values for gender.
type Gender string
const (
// Female ...
Female Gender = "female"
// Male ...
Male Gender = "male"
)
// PossibleGenderValues returns an array of possible values for the Gender const type.
func PossibleGenderValues() []Gender {
return []Gender{Female, Male}
}
// GlassesType enumerates the values for glasses type.
type GlassesType string
const (
// NoGlasses ...
NoGlasses GlassesType = "noGlasses"
// ReadingGlasses ...
ReadingGlasses GlassesType = "readingGlasses"
// Sunglasses ...
Sunglasses GlassesType = "sunglasses"
// SwimmingGoggles ...
SwimmingGoggles GlassesType = "swimmingGoggles"
)
// PossibleGlassesTypeValues returns an array of possible values for the GlassesType const type.
func PossibleGlassesTypeValues() []GlassesType {
return []GlassesType{NoGlasses, ReadingGlasses, Sunglasses, SwimmingGoggles}
}
// HairColorType enumerates the values for hair color type.
type HairColorType string
const (
// Black ...
Black HairColorType = "black"
// Blond ...
Blond HairColorType = "blond"
// Brown ...
Brown HairColorType = "brown"
// Gray ...
Gray HairColorType = "gray"
// Other ...
Other HairColorType = "other"
// Red ...
Red HairColorType = "red"
// Unknown ...
Unknown HairColorType = "unknown"
// White ...
White HairColorType = "white"
)
// PossibleHairColorTypeValues returns an array of possible values for the HairColorType const type.
func PossibleHairColorTypeValues() []HairColorType {
return []HairColorType{Black, Blond, Brown, Gray, Other, Red, Unknown, White}
}
// NoiseLevel enumerates the values for noise level.
type NoiseLevel string
const (
// NoiseLevelHigh ...
NoiseLevelHigh NoiseLevel = "High"
// NoiseLevelLow ...
NoiseLevelLow NoiseLevel = "Low"
// NoiseLevelMedium ...
NoiseLevelMedium NoiseLevel = "Medium"
)
// PossibleNoiseLevelValues returns an array of possible values for the NoiseLevel const type.
func PossibleNoiseLevelValues() []NoiseLevel {
return []NoiseLevel{NoiseLevelHigh, NoiseLevelLow, NoiseLevelMedium}
}
// OperationStatusType enumerates the values for operation status type.
type OperationStatusType string
const (
// Failed ...
Failed OperationStatusType = "failed"
// Notstarted ...
Notstarted OperationStatusType = "notstarted"
// Running ...
Running OperationStatusType = "running"
// Succeeded ...
Succeeded OperationStatusType = "succeeded"
)
// PossibleOperationStatusTypeValues returns an array of possible values for the OperationStatusType const type.
func PossibleOperationStatusTypeValues() []OperationStatusType {
return []OperationStatusType{Failed, Notstarted, Running, Succeeded}
}
// RecognitionModel enumerates the values for recognition model.
type RecognitionModel string
const (
// Recognition01 ...
Recognition01 RecognitionModel = "recognition_01"
// Recognition02 ...
Recognition02 RecognitionModel = "recognition_02"
// Recognition03 ...
Recognition03 RecognitionModel = "recognition_03"
)
// PossibleRecognitionModelValues returns an array of possible values for the RecognitionModel const type.
func PossibleRecognitionModelValues() []RecognitionModel {
return []RecognitionModel{Recognition01, Recognition02, Recognition03}
}
// SnapshotApplyMode enumerates the values for snapshot apply mode.
type SnapshotApplyMode string
const (
// CreateNew ...
CreateNew SnapshotApplyMode = "CreateNew"
)
// PossibleSnapshotApplyModeValues returns an array of possible values for the SnapshotApplyMode const type.
func PossibleSnapshotApplyModeValues() []SnapshotApplyMode {
return []SnapshotApplyMode{CreateNew}
}
// SnapshotObjectType enumerates the values for snapshot object type.
type SnapshotObjectType string
const (
// SnapshotObjectTypeFaceList ...
SnapshotObjectTypeFaceList SnapshotObjectType = "FaceList"
// SnapshotObjectTypeLargeFaceList ...
SnapshotObjectTypeLargeFaceList SnapshotObjectType = "LargeFaceList"
// SnapshotObjectTypeLargePersonGroup ...
SnapshotObjectTypeLargePersonGroup SnapshotObjectType = "LargePersonGroup"
// SnapshotObjectTypePersonGroup ...
SnapshotObjectTypePersonGroup SnapshotObjectType = "PersonGroup"
)
// PossibleSnapshotObjectTypeValues returns an array of possible values for the SnapshotObjectType const type.
func PossibleSnapshotObjectTypeValues() []SnapshotObjectType {
return []SnapshotObjectType{SnapshotObjectTypeFaceList, SnapshotObjectTypeLargeFaceList, SnapshotObjectTypeLargePersonGroup, SnapshotObjectTypePersonGroup}
}
// TrainingStatusType enumerates the values for training status type.
type TrainingStatusType string
const (
// TrainingStatusTypeFailed ...
TrainingStatusTypeFailed TrainingStatusType = "failed"
// TrainingStatusTypeNonstarted ...
TrainingStatusTypeNonstarted TrainingStatusType = "nonstarted"
// TrainingStatusTypeRunning ...
TrainingStatusTypeRunning TrainingStatusType = "running"
// TrainingStatusTypeSucceeded ...
TrainingStatusTypeSucceeded TrainingStatusType = "succeeded"
)
// PossibleTrainingStatusTypeValues returns an array of possible values for the TrainingStatusType const type.
func PossibleTrainingStatusTypeValues() []TrainingStatusType {
return []TrainingStatusType{TrainingStatusTypeFailed, TrainingStatusTypeNonstarted, TrainingStatusTypeRunning, TrainingStatusTypeSucceeded}
}