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 PossibleValuesForBudgetOperatorType() []string + func PossibleValuesForCategoryType() []string + func PossibleValuesForCultureCode() []string + func PossibleValuesForOperatorType() []string + func PossibleValuesForThresholdType() []string + func PossibleValuesForTimeGrainType() []string + func ValidateScopedBudgetID(input interface{}, key string) (warnings []string, errors []error) + type Budget struct + ETag *string + Id *string + Name *string + Properties *BudgetProperties + Type *string + type BudgetComparisonExpression struct + Name string + Operator BudgetOperatorType + Values []string + type BudgetFilter struct + And *[]BudgetFilterProperties + Dimensions *BudgetComparisonExpression + Tags *BudgetComparisonExpression + type BudgetFilterProperties struct + Dimensions *BudgetComparisonExpression + Tags *BudgetComparisonExpression + type BudgetOperationPredicate struct + ETag *string + Id *string + Name *string + Type *string + func (p BudgetOperationPredicate) Matches(input Budget) bool + type BudgetOperatorType string + const BudgetOperatorTypeIn + func (s *BudgetOperatorType) UnmarshalJSON(bytes []byte) error + type BudgetProperties struct + Amount float64 + Category CategoryType + CurrentSpend *CurrentSpend + Filter *BudgetFilter + ForecastSpend *ForecastSpend + Notifications *map[string]Notification + TimeGrain TimeGrainType + TimePeriod BudgetTimePeriod + type BudgetTimePeriod struct + EndDate *string + StartDate string + func (o *BudgetTimePeriod) GetEndDateAsTime() (*time.Time, error) + func (o *BudgetTimePeriod) GetStartDateAsTime() (*time.Time, error) + func (o *BudgetTimePeriod) SetEndDateAsTime(input time.Time) + func (o *BudgetTimePeriod) SetStartDateAsTime(input time.Time) + type BudgetsClient struct + Client *resourcemanager.Client + func NewBudgetsClientWithBaseURI(sdkApi sdkEnv.Api) (*BudgetsClient, error) + func (c BudgetsClient) CreateOrUpdate(ctx context.Context, id ScopedBudgetId, input Budget) (result CreateOrUpdateOperationResponse, err error) + func (c BudgetsClient) Delete(ctx context.Context, id ScopedBudgetId) (result DeleteOperationResponse, err error) + func (c BudgetsClient) Get(ctx context.Context, id ScopedBudgetId) (result GetOperationResponse, err error) + func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) + func (c BudgetsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error) + func (c BudgetsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate BudgetOperationPredicate) (result ListCompleteResult, err error) + type CategoryType string + const CategoryTypeCost + func (s *CategoryType) UnmarshalJSON(bytes []byte) error + type CreateOrUpdateOperationResponse struct + HttpResponse *http.Response + Model *Budget + OData *odata.OData + type CultureCode string + const CultureCodeCsNegativecz + const CultureCodeDaNegativedk + const CultureCodeDeNegativede + const CultureCodeEnNegativegb + const CultureCodeEnNegativeus + const CultureCodeEsNegativees + const CultureCodeFrNegativefr + const CultureCodeHuNegativehu + const CultureCodeItNegativeit + const CultureCodeJaNegativejp + const CultureCodeKoNegativekr + const CultureCodeNbNegativeno + const CultureCodeNlNegativenl + const CultureCodePlNegativepl + const CultureCodePtNegativebr + const CultureCodePtNegativept + const CultureCodeRuNegativeru + const CultureCodeSvNegativese + const CultureCodeTrNegativetr + const CultureCodeZhNegativecn + const CultureCodeZhNegativetw + func (s *CultureCode) UnmarshalJSON(bytes []byte) error + type CurrentSpend struct + Amount *float64 + Unit *string + type DeleteOperationResponse struct + HttpResponse *http.Response + OData *odata.OData + type ForecastSpend struct + Amount *float64 + Unit *string + type GetOperationResponse struct + HttpResponse *http.Response + Model *Budget + OData *odata.OData + type ListCompleteResult struct + Items []Budget + LatestHttpResponse *http.Response + type ListCustomPager struct + NextLink *odata.Link + func (p *ListCustomPager) NextPageLink() *odata.Link + type ListOperationResponse struct + HttpResponse *http.Response + Model *[]Budget + OData *odata.OData + type Notification struct + ContactEmails []string + ContactGroups *[]string + ContactRoles *[]string + Enabled bool + Locale *CultureCode + Operator OperatorType + Threshold float64 + ThresholdType *ThresholdType + type OperatorType string + const OperatorTypeEqualTo + const OperatorTypeGreaterThan + const OperatorTypeGreaterThanOrEqualTo + func (s *OperatorType) UnmarshalJSON(bytes []byte) error + type ScopedBudgetId struct + BudgetName string + Scope string + func NewScopedBudgetID(scope string, budgetName string) ScopedBudgetId + func ParseScopedBudgetID(input string) (*ScopedBudgetId, error) + func ParseScopedBudgetIDInsensitively(input string) (*ScopedBudgetId, error) + func (id *ScopedBudgetId) FromParseResult(input resourceids.ParseResult) error + func (id ScopedBudgetId) ID() string + func (id ScopedBudgetId) Segments() []resourceids.Segment + func (id ScopedBudgetId) String() string + type ThresholdType string + const ThresholdTypeActual + const ThresholdTypeForecasted + func (s *ThresholdType) UnmarshalJSON(bytes []byte) error + type TimeGrainType string + const TimeGrainTypeAnnually + const TimeGrainTypeBillingAnnual + const TimeGrainTypeBillingMonth + const TimeGrainTypeBillingQuarter + const TimeGrainTypeMonthly + const TimeGrainTypeQuarterly + func (s *TimeGrainType) UnmarshalJSON(bytes []byte) error