forked from Azure/azure-sdk-for-go
/
enums.go
73 lines (66 loc) · 3.56 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
package personalizer
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// ErrorCode enumerates the values for error code.
type ErrorCode string
const (
// BadRequest Request could not be understood by the server.
BadRequest ErrorCode = "BadRequest"
// EvaluationNotFound Evaluation not found.
EvaluationNotFound ErrorCode = "EvaluationNotFound"
// FrontEndNotFound Front end not found.
FrontEndNotFound ErrorCode = "FrontEndNotFound"
// InternalServerError A generic error has occurred on the server.
InternalServerError ErrorCode = "InternalServerError"
// InvalidContainer SAS Uri must be the Uri to a container that has write permissions.
InvalidContainer ErrorCode = "InvalidContainer"
// InvalidEvaluationContract Invalid evaluation contract.
InvalidEvaluationContract ErrorCode = "InvalidEvaluationContract"
// InvalidEventIDToActivate Invalid activate event request.
InvalidEventIDToActivate ErrorCode = "InvalidEventIdToActivate"
// InvalidExportLogsRequest Invalid export logs request.
InvalidExportLogsRequest ErrorCode = "InvalidExportLogsRequest"
// InvalidPolicyConfiguration Invalid policy configuration.
InvalidPolicyConfiguration ErrorCode = "InvalidPolicyConfiguration"
// InvalidPolicyContract Invalid policy contract.
InvalidPolicyContract ErrorCode = "InvalidPolicyContract"
// InvalidRankRequest Invalid rank request.
InvalidRankRequest ErrorCode = "InvalidRankRequest"
// InvalidRewardRequest Invalid reward request.
InvalidRewardRequest ErrorCode = "InvalidRewardRequest"
// InvalidServiceConfiguration Invalid service configuration.
InvalidServiceConfiguration ErrorCode = "InvalidServiceConfiguration"
// LogsPropertiesNotFound Logs properties not found.
LogsPropertiesNotFound ErrorCode = "LogsPropertiesNotFound"
// ModelResetFailed Model reset failed.
ModelResetFailed ErrorCode = "ModelResetFailed"
// RankNullResponse Rank call returned null response.
RankNullResponse ErrorCode = "RankNullResponse"
// ResourceNotFound Requested resource does not exist on the server.
ResourceNotFound ErrorCode = "ResourceNotFound"
// UpdateConfigurationFailed Failed to update configuration.
UpdateConfigurationFailed ErrorCode = "UpdateConfigurationFailed"
)
// PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
func PossibleErrorCodeValues() []ErrorCode {
return []ErrorCode{BadRequest, EvaluationNotFound, FrontEndNotFound, InternalServerError, InvalidContainer, InvalidEvaluationContract, InvalidEventIDToActivate, InvalidExportLogsRequest, InvalidPolicyConfiguration, InvalidPolicyContract, InvalidRankRequest, InvalidRewardRequest, InvalidServiceConfiguration, LogsPropertiesNotFound, ModelResetFailed, RankNullResponse, ResourceNotFound, UpdateConfigurationFailed}
}
// EvaluationJobStatus enumerates the values for evaluation job status.
type EvaluationJobStatus string
const (
// Completed ...
Completed EvaluationJobStatus = "completed"
// Failed ...
Failed EvaluationJobStatus = "failed"
// NotSubmitted ...
NotSubmitted EvaluationJobStatus = "notSubmitted"
// Pending ...
Pending EvaluationJobStatus = "pending"
)
// PossibleEvaluationJobStatusValues returns an array of possible values for the EvaluationJobStatus const type.
func PossibleEvaluationJobStatusValues() []EvaluationJobStatus {
return []EvaluationJobStatus{Completed, Failed, NotSubmitted, Pending}
}