Skip to content

Commit

Permalink
[AutoPR] reservations/resource-manager (#2026)
Browse files Browse the repository at this point in the history
* Generated from c63d3be3d60d265aa28cdfd057a254b934e56380 (#2025)

adding x-ms-enum

* Generated from 5c49757ffe81de9edb3639cd4ea98feb4366dd55 (#2045)

adding x-ms-enum to enums and changing ARM defined attributes to type string
  • Loading branch information
AutorestCI authored and jhendrixMSFT committed Jun 19, 2018
1 parent af37a19 commit e5dfdab
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 424 deletions.
225 changes: 63 additions & 162 deletions profiles/preview/reservations/mgmt/reservations/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,71 +33,64 @@ const (
Single AppliedScopeType = original.Single
)

type AppliedScopeType1 = original.AppliedScopeType1
type ErrorResponseCode = original.ErrorResponseCode

const (
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single
)

type Code = original.Code

const (
ActivateQuoteFailed Code = original.ActivateQuoteFailed
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount
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
PatchValuesSameAsExisting Code = original.PatchValuesSameAsExisting
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
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
Expand All @@ -108,81 +101,11 @@ const (
On InstanceFlexibility = original.On
)

type InstanceFlexibility1 = original.InstanceFlexibility1
type ReservationTerm = original.ReservationTerm

const (
InstanceFlexibility1NotSupported InstanceFlexibility1 = original.InstanceFlexibility1NotSupported
InstanceFlexibility1Off InstanceFlexibility1 = original.InstanceFlexibility1Off
InstanceFlexibility1On InstanceFlexibility1 = original.InstanceFlexibility1On
)

type Location = original.Location

const (
Australiac Location = original.Australiac
Australiac2 Location = original.Australiac2
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
Francecentral Location = original.Francecentral
Francesouth Location = original.Francesouth
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
P1Y ReservationTerm = original.P1Y
P3Y ReservationTerm = original.P3Y
)

type ReservedResourceType = original.ReservedResourceType
Expand All @@ -207,13 +130,6 @@ const (
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
Expand Down Expand Up @@ -265,36 +181,21 @@ func NewWithBaseURI(baseURI string) BaseClient {
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
return original.PossibleAppliedScopeTypeValues()
}
func PossibleAppliedScopeType1Values() []AppliedScopeType1 {
return original.PossibleAppliedScopeType1Values()
}
func PossibleCodeValues() []Code {
return original.PossibleCodeValues()
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
return original.PossibleErrorResponseCodeValues()
}
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
return original.PossibleInstanceFlexibilityValues()
}
func PossibleInstanceFlexibility1Values() []InstanceFlexibility1 {
return original.PossibleInstanceFlexibility1Values()
}
func PossibleLocationValues() []Location {
return original.PossibleLocationValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleProvisioningState1Values() []ProvisioningState1 {
return original.PossibleProvisioningState1Values()
func PossibleReservationTermValues() []ReservationTerm {
return original.PossibleReservationTermValues()
}
func PossibleReservedResourceTypeValues() []ReservedResourceType {
return original.PossibleReservedResourceTypeValues()
}
func PossibleStatusCodeValues() []StatusCode {
return original.PossibleStatusCodeValues()
}
func PossibleTermValues() []Term {
return original.PossibleTermValues()
}
func NewOperationClient() OperationClient {
return original.NewOperationClient()
}
Expand Down
Loading

0 comments on commit e5dfdab

Please sign in to comment.