forked from Azure/azure-sdk-for-go
/
enums.go
158 lines (148 loc) · 5.64 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
package dns
// 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.
// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const (
// Accepted ...
Accepted HTTPStatusCode = "Accepted"
// Ambiguous ...
Ambiguous HTTPStatusCode = "Ambiguous"
// BadGateway ...
BadGateway HTTPStatusCode = "BadGateway"
// BadRequest ...
BadRequest HTTPStatusCode = "BadRequest"
// Conflict ...
Conflict HTTPStatusCode = "Conflict"
// Continue ...
Continue HTTPStatusCode = "Continue"
// Created ...
Created HTTPStatusCode = "Created"
// ExpectationFailed ...
ExpectationFailed HTTPStatusCode = "ExpectationFailed"
// Forbidden ...
Forbidden HTTPStatusCode = "Forbidden"
// Found ...
Found HTTPStatusCode = "Found"
// GatewayTimeout ...
GatewayTimeout HTTPStatusCode = "GatewayTimeout"
// Gone ...
Gone HTTPStatusCode = "Gone"
// HTTPVersionNotSupported ...
HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
// InternalServerError ...
InternalServerError HTTPStatusCode = "InternalServerError"
// LengthRequired ...
LengthRequired HTTPStatusCode = "LengthRequired"
// MethodNotAllowed ...
MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
// Moved ...
Moved HTTPStatusCode = "Moved"
// MovedPermanently ...
MovedPermanently HTTPStatusCode = "MovedPermanently"
// MultipleChoices ...
MultipleChoices HTTPStatusCode = "MultipleChoices"
// NoContent ...
NoContent HTTPStatusCode = "NoContent"
// NonAuthoritativeInformation ...
NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
// NotAcceptable ...
NotAcceptable HTTPStatusCode = "NotAcceptable"
// NotFound ...
NotFound HTTPStatusCode = "NotFound"
// NotImplemented ...
NotImplemented HTTPStatusCode = "NotImplemented"
// NotModified ...
NotModified HTTPStatusCode = "NotModified"
// OK ...
OK HTTPStatusCode = "OK"
// PartialContent ...
PartialContent HTTPStatusCode = "PartialContent"
// PaymentRequired ...
PaymentRequired HTTPStatusCode = "PaymentRequired"
// PreconditionFailed ...
PreconditionFailed HTTPStatusCode = "PreconditionFailed"
// ProxyAuthenticationRequired ...
ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
// Redirect ...
Redirect HTTPStatusCode = "Redirect"
// RedirectKeepVerb ...
RedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb"
// RedirectMethod ...
RedirectMethod HTTPStatusCode = "RedirectMethod"
// RequestedRangeNotSatisfiable ...
RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
// RequestEntityTooLarge ...
RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
// RequestTimeout ...
RequestTimeout HTTPStatusCode = "RequestTimeout"
// RequestURITooLong ...
RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
// ResetContent ...
ResetContent HTTPStatusCode = "ResetContent"
// SeeOther ...
SeeOther HTTPStatusCode = "SeeOther"
// ServiceUnavailable ...
ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
// SwitchingProtocols ...
SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
// TemporaryRedirect ...
TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
// Unauthorized ...
Unauthorized HTTPStatusCode = "Unauthorized"
// UnsupportedMediaType ...
UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
// Unused ...
Unused HTTPStatusCode = "Unused"
// UpgradeRequired ...
UpgradeRequired HTTPStatusCode = "UpgradeRequired"
// UseProxy ...
UseProxy HTTPStatusCode = "UseProxy"
)
// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return []HTTPStatusCode{Accepted, Ambiguous, BadGateway, BadRequest, Conflict, Continue, Created, ExpectationFailed, Forbidden, Found, GatewayTimeout, Gone, HTTPVersionNotSupported, InternalServerError, LengthRequired, MethodNotAllowed, Moved, MovedPermanently, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, Redirect, RedirectKeepVerb, RedirectMethod, RequestedRangeNotSatisfiable, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, ResetContent, SeeOther, ServiceUnavailable, SwitchingProtocols, TemporaryRedirect, Unauthorized, UnsupportedMediaType, Unused, UpgradeRequired, UseProxy}
}
// OperationStatus enumerates the values for operation status.
type OperationStatus string
const (
// Failed ...
Failed OperationStatus = "Failed"
// InProgress ...
InProgress OperationStatus = "InProgress"
// Succeeded ...
Succeeded OperationStatus = "Succeeded"
)
// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
func PossibleOperationStatusValues() []OperationStatus {
return []OperationStatus{Failed, InProgress, Succeeded}
}
// RecordType enumerates the values for record type.
type RecordType string
const (
// A ...
A RecordType = "A"
// AAAA ...
AAAA RecordType = "AAAA"
// CNAME ...
CNAME RecordType = "CNAME"
// MX ...
MX RecordType = "MX"
// NS ...
NS RecordType = "NS"
// PTR ...
PTR RecordType = "PTR"
// SOA ...
SOA RecordType = "SOA"
// SRV ...
SRV RecordType = "SRV"
// TXT ...
TXT RecordType = "TXT"
)
// PossibleRecordTypeValues returns an array of possible values for the RecordType const type.
func PossibleRecordTypeValues() []RecordType {
return []RecordType{A, AAAA, CNAME, MX, NS, PTR, SOA, SRV, TXT}
}