Skip to content

Commit

Permalink
[AutoPR consumption/resource-manager] Adding new properties to Consum…
Browse files Browse the repository at this point in the history
…ption Usage Details (Azure#2189) (Azure#2226)

* Generated from 4394e3bd84d0e9012dd1acac36ce2a82fd02edd6

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs

* Generated from 8d551a2fd9eb30b4c6b9f38b30924f06fed0b02c

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs

* Generated from bac7ebe031f40801bd2aca9a368dd9eeaeaa7509

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs

* Generated from 891beecde5b53a8b2fc5a700670df861cc80b1f0

Modified the Operation Id to follow the best practices.

* Generated from b9b62fdf3ee427a1f2c1b71293cc422eedbdbd63

Fixed model namings for - ReservationSummaries (now: ReservationSummary), ReservationDetails (now: ReservationDetail) and ReservationRecommendations (now: ReservationRecommendation)

* Generated from 5d36df6e4f6b3ddde06f975bfa42fa095a5ad29e

Fixed the naming for model CostTags.

* Generated from c5a8c67ddd9601adc30c1a968a85629fbe79ccdf

Fixing the SDKViolation error on - model Tags.

* Generated from b28e418996a4b847984d198b4c0ccbd003466d0a

Changed the CostTagResult to CostTag as per review comments. Also changed operations - Marketplaces_ListByEnrollmentAccount and Marketplaces_ListForBillingPeriodByEnrollmentAccount.
  • Loading branch information
AutorestCI authored and jhendrixMSFT committed Jul 13, 2018
1 parent fddc83b commit bb9de45
Show file tree
Hide file tree
Showing 16 changed files with 6,961 additions and 1 deletion.
153 changes: 152 additions & 1 deletion profiles/preview/consumption/mgmt/consumption/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,55 @@

package consumption

import original "github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-05-31/consumption"
import original "github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2018-06-30/consumption"

type BalancesClient = original.BalancesClient
type BudgetsClient = original.BudgetsClient

const (
DefaultBaseURI = original.DefaultBaseURI
)

type BaseClient = original.BaseClient
type CostTagsClient = original.CostTagsClient
type ForecastsClient = original.ForecastsClient
type MarketplacesClient = original.MarketplacesClient
type BillingFrequency = original.BillingFrequency

const (
Month BillingFrequency = original.Month
Quarter BillingFrequency = original.Quarter
Year BillingFrequency = original.Year
)

type Bound = original.Bound

const (
Lower Bound = original.Lower
Upper Bound = original.Upper
)

type CategoryType = original.CategoryType

const (
Cost CategoryType = original.Cost
Usage CategoryType = original.Usage
)

type ChargeType = original.ChargeType

const (
ChargeTypeActual ChargeType = original.ChargeTypeActual
ChargeTypeForecast ChargeType = original.ChargeTypeForecast
)

type Datagrain = original.Datagrain

const (
DailyGrain Datagrain = original.DailyGrain
MonthlyGrain Datagrain = original.MonthlyGrain
)

type Grain = original.Grain

const (
Expand All @@ -49,13 +76,50 @@ const (
Yearly Grain = original.Yearly
)

type OperatorType = original.OperatorType

const (
EqualTo OperatorType = original.EqualTo
GreaterThan OperatorType = original.GreaterThan
GreaterThanOrEqualTo OperatorType = original.GreaterThanOrEqualTo
)

type TimeGrainType = original.TimeGrainType

const (
TimeGrainTypeAnnually TimeGrainType = original.TimeGrainTypeAnnually
TimeGrainTypeMonthly TimeGrainType = original.TimeGrainTypeMonthly
TimeGrainTypeQuarterly TimeGrainType = original.TimeGrainTypeQuarterly
)

type Balance = original.Balance
type BalanceProperties = original.BalanceProperties
type BalancePropertiesAdjustmentDetailsItem = original.BalancePropertiesAdjustmentDetailsItem
type BalancePropertiesNewPurchasesDetailsItem = original.BalancePropertiesNewPurchasesDetailsItem
type Budget = original.Budget
type BudgetProperties = original.BudgetProperties
type BudgetsListResult = original.BudgetsListResult
type BudgetsListResultIterator = original.BudgetsListResultIterator
type BudgetsListResultPage = original.BudgetsListResultPage
type BudgetTimePeriod = original.BudgetTimePeriod
type CostTag = original.CostTag
type CostTagProperties = original.CostTagProperties
type CostTagsModel = original.CostTagsModel
type CurrentSpend = original.CurrentSpend
type ErrorDetails = original.ErrorDetails
type ErrorResponse = original.ErrorResponse
type Filters = original.Filters
type Forecast = original.Forecast
type ForecastProperties = original.ForecastProperties
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
type ForecastsListResult = original.ForecastsListResult
type Marketplace = original.Marketplace
type MarketplaceProperties = original.MarketplaceProperties
type MarketplacesListResult = original.MarketplacesListResult
type MarketplacesListResultIterator = original.MarketplacesListResultIterator
type MarketplacesListResultPage = original.MarketplacesListResultPage
type MeterDetails = original.MeterDetails
type Notification = original.Notification
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
Expand All @@ -64,37 +128,100 @@ type OperationListResultPage = original.OperationListResultPage
type PriceSheetModel = original.PriceSheetModel
type PriceSheetProperties = original.PriceSheetProperties
type PriceSheetResult = original.PriceSheetResult
type ProxyResource = original.ProxyResource
type ReservationDetail = original.ReservationDetail
type ReservationDetailProperties = original.ReservationDetailProperties
type ReservationDetailsListResult = original.ReservationDetailsListResult
type ReservationDetailsListResultIterator = original.ReservationDetailsListResultIterator
type ReservationDetailsListResultPage = original.ReservationDetailsListResultPage
type ReservationRecommendation = original.ReservationRecommendation
type ReservationRecommendationProperties = original.ReservationRecommendationProperties
type ReservationRecommendationsListResult = original.ReservationRecommendationsListResult
type ReservationRecommendationsListResultIterator = original.ReservationRecommendationsListResultIterator
type ReservationRecommendationsListResultPage = original.ReservationRecommendationsListResultPage
type ReservationSummariesListResult = original.ReservationSummariesListResult
type ReservationSummariesListResultIterator = original.ReservationSummariesListResultIterator
type ReservationSummariesListResultPage = original.ReservationSummariesListResultPage
type ReservationSummary = original.ReservationSummary
type ReservationSummaryProperties = original.ReservationSummaryProperties
type Resource = original.Resource
type ResourceAttributes = original.ResourceAttributes
type Tag = original.Tag
type TagProperties = original.TagProperties
type TagsResult = original.TagsResult
type UsageDetail = original.UsageDetail
type UsageDetailProperties = original.UsageDetailProperties
type UsageDetailsListResult = original.UsageDetailsListResult
type UsageDetailsListResultIterator = original.UsageDetailsListResultIterator
type UsageDetailsListResultPage = original.UsageDetailsListResultPage
type OperationsClient = original.OperationsClient
type PriceSheetClient = original.PriceSheetClient
type ReservationRecommendationsClient = original.ReservationRecommendationsClient
type ReservationsDetailsClient = original.ReservationsDetailsClient
type ReservationsSummariesClient = original.ReservationsSummariesClient
type TagsClient = original.TagsClient
type UsageDetailsClient = original.UsageDetailsClient

func NewBalancesClient(subscriptionID string) BalancesClient {
return original.NewBalancesClient(subscriptionID)
}
func NewBalancesClientWithBaseURI(baseURI string, subscriptionID string) BalancesClient {
return original.NewBalancesClientWithBaseURI(baseURI, subscriptionID)
}
func NewBudgetsClient(subscriptionID string) BudgetsClient {
return original.NewBudgetsClient(subscriptionID)
}
func NewBudgetsClientWithBaseURI(baseURI string, subscriptionID string) BudgetsClient {
return original.NewBudgetsClientWithBaseURI(baseURI, subscriptionID)
}
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func NewCostTagsClient(subscriptionID string) CostTagsClient {
return original.NewCostTagsClient(subscriptionID)
}
func NewCostTagsClientWithBaseURI(baseURI string, subscriptionID string) CostTagsClient {
return original.NewCostTagsClientWithBaseURI(baseURI, subscriptionID)
}
func NewForecastsClient(subscriptionID string) ForecastsClient {
return original.NewForecastsClient(subscriptionID)
}
func NewForecastsClientWithBaseURI(baseURI string, subscriptionID string) ForecastsClient {
return original.NewForecastsClientWithBaseURI(baseURI, subscriptionID)
}
func NewMarketplacesClient(subscriptionID string) MarketplacesClient {
return original.NewMarketplacesClient(subscriptionID)
}
func NewMarketplacesClientWithBaseURI(baseURI string, subscriptionID string) MarketplacesClient {
return original.NewMarketplacesClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleBillingFrequencyValues() []BillingFrequency {
return original.PossibleBillingFrequencyValues()
}
func PossibleBoundValues() []Bound {
return original.PossibleBoundValues()
}
func PossibleCategoryTypeValues() []CategoryType {
return original.PossibleCategoryTypeValues()
}
func PossibleChargeTypeValues() []ChargeType {
return original.PossibleChargeTypeValues()
}
func PossibleDatagrainValues() []Datagrain {
return original.PossibleDatagrainValues()
}
func PossibleGrainValues() []Grain {
return original.PossibleGrainValues()
}
func PossibleOperatorTypeValues() []OperatorType {
return original.PossibleOperatorTypeValues()
}
func PossibleTimeGrainTypeValues() []TimeGrainType {
return original.PossibleTimeGrainTypeValues()
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
Expand All @@ -107,6 +234,30 @@ func NewPriceSheetClient(subscriptionID string) PriceSheetClient {
func NewPriceSheetClientWithBaseURI(baseURI string, subscriptionID string) PriceSheetClient {
return original.NewPriceSheetClientWithBaseURI(baseURI, subscriptionID)
}
func NewReservationRecommendationsClient(subscriptionID string) ReservationRecommendationsClient {
return original.NewReservationRecommendationsClient(subscriptionID)
}
func NewReservationRecommendationsClientWithBaseURI(baseURI string, subscriptionID string) ReservationRecommendationsClient {
return original.NewReservationRecommendationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewReservationsDetailsClient(subscriptionID string) ReservationsDetailsClient {
return original.NewReservationsDetailsClient(subscriptionID)
}
func NewReservationsDetailsClientWithBaseURI(baseURI string, subscriptionID string) ReservationsDetailsClient {
return original.NewReservationsDetailsClientWithBaseURI(baseURI, subscriptionID)
}
func NewReservationsSummariesClient(subscriptionID string) ReservationsSummariesClient {
return original.NewReservationsSummariesClient(subscriptionID)
}
func NewReservationsSummariesClientWithBaseURI(baseURI string, subscriptionID string) ReservationsSummariesClient {
return original.NewReservationsSummariesClientWithBaseURI(baseURI, subscriptionID)
}
func NewTagsClient(subscriptionID string) TagsClient {
return original.NewTagsClient(subscriptionID)
}
func NewTagsClientWithBaseURI(baseURI string, subscriptionID string) TagsClient {
return original.NewTagsClientWithBaseURI(baseURI, subscriptionID)
}
func NewUsageDetailsClient(subscriptionID string) UsageDetailsClient {
return original.NewUsageDetailsClient(subscriptionID)
}
Expand Down
Loading

0 comments on commit bb9de45

Please sign in to comment.