...
1 package qnamaker
2
3
4
5
6
7
8
9
10 type EnvironmentType string
11
12 const (
13
14 Prod EnvironmentType = "Prod"
15
16 Test EnvironmentType = "Test"
17 )
18
19
20 func PossibleEnvironmentTypeValues() []EnvironmentType {
21 return []EnvironmentType{Prod, Test}
22 }
23
24
25 type ErrorCodeType string
26
27 const (
28
29 BadArgument ErrorCodeType = "BadArgument"
30
31 EndpointKeysError ErrorCodeType = "EndpointKeysError"
32
33 ExtractionFailure ErrorCodeType = "ExtractionFailure"
34
35 Forbidden ErrorCodeType = "Forbidden"
36
37 KbNotFound ErrorCodeType = "KbNotFound"
38
39 NotFound ErrorCodeType = "NotFound"
40
41 OperationNotFound ErrorCodeType = "OperationNotFound"
42
43 QnaRuntimeError ErrorCodeType = "QnaRuntimeError"
44
45 QuotaExceeded ErrorCodeType = "QuotaExceeded"
46
47 ServiceError ErrorCodeType = "ServiceError"
48
49 SKULimitExceeded ErrorCodeType = "SKULimitExceeded"
50
51 Unauthorized ErrorCodeType = "Unauthorized"
52
53 Unspecified ErrorCodeType = "Unspecified"
54
55 ValidationFailure ErrorCodeType = "ValidationFailure"
56 )
57
58
59 func PossibleErrorCodeTypeValues() []ErrorCodeType {
60 return []ErrorCodeType{BadArgument, EndpointKeysError, ExtractionFailure, Forbidden, KbNotFound, NotFound, OperationNotFound, QnaRuntimeError, QuotaExceeded, ServiceError, SKULimitExceeded, Unauthorized, Unspecified, ValidationFailure}
61 }
62
63
64 type OperationStateType string
65
66 const (
67
68 Failed OperationStateType = "Failed"
69
70 NotStarted OperationStateType = "NotStarted"
71
72 Running OperationStateType = "Running"
73
74 Succeeded OperationStateType = "Succeeded"
75 )
76
77
78 func PossibleOperationStateTypeValues() []OperationStateType {
79 return []OperationStateType{Failed, NotStarted, Running, Succeeded}
80 }
81
82
83 type StrictFiltersCompoundOperationType string
84
85 const (
86
87 AND StrictFiltersCompoundOperationType = "AND"
88
89 OR StrictFiltersCompoundOperationType = "OR"
90 )
91
92
93 func PossibleStrictFiltersCompoundOperationTypeValues() []StrictFiltersCompoundOperationType {
94 return []StrictFiltersCompoundOperationType{AND, OR}
95 }
96
View as plain text