-
Notifications
You must be signed in to change notification settings - Fork 822
/
models.go
315 lines (289 loc) · 14.6 KB
/
models.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
// +build go1.9
// Copyright 2019 Microsoft Corporation
//
// 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.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package reservations
import (
"context"
original "github.com/Azure/azure-sdk-for-go/services/reservations/mgmt/2017-11-01/reservations"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
type AppliedScopeType = original.AppliedScopeType
const (
Shared AppliedScopeType = original.Shared
Single AppliedScopeType = original.Single
)
type AppliedScopeType1 = original.AppliedScopeType1
const (
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single
)
type Code = original.Code
const (
ActivateQuoteFailed Code = original.ActivateQuoteFailed
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount
AppliedScopesSameAsExisting Code = original.AppliedScopesSameAsExisting
AuthorizationFailed Code = original.AuthorizationFailed
BadRequest Code = original.BadRequest
BillingCustomerInputError Code = original.BillingCustomerInputError
BillingError Code = original.BillingError
BillingPaymentInstrumentHardError Code = original.BillingPaymentInstrumentHardError
BillingPaymentInstrumentSoftError Code = original.BillingPaymentInstrumentSoftError
BillingScopeIDCannotBeChanged Code = original.BillingScopeIDCannotBeChanged
BillingTransientError Code = original.BillingTransientError
CalculatePriceFailed Code = original.CalculatePriceFailed
CapacityUpdateScopesFailed Code = original.CapacityUpdateScopesFailed
ClientCertificateThumbprintNotSet Code = original.ClientCertificateThumbprintNotSet
CreateQuoteFailed Code = original.CreateQuoteFailed
Forbidden Code = original.Forbidden
FulfillmentConfigurationError Code = original.FulfillmentConfigurationError
FulfillmentError Code = original.FulfillmentError
FulfillmentOutOfStockError Code = original.FulfillmentOutOfStockError
FulfillmentTransientError Code = original.FulfillmentTransientError
HTTPMethodNotSupported Code = original.HTTPMethodNotSupported
InternalServerError Code = original.InternalServerError
InvalidAccessToken Code = original.InvalidAccessToken
InvalidFulfillmentRequestParameters Code = original.InvalidFulfillmentRequestParameters
InvalidHealthCheckType Code = original.InvalidHealthCheckType
InvalidLocationID Code = original.InvalidLocationID
InvalidRefundQuantity Code = original.InvalidRefundQuantity
InvalidRequestContent Code = original.InvalidRequestContent
InvalidRequestURI Code = original.InvalidRequestURI
InvalidReservationID Code = original.InvalidReservationID
InvalidReservationOrderID Code = original.InvalidReservationOrderID
InvalidSingleAppliedScopesCount Code = original.InvalidSingleAppliedScopesCount
InvalidSubscriptionID Code = original.InvalidSubscriptionID
InvalidTenantID Code = original.InvalidTenantID
MissingAppliedScopesForSingle Code = original.MissingAppliedScopesForSingle
MissingTenantID Code = original.MissingTenantID
NonsupportedAccountID Code = original.NonsupportedAccountID
NotSpecified Code = original.NotSpecified
NotSupportedCountry Code = original.NotSupportedCountry
NoValidReservationsToReRate Code = original.NoValidReservationsToReRate
OperationCannotBePerformedInCurrentState Code = original.OperationCannotBePerformedInCurrentState
OperationFailed Code = original.OperationFailed
PaymentInstrumentNotFound Code = original.PaymentInstrumentNotFound
PurchaseError Code = original.PurchaseError
ReRateOnlyAllowedForEA Code = original.ReRateOnlyAllowedForEA
ReservationIDNotInReservationOrder Code = original.ReservationIDNotInReservationOrder
ReservationOrderCreationFailed Code = original.ReservationOrderCreationFailed
ReservationOrderIDAlreadyExists Code = original.ReservationOrderIDAlreadyExists
ReservationOrderNotEnabled Code = original.ReservationOrderNotEnabled
ReservationOrderNotFound Code = original.ReservationOrderNotFound
RiskCheckFailed Code = original.RiskCheckFailed
RoleAssignmentCreationFailed Code = original.RoleAssignmentCreationFailed
ServerTimeout Code = original.ServerTimeout
UnauthenticatedRequestsThrottled Code = original.UnauthenticatedRequestsThrottled
UnsupportedReservationTerm Code = original.UnsupportedReservationTerm
)
type Kind = original.Kind
const (
MicrosoftCompute Kind = original.MicrosoftCompute
)
type Location = original.Location
const (
Australiaeast Location = original.Australiaeast
Australiasoutheast Location = original.Australiasoutheast
Brazilsouth Location = original.Brazilsouth
Canadacentral Location = original.Canadacentral
Canadaeast Location = original.Canadaeast
Centralindia Location = original.Centralindia
Centralus Location = original.Centralus
Eastasia Location = original.Eastasia
Eastus Location = original.Eastus
Eastus2 Location = original.Eastus2
Japaneast Location = original.Japaneast
Japanwest Location = original.Japanwest
Northcentralus Location = original.Northcentralus
Northeurope Location = original.Northeurope
Southcentralus Location = original.Southcentralus
Southeastasia Location = original.Southeastasia
Southindia Location = original.Southindia
Uksouth Location = original.Uksouth
Ukwest Location = original.Ukwest
Westcentralus Location = original.Westcentralus
Westeurope Location = original.Westeurope
Westindia Location = original.Westindia
Westus Location = original.Westus
Westus2 Location = original.Westus2
)
type ProvisioningState = original.ProvisioningState
const (
BillingFailed ProvisioningState = original.BillingFailed
Cancelled ProvisioningState = original.Cancelled
ConfirmedBilling ProvisioningState = original.ConfirmedBilling
ConfirmedResourceHold ProvisioningState = original.ConfirmedResourceHold
Created ProvisioningState = original.Created
Creating ProvisioningState = original.Creating
Expired ProvisioningState = original.Expired
Failed ProvisioningState = original.Failed
Merged ProvisioningState = original.Merged
PendingBilling ProvisioningState = original.PendingBilling
PendingResourceHold ProvisioningState = original.PendingResourceHold
Split ProvisioningState = original.Split
Succeeded ProvisioningState = original.Succeeded
)
type ProvisioningState1 = original.ProvisioningState1
const (
ProvisioningState1BillingFailed ProvisioningState1 = original.ProvisioningState1BillingFailed
ProvisioningState1Cancelled ProvisioningState1 = original.ProvisioningState1Cancelled
ProvisioningState1ConfirmedBilling ProvisioningState1 = original.ProvisioningState1ConfirmedBilling
ProvisioningState1ConfirmedResourceHold ProvisioningState1 = original.ProvisioningState1ConfirmedResourceHold
ProvisioningState1Created ProvisioningState1 = original.ProvisioningState1Created
ProvisioningState1Creating ProvisioningState1 = original.ProvisioningState1Creating
ProvisioningState1Expired ProvisioningState1 = original.ProvisioningState1Expired
ProvisioningState1Failed ProvisioningState1 = original.ProvisioningState1Failed
ProvisioningState1Merged ProvisioningState1 = original.ProvisioningState1Merged
ProvisioningState1PendingBilling ProvisioningState1 = original.ProvisioningState1PendingBilling
ProvisioningState1PendingResourceHold ProvisioningState1 = original.ProvisioningState1PendingResourceHold
ProvisioningState1Split ProvisioningState1 = original.ProvisioningState1Split
ProvisioningState1Succeeded ProvisioningState1 = original.ProvisioningState1Succeeded
)
type StatusCode = original.StatusCode
const (
StatusCodeActive StatusCode = original.StatusCodeActive
StatusCodeExpired StatusCode = original.StatusCodeExpired
StatusCodeMerged StatusCode = original.StatusCodeMerged
StatusCodeNone StatusCode = original.StatusCodeNone
StatusCodePaymentInstrumentError StatusCode = original.StatusCodePaymentInstrumentError
StatusCodePending StatusCode = original.StatusCodePending
StatusCodePurchaseError StatusCode = original.StatusCodePurchaseError
StatusCodeSplit StatusCode = original.StatusCodeSplit
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
)
type Term = original.Term
const (
P1Y Term = original.P1Y
P3Y Term = original.P3Y
)
type AppliedReservationList = original.AppliedReservationList
type AppliedReservations = original.AppliedReservations
type AppliedReservationsProperties = original.AppliedReservationsProperties
type BaseClient = original.BaseClient
type Catalog = original.Catalog
type Client = original.Client
type Error = original.Error
type ExtendedErrorInfo = original.ExtendedErrorInfo
type ExtendedStatusInfo = original.ExtendedStatusInfo
type List = original.List
type ListCatalog = original.ListCatalog
type ListIterator = original.ListIterator
type ListPage = original.ListPage
type ListResponse = original.ListResponse
type MergeProperties = original.MergeProperties
type MergePropertiesType = original.MergePropertiesType
type MergeRequest = original.MergeRequest
type OperationClient = original.OperationClient
type OperationDisplay = original.OperationDisplay
type OperationList = original.OperationList
type OperationListIterator = original.OperationListIterator
type OperationListPage = original.OperationListPage
type OperationResponse = original.OperationResponse
type OrderClient = original.OrderClient
type OrderList = original.OrderList
type OrderListIterator = original.OrderListIterator
type OrderListPage = original.OrderListPage
type OrderProperties = original.OrderProperties
type OrderResponse = original.OrderResponse
type Patch = original.Patch
type PatchProperties = original.PatchProperties
type Properties = original.Properties
type ReservationMergeFuture = original.ReservationMergeFuture
type ReservationUpdateFuture = original.ReservationUpdateFuture
type Response = original.Response
type SkuCapability = original.SkuCapability
type SkuName = original.SkuName
type SkuRestriction = original.SkuRestriction
type SplitFuture = original.SplitFuture
type SplitProperties = original.SplitProperties
type SplitPropertiesType = original.SplitPropertiesType
type SplitRequest = original.SplitRequest
func New() BaseClient {
return original.New()
}
func NewClient() Client {
return original.NewClient()
}
func NewClientWithBaseURI(baseURI string) Client {
return original.NewClientWithBaseURI(baseURI)
}
func NewListIterator(page ListPage) ListIterator {
return original.NewListIterator(page)
}
func NewListPage(getNextPage func(context.Context, List) (List, error)) ListPage {
return original.NewListPage(getNextPage)
}
func NewOperationClient() OperationClient {
return original.NewOperationClient()
}
func NewOperationClientWithBaseURI(baseURI string) OperationClient {
return original.NewOperationClientWithBaseURI(baseURI)
}
func NewOperationListIterator(page OperationListPage) OperationListIterator {
return original.NewOperationListIterator(page)
}
func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
return original.NewOperationListPage(getNextPage)
}
func NewOrderClient() OrderClient {
return original.NewOrderClient()
}
func NewOrderClientWithBaseURI(baseURI string) OrderClient {
return original.NewOrderClientWithBaseURI(baseURI)
}
func NewOrderListIterator(page OrderListPage) OrderListIterator {
return original.NewOrderListIterator(page)
}
func NewOrderListPage(getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage {
return original.NewOrderListPage(getNextPage)
}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
func PossibleAppliedScopeType1Values() []AppliedScopeType1 {
return original.PossibleAppliedScopeType1Values()
}
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
return original.PossibleAppliedScopeTypeValues()
}
func PossibleCodeValues() []Code {
return original.PossibleCodeValues()
}
func PossibleKindValues() []Kind {
return original.PossibleKindValues()
}
func PossibleLocationValues() []Location {
return original.PossibleLocationValues()
}
func PossibleProvisioningState1Values() []ProvisioningState1 {
return original.PossibleProvisioningState1Values()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleStatusCodeValues() []StatusCode {
return original.PossibleStatusCodeValues()
}
func PossibleTermValues() []Term {
return original.PossibleTermValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}