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 PossibleValuesForReservationRecommendationKind() []string + type Amount struct + Currency *string + Value *float64 + type BaseLegacyReservationRecommendationPropertiesImpl struct + CostWithNoReservedInstances *float64 + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + LookBackPeriod *string + MeterId *string + NetSavings *float64 + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuProperties *[]SkuProperty + Term *string + TotalCostWithReservedInstances *float64 + func (s BaseLegacyReservationRecommendationPropertiesImpl) LegacyReservationRecommendationProperties() BaseLegacyReservationRecommendationPropertiesImpl + type BaseModernReservationRecommendationPropertiesImpl struct + CostWithNoReservedInstances *Amount + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + Location *string + LookBackPeriod *int64 + MeterId *string + NetSavings *Amount + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuName *string + SkuProperties *[]SkuProperty + Term *string + TotalCostWithReservedInstances *Amount + func (s BaseModernReservationRecommendationPropertiesImpl) ModernReservationRecommendationProperties() BaseModernReservationRecommendationPropertiesImpl + type BaseReservationRecommendationImpl struct + Etag *string + Id *string + Kind ReservationRecommendationKind + Location *string + Name *string + Sku *string + Tags *map[string]string + Type *string + func (s BaseReservationRecommendationImpl) ReservationRecommendation() BaseReservationRecommendationImpl + type LegacyReservationRecommendation struct + Etag *string + Id *string + Kind ReservationRecommendationKind + Location *string + Name *string + Properties LegacyReservationRecommendationProperties + Sku *string + Tags *map[string]string + Type *string + func (s *LegacyReservationRecommendation) UnmarshalJSON(bytes []byte) error + func (s LegacyReservationRecommendation) MarshalJSON() ([]byte, error) + func (s LegacyReservationRecommendation) ReservationRecommendation() BaseReservationRecommendationImpl + type LegacyReservationRecommendationProperties interface + LegacyReservationRecommendationProperties func() BaseLegacyReservationRecommendationPropertiesImpl + func UnmarshalLegacyReservationRecommendationPropertiesImplementation(input []byte) (LegacyReservationRecommendationProperties, error) + type LegacySharedScopeReservationRecommendationProperties struct + CostWithNoReservedInstances *float64 + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + LookBackPeriod *string + MeterId *string + NetSavings *float64 + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuProperties *[]SkuProperty + Term *string + TotalCostWithReservedInstances *float64 + func (o *LegacySharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error) + func (o *LegacySharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time) + func (s LegacySharedScopeReservationRecommendationProperties) LegacyReservationRecommendationProperties() BaseLegacyReservationRecommendationPropertiesImpl + func (s LegacySharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error) + type LegacySingleScopeReservationRecommendationProperties struct + CostWithNoReservedInstances *float64 + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + LookBackPeriod *string + MeterId *string + NetSavings *float64 + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuProperties *[]SkuProperty + SubscriptionId *string + Term *string + TotalCostWithReservedInstances *float64 + func (o *LegacySingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error) + func (o *LegacySingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time) + func (s LegacySingleScopeReservationRecommendationProperties) LegacyReservationRecommendationProperties() BaseLegacyReservationRecommendationPropertiesImpl + func (s LegacySingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error) + type ListCompleteResult struct + Items []ReservationRecommendation + LatestHttpResponse *http.Response + type ListCustomPager struct + NextLink *odata.Link + func (p *ListCustomPager) NextPageLink() *odata.Link + type ListOperationOptions struct + Filter *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 *[]ReservationRecommendation + OData *odata.OData + type ModernReservationRecommendation struct + Etag *string + Id *string + Kind ReservationRecommendationKind + Location *string + Name *string + Properties ModernReservationRecommendationProperties + Sku *string + Tags *map[string]string + Type *string + func (s *ModernReservationRecommendation) UnmarshalJSON(bytes []byte) error + func (s ModernReservationRecommendation) MarshalJSON() ([]byte, error) + func (s ModernReservationRecommendation) ReservationRecommendation() BaseReservationRecommendationImpl + type ModernReservationRecommendationProperties interface + ModernReservationRecommendationProperties func() BaseModernReservationRecommendationPropertiesImpl + func UnmarshalModernReservationRecommendationPropertiesImplementation(input []byte) (ModernReservationRecommendationProperties, error) + type ModernSharedScopeReservationRecommendationProperties struct + CostWithNoReservedInstances *Amount + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + Location *string + LookBackPeriod *int64 + MeterId *string + NetSavings *Amount + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuName *string + SkuProperties *[]SkuProperty + Term *string + TotalCostWithReservedInstances *Amount + func (o *ModernSharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error) + func (o *ModernSharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time) + func (s ModernSharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error) + func (s ModernSharedScopeReservationRecommendationProperties) ModernReservationRecommendationProperties() BaseModernReservationRecommendationPropertiesImpl + type ModernSingleScopeReservationRecommendationProperties struct + CostWithNoReservedInstances *Amount + FirstUsageDate *string + InstanceFlexibilityGroup *string + InstanceFlexibilityRatio *float64 + Location *string + LookBackPeriod *int64 + MeterId *string + NetSavings *Amount + NormalizedSize *string + RecommendedQuantity *float64 + RecommendedQuantityNormalized *float64 + ResourceType *string + Scope string + SkuName *string + SkuProperties *[]SkuProperty + SubscriptionId *string + Term *string + TotalCostWithReservedInstances *Amount + func (o *ModernSingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error) + func (o *ModernSingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time) + func (s ModernSingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error) + func (s ModernSingleScopeReservationRecommendationProperties) ModernReservationRecommendationProperties() BaseModernReservationRecommendationPropertiesImpl + type RawLegacyReservationRecommendationPropertiesImpl struct + Type string + Values map[string]interface{} + func (s RawLegacyReservationRecommendationPropertiesImpl) LegacyReservationRecommendationProperties() BaseLegacyReservationRecommendationPropertiesImpl + type RawModernReservationRecommendationPropertiesImpl struct + Type string + Values map[string]interface{} + func (s RawModernReservationRecommendationPropertiesImpl) ModernReservationRecommendationProperties() BaseModernReservationRecommendationPropertiesImpl + type RawReservationRecommendationImpl struct + Type string + Values map[string]interface{} + func (s RawReservationRecommendationImpl) ReservationRecommendation() BaseReservationRecommendationImpl + type ReservationRecommendation interface + ReservationRecommendation func() BaseReservationRecommendationImpl + func UnmarshalReservationRecommendationImplementation(input []byte) (ReservationRecommendation, error) + type ReservationRecommendationKind string + const ReservationRecommendationKindLegacy + const ReservationRecommendationKindModern + func (s *ReservationRecommendationKind) UnmarshalJSON(bytes []byte) error + type ReservationRecommendationOperationPredicate struct + func (p ReservationRecommendationOperationPredicate) Matches(input ReservationRecommendation) bool + type ReservationRecommendationsClient struct + Client *resourcemanager.Client + func NewReservationRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationRecommendationsClient, error) + func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) + func (c ReservationRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error) + func (c ReservationRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, ...) (result ListCompleteResult, err error) + type SkuProperty struct + Name *string + Value *string