Documentation ¶
Index ¶
- func PossibleValuesForBenefitKind() []string
- func PossibleValuesForGrain() []string
- func PossibleValuesForLookBackPeriod() []string
- func PossibleValuesForScope() []string
- func PossibleValuesForTerm() []string
- type AllSavingsBenefitDetails
- type AllSavingsList
- type BaseBenefitRecommendationPropertiesImpl
- 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 ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type LookBackPeriod
- type RawBenefitRecommendationPropertiesImpl
- type RecommendationUsageDetails
- type Scope
- type SharedScopeBenefitRecommendationProperties
- func (s SharedScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
- 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 (s SingleScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
- 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 BaseBenefitRecommendationPropertiesImpl ¶ added in v0.20240920.1135249
type BaseBenefitRecommendationPropertiesImpl struct { 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"` Scope Scope `json:"scope"` Term *Term `json:"term,omitempty"` TotalHours *int64 `json:"totalHours,omitempty"` Usage *RecommendationUsageDetails `json:"usage,omitempty"` }
func (BaseBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties ¶ added in v0.20240920.1135249
func (s BaseBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
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 {
BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
}
func UnmarshalBenefitRecommendationPropertiesImplementation ¶ added in v0.20240920.1135249
func UnmarshalBenefitRecommendationPropertiesImplementation(input []byte) (BenefitRecommendationProperties, error)
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 ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
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 ¶
type RawBenefitRecommendationPropertiesImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties ¶ added in v0.20240920.1135249
func (s RawBenefitRecommendationPropertiesImpl) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
type SharedScopeBenefitRecommendationProperties ¶
type SharedScopeBenefitRecommendationProperties struct {}
func (SharedScopeBenefitRecommendationProperties) BenefitRecommendationProperties ¶ added in v0.20240920.1135249
func (s SharedScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
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"` 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"` Scope Scope `json:"scope"` Term *Term `json:"term,omitempty"` TotalHours *int64 `json:"totalHours,omitempty"` Usage *RecommendationUsageDetails `json:"usage,omitempty"` }
func (SingleScopeBenefitRecommendationProperties) BenefitRecommendationProperties ¶ added in v0.20240920.1135249
func (s SingleScopeBenefitRecommendationProperties) BenefitRecommendationProperties() BaseBenefitRecommendationPropertiesImpl
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.