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 ListByBillingProfileOperationOptions
- type ListByBillingProfileOperationResponse
- type ListCompleteResult
- 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) (resp ListOperationResponse, err error)
- func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, ...) (resp ListByBillingProfileOperationResponse, err error)
- func (c ReservationTransactionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, ...) (ListByBillingProfileCompleteResult, error)
- func (c ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, ...) (resp 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, ...) (resp 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) 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) 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"` 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"` 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 {
Items []ModernReservationTransaction
}
type ListByBillingProfileOperationOptions ¶
type ListByBillingProfileOperationOptions struct {
Filter *string
}
func DefaultListByBillingProfileOperationOptions ¶
func DefaultListByBillingProfileOperationOptions() ListByBillingProfileOperationOptions
type ListByBillingProfileOperationResponse ¶
type ListByBillingProfileOperationResponse struct { HttpResponse *http.Response Model *[]ModernReservationTransaction // contains filtered or unexported fields }
func (ListByBillingProfileOperationResponse) HasMore ¶
func (r ListByBillingProfileOperationResponse) HasMore() bool
func (ListByBillingProfileOperationResponse) LoadMore ¶
func (r ListByBillingProfileOperationResponse) LoadMore(ctx context.Context) (resp ListByBillingProfileOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []ReservationTransaction
}
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]ReservationTransaction // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
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 autorest.Client // contains filtered or unexported fields }
func NewReservationTransactionsClientWithBaseURI ¶
func NewReservationTransactionsClientWithBaseURI(endpoint string) ReservationTransactionsClient
func (ReservationTransactionsClient) List ¶
func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (ReservationTransactionsClient) ListByBillingProfile ¶
func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (resp ListByBillingProfileOperationResponse, err error)
ListByBillingProfile ...
func (ReservationTransactionsClient) ListByBillingProfileComplete ¶
func (c ReservationTransactionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (ListByBillingProfileCompleteResult, error)
ListByBillingProfileComplete retrieves all of the results into a single object
func (ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate ¶
func (c ReservationTransactionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions, predicate ModernReservationTransactionOperationPredicate) (resp ListByBillingProfileCompleteResult, err error)
ListByBillingProfileCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ReservationTransactionsClient) ListComplete ¶
func (c ReservationTransactionsClient) ListComplete(ctx context.Context, id BillingAccountId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ReservationTransactionsClient) ListCompleteMatchingPredicate ¶
func (c ReservationTransactionsClient) ListCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListOperationOptions, predicate ReservationTransactionOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
Source Files ¶
- client.go
- id_billingaccount.go
- id_billingprofile.go
- method_list_autorest.go
- method_listbybillingprofile_autorest.go
- model_legacyreservationtransactionproperties.go
- model_modernreservationtransaction.go
- model_modernreservationtransactionproperties.go
- model_reservationtransaction.go
- predicates.go
- version.go