Documentation ¶
Index ¶
- func PossibleValuesForBenefitKind() []string
- func PossibleValuesForGrain() []string
- func PossibleValuesForLookBackPeriod() []string
- func PossibleValuesForScope() []string
- func PossibleValuesForTerm() []string
- type AllSavingsBenefitDetails
- type AllSavingsList
- type BenefitKind
- type BenefitRecommendationModel
- type BenefitRecommendationModelOperationPredicate
- type BenefitRecommendationProperties
- type BenefitRecommendationsClient
- func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (resp 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, ...) (resp ListCompleteResult, err error)
- type Grain
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type LookBackPeriod
- type RecommendationUsageDetails
- type Scope
- type SharedScopeBenefitRecommendationProperties
- func (o *SharedScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error)
- func (o *SharedScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error)
- func (s SharedScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *SharedScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time)
- func (o *SharedScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time)
- type SingleScopeBenefitRecommendationProperties
- func (o *SingleScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error)
- func (o *SingleScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error)
- func (s SingleScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *SingleScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time)
- func (o *SingleScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time)
- type Term
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBenefitKind ¶
func PossibleValuesForBenefitKind() []string
func PossibleValuesForGrain ¶
func PossibleValuesForGrain() []string
func PossibleValuesForLookBackPeriod ¶
func PossibleValuesForLookBackPeriod() []string
func PossibleValuesForScope ¶
func PossibleValuesForScope() []string
func PossibleValuesForTerm ¶
func PossibleValuesForTerm() []string
Types ¶
type AllSavingsBenefitDetails ¶
type AllSavingsBenefitDetails struct { AverageUtilizationPercentage *float64 `json:"averageUtilizationPercentage,omitempty"` BenefitCost *float64 `json:"benefitCost,omitempty"` CommitmentAmount *float64 `json:"commitmentAmount,omitempty"` CoveragePercentage *float64 `json:"coveragePercentage,omitempty"` OverageCost *float64 `json:"overageCost,omitempty"` SavingsAmount *float64 `json:"savingsAmount,omitempty"` SavingsPercentage *float64 `json:"savingsPercentage,omitempty"` TotalCost *float64 `json:"totalCost,omitempty"` WastageCost *float64 `json:"wastageCost,omitempty"` }
type AllSavingsList ¶
type AllSavingsList struct { NextLink *string `json:"nextLink,omitempty"` Value *[]AllSavingsBenefitDetails `json:"value,omitempty"` }
type BenefitKind ¶
type BenefitKind string
const ( BenefitKindIncludedQuantity BenefitKind = "IncludedQuantity" BenefitKindReservation BenefitKind = "Reservation" BenefitKindSavingsPlan BenefitKind = "SavingsPlan" )
type BenefitRecommendationModel ¶
type BenefitRecommendationModel struct { Id *string `json:"id,omitempty"` Kind *BenefitKind `json:"kind,omitempty"` Name *string `json:"name,omitempty"` Properties BenefitRecommendationProperties `json:"properties"` Type *string `json:"type,omitempty"` }
func (*BenefitRecommendationModel) UnmarshalJSON ¶
func (s *BenefitRecommendationModel) UnmarshalJSON(bytes []byte) error
type BenefitRecommendationModelOperationPredicate ¶
func (BenefitRecommendationModelOperationPredicate) Matches ¶
func (p BenefitRecommendationModelOperationPredicate) Matches(input BenefitRecommendationModel) bool
type BenefitRecommendationProperties ¶
type BenefitRecommendationProperties interface { }
type BenefitRecommendationsClient ¶
type BenefitRecommendationsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewBenefitRecommendationsClientWithBaseURI ¶
func NewBenefitRecommendationsClientWithBaseURI(endpoint string) BenefitRecommendationsClient
func (BenefitRecommendationsClient) List ¶
func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (BenefitRecommendationsClient) ListComplete ¶
func (c BenefitRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (BenefitRecommendationsClient) ListCompleteMatchingPredicate ¶
func (c BenefitRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate BenefitRecommendationModelOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []BenefitRecommendationModel
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]BenefitRecommendationModel // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type LookBackPeriod ¶
type LookBackPeriod string
const ( LookBackPeriodLastSevenDays LookBackPeriod = "Last7Days" LookBackPeriodLastSixZeroDays LookBackPeriod = "Last60Days" LookBackPeriodLastThreeZeroDays LookBackPeriod = "Last30Days" )
type SharedScopeBenefitRecommendationProperties ¶
type SharedScopeBenefitRecommendationProperties struct { // Fields inherited from BenefitRecommendationProperties }
func (*SharedScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime ¶
func (o *SharedScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error)
func (*SharedScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime ¶
func (o *SharedScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error)
func (SharedScopeBenefitRecommendationProperties) MarshalJSON ¶
func (s SharedScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error)
func (*SharedScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime ¶
func (o *SharedScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time)
func (*SharedScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime ¶
func (o *SharedScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time)
type SingleScopeBenefitRecommendationProperties ¶
type SingleScopeBenefitRecommendationProperties struct { ResourceGroup *string `json:"resourceGroup,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from BenefitRecommendationProperties AllRecommendationDetails *AllSavingsList `json:"allRecommendationDetails,omitempty"` ArmSkuName *string `json:"armSkuName,omitempty"` CommitmentGranularity *Grain `json:"commitmentGranularity,omitempty"` CostWithoutBenefit *float64 `json:"costWithoutBenefit,omitempty"` CurrencyCode *string `json:"currencyCode,omitempty"` FirstConsumptionDate *string `json:"firstConsumptionDate,omitempty"` LastConsumptionDate *string `json:"lastConsumptionDate,omitempty"` LookBackPeriod *LookBackPeriod `json:"lookBackPeriod,omitempty"` RecommendationDetails *AllSavingsBenefitDetails `json:"recommendationDetails,omitempty"` Term *Term `json:"term,omitempty"` TotalHours *int64 `json:"totalHours,omitempty"` Usage *RecommendationUsageDetails `json:"usage,omitempty"` }
func (*SingleScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime ¶
func (o *SingleScopeBenefitRecommendationProperties) GetFirstConsumptionDateAsTime() (*time.Time, error)
func (*SingleScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime ¶
func (o *SingleScopeBenefitRecommendationProperties) GetLastConsumptionDateAsTime() (*time.Time, error)
func (SingleScopeBenefitRecommendationProperties) MarshalJSON ¶
func (s SingleScopeBenefitRecommendationProperties) MarshalJSON() ([]byte, error)
func (*SingleScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime ¶
func (o *SingleScopeBenefitRecommendationProperties) SetFirstConsumptionDateAsTime(input time.Time)
func (*SingleScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime ¶
func (o *SingleScopeBenefitRecommendationProperties) SetLastConsumptionDateAsTime(input time.Time)
Source Files ¶
- client.go
- constants.go
- method_list_autorest.go
- model_allsavingsbenefitdetails.go
- model_allsavingslist.go
- model_benefitrecommendationmodel.go
- model_benefitrecommendationproperties.go
- model_recommendationusagedetails.go
- model_sharedscopebenefitrecommendationproperties.go
- model_singlescopebenefitrecommendationproperties.go
- predicates.go
- version.go
Click to show internal directories.
Click to hide internal directories.