Documentation ¶
Index ¶
- func PossibleValuesForEventType() []string
- type Amount
- type AmountWithExchangeRate
- type EventProperties
- type EventSummary
- type EventSummaryOperationPredicate
- type EventType
- type EventsClient
- func (c EventsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c EventsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
- func (c EventsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type Reseller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEventType ¶
func PossibleValuesForEventType() []string
Types ¶
type AmountWithExchangeRate ¶
type EventProperties ¶
type EventProperties struct { Adjustments *Amount `json:"adjustments,omitempty"` AdjustmentsInBillingCurrency *AmountWithExchangeRate `json:"adjustmentsInBillingCurrency,omitempty"` BillingCurrency *string `json:"billingCurrency,omitempty"` Charges *Amount `json:"charges,omitempty"` ChargesInBillingCurrency *AmountWithExchangeRate `json:"chargesInBillingCurrency,omitempty"` ClosedBalance *Amount `json:"closedBalance,omitempty"` ClosedBalanceInBillingCurrency *AmountWithExchangeRate `json:"closedBalanceInBillingCurrency,omitempty"` CreditCurrency *string `json:"creditCurrency,omitempty"` CreditExpired *Amount `json:"creditExpired,omitempty"` CreditExpiredInBillingCurrency *AmountWithExchangeRate `json:"creditExpiredInBillingCurrency,omitempty"` Description *string `json:"description,omitempty"` EventType *EventType `json:"eventType,omitempty"` InvoiceNumber *string `json:"invoiceNumber,omitempty"` NewCredit *Amount `json:"newCredit,omitempty"` NewCreditInBillingCurrency *AmountWithExchangeRate `json:"newCreditInBillingCurrency,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` TransactionDate *string `json:"transactionDate,omitempty"` }
func (*EventProperties) GetTransactionDateAsTime ¶
func (o *EventProperties) GetTransactionDateAsTime() (*time.Time, error)
func (*EventProperties) SetTransactionDateAsTime ¶
func (o *EventProperties) SetTransactionDateAsTime(input time.Time)
type EventSummary ¶
type EventSummary struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *EventProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type EventSummaryOperationPredicate ¶
func (EventSummaryOperationPredicate) Matches ¶
func (p EventSummaryOperationPredicate) Matches(input EventSummary) bool
type EventType ¶
type EventType string
const ( EventTypeNewCredit EventType = "NewCredit" EventTypePendingAdjustments EventType = "PendingAdjustments" EventTypePendingCharges EventType = "PendingCharges" EventTypePendingExpiredCredit EventType = "PendingExpiredCredit" EventTypePendingNewCredit EventType = "PendingNewCredit" EventTypeSettledCharges EventType = "SettledCharges" EventTypeUnKnown EventType = "UnKnown" )
func (*EventType) UnmarshalJSON ¶
type EventsClient ¶
type EventsClient struct {
Client *resourcemanager.Client
}
func NewEventsClientWithBaseURI ¶
func NewEventsClientWithBaseURI(api environments.Api) (*EventsClient, error)
func (EventsClient) List ¶
func (c EventsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (EventsClient) ListComplete ¶
func (c EventsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (EventsClient) ListCompleteMatchingPredicate ¶
func (c EventsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate EventSummaryOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []EventSummary
}
type ListOperationOptions ¶
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 *[]EventSummary }
Click to show internal directories.
Click to hide internal directories.