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 ListByBillingAccountCompleteResult
- type ListByBillingAccountCustomPager
- type ListByBillingAccountOperationOptions
- type ListByBillingAccountOperationResponse
- type ListByBillingProfileCompleteResult
- type ListByBillingProfileCustomPager
- type ListByBillingProfileOperationOptions
- type ListByBillingProfileOperationResponse
- type Reservation
- type ReservationOperationPredicate
- type ReservationProperty
- type ReservationPropertyUtilization
- type ReservationSkuProperty
- type ReservationUtilizationAggregates
- type ReservationsClient
- func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error)
- func (c ReservationsClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountCompleteResult, error)
- func (c ReservationsClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error)
- func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileOperationResponse, err error)
- func (c ReservationsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, ...) (ListByBillingProfileCompleteResult, error)
- func (c ReservationsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileCompleteResult, 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 {
BillingAccountName string
}
BillingAccountId is a struct representing the Resource ID for a Billing Account
func NewBillingAccountID ¶
func NewBillingAccountID(billingAccountName 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(billingAccountName string, billingProfileName 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 ListByBillingAccountCompleteResult ¶
type ListByBillingAccountCompleteResult struct { LatestHttpResponse *http.Response Items []Reservation }
type ListByBillingAccountCustomPager ¶ added in v0.20240628.1153531
func (*ListByBillingAccountCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link
type ListByBillingAccountOperationOptions ¶
type ListByBillingAccountOperationOptions struct { Filter *string Orderby *string RefreshSummary *string SelectedState *string }
func DefaultListByBillingAccountOperationOptions ¶
func DefaultListByBillingAccountOperationOptions() ListByBillingAccountOperationOptions
func (ListByBillingAccountOperationOptions) ToHeaders ¶
func (o ListByBillingAccountOperationOptions) ToHeaders() *client.Headers
func (ListByBillingAccountOperationOptions) ToOData ¶
func (o ListByBillingAccountOperationOptions) ToOData() *odata.Query
func (ListByBillingAccountOperationOptions) ToQuery ¶
func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams
type ListByBillingAccountOperationResponse ¶
type ListByBillingAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Reservation }
type ListByBillingProfileCompleteResult ¶
type ListByBillingProfileCompleteResult struct { LatestHttpResponse *http.Response Items []Reservation }
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 Orderby *string RefreshSummary *string SelectedState *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 *[]Reservation }
type Reservation ¶
type Reservation struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ReservationProperty `json:"properties,omitempty"` Sku *ReservationSkuProperty `json:"sku,omitempty"` Type *string `json:"type,omitempty"` }
type ReservationOperationPredicate ¶
func (ReservationOperationPredicate) Matches ¶
func (p ReservationOperationPredicate) Matches(input Reservation) bool
type ReservationProperty ¶
type ReservationProperty struct { AppliedScopeType *string `json:"appliedScopeType,omitempty"` AppliedScopes *[]string `json:"appliedScopes,omitempty"` DisplayName *string `json:"displayName,omitempty"` DisplayProvisioningState *string `json:"displayProvisioningState,omitempty"` EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` ExpiryDate *string `json:"expiryDate,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ProvisioningSubState *string `json:"provisioningSubState,omitempty"` Quantity *float64 `json:"quantity,omitempty"` Renew *bool `json:"renew,omitempty"` RenewSource *string `json:"renewSource,omitempty"` ReservedResourceType *string `json:"reservedResourceType,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` Term *string `json:"term,omitempty"` UserFriendlyAppliedScopeType *string `json:"userFriendlyAppliedScopeType,omitempty"` UserFriendlyRenewState *string `json:"userFriendlyRenewState,omitempty"` Utilization *ReservationPropertyUtilization `json:"utilization,omitempty"` }
type ReservationPropertyUtilization ¶
type ReservationPropertyUtilization struct { Aggregates *[]ReservationUtilizationAggregates `json:"aggregates,omitempty"` Trend *string `json:"trend,omitempty"` }
type ReservationSkuProperty ¶
type ReservationSkuProperty struct {
Name *string `json:"name,omitempty"`
}
type ReservationsClient ¶
type ReservationsClient struct {
Client *resourcemanager.Client
}
func NewReservationsClientWithBaseURI ¶
func NewReservationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationsClient, error)
func (ReservationsClient) ListByBillingAccount ¶
func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (ReservationsClient) ListByBillingAccountComplete ¶
func (c ReservationsClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (ListByBillingAccountCompleteResult, error)
ListByBillingAccountComplete retrieves all the results into a single object
func (ReservationsClient) ListByBillingAccountCompleteMatchingPredicate ¶
func (c ReservationsClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions, predicate ReservationOperationPredicate) (result ListByBillingAccountCompleteResult, err error)
ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationsClient) ListByBillingProfile ¶
func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error)
ListByBillingProfile ...
func (ReservationsClient) ListByBillingProfileComplete ¶
func (c ReservationsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (ListByBillingProfileCompleteResult, error)
ListByBillingProfileComplete retrieves all the results into a single object
func (ReservationsClient) ListByBillingProfileCompleteMatchingPredicate ¶
func (c ReservationsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions, predicate ReservationOperationPredicate) (result ListByBillingProfileCompleteResult, err error)
ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate
Source Files ¶
- client.go
- id_billingaccount.go
- id_billingprofile.go
- method_listbybillingaccount.go
- method_listbybillingprofile.go
- model_reservation.go
- model_reservationproperty.go
- model_reservationpropertyutilization.go
- model_reservationskuproperty.go
- model_reservationutilizationaggregates.go
- predicates.go
- version.go