Documentation ¶
Index ¶
- func PossibleValuesForReservationRecommendationKind() []string
- type Amount
- type LegacyReservationRecommendation
- type LegacyReservationRecommendationProperties
- type LegacySharedScopeReservationRecommendationProperties
- func (o *LegacySharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
- func (s LegacySharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *LegacySharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
- type LegacySingleScopeReservationRecommendationProperties
- func (o *LegacySingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
- func (s LegacySingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *LegacySingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ModernReservationRecommendation
- type ModernReservationRecommendationProperties
- type ModernSharedScopeReservationRecommendationProperties
- func (o *ModernSharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
- func (s ModernSharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *ModernSharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
- type ModernSingleScopeReservationRecommendationProperties
- func (o *ModernSingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
- func (s ModernSingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
- func (o *ModernSingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
- type RawLegacyReservationRecommendationPropertiesImpl
- type RawModernReservationRecommendationPropertiesImpl
- type RawReservationRecommendationImpl
- type ReservationRecommendation
- type ReservationRecommendationKind
- type ReservationRecommendationOperationPredicate
- type ReservationRecommendationsClient
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForReservationRecommendationKind ¶
func PossibleValuesForReservationRecommendationKind() []string
Types ¶
type LegacyReservationRecommendation ¶
type LegacyReservationRecommendation struct { Properties LegacyReservationRecommendationProperties `json:"properties"` // Fields inherited from ReservationRecommendation Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Sku *string `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (LegacyReservationRecommendation) MarshalJSON ¶
func (s LegacyReservationRecommendation) MarshalJSON() ([]byte, error)
func (*LegacyReservationRecommendation) UnmarshalJSON ¶
func (s *LegacyReservationRecommendation) UnmarshalJSON(bytes []byte) error
type LegacyReservationRecommendationProperties ¶
type LegacyReservationRecommendationProperties interface { }
type LegacySharedScopeReservationRecommendationProperties ¶
type LegacySharedScopeReservationRecommendationProperties struct { // Fields inherited from LegacyReservationRecommendationProperties }
func (*LegacySharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime ¶
func (o *LegacySharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
func (LegacySharedScopeReservationRecommendationProperties) MarshalJSON ¶
func (s LegacySharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
func (*LegacySharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime ¶
func (o *LegacySharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
type LegacySingleScopeReservationRecommendationProperties ¶
type LegacySingleScopeReservationRecommendationProperties struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from LegacyReservationRecommendationProperties CostWithNoReservedInstances *float64 `json:"costWithNoReservedInstances,omitempty"` FirstUsageDate *string `json:"firstUsageDate,omitempty"` InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty"` InstanceFlexibilityRatio *float64 `json:"instanceFlexibilityRatio,omitempty"` LookBackPeriod *string `json:"lookBackPeriod,omitempty"` MeterId *string `json:"meterId,omitempty"` NetSavings *float64 `json:"netSavings,omitempty"` NormalizedSize *string `json:"normalizedSize,omitempty"` RecommendedQuantity *float64 `json:"recommendedQuantity,omitempty"` RecommendedQuantityNormalized *float64 `json:"recommendedQuantityNormalized,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SkuProperties *[]SkuProperty `json:"skuProperties,omitempty"` Term *string `json:"term,omitempty"` TotalCostWithReservedInstances *float64 `json:"totalCostWithReservedInstances,omitempty"` }
func (*LegacySingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime ¶
func (o *LegacySingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
func (LegacySingleScopeReservationRecommendationProperties) MarshalJSON ¶
func (s LegacySingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
func (*LegacySingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime ¶
func (o *LegacySingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []ReservationRecommendation
}
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230411.1183115
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230411.1183115
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230411.1183115
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationRecommendation }
type ModernReservationRecommendation ¶
type ModernReservationRecommendation struct { Properties ModernReservationRecommendationProperties `json:"properties"` // Fields inherited from ReservationRecommendation Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Sku *string `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (ModernReservationRecommendation) MarshalJSON ¶
func (s ModernReservationRecommendation) MarshalJSON() ([]byte, error)
func (*ModernReservationRecommendation) UnmarshalJSON ¶
func (s *ModernReservationRecommendation) UnmarshalJSON(bytes []byte) error
type ModernReservationRecommendationProperties ¶
type ModernReservationRecommendationProperties interface { }
type ModernSharedScopeReservationRecommendationProperties ¶
type ModernSharedScopeReservationRecommendationProperties struct { // Fields inherited from ModernReservationRecommendationProperties }
func (*ModernSharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime ¶
func (o *ModernSharedScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
func (ModernSharedScopeReservationRecommendationProperties) MarshalJSON ¶
func (s ModernSharedScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
func (*ModernSharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime ¶
func (o *ModernSharedScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
type ModernSingleScopeReservationRecommendationProperties ¶
type ModernSingleScopeReservationRecommendationProperties struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from ModernReservationRecommendationProperties CostWithNoReservedInstances *Amount `json:"costWithNoReservedInstances,omitempty"` FirstUsageDate *string `json:"firstUsageDate,omitempty"` InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty"` InstanceFlexibilityRatio *float64 `json:"instanceFlexibilityRatio,omitempty"` Location *string `json:"location,omitempty"` LookBackPeriod *int64 `json:"lookBackPeriod,omitempty"` MeterId *string `json:"meterId,omitempty"` NetSavings *Amount `json:"netSavings,omitempty"` NormalizedSize *string `json:"normalizedSize,omitempty"` RecommendedQuantity *float64 `json:"recommendedQuantity,omitempty"` RecommendedQuantityNormalized *float64 `json:"recommendedQuantityNormalized,omitempty"` ResourceType *string `json:"resourceType,omitempty"` SkuName *string `json:"skuName,omitempty"` SkuProperties *[]SkuProperty `json:"skuProperties,omitempty"` Term *string `json:"term,omitempty"` TotalCostWithReservedInstances *Amount `json:"totalCostWithReservedInstances,omitempty"` }
func (*ModernSingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime ¶
func (o *ModernSingleScopeReservationRecommendationProperties) GetFirstUsageDateAsTime() (*time.Time, error)
func (ModernSingleScopeReservationRecommendationProperties) MarshalJSON ¶
func (s ModernSingleScopeReservationRecommendationProperties) MarshalJSON() ([]byte, error)
func (*ModernSingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime ¶
func (o *ModernSingleScopeReservationRecommendationProperties) SetFirstUsageDateAsTime(input time.Time)
type RawLegacyReservationRecommendationPropertiesImpl ¶ added in v0.20230807.1063129
type RawLegacyReservationRecommendationPropertiesImpl struct { Type string Values map[string]interface{} }
RawLegacyReservationRecommendationPropertiesImpl 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 RawModernReservationRecommendationPropertiesImpl ¶ added in v0.20230807.1063129
type RawModernReservationRecommendationPropertiesImpl struct { Type string Values map[string]interface{} }
RawModernReservationRecommendationPropertiesImpl 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 RawReservationRecommendationImpl ¶ added in v0.20230807.1063129
RawReservationRecommendationImpl 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 ReservationRecommendation ¶
type ReservationRecommendation interface { }
type ReservationRecommendationKind ¶
type ReservationRecommendationKind string
const ( ReservationRecommendationKindLegacy ReservationRecommendationKind = "legacy" ReservationRecommendationKindModern ReservationRecommendationKind = "modern" )
func (*ReservationRecommendationKind) UnmarshalJSON ¶ added in v0.20230411.1183115
func (s *ReservationRecommendationKind) UnmarshalJSON(bytes []byte) error
type ReservationRecommendationOperationPredicate ¶
type ReservationRecommendationOperationPredicate struct { }
func (ReservationRecommendationOperationPredicate) Matches ¶
func (p ReservationRecommendationOperationPredicate) Matches(input ReservationRecommendation) bool
type ReservationRecommendationsClient ¶
type ReservationRecommendationsClient struct {
Client *resourcemanager.Client
}
func NewReservationRecommendationsClientWithBaseURI ¶
func NewReservationRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationRecommendationsClient, error)
func (ReservationRecommendationsClient) List ¶
func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ReservationRecommendationsClient) ListComplete ¶
func (c ReservationRecommendationsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReservationRecommendationsClient) ListCompleteMatchingPredicate ¶
func (c ReservationRecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate ReservationRecommendationOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SkuProperty ¶
Source Files ¶
- client.go
- constants.go
- method_list.go
- model_amount.go
- model_legacyreservationrecommendation.go
- model_legacyreservationrecommendationproperties.go
- model_legacysharedscopereservationrecommendationproperties.go
- model_legacysinglescopereservationrecommendationproperties.go
- model_modernreservationrecommendation.go
- model_modernreservationrecommendationproperties.go
- model_modernsharedscopereservationrecommendationproperties.go
- model_modernsinglescopereservationrecommendationproperties.go
- model_reservationrecommendation.go
- model_skuproperty.go
- predicates.go
- version.go