Documentation ¶
Index ¶
- func PossibleValuesForCostThresholdStatus() []string
- func PossibleValuesForCostType() []string
- func PossibleValuesForReportingCycleType() []string
- func PossibleValuesForTargetCostStatus() []string
- func ValidateCostID(input interface{}, key string) (warnings []string, errors []error)
- type CostId
- type CostThresholdProperties
- type CostThresholdStatus
- type CostType
- type CostsClient
- type CreateOrUpdateOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type LabCost
- type LabCostDetailsProperties
- type LabCostProperties
- func (o *LabCostProperties) GetCreatedDateAsTime() (*time.Time, error)
- func (o *LabCostProperties) GetEndDateTimeAsTime() (*time.Time, error)
- func (o *LabCostProperties) GetStartDateTimeAsTime() (*time.Time, error)
- func (o *LabCostProperties) SetCreatedDateAsTime(input time.Time)
- func (o *LabCostProperties) SetEndDateTimeAsTime(input time.Time)
- func (o *LabCostProperties) SetStartDateTimeAsTime(input time.Time)
- type LabCostSummaryProperties
- type LabResourceCostProperties
- type PercentageCostThresholdProperties
- type ReportingCycleType
- type TargetCostProperties
- func (o *TargetCostProperties) GetCycleEndDateTimeAsTime() (*time.Time, error)
- func (o *TargetCostProperties) GetCycleStartDateTimeAsTime() (*time.Time, error)
- func (o *TargetCostProperties) SetCycleEndDateTimeAsTime(input time.Time)
- func (o *TargetCostProperties) SetCycleStartDateTimeAsTime(input time.Time)
- type TargetCostStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCostThresholdStatus ¶
func PossibleValuesForCostThresholdStatus() []string
func PossibleValuesForCostType ¶
func PossibleValuesForCostType() []string
func PossibleValuesForReportingCycleType ¶
func PossibleValuesForReportingCycleType() []string
func PossibleValuesForTargetCostStatus ¶
func PossibleValuesForTargetCostStatus() []string
func ValidateCostID ¶
ValidateCostID checks that 'input' can be parsed as a Cost ID
Types ¶
type CostId ¶
type CostId struct { SubscriptionId string ResourceGroupName string LabName string CostName string }
CostId is a struct representing the Resource ID for a Cost
func NewCostID ¶
func NewCostID(subscriptionId string, resourceGroupName string, labName string, costName string) CostId
NewCostID returns a new CostId struct
func ParseCostID ¶
ParseCostID parses 'input' into a CostId
func ParseCostIDInsensitively ¶
ParseCostIDInsensitively parses 'input' case-insensitively into a CostId note: this method should only be used for API response data and not user input
func (*CostId) FromParseResult ¶
func (id *CostId) FromParseResult(input resourceids.ParseResult) error
func (CostId) Segments ¶
func (id CostId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cost ID
type CostThresholdProperties ¶
type CostThresholdProperties struct { DisplayOnChart *CostThresholdStatus `json:"displayOnChart,omitempty"` NotificationSent *string `json:"notificationSent,omitempty"` PercentageThreshold *PercentageCostThresholdProperties `json:"percentageThreshold,omitempty"` SendNotificationWhenExceeded *CostThresholdStatus `json:"sendNotificationWhenExceeded,omitempty"` ThresholdId *string `json:"thresholdId,omitempty"` }
type CostThresholdStatus ¶
type CostThresholdStatus string
const ( CostThresholdStatusDisabled CostThresholdStatus = "Disabled" CostThresholdStatusEnabled CostThresholdStatus = "Enabled" )
func (*CostThresholdStatus) UnmarshalJSON ¶
func (s *CostThresholdStatus) UnmarshalJSON(bytes []byte) error
type CostsClient ¶
type CostsClient struct {
Client *resourcemanager.Client
}
func NewCostsClientWithBaseURI ¶
func NewCostsClientWithBaseURI(sdkApi sdkEnv.Api) (*CostsClient, error)
func (CostsClient) CreateOrUpdate ¶
func (c CostsClient) CreateOrUpdate(ctx context.Context, id CostId, input LabCost) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CostsClient) Get ¶
func (c CostsClient) Get(ctx context.Context, id CostId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type LabCostDetailsProperties ¶
type LabCostDetailsProperties struct { Cost *float64 `json:"cost,omitempty"` CostType *CostType `json:"costType,omitempty"` Date *string `json:"date,omitempty"` }
func (*LabCostDetailsProperties) GetDateAsTime ¶
func (o *LabCostDetailsProperties) GetDateAsTime() (*time.Time, error)
func (*LabCostDetailsProperties) SetDateAsTime ¶
func (o *LabCostDetailsProperties) SetDateAsTime(input time.Time)
type LabCostProperties ¶
type LabCostProperties struct { CreatedDate *string `json:"createdDate,omitempty"` CurrencyCode *string `json:"currencyCode,omitempty"` EndDateTime *string `json:"endDateTime,omitempty"` LabCostDetails *[]LabCostDetailsProperties `json:"labCostDetails,omitempty"` LabCostSummary *LabCostSummaryProperties `json:"labCostSummary,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ResourceCosts *[]LabResourceCostProperties `json:"resourceCosts,omitempty"` StartDateTime *string `json:"startDateTime,omitempty"` TargetCost *TargetCostProperties `json:"targetCost,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
func (*LabCostProperties) GetCreatedDateAsTime ¶
func (o *LabCostProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*LabCostProperties) GetEndDateTimeAsTime ¶
func (o *LabCostProperties) GetEndDateTimeAsTime() (*time.Time, error)
func (*LabCostProperties) GetStartDateTimeAsTime ¶
func (o *LabCostProperties) GetStartDateTimeAsTime() (*time.Time, error)
func (*LabCostProperties) SetCreatedDateAsTime ¶
func (o *LabCostProperties) SetCreatedDateAsTime(input time.Time)
func (*LabCostProperties) SetEndDateTimeAsTime ¶
func (o *LabCostProperties) SetEndDateTimeAsTime(input time.Time)
func (*LabCostProperties) SetStartDateTimeAsTime ¶
func (o *LabCostProperties) SetStartDateTimeAsTime(input time.Time)
type LabCostSummaryProperties ¶
type LabCostSummaryProperties struct {
EstimatedLabCost *float64 `json:"estimatedLabCost,omitempty"`
}
type LabResourceCostProperties ¶
type LabResourceCostProperties struct { ExternalResourceId *string `json:"externalResourceId,omitempty"` ResourceCost *float64 `json:"resourceCost,omitempty"` ResourceId *string `json:"resourceId,omitempty"` ResourceOwner *string `json:"resourceOwner,omitempty"` ResourcePricingTier *string `json:"resourcePricingTier,omitempty"` ResourceStatus *string `json:"resourceStatus,omitempty"` ResourceType *string `json:"resourceType,omitempty"` ResourceUId *string `json:"resourceUId,omitempty"` Resourcename *string `json:"resourcename,omitempty"` }
type PercentageCostThresholdProperties ¶
type PercentageCostThresholdProperties struct {
ThresholdValue *float64 `json:"thresholdValue,omitempty"`
}
type ReportingCycleType ¶
type ReportingCycleType string
const ( ReportingCycleTypeCalendarMonth ReportingCycleType = "CalendarMonth" ReportingCycleTypeCustom ReportingCycleType = "Custom" )
func (*ReportingCycleType) UnmarshalJSON ¶
func (s *ReportingCycleType) UnmarshalJSON(bytes []byte) error
type TargetCostProperties ¶
type TargetCostProperties struct { CostThresholds *[]CostThresholdProperties `json:"costThresholds,omitempty"` CycleEndDateTime *string `json:"cycleEndDateTime,omitempty"` CycleStartDateTime *string `json:"cycleStartDateTime,omitempty"` CycleType *ReportingCycleType `json:"cycleType,omitempty"` Status *TargetCostStatus `json:"status,omitempty"` Target *int64 `json:"target,omitempty"` }
func (*TargetCostProperties) GetCycleEndDateTimeAsTime ¶
func (o *TargetCostProperties) GetCycleEndDateTimeAsTime() (*time.Time, error)
func (*TargetCostProperties) GetCycleStartDateTimeAsTime ¶
func (o *TargetCostProperties) GetCycleStartDateTimeAsTime() (*time.Time, error)
func (*TargetCostProperties) SetCycleEndDateTimeAsTime ¶
func (o *TargetCostProperties) SetCycleEndDateTimeAsTime(input time.Time)
func (*TargetCostProperties) SetCycleStartDateTimeAsTime ¶
func (o *TargetCostProperties) SetCycleStartDateTimeAsTime(input time.Time)
type TargetCostStatus ¶
type TargetCostStatus string
const ( TargetCostStatusDisabled TargetCostStatus = "Disabled" TargetCostStatusEnabled TargetCostStatus = "Enabled" )
func (*TargetCostStatus) UnmarshalJSON ¶
func (s *TargetCostStatus) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_cost.go
- method_createorupdate.go
- method_get.go
- model_costthresholdproperties.go
- model_labcost.go
- model_labcostdetailsproperties.go
- model_labcostproperties.go
- model_labcostsummaryproperties.go
- model_labresourcecostproperties.go
- model_percentagecostthresholdproperties.go
- model_targetcostproperties.go
- version.go
Click to show internal directories.
Click to hide internal directories.