forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.go
147 lines (125 loc) · 4.51 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
package training
// 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.
// Classifier enumerates the values for classifier.
type Classifier string
const (
// Multiclass ...
Multiclass Classifier = "Multiclass"
// Multilabel ...
Multilabel Classifier = "Multilabel"
)
// PossibleClassifierValues returns an array of possible values for the Classifier const type.
func PossibleClassifierValues() []Classifier {
return []Classifier{Multiclass, Multilabel}
}
// DomainType enumerates the values for domain type.
type DomainType string
const (
// Classification ...
Classification DomainType = "Classification"
// ObjectDetection ...
ObjectDetection DomainType = "ObjectDetection"
)
// PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
func PossibleDomainTypeValues() []DomainType {
return []DomainType{Classification, ObjectDetection}
}
// ExportFlavor enumerates the values for export flavor.
type ExportFlavor string
const (
// Linux ...
Linux ExportFlavor = "Linux"
// Windows ...
Windows ExportFlavor = "Windows"
)
// PossibleExportFlavorValues returns an array of possible values for the ExportFlavor const type.
func PossibleExportFlavorValues() []ExportFlavor {
return []ExportFlavor{Linux, Windows}
}
// ExportPlatform enumerates the values for export platform.
type ExportPlatform string
const (
// CoreML ...
CoreML ExportPlatform = "CoreML"
// DockerFile ...
DockerFile ExportPlatform = "DockerFile"
// ONNX ...
ONNX ExportPlatform = "ONNX"
// TensorFlow ...
TensorFlow ExportPlatform = "TensorFlow"
)
// PossibleExportPlatformValues returns an array of possible values for the ExportPlatform const type.
func PossibleExportPlatformValues() []ExportPlatform {
return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow}
}
// ExportStatusModel enumerates the values for export status model.
type ExportStatusModel string
const (
// Done ...
Done ExportStatusModel = "Done"
// Exporting ...
Exporting ExportStatusModel = "Exporting"
// Failed ...
Failed ExportStatusModel = "Failed"
)
// PossibleExportStatusModelValues returns an array of possible values for the ExportStatusModel const type.
func PossibleExportStatusModelValues() []ExportStatusModel {
return []ExportStatusModel{Done, Exporting, Failed}
}
// ImageUploadStatus enumerates the values for image upload status.
type ImageUploadStatus string
const (
// ErrorImageFormat ...
ErrorImageFormat ImageUploadStatus = "ErrorImageFormat"
// ErrorImageSize ...
ErrorImageSize ImageUploadStatus = "ErrorImageSize"
// ErrorLimitExceed ...
ErrorLimitExceed ImageUploadStatus = "ErrorLimitExceed"
// ErrorRegionLimitExceed ...
ErrorRegionLimitExceed ImageUploadStatus = "ErrorRegionLimitExceed"
// ErrorSource ...
ErrorSource ImageUploadStatus = "ErrorSource"
// ErrorStorage ...
ErrorStorage ImageUploadStatus = "ErrorStorage"
// ErrorTagLimitExceed ...
ErrorTagLimitExceed ImageUploadStatus = "ErrorTagLimitExceed"
// ErrorUnknown ...
ErrorUnknown ImageUploadStatus = "ErrorUnknown"
// OK ...
OK ImageUploadStatus = "OK"
// OKDuplicate ...
OKDuplicate ImageUploadStatus = "OKDuplicate"
)
// PossibleImageUploadStatusValues returns an array of possible values for the ImageUploadStatus const type.
func PossibleImageUploadStatusValues() []ImageUploadStatus {
return []ImageUploadStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
}
// OrderBy enumerates the values for order by.
type OrderBy string
const (
// Newest ...
Newest OrderBy = "Newest"
// Oldest ...
Oldest OrderBy = "Oldest"
// Suggested ...
Suggested OrderBy = "Suggested"
)
// PossibleOrderByValues returns an array of possible values for the OrderBy const type.
func PossibleOrderByValues() []OrderBy {
return []OrderBy{Newest, Oldest, Suggested}
}