Documentation ¶
Index ¶
- func PossibleValuesForCostAllocationPolicyType() []string
- func PossibleValuesForCostAllocationResourceType() []string
- func PossibleValuesForReason() []string
- func PossibleValuesForRuleStatus() []string
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCostAllocationRuleID(input interface{}, key string) (warnings []string, errors []error)
- type BillingAccountId
- type CheckNameAvailabilityOperationResponse
- type CostAllocationPolicyType
- type CostAllocationProportion
- type CostAllocationResourceType
- type CostAllocationRuleCheckNameAvailabilityRequest
- type CostAllocationRuleCheckNameAvailabilityResponse
- type CostAllocationRuleDefinition
- type CostAllocationRuleDefinitionOperationPredicate
- type CostAllocationRuleDetails
- type CostAllocationRuleId
- type CostAllocationRuleProperties
- func (o *CostAllocationRuleProperties) GetCreatedDateAsTime() (*time.Time, error)
- func (o *CostAllocationRuleProperties) GetUpdatedDateAsTime() (*time.Time, error)
- func (o *CostAllocationRuleProperties) SetCreatedDateAsTime(input time.Time)
- func (o *CostAllocationRuleProperties) SetUpdatedDateAsTime(input time.Time)
- type CostAllocationRulesClient
- func (c CostAllocationRulesClient) CheckNameAvailability(ctx context.Context, id BillingAccountId, ...) (result CheckNameAvailabilityOperationResponse, err error)
- func (c CostAllocationRulesClient) CreateOrUpdate(ctx context.Context, id CostAllocationRuleId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c CostAllocationRulesClient) Delete(ctx context.Context, id CostAllocationRuleId) (result DeleteOperationResponse, err error)
- func (c CostAllocationRulesClient) Get(ctx context.Context, id CostAllocationRuleId) (result GetOperationResponse, err error)
- func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId) (result ListOperationResponse, err error)
- func (c CostAllocationRulesClient) ListComplete(ctx context.Context, id BillingAccountId) (ListCompleteResult, error)
- func (c CostAllocationRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListCompleteResult, err error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type Reason
- type RuleStatus
- type SourceCostAllocationResource
- type TargetCostAllocationResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCostAllocationPolicyType ¶
func PossibleValuesForCostAllocationPolicyType() []string
func PossibleValuesForCostAllocationResourceType ¶
func PossibleValuesForCostAllocationResourceType() []string
func PossibleValuesForReason ¶
func PossibleValuesForReason() []string
func PossibleValuesForRuleStatus ¶
func PossibleValuesForRuleStatus() []string
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateCostAllocationRuleID ¶
func ValidateCostAllocationRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateCostAllocationRuleID checks that 'input' can be parsed as a Cost Allocation Rule ID
Types ¶
type BillingAccountId ¶
type BillingAccountId struct {
BillingAccountId string
}
BillingAccountId is a struct representing the Resource ID for a Billing Account
func NewBillingAccountID ¶
func NewBillingAccountID(billingAccountId string) BillingAccountId
NewBillingAccountID returns a new BillingAccountId struct
func ParseBillingAccountID ¶
func ParseBillingAccountID(input string) (*BillingAccountId, error)
ParseBillingAccountID parses 'input' into a BillingAccountId
func ParseBillingAccountIDInsensitively ¶
func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)
ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input
func (*BillingAccountId) FromParseResult ¶ added in v0.20231127.1171502
func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error
func (BillingAccountId) ID ¶
func (id BillingAccountId) ID() string
ID returns the formatted Billing Account ID
func (BillingAccountId) Segments ¶
func (id BillingAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Account ID
func (BillingAccountId) String ¶
func (id BillingAccountId) String() string
String returns a human-readable description of this Billing Account ID
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CostAllocationRuleCheckNameAvailabilityResponse }
type CostAllocationPolicyType ¶
type CostAllocationPolicyType string
const (
CostAllocationPolicyTypeFixedProportion CostAllocationPolicyType = "FixedProportion"
)
func (*CostAllocationPolicyType) UnmarshalJSON ¶
func (s *CostAllocationPolicyType) UnmarshalJSON(bytes []byte) error
type CostAllocationResourceType ¶
type CostAllocationResourceType string
const ( CostAllocationResourceTypeDimension CostAllocationResourceType = "Dimension" CostAllocationResourceTypeTag CostAllocationResourceType = "Tag" )
func (*CostAllocationResourceType) UnmarshalJSON ¶
func (s *CostAllocationResourceType) UnmarshalJSON(bytes []byte) error
type CostAllocationRuleDefinition ¶
type CostAllocationRuleDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CostAllocationRuleProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type CostAllocationRuleDefinitionOperationPredicate ¶
func (CostAllocationRuleDefinitionOperationPredicate) Matches ¶
func (p CostAllocationRuleDefinitionOperationPredicate) Matches(input CostAllocationRuleDefinition) bool
type CostAllocationRuleDetails ¶
type CostAllocationRuleDetails struct { SourceResources *[]SourceCostAllocationResource `json:"sourceResources,omitempty"` TargetResources *[]TargetCostAllocationResource `json:"targetResources,omitempty"` }
type CostAllocationRuleId ¶
CostAllocationRuleId is a struct representing the Resource ID for a Cost Allocation Rule
func NewCostAllocationRuleID ¶
func NewCostAllocationRuleID(billingAccountId string, costAllocationRuleName string) CostAllocationRuleId
NewCostAllocationRuleID returns a new CostAllocationRuleId struct
func ParseCostAllocationRuleID ¶
func ParseCostAllocationRuleID(input string) (*CostAllocationRuleId, error)
ParseCostAllocationRuleID parses 'input' into a CostAllocationRuleId
func ParseCostAllocationRuleIDInsensitively ¶
func ParseCostAllocationRuleIDInsensitively(input string) (*CostAllocationRuleId, error)
ParseCostAllocationRuleIDInsensitively parses 'input' case-insensitively into a CostAllocationRuleId note: this method should only be used for API response data and not user input
func (*CostAllocationRuleId) FromParseResult ¶ added in v0.20231127.1171502
func (id *CostAllocationRuleId) FromParseResult(input resourceids.ParseResult) error
func (CostAllocationRuleId) ID ¶
func (id CostAllocationRuleId) ID() string
ID returns the formatted Cost Allocation Rule ID
func (CostAllocationRuleId) Segments ¶
func (id CostAllocationRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cost Allocation Rule ID
func (CostAllocationRuleId) String ¶
func (id CostAllocationRuleId) String() string
String returns a human-readable description of this Cost Allocation Rule ID
type CostAllocationRuleProperties ¶
type CostAllocationRuleProperties struct { CreatedDate *string `json:"createdDate,omitempty"` Description *string `json:"description,omitempty"` Details CostAllocationRuleDetails `json:"details"` Status RuleStatus `json:"status"` UpdatedDate *string `json:"updatedDate,omitempty"` }
func (*CostAllocationRuleProperties) GetCreatedDateAsTime ¶
func (o *CostAllocationRuleProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*CostAllocationRuleProperties) GetUpdatedDateAsTime ¶
func (o *CostAllocationRuleProperties) GetUpdatedDateAsTime() (*time.Time, error)
func (*CostAllocationRuleProperties) SetCreatedDateAsTime ¶
func (o *CostAllocationRuleProperties) SetCreatedDateAsTime(input time.Time)
func (*CostAllocationRuleProperties) SetUpdatedDateAsTime ¶
func (o *CostAllocationRuleProperties) SetUpdatedDateAsTime(input time.Time)
type CostAllocationRulesClient ¶
type CostAllocationRulesClient struct {
Client *resourcemanager.Client
}
func NewCostAllocationRulesClientWithBaseURI ¶
func NewCostAllocationRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*CostAllocationRulesClient, error)
func (CostAllocationRulesClient) CheckNameAvailability ¶
func (c CostAllocationRulesClient) CheckNameAvailability(ctx context.Context, id BillingAccountId, input CostAllocationRuleCheckNameAvailabilityRequest) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (CostAllocationRulesClient) CreateOrUpdate ¶
func (c CostAllocationRulesClient) CreateOrUpdate(ctx context.Context, id CostAllocationRuleId, input CostAllocationRuleDefinition) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CostAllocationRulesClient) Delete ¶
func (c CostAllocationRulesClient) Delete(ctx context.Context, id CostAllocationRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (CostAllocationRulesClient) Get ¶
func (c CostAllocationRulesClient) Get(ctx context.Context, id CostAllocationRuleId) (result GetOperationResponse, err error)
Get ...
func (CostAllocationRulesClient) List ¶
func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId) (result ListOperationResponse, err error)
List ...
func (CostAllocationRulesClient) ListComplete ¶
func (c CostAllocationRulesClient) ListComplete(ctx context.Context, id BillingAccountId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CostAllocationRulesClient) ListCompleteMatchingPredicate ¶
func (c CostAllocationRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, predicate CostAllocationRuleDefinitionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CostAllocationRuleDefinition }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CostAllocationRuleDefinition }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []CostAllocationRuleDefinition }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CostAllocationRuleDefinition }
type RuleStatus ¶
type RuleStatus string
const ( RuleStatusActive RuleStatus = "Active" RuleStatusNotActive RuleStatus = "NotActive" RuleStatusProcessing RuleStatus = "Processing" )
func (*RuleStatus) UnmarshalJSON ¶
func (s *RuleStatus) UnmarshalJSON(bytes []byte) error
type SourceCostAllocationResource ¶
type SourceCostAllocationResource struct { Name string `json:"name"` ResourceType CostAllocationResourceType `json:"resourceType"` Values []string `json:"values"` }
type TargetCostAllocationResource ¶
type TargetCostAllocationResource struct { Name string `json:"name"` PolicyType CostAllocationPolicyType `json:"policyType"` ResourceType CostAllocationResourceType `json:"resourceType"` Values []CostAllocationProportion `json:"values"` }
Source Files ¶
- client.go
- constants.go
- id_billingaccount.go
- id_costallocationrule.go
- method_checknameavailability.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- model_costallocationproportion.go
- model_costallocationrulechecknameavailabilityrequest.go
- model_costallocationrulechecknameavailabilityresponse.go
- model_costallocationruledefinition.go
- model_costallocationruledetails.go
- model_costallocationruleproperties.go
- model_sourcecostallocationresource.go
- model_targetcostallocationresource.go
- predicates.go
- version.go