/
models.go
264 lines (244 loc) · 13.4 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
// +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/preview/reservations/mgmt/2019-04-01/reservations"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
type AppliedScopeType = original.AppliedScopeType
const (
Shared AppliedScopeType = original.Shared
Single AppliedScopeType = original.Single
)
type ErrorResponseCode = original.ErrorResponseCode
const (
ActivateQuoteFailed ErrorResponseCode = original.ActivateQuoteFailed
AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = original.AppliedScopesNotAssociatedWithCommerceAccount
AuthorizationFailed ErrorResponseCode = original.AuthorizationFailed
BadRequest ErrorResponseCode = original.BadRequest
BillingCustomerInputError ErrorResponseCode = original.BillingCustomerInputError
BillingError ErrorResponseCode = original.BillingError
BillingPaymentInstrumentHardError ErrorResponseCode = original.BillingPaymentInstrumentHardError
BillingPaymentInstrumentSoftError ErrorResponseCode = original.BillingPaymentInstrumentSoftError
BillingScopeIDCannotBeChanged ErrorResponseCode = original.BillingScopeIDCannotBeChanged
BillingTransientError ErrorResponseCode = original.BillingTransientError
CalculatePriceFailed ErrorResponseCode = original.CalculatePriceFailed
CapacityUpdateScopesFailed ErrorResponseCode = original.CapacityUpdateScopesFailed
ClientCertificateThumbprintNotSet ErrorResponseCode = original.ClientCertificateThumbprintNotSet
CreateQuoteFailed ErrorResponseCode = original.CreateQuoteFailed
Forbidden ErrorResponseCode = original.Forbidden
FulfillmentConfigurationError ErrorResponseCode = original.FulfillmentConfigurationError
FulfillmentError ErrorResponseCode = original.FulfillmentError
FulfillmentOutOfStockError ErrorResponseCode = original.FulfillmentOutOfStockError
FulfillmentTransientError ErrorResponseCode = original.FulfillmentTransientError
HTTPMethodNotSupported ErrorResponseCode = original.HTTPMethodNotSupported
InternalServerError ErrorResponseCode = original.InternalServerError
InvalidAccessToken ErrorResponseCode = original.InvalidAccessToken
InvalidFulfillmentRequestParameters ErrorResponseCode = original.InvalidFulfillmentRequestParameters
InvalidHealthCheckType ErrorResponseCode = original.InvalidHealthCheckType
InvalidLocationID ErrorResponseCode = original.InvalidLocationID
InvalidRefundQuantity ErrorResponseCode = original.InvalidRefundQuantity
InvalidRequestContent ErrorResponseCode = original.InvalidRequestContent
InvalidRequestURI ErrorResponseCode = original.InvalidRequestURI
InvalidReservationID ErrorResponseCode = original.InvalidReservationID
InvalidReservationOrderID ErrorResponseCode = original.InvalidReservationOrderID
InvalidSingleAppliedScopesCount ErrorResponseCode = original.InvalidSingleAppliedScopesCount
InvalidSubscriptionID ErrorResponseCode = original.InvalidSubscriptionID
InvalidTenantID ErrorResponseCode = original.InvalidTenantID
MissingAppliedScopesForSingle ErrorResponseCode = original.MissingAppliedScopesForSingle
MissingTenantID ErrorResponseCode = original.MissingTenantID
NonsupportedAccountID ErrorResponseCode = original.NonsupportedAccountID
NotSpecified ErrorResponseCode = original.NotSpecified
NotSupportedCountry ErrorResponseCode = original.NotSupportedCountry
NoValidReservationsToReRate ErrorResponseCode = original.NoValidReservationsToReRate
OperationCannotBePerformedInCurrentState ErrorResponseCode = original.OperationCannotBePerformedInCurrentState
OperationFailed ErrorResponseCode = original.OperationFailed
PatchValuesSameAsExisting ErrorResponseCode = original.PatchValuesSameAsExisting
PaymentInstrumentNotFound ErrorResponseCode = original.PaymentInstrumentNotFound
PurchaseError ErrorResponseCode = original.PurchaseError
ReRateOnlyAllowedForEA ErrorResponseCode = original.ReRateOnlyAllowedForEA
ReservationIDNotInReservationOrder ErrorResponseCode = original.ReservationIDNotInReservationOrder
ReservationOrderCreationFailed ErrorResponseCode = original.ReservationOrderCreationFailed
ReservationOrderIDAlreadyExists ErrorResponseCode = original.ReservationOrderIDAlreadyExists
ReservationOrderNotEnabled ErrorResponseCode = original.ReservationOrderNotEnabled
ReservationOrderNotFound ErrorResponseCode = original.ReservationOrderNotFound
RiskCheckFailed ErrorResponseCode = original.RiskCheckFailed
RoleAssignmentCreationFailed ErrorResponseCode = original.RoleAssignmentCreationFailed
ServerTimeout ErrorResponseCode = original.ServerTimeout
UnauthenticatedRequestsThrottled ErrorResponseCode = original.UnauthenticatedRequestsThrottled
UnsupportedReservationTerm ErrorResponseCode = original.UnsupportedReservationTerm
)
type InstanceFlexibility = original.InstanceFlexibility
const (
Off InstanceFlexibility = original.Off
On InstanceFlexibility = original.On
)
type ReservationTerm = original.ReservationTerm
const (
P1Y ReservationTerm = original.P1Y
P3Y ReservationTerm = original.P3Y
)
type ReservedResourceType = original.ReservedResourceType
const (
CosmosDb ReservedResourceType = original.CosmosDb
RedHat ReservedResourceType = original.RedHat
RedHatOsa ReservedResourceType = original.RedHatOsa
SQLDatabases ReservedResourceType = original.SQLDatabases
SQLDataWarehouse ReservedResourceType = original.SQLDataWarehouse
SuseLinux ReservedResourceType = original.SuseLinux
VirtualMachines ReservedResourceType = original.VirtualMachines
VMwareCloudSimple ReservedResourceType = original.VMwareCloudSimple
)
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 AppliedReservationList = original.AppliedReservationList
type AppliedReservations = original.AppliedReservations
type AppliedReservationsProperties = original.AppliedReservationsProperties
type BaseClient = original.BaseClient
type CalculatePriceResponse = original.CalculatePriceResponse
type CalculatePriceResponseProperties = original.CalculatePriceResponseProperties
type CalculatePriceResponsePropertiesBillingCurrencyTotal = original.CalculatePriceResponsePropertiesBillingCurrencyTotal
type CalculatePriceResponsePropertiesPricingCurrencyTotal = original.CalculatePriceResponsePropertiesPricingCurrencyTotal
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 OrderPurchaseFuture = original.OrderPurchaseFuture
type OrderResponse = original.OrderResponse
type Patch = original.Patch
type PatchProperties = original.PatchProperties
type PatchPropertiesRenewProperties = original.PatchPropertiesRenewProperties
type Properties = original.Properties
type PropertiesType = original.PropertiesType
type PurchaseRequest = original.PurchaseRequest
type PurchaseRequestProperties = original.PurchaseRequestProperties
type PurchaseRequestPropertiesReservedResourceProperties = original.PurchaseRequestPropertiesReservedResourceProperties
type RenewPropertiesResponse = original.RenewPropertiesResponse
type RenewPropertiesResponseBillingCurrencyTotal = original.RenewPropertiesResponseBillingCurrencyTotal
type RenewPropertiesResponsePricingCurrencyTotal = original.RenewPropertiesResponsePricingCurrencyTotal
type ReservationAvailableScopesFuture = original.ReservationAvailableScopesFuture
type ReservationMergeFuture = original.ReservationMergeFuture
type ReservationUpdateFuture = original.ReservationUpdateFuture
type Response = original.Response
type ScopeProperties = original.ScopeProperties
type SkuName = original.SkuName
type SkuProperty = original.SkuProperty
type SkuRestriction = original.SkuRestriction
type SplitFuture = original.SplitFuture
type SplitProperties = original.SplitProperties
type SplitPropertiesType = original.SplitPropertiesType
type SplitRequest = original.SplitRequest
type SubscriptionScopeProperties = original.SubscriptionScopeProperties
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 PossibleAppliedScopeTypeValues() []AppliedScopeType {
return original.PossibleAppliedScopeTypeValues()
}
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
return original.PossibleErrorResponseCodeValues()
}
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
return original.PossibleInstanceFlexibilityValues()
}
func PossibleReservationTermValues() []ReservationTerm {
return original.PossibleReservationTermValues()
}
func PossibleReservedResourceTypeValues() []ReservedResourceType {
return original.PossibleReservedResourceTypeValues()
}
func PossibleStatusCodeValues() []StatusCode {
return original.PossibleStatusCodeValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}