Documentation ¶
Index ¶
- 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
- type BudgetComparisonExpression
- type BudgetFilter
- type BudgetFilterProperties
- type BudgetOperationPredicate
- type BudgetOperatorType
- type BudgetProperties
- type BudgetTimePeriod
- type BudgetsClient
- 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
- type CreateOrUpdateOperationResponse
- type CultureCode
- type CurrentSpend
- type DeleteOperationResponse
- type ForecastSpend
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type Notification
- type OperatorType
- type ScopedBudgetId
- type ThresholdType
- type TimeGrainType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBudgetOperatorType ¶
func PossibleValuesForBudgetOperatorType() []string
func PossibleValuesForCategoryType ¶
func PossibleValuesForCategoryType() []string
func PossibleValuesForCultureCode ¶
func PossibleValuesForCultureCode() []string
func PossibleValuesForOperatorType ¶
func PossibleValuesForOperatorType() []string
func PossibleValuesForThresholdType ¶
func PossibleValuesForThresholdType() []string
func PossibleValuesForTimeGrainType ¶
func PossibleValuesForTimeGrainType() []string
func ValidateScopedBudgetID ¶
ValidateScopedBudgetID checks that 'input' can be parsed as a Scoped Budget ID
Types ¶
type Budget ¶
type Budget struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BudgetProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BudgetComparisonExpression ¶
type BudgetComparisonExpression struct { Name string `json:"name"` Operator BudgetOperatorType `json:"operator"` Values []string `json:"values"` }
type BudgetFilter ¶
type BudgetFilter struct { And *[]BudgetFilterProperties `json:"and,omitempty"` Dimensions *BudgetComparisonExpression `json:"dimensions,omitempty"` Not *BudgetFilterProperties `json:"not,omitempty"` Tags *BudgetComparisonExpression `json:"tags,omitempty"` }
type BudgetFilterProperties ¶
type BudgetFilterProperties struct { Dimensions *BudgetComparisonExpression `json:"dimensions,omitempty"` Tags *BudgetComparisonExpression `json:"tags,omitempty"` }
type BudgetOperationPredicate ¶
func (BudgetOperationPredicate) Matches ¶
func (p BudgetOperationPredicate) Matches(input Budget) bool
type BudgetOperatorType ¶
type BudgetOperatorType string
const (
BudgetOperatorTypeIn BudgetOperatorType = "In"
)
func (*BudgetOperatorType) UnmarshalJSON ¶
func (s *BudgetOperatorType) UnmarshalJSON(bytes []byte) error
type BudgetProperties ¶
type BudgetProperties struct { Amount float64 `json:"amount"` Category CategoryType `json:"category"` CurrentSpend *CurrentSpend `json:"currentSpend,omitempty"` Filter *BudgetFilter `json:"filter,omitempty"` ForecastSpend *ForecastSpend `json:"forecastSpend,omitempty"` Notifications *map[string]Notification `json:"notifications,omitempty"` TimeGrain TimeGrainType `json:"timeGrain"` TimePeriod BudgetTimePeriod `json:"timePeriod"` }
type BudgetTimePeriod ¶
type BudgetTimePeriod struct { EndDate *string `json:"endDate,omitempty"` StartDate string `json:"startDate"` }
func (*BudgetTimePeriod) GetEndDateAsTime ¶
func (o *BudgetTimePeriod) GetEndDateAsTime() (*time.Time, error)
func (*BudgetTimePeriod) GetStartDateAsTime ¶
func (o *BudgetTimePeriod) GetStartDateAsTime() (*time.Time, error)
func (*BudgetTimePeriod) SetEndDateAsTime ¶
func (o *BudgetTimePeriod) SetEndDateAsTime(input time.Time)
func (*BudgetTimePeriod) SetStartDateAsTime ¶
func (o *BudgetTimePeriod) SetStartDateAsTime(input time.Time)
type BudgetsClient ¶
type BudgetsClient struct {
Client *resourcemanager.Client
}
func NewBudgetsClientWithBaseURI ¶
func NewBudgetsClientWithBaseURI(sdkApi sdkEnv.Api) (*BudgetsClient, error)
func (BudgetsClient) CreateOrUpdate ¶
func (c BudgetsClient) CreateOrUpdate(ctx context.Context, id ScopedBudgetId, input Budget) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (BudgetsClient) Delete ¶
func (c BudgetsClient) Delete(ctx context.Context, id ScopedBudgetId) (result DeleteOperationResponse, err error)
Delete ...
func (BudgetsClient) Get ¶
func (c BudgetsClient) Get(ctx context.Context, id ScopedBudgetId) (result GetOperationResponse, err error)
Get ...
func (BudgetsClient) List ¶
func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (BudgetsClient) ListComplete ¶
func (c BudgetsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (BudgetsClient) ListCompleteMatchingPredicate ¶
func (c BudgetsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate BudgetOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CategoryType ¶
type CategoryType string
const (
CategoryTypeCost CategoryType = "Cost"
)
func (*CategoryType) UnmarshalJSON ¶
func (s *CategoryType) UnmarshalJSON(bytes []byte) error
type CultureCode ¶
type CultureCode string
const ( CultureCodeCsNegativecz CultureCode = "cs-cz" CultureCodeDaNegativedk CultureCode = "da-dk" CultureCodeDeNegativede CultureCode = "de-de" CultureCodeEnNegativegb CultureCode = "en-gb" CultureCodeEnNegativeus CultureCode = "en-us" CultureCodeEsNegativees CultureCode = "es-es" CultureCodeFrNegativefr CultureCode = "fr-fr" CultureCodeHuNegativehu CultureCode = "hu-hu" CultureCodeItNegativeit CultureCode = "it-it" CultureCodeJaNegativejp CultureCode = "ja-jp" CultureCodeKoNegativekr CultureCode = "ko-kr" CultureCodeNbNegativeno CultureCode = "nb-no" CultureCodeNlNegativenl CultureCode = "nl-nl" CultureCodePlNegativepl CultureCode = "pl-pl" CultureCodePtNegativebr CultureCode = "pt-br" CultureCodePtNegativept CultureCode = "pt-pt" CultureCodeRuNegativeru CultureCode = "ru-ru" CultureCodeSvNegativese CultureCode = "sv-se" CultureCodeTrNegativetr CultureCode = "tr-tr" CultureCodeZhNegativecn CultureCode = "zh-cn" CultureCodeZhNegativetw CultureCode = "zh-tw" )
func (*CultureCode) UnmarshalJSON ¶
func (s *CultureCode) UnmarshalJSON(bytes []byte) error
type CurrentSpend ¶
type DeleteOperationResponse ¶
type ForecastSpend ¶
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListOperationResponse ¶
type Notification ¶
type Notification struct { ContactEmails []string `json:"contactEmails"` ContactGroups *[]string `json:"contactGroups,omitempty"` ContactRoles *[]string `json:"contactRoles,omitempty"` Enabled bool `json:"enabled"` Locale *CultureCode `json:"locale,omitempty"` Operator OperatorType `json:"operator"` Threshold float64 `json:"threshold"` ThresholdType *ThresholdType `json:"thresholdType,omitempty"` }
type OperatorType ¶
type OperatorType string
const ( OperatorTypeEqualTo OperatorType = "EqualTo" OperatorTypeGreaterThan OperatorType = "GreaterThan" OperatorTypeGreaterThanOrEqualTo OperatorType = "GreaterThanOrEqualTo" )
func (*OperatorType) UnmarshalJSON ¶
func (s *OperatorType) UnmarshalJSON(bytes []byte) error
type ScopedBudgetId ¶
ScopedBudgetId is a struct representing the Resource ID for a Scoped Budget
func NewScopedBudgetID ¶
func NewScopedBudgetID(scope string, budgetName string) ScopedBudgetId
NewScopedBudgetID returns a new ScopedBudgetId struct
func ParseScopedBudgetID ¶
func ParseScopedBudgetID(input string) (*ScopedBudgetId, error)
ParseScopedBudgetID parses 'input' into a ScopedBudgetId
func ParseScopedBudgetIDInsensitively ¶
func ParseScopedBudgetIDInsensitively(input string) (*ScopedBudgetId, error)
ParseScopedBudgetIDInsensitively parses 'input' case-insensitively into a ScopedBudgetId note: this method should only be used for API response data and not user input
func (*ScopedBudgetId) FromParseResult ¶
func (id *ScopedBudgetId) FromParseResult(input resourceids.ParseResult) error
func (ScopedBudgetId) ID ¶
func (id ScopedBudgetId) ID() string
ID returns the formatted Scoped Budget ID
func (ScopedBudgetId) Segments ¶
func (id ScopedBudgetId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Budget ID
func (ScopedBudgetId) String ¶
func (id ScopedBudgetId) String() string
String returns a human-readable description of this Scoped Budget ID
type ThresholdType ¶
type ThresholdType string
const (
ThresholdTypeActual ThresholdType = "Actual"
)
func (*ThresholdType) UnmarshalJSON ¶
func (s *ThresholdType) UnmarshalJSON(bytes []byte) error
type TimeGrainType ¶
type TimeGrainType string
const ( TimeGrainTypeAnnually TimeGrainType = "Annually" TimeGrainTypeBillingAnnual TimeGrainType = "BillingAnnual" TimeGrainTypeBillingMonth TimeGrainType = "BillingMonth" TimeGrainTypeBillingQuarter TimeGrainType = "BillingQuarter" TimeGrainTypeMonthly TimeGrainType = "Monthly" TimeGrainTypeQuarterly TimeGrainType = "Quarterly" )
func (*TimeGrainType) UnmarshalJSON ¶
func (s *TimeGrainType) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_scopedbudget.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- model_budget.go
- model_budgetcomparisonexpression.go
- model_budgetfilter.go
- model_budgetfilterproperties.go
- model_budgetproperties.go
- model_budgettimeperiod.go
- model_currentspend.go
- model_forecastspend.go
- model_notification.go
- predicates.go
- version.go