forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
enums.go
225 lines (206 loc) · 10.6 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
package reservations
// 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.
// AppliedScopeType enumerates the values for applied scope type.
type AppliedScopeType string
const (
// Shared ...
Shared AppliedScopeType = "Shared"
// Single ...
Single AppliedScopeType = "Single"
)
// PossibleAppliedScopeTypeValues returns an array of possible values for the AppliedScopeType const type.
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
return []AppliedScopeType{Shared, Single}
}
// ErrorResponseCode enumerates the values for error response code.
type ErrorResponseCode string
const (
// ActivateQuoteFailed ...
ActivateQuoteFailed ErrorResponseCode = "ActivateQuoteFailed"
// AppliedScopesNotAssociatedWithCommerceAccount ...
AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = "AppliedScopesNotAssociatedWithCommerceAccount"
// AuthorizationFailed ...
AuthorizationFailed ErrorResponseCode = "AuthorizationFailed"
// BadRequest ...
BadRequest ErrorResponseCode = "BadRequest"
// BillingCustomerInputError ...
BillingCustomerInputError ErrorResponseCode = "BillingCustomerInputError"
// BillingError ...
BillingError ErrorResponseCode = "BillingError"
// BillingPaymentInstrumentHardError ...
BillingPaymentInstrumentHardError ErrorResponseCode = "BillingPaymentInstrumentHardError"
// BillingPaymentInstrumentSoftError ...
BillingPaymentInstrumentSoftError ErrorResponseCode = "BillingPaymentInstrumentSoftError"
// BillingScopeIDCannotBeChanged ...
BillingScopeIDCannotBeChanged ErrorResponseCode = "BillingScopeIdCannotBeChanged"
// BillingTransientError ...
BillingTransientError ErrorResponseCode = "BillingTransientError"
// CalculatePriceFailed ...
CalculatePriceFailed ErrorResponseCode = "CalculatePriceFailed"
// CapacityUpdateScopesFailed ...
CapacityUpdateScopesFailed ErrorResponseCode = "CapacityUpdateScopesFailed"
// ClientCertificateThumbprintNotSet ...
ClientCertificateThumbprintNotSet ErrorResponseCode = "ClientCertificateThumbprintNotSet"
// CreateQuoteFailed ...
CreateQuoteFailed ErrorResponseCode = "CreateQuoteFailed"
// Forbidden ...
Forbidden ErrorResponseCode = "Forbidden"
// FulfillmentConfigurationError ...
FulfillmentConfigurationError ErrorResponseCode = "FulfillmentConfigurationError"
// FulfillmentError ...
FulfillmentError ErrorResponseCode = "FulfillmentError"
// FulfillmentOutOfStockError ...
FulfillmentOutOfStockError ErrorResponseCode = "FulfillmentOutOfStockError"
// FulfillmentTransientError ...
FulfillmentTransientError ErrorResponseCode = "FulfillmentTransientError"
// HTTPMethodNotSupported ...
HTTPMethodNotSupported ErrorResponseCode = "HttpMethodNotSupported"
// InternalServerError ...
InternalServerError ErrorResponseCode = "InternalServerError"
// InvalidAccessToken ...
InvalidAccessToken ErrorResponseCode = "InvalidAccessToken"
// InvalidFulfillmentRequestParameters ...
InvalidFulfillmentRequestParameters ErrorResponseCode = "InvalidFulfillmentRequestParameters"
// InvalidHealthCheckType ...
InvalidHealthCheckType ErrorResponseCode = "InvalidHealthCheckType"
// InvalidLocationID ...
InvalidLocationID ErrorResponseCode = "InvalidLocationId"
// InvalidRefundQuantity ...
InvalidRefundQuantity ErrorResponseCode = "InvalidRefundQuantity"
// InvalidRequestContent ...
InvalidRequestContent ErrorResponseCode = "InvalidRequestContent"
// InvalidRequestURI ...
InvalidRequestURI ErrorResponseCode = "InvalidRequestUri"
// InvalidReservationID ...
InvalidReservationID ErrorResponseCode = "InvalidReservationId"
// InvalidReservationOrderID ...
InvalidReservationOrderID ErrorResponseCode = "InvalidReservationOrderId"
// InvalidSingleAppliedScopesCount ...
InvalidSingleAppliedScopesCount ErrorResponseCode = "InvalidSingleAppliedScopesCount"
// InvalidSubscriptionID ...
InvalidSubscriptionID ErrorResponseCode = "InvalidSubscriptionId"
// InvalidTenantID ...
InvalidTenantID ErrorResponseCode = "InvalidTenantId"
// MissingAppliedScopesForSingle ...
MissingAppliedScopesForSingle ErrorResponseCode = "MissingAppliedScopesForSingle"
// MissingTenantID ...
MissingTenantID ErrorResponseCode = "MissingTenantId"
// NonsupportedAccountID ...
NonsupportedAccountID ErrorResponseCode = "NonsupportedAccountId"
// NotSpecified ...
NotSpecified ErrorResponseCode = "NotSpecified"
// NotSupportedCountry ...
NotSupportedCountry ErrorResponseCode = "NotSupportedCountry"
// NoValidReservationsToReRate ...
NoValidReservationsToReRate ErrorResponseCode = "NoValidReservationsToReRate"
// OperationCannotBePerformedInCurrentState ...
OperationCannotBePerformedInCurrentState ErrorResponseCode = "OperationCannotBePerformedInCurrentState"
// OperationFailed ...
OperationFailed ErrorResponseCode = "OperationFailed"
// PatchValuesSameAsExisting ...
PatchValuesSameAsExisting ErrorResponseCode = "PatchValuesSameAsExisting"
// PaymentInstrumentNotFound ...
PaymentInstrumentNotFound ErrorResponseCode = "PaymentInstrumentNotFound"
// PurchaseError ...
PurchaseError ErrorResponseCode = "PurchaseError"
// ReRateOnlyAllowedForEA ...
ReRateOnlyAllowedForEA ErrorResponseCode = "ReRateOnlyAllowedForEA"
// ReservationIDNotInReservationOrder ...
ReservationIDNotInReservationOrder ErrorResponseCode = "ReservationIdNotInReservationOrder"
// ReservationOrderCreationFailed ...
ReservationOrderCreationFailed ErrorResponseCode = "ReservationOrderCreationFailed"
// ReservationOrderIDAlreadyExists ...
ReservationOrderIDAlreadyExists ErrorResponseCode = "ReservationOrderIdAlreadyExists"
// ReservationOrderNotEnabled ...
ReservationOrderNotEnabled ErrorResponseCode = "ReservationOrderNotEnabled"
// ReservationOrderNotFound ...
ReservationOrderNotFound ErrorResponseCode = "ReservationOrderNotFound"
// RiskCheckFailed ...
RiskCheckFailed ErrorResponseCode = "RiskCheckFailed"
// RoleAssignmentCreationFailed ...
RoleAssignmentCreationFailed ErrorResponseCode = "RoleAssignmentCreationFailed"
// ServerTimeout ...
ServerTimeout ErrorResponseCode = "ServerTimeout"
// UnauthenticatedRequestsThrottled ...
UnauthenticatedRequestsThrottled ErrorResponseCode = "UnauthenticatedRequestsThrottled"
// UnsupportedReservationTerm ...
UnsupportedReservationTerm ErrorResponseCode = "UnsupportedReservationTerm"
)
// PossibleErrorResponseCodeValues returns an array of possible values for the ErrorResponseCode const type.
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
return []ErrorResponseCode{ActivateQuoteFailed, AppliedScopesNotAssociatedWithCommerceAccount, AuthorizationFailed, BadRequest, BillingCustomerInputError, BillingError, BillingPaymentInstrumentHardError, BillingPaymentInstrumentSoftError, BillingScopeIDCannotBeChanged, BillingTransientError, CalculatePriceFailed, CapacityUpdateScopesFailed, ClientCertificateThumbprintNotSet, CreateQuoteFailed, Forbidden, FulfillmentConfigurationError, FulfillmentError, FulfillmentOutOfStockError, FulfillmentTransientError, HTTPMethodNotSupported, InternalServerError, InvalidAccessToken, InvalidFulfillmentRequestParameters, InvalidHealthCheckType, InvalidLocationID, InvalidRefundQuantity, InvalidRequestContent, InvalidRequestURI, InvalidReservationID, InvalidReservationOrderID, InvalidSingleAppliedScopesCount, InvalidSubscriptionID, InvalidTenantID, MissingAppliedScopesForSingle, MissingTenantID, NonsupportedAccountID, NotSpecified, NotSupportedCountry, NoValidReservationsToReRate, OperationCannotBePerformedInCurrentState, OperationFailed, PatchValuesSameAsExisting, PaymentInstrumentNotFound, PurchaseError, ReRateOnlyAllowedForEA, ReservationIDNotInReservationOrder, ReservationOrderCreationFailed, ReservationOrderIDAlreadyExists, ReservationOrderNotEnabled, ReservationOrderNotFound, RiskCheckFailed, RoleAssignmentCreationFailed, ServerTimeout, UnauthenticatedRequestsThrottled, UnsupportedReservationTerm}
}
// InstanceFlexibility enumerates the values for instance flexibility.
type InstanceFlexibility string
const (
// NotSupported ...
NotSupported InstanceFlexibility = "NotSupported"
// Off ...
Off InstanceFlexibility = "Off"
// On ...
On InstanceFlexibility = "On"
)
// PossibleInstanceFlexibilityValues returns an array of possible values for the InstanceFlexibility const type.
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
return []InstanceFlexibility{NotSupported, Off, On}
}
// ReservationTerm enumerates the values for reservation term.
type ReservationTerm string
const (
// P1Y ...
P1Y ReservationTerm = "P1Y"
// P3Y ...
P3Y ReservationTerm = "P3Y"
)
// PossibleReservationTermValues returns an array of possible values for the ReservationTerm const type.
func PossibleReservationTermValues() []ReservationTerm {
return []ReservationTerm{P1Y, P3Y}
}
// ReservedResourceType enumerates the values for reserved resource type.
type ReservedResourceType string
const (
// CosmosDb ...
CosmosDb ReservedResourceType = "CosmosDb"
// RedHat ...
RedHat ReservedResourceType = "RedHat"
// SQLDatabases ...
SQLDatabases ReservedResourceType = "SqlDatabases"
// SuseLinux ...
SuseLinux ReservedResourceType = "SuseLinux"
// VirtualMachines ...
VirtualMachines ReservedResourceType = "VirtualMachines"
)
// PossibleReservedResourceTypeValues returns an array of possible values for the ReservedResourceType const type.
func PossibleReservedResourceTypeValues() []ReservedResourceType {
return []ReservedResourceType{CosmosDb, RedHat, SQLDatabases, SuseLinux, VirtualMachines}
}
// StatusCode enumerates the values for status code.
type StatusCode string
const (
// StatusCodeActive ...
StatusCodeActive StatusCode = "Active"
// StatusCodeExpired ...
StatusCodeExpired StatusCode = "Expired"
// StatusCodeMerged ...
StatusCodeMerged StatusCode = "Merged"
// StatusCodeNone ...
StatusCodeNone StatusCode = "None"
// StatusCodePaymentInstrumentError ...
StatusCodePaymentInstrumentError StatusCode = "PaymentInstrumentError"
// StatusCodePending ...
StatusCodePending StatusCode = "Pending"
// StatusCodePurchaseError ...
StatusCodePurchaseError StatusCode = "PurchaseError"
// StatusCodeSplit ...
StatusCodeSplit StatusCode = "Split"
// StatusCodeSucceeded ...
StatusCodeSucceeded StatusCode = "Succeeded"
)
// PossibleStatusCodeValues returns an array of possible values for the StatusCode const type.
func PossibleStatusCodeValues() []StatusCode {
return []StatusCode{StatusCodeActive, StatusCodeExpired, StatusCodeMerged, StatusCodeNone, StatusCodePaymentInstrumentError, StatusCodePending, StatusCodePurchaseError, StatusCodeSplit, StatusCodeSucceeded}
}