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) (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
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type LookBackPeriod
- type RawBenefitRecommendationPropertiesImpl
- 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" )
func (*BenefitKind) UnmarshalJSON ¶
func (s *BenefitKind) UnmarshalJSON(bytes []byte) error
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 *resourcemanager.Client
}
func NewBenefitRecommendationsClientWithBaseURI ¶
func NewBenefitRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*BenefitRecommendationsClient, error)
func (BenefitRecommendationsClient) List ¶
func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (BenefitRecommendationsClient) ListComplete ¶
func (c BenefitRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (BenefitRecommendationsClient) ListCompleteMatchingPredicate ¶
func (c BenefitRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate BenefitRecommendationModelOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []BenefitRecommendationModel }
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]BenefitRecommendationModel }
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 RawBenefitRecommendationPropertiesImpl ¶ added in v0.20230807.1063129
RawBenefitRecommendationPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
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.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.