Documentation ¶
Index ¶
- func PossibleValuesForLookBackPeriod() []string
- func PossibleValuesForScope() []string
- func PossibleValuesForTerm() []string
- type GetOperationOptions
- type GetOperationResponse
- type LookBackPeriod
- type ReservationRecommendationDetailsCalculatedSavingsProperties
- type ReservationRecommendationDetailsClient
- type ReservationRecommendationDetailsModel
- type ReservationRecommendationDetailsProperties
- type ReservationRecommendationDetailsResourceProperties
- type ReservationRecommendationDetailsSavingsProperties
- type ReservationRecommendationDetailsUsageProperties
- type Scope
- type Term
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLookBackPeriod ¶
func PossibleValuesForLookBackPeriod() []string
func PossibleValuesForScope ¶
func PossibleValuesForScope() []string
func PossibleValuesForTerm ¶
func PossibleValuesForTerm() []string
Types ¶
type GetOperationOptions ¶
type GetOperationOptions struct { LookBackPeriod *LookBackPeriod Product *string Region *string Scope *Scope Term *Term }
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ReservationRecommendationDetailsModel }
type LookBackPeriod ¶
type LookBackPeriod string
const ( LookBackPeriodLastSevenDays LookBackPeriod = "Last7Days" LookBackPeriodLastSixZeroDays LookBackPeriod = "Last60Days" LookBackPeriodLastThreeZeroDays LookBackPeriod = "Last30Days" )
func (*LookBackPeriod) UnmarshalJSON ¶
func (s *LookBackPeriod) UnmarshalJSON(bytes []byte) error
type ReservationRecommendationDetailsCalculatedSavingsProperties ¶
type ReservationRecommendationDetailsCalculatedSavingsProperties struct { OnDemandCost *float64 `json:"onDemandCost,omitempty"` OverageCost *float64 `json:"overageCost,omitempty"` Quantity *float64 `json:"quantity,omitempty"` ReservationCost *float64 `json:"reservationCost,omitempty"` ReservedUnitCount *float64 `json:"reservedUnitCount,omitempty"` Savings *float64 `json:"savings,omitempty"` TotalReservationCost *float64 `json:"totalReservationCost,omitempty"` }
type ReservationRecommendationDetailsClient ¶
type ReservationRecommendationDetailsClient struct {
Client *resourcemanager.Client
}
func NewReservationRecommendationDetailsClientWithBaseURI ¶
func NewReservationRecommendationDetailsClientWithBaseURI(api environments.Api) (*ReservationRecommendationDetailsClient, error)
func (ReservationRecommendationDetailsClient) Get ¶
func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id commonids.ScopeId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
type ReservationRecommendationDetailsModel ¶
type ReservationRecommendationDetailsModel struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ReservationRecommendationDetailsProperties `json:"properties,omitempty"` Sku *string `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ReservationRecommendationDetailsProperties ¶
type ReservationRecommendationDetailsProperties struct { Currency *string `json:"currency,omitempty"` Resource *ReservationRecommendationDetailsResourceProperties `json:"resource,omitempty"` ResourceGroup *string `json:"resourceGroup,omitempty"` Savings *ReservationRecommendationDetailsSavingsProperties `json:"savings,omitempty"` Scope *string `json:"scope,omitempty"` Usage *ReservationRecommendationDetailsUsageProperties `json:"usage,omitempty"` }
type ReservationRecommendationDetailsResourceProperties ¶
type ReservationRecommendationDetailsResourceProperties struct { AppliedScopes *[]string `json:"appliedScopes,omitempty"` OnDemandRate *float64 `json:"onDemandRate,omitempty"` Product *string `json:"product,omitempty"` Region *string `json:"region,omitempty"` ReservationRate *float64 `json:"reservationRate,omitempty"` ResourceType *string `json:"resourceType,omitempty"` }
type ReservationRecommendationDetailsSavingsProperties ¶
type ReservationRecommendationDetailsSavingsProperties struct { CalculatedSavings *[]ReservationRecommendationDetailsCalculatedSavingsProperties `json:"calculatedSavings,omitempty"` LookBackPeriod *int64 `json:"lookBackPeriod,omitempty"` RecommendedQuantity *float64 `json:"recommendedQuantity,omitempty"` ReservationOrderTerm *string `json:"reservationOrderTerm,omitempty"` SavingsType *string `json:"savingsType,omitempty"` UnitOfMeasure *string `json:"unitOfMeasure,omitempty"` }
type ReservationRecommendationDetailsUsageProperties ¶
type ReservationRecommendationDetailsUsageProperties struct { FirstConsumptionDate *string `json:"firstConsumptionDate,omitempty"` LastConsumptionDate *string `json:"lastConsumptionDate,omitempty"` LookBackUnitType *string `json:"lookBackUnitType,omitempty"` UsageData *[]float64 `json:"usageData,omitempty"` UsageGrain *string `json:"usageGrain,omitempty"` }
Source Files ¶
- client.go
- constants.go
- method_get.go
- model_reservationrecommendationdetailscalculatedsavingsproperties.go
- model_reservationrecommendationdetailsmodel.go
- model_reservationrecommendationdetailsproperties.go
- model_reservationrecommendationdetailsresourceproperties.go
- model_reservationrecommendationdetailssavingsproperties.go
- model_reservationrecommendationdetailsusageproperties.go
- version.go
Click to show internal directories.
Click to hide internal directories.