Documentation ¶
Index ¶
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)
- type BillingAccountId
- type BillingProfileId
- type LegacyReservationTransactionProperties
- type ListByBillingProfileCompleteResult
- type ListByBillingProfileCustomPager
- type ListByBillingProfileOperationOptions
- type ListByBillingProfileOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type ModernReservationTransaction
- type ModernReservationTransactionOperationPredicate
- type ModernReservationTransactionProperties
- type ReservationTransaction
- type ReservationTransactionOperationPredicate
- type ReservationTransactionsClient
- func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileOperationResponse, err error)
- func (c ReservationTransactionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, ...) (ListByBillingProfileCompleteResult, error)
- func (c ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileCompleteResult, err error)
- func (c ReservationTransactionsClient) ListComplete(ctx context.Context, id BillingAccountId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ReservationTransactionsClient) ListCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateBillingProfileID ¶
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile 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 ¶
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 BillingProfileId ¶
BillingProfileId is a struct representing the Resource ID for a Billing Profile
func NewBillingProfileID ¶
func NewBillingProfileID(billingAccountId string, billingProfileId string) BillingProfileId
NewBillingProfileID returns a new BillingProfileId struct
func ParseBillingProfileID ¶
func ParseBillingProfileID(input string) (*BillingProfileId, error)
ParseBillingProfileID parses 'input' into a BillingProfileId
func ParseBillingProfileIDInsensitively ¶
func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)
ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input
func (*BillingProfileId) FromParseResult ¶
func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error
func (BillingProfileId) ID ¶
func (id BillingProfileId) ID() string
ID returns the formatted Billing Profile ID
func (BillingProfileId) Segments ¶
func (id BillingProfileId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID
func (BillingProfileId) String ¶
func (id BillingProfileId) String() string
String returns a human-readable description of this Billing Profile ID
type LegacyReservationTransactionProperties ¶
type LegacyReservationTransactionProperties struct { AccountName *string `json:"accountName,omitempty"` AccountOwnerEmail *string `json:"accountOwnerEmail,omitempty"` Amount *float64 `json:"amount,omitempty"` ArmSkuName *string `json:"armSkuName,omitempty"` BillingFrequency *string `json:"billingFrequency,omitempty"` BillingMonth *int64 `json:"billingMonth,omitempty"` CostCenter *string `json:"costCenter,omitempty"` Currency *string `json:"currency,omitempty"` CurrentEnrollment *string `json:"currentEnrollment,omitempty"` DepartmentName *string `json:"departmentName,omitempty"` Description *string `json:"description,omitempty"` EventDate *string `json:"eventDate,omitempty"` EventType *string `json:"eventType,omitempty"` MonetaryCommitment *float64 `json:"monetaryCommitment,omitempty"` Overage *float64 `json:"overage,omitempty"` PurchasingEnrollment *string `json:"purchasingEnrollment,omitempty"` PurchasingSubscriptionGuid *string `json:"purchasingSubscriptionGuid,omitempty"` PurchasingSubscriptionName *string `json:"purchasingSubscriptionName,omitempty"` Quantity *float64 `json:"quantity,omitempty"` Region *string `json:"region,omitempty"` ReservationOrderId *string `json:"reservationOrderId,omitempty"` ReservationOrderName *string `json:"reservationOrderName,omitempty"` Term *string `json:"term,omitempty"` }
func (*LegacyReservationTransactionProperties) GetEventDateAsTime ¶
func (o *LegacyReservationTransactionProperties) GetEventDateAsTime() (*time.Time, error)
func (*LegacyReservationTransactionProperties) SetEventDateAsTime ¶
func (o *LegacyReservationTransactionProperties) SetEventDateAsTime(input time.Time)
type ListByBillingProfileCompleteResult ¶
type ListByBillingProfileCompleteResult struct { LatestHttpResponse *http.Response Items []ModernReservationTransaction }
type ListByBillingProfileCustomPager ¶ added in v0.20240628.1153531
func (*ListByBillingProfileCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link
type ListByBillingProfileOperationOptions ¶
type ListByBillingProfileOperationOptions struct {
Filter *string
}
func DefaultListByBillingProfileOperationOptions ¶
func DefaultListByBillingProfileOperationOptions() ListByBillingProfileOperationOptions
func (ListByBillingProfileOperationOptions) ToHeaders ¶
func (o ListByBillingProfileOperationOptions) ToHeaders() *client.Headers
func (ListByBillingProfileOperationOptions) ToOData ¶
func (o ListByBillingProfileOperationOptions) ToOData() *odata.Query
func (ListByBillingProfileOperationOptions) ToQuery ¶
func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams
type ListByBillingProfileOperationResponse ¶
type ListByBillingProfileOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ModernReservationTransaction }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationTransaction }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationTransaction }
type ModernReservationTransaction ¶
type ModernReservationTransaction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties ModernReservationTransactionProperties `json:"properties"` Tags *[]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ModernReservationTransactionOperationPredicate ¶
func (ModernReservationTransactionOperationPredicate) Matches ¶
func (p ModernReservationTransactionOperationPredicate) Matches(input ModernReservationTransaction) bool
type ModernReservationTransactionProperties ¶
type ModernReservationTransactionProperties struct { Amount *float64 `json:"amount,omitempty"` ArmSkuName *string `json:"armSkuName,omitempty"` BillingFrequency *string `json:"billingFrequency,omitempty"` BillingProfileId *string `json:"billingProfileId,omitempty"` BillingProfileName *string `json:"billingProfileName,omitempty"` Currency *string `json:"currency,omitempty"` Description *string `json:"description,omitempty"` EventDate *string `json:"eventDate,omitempty"` EventType *string `json:"eventType,omitempty"` Invoice *string `json:"invoice,omitempty"` InvoiceId *string `json:"invoiceId,omitempty"` InvoiceSectionId *string `json:"invoiceSectionId,omitempty"` InvoiceSectionName *string `json:"invoiceSectionName,omitempty"` PurchasingSubscriptionGuid *string `json:"purchasingSubscriptionGuid,omitempty"` PurchasingSubscriptionName *string `json:"purchasingSubscriptionName,omitempty"` Quantity *float64 `json:"quantity,omitempty"` Region *string `json:"region,omitempty"` ReservationOrderId *string `json:"reservationOrderId,omitempty"` ReservationOrderName *string `json:"reservationOrderName,omitempty"` Term *string `json:"term,omitempty"` }
func (*ModernReservationTransactionProperties) GetEventDateAsTime ¶
func (o *ModernReservationTransactionProperties) GetEventDateAsTime() (*time.Time, error)
func (*ModernReservationTransactionProperties) SetEventDateAsTime ¶
func (o *ModernReservationTransactionProperties) SetEventDateAsTime(input time.Time)
type ReservationTransaction ¶
type ReservationTransaction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *LegacyReservationTransactionProperties `json:"properties,omitempty"` Tags *[]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ReservationTransactionOperationPredicate ¶
func (ReservationTransactionOperationPredicate) Matches ¶
func (p ReservationTransactionOperationPredicate) Matches(input ReservationTransaction) bool
type ReservationTransactionsClient ¶
type ReservationTransactionsClient struct {
Client *resourcemanager.Client
}
func NewReservationTransactionsClientWithBaseURI ¶
func NewReservationTransactionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationTransactionsClient, error)
func (ReservationTransactionsClient) List ¶
func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ReservationTransactionsClient) ListByBillingProfile ¶
func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error)
ListByBillingProfile ...
func (ReservationTransactionsClient) ListByBillingProfileComplete ¶
func (c ReservationTransactionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (ListByBillingProfileCompleteResult, error)
ListByBillingProfileComplete retrieves all the results into a single object
func (ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate ¶
func (c ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions, predicate ModernReservationTransactionOperationPredicate) (result ListByBillingProfileCompleteResult, err error)
ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationTransactionsClient) ListComplete ¶
func (c ReservationTransactionsClient) ListComplete(ctx context.Context, id BillingAccountId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReservationTransactionsClient) ListCompleteMatchingPredicate ¶
func (c ReservationTransactionsClient) ListCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListOperationOptions, predicate ReservationTransactionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate