Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForBenefitKind() []string + func PossibleValuesForGrain() []string + func PossibleValuesForLookBackPeriod() []string + func PossibleValuesForScope() []string + func PossibleValuesForTerm() []string + type AllSavingsBenefitDetails struct + AverageUtilizationPercentage *float64 + BenefitCost *float64 + CommitmentAmount *float64 + CoveragePercentage *float64 + OverageCost *float64 + SavingsAmount *float64 + SavingsPercentage *float64 + TotalCost *float64 + WastageCost *float64 + type AllSavingsList struct + NextLink *string + Value *[]AllSavingsBenefitDetails + type BaseBenefitRecommendationPropertiesImpl struct + AllRecommendationDetails *AllSavingsList + ArmSkuName *string + CommitmentGranularity *Grain + CostWithoutBenefit *float64 + CurrencyCode *string + FirstConsumptionDate *string + LastConsumptionDate *string + LookBackPeriod *LookBackPeriod + RecommendationDetails *AllSavingsBenefitDetails + Scope Scope + Term *Term + TotalHours *int64 + Usage *RecommendationUsageDetails + func (s BaseBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl + type BenefitKind string + const BenefitKindIncludedQuantity + const BenefitKindReservation + const BenefitKindSavingsPlan + func (s *BenefitKind) UnmarshalJSON(bytes []byte) error + type BenefitRecommendationModel struct + Id *string + Kind *BenefitKind + Name *string + Properties BenefitRecommendationProperties + Type *string + func (s *BenefitRecommendationModel) UnmarshalJSON(bytes []byte) error + type BenefitRecommendationModelOperationPredicate struct + Id *string + Name *string + Type *string + func (p BenefitRecommendationModelOperationPredicate) Matches(input BenefitRecommendationModel) bool + type BenefitRecommendationProperties interface + BenefitRecommendationProperties func() BaseBenefitRecommendationPropertiesImpl + func UnmarshalBenefitRecommendationPropertiesImplementation(input []byte) (BenefitRecommendationProperties, error) + type BenefitRecommendationsClient struct + Client *resourcemanager.Client + func NewBenefitRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*BenefitRecommendationsClient, error) + func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) + func (c BenefitRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error) + func (c BenefitRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, ...) (result ListCompleteResult, err error) + type Grain string + const GrainDaily + const GrainHourly + const GrainMonthly + func (s *Grain) UnmarshalJSON(bytes []byte) error + type ListCompleteResult struct + Items []BenefitRecommendationModel + LatestHttpResponse *http.Response + type ListCustomPager struct + NextLink *odata.Link + func (p *ListCustomPager) NextPageLink() *odata.Link + type ListOperationOptions struct + Expand *string + Filter *string + Orderby *string + func DefaultListOperationOptions() ListOperationOptions + func (o ListOperationOptions) ToHeaders() *client.Headers + func (o ListOperationOptions) ToOData() *odata.Query + func (o ListOperationOptions) ToQuery() *client.QueryParams + type ListOperationResponse struct + HttpResponse *http.Response + Model *[]BenefitRecommendationModel + OData *odata.OData + type LookBackPeriod string + const LookBackPeriodLastSevenDays + const LookBackPeriodLastSixZeroDays + const LookBackPeriodLastThreeZeroDays + func (s *LookBackPeriod) UnmarshalJSON(bytes []byte) error + type RawBenefitRecommendationPropertiesImpl struct + Type string + Values map[string]interface{} + func (s RawBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl + type RecommendationUsageDetails struct + Charges *[]float64 + UsageGrain *Grain + type Scope string + const ScopeShared + const ScopeSingle + func (s *Scope) UnmarshalJSON(bytes []byte) error + type SharedScopeBenefitRecommendationProperties struct + AllRecommendationDetails *AllSavingsList + ArmSkuName *string + CommitmentGranularity *Grain + CostWithoutBenefit *float64 + CurrencyCode *string + FirstConsumptionDate *string + LastConsumptionDate *string + LookBackPeriod *LookBackPeriod + RecommendationDetails *AllSavingsBenefitDetails + Scope Scope + Term *Term + TotalHours *int64 + Usage *RecommendationUsageDetails + func (o *SharedScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error) + func (o *SharedScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error) + func (o *SharedScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time) + func (o *SharedScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time) + func (s SharedScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl + func (s SharedScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error) + type SingleScopeBenefitRecommendationProperties struct + AllRecommendationDetails *AllSavingsList + ArmSkuName *string + CommitmentGranularity *Grain + CostWithoutBenefit *float64 + CurrencyCode *string + FirstConsumptionDate *string + LastConsumptionDate *string + LookBackPeriod *LookBackPeriod + RecommendationDetails *AllSavingsBenefitDetails + ResourceGroup *string + Scope Scope + SubscriptionId *string + Term *Term + TotalHours *int64 + Usage *RecommendationUsageDetails + func (o *SingleScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error) + func (o *SingleScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error) + func (o *SingleScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time) + func (o *SingleScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time) + func (s SingleScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl + func (s SingleScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error) + type Term string + const TermPOneY + const TermPThreeY + func (s *Term) UnmarshalJSON(bytes []byte) error