Documentation ¶
Index ¶
- func PossibleValuesForDatagrain() []string
- func ValidateReservationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReservationOrderID(input interface{}, key string) (warnings []string, errors []error)
- type Datagrain
- type ReservationId
- type ReservationOrderId
- type ReservationSummariesClient
- func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, ...) (result ReservationsSummariesListOperationResponse, err error)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, ...) (result ReservationsSummariesListByReservationOrderOperationResponse, err error)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, ...) (...)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationComplete(ctx context.Context, id ReservationId, ...) (ReservationsSummariesListByReservationOrderAndReservationCompleteResult, error)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationCompleteMatchingPredicate(ctx context.Context, id ReservationId, ...) (result ReservationsSummariesListByReservationOrderAndReservationCompleteResult, ...)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderComplete(ctx context.Context, id ReservationOrderId, ...) (ReservationsSummariesListByReservationOrderCompleteResult, error)
- func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderCompleteMatchingPredicate(ctx context.Context, id ReservationOrderId, ...) (result ReservationsSummariesListByReservationOrderCompleteResult, err error)
- func (c ReservationSummariesClient) ReservationsSummariesListComplete(ctx context.Context, id commonids.ScopeId, ...) (ReservationsSummariesListCompleteResult, error)
- func (c ReservationSummariesClient) ReservationsSummariesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ReservationsSummariesListCompleteResult, err error)
- type ReservationSummary
- type ReservationSummaryOperationPredicate
- type ReservationSummaryProperties
- type ReservationsSummariesListByReservationOrderAndReservationCompleteResult
- type ReservationsSummariesListByReservationOrderAndReservationOperationOptions
- func (o ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToHeaders() *client.Headers
- func (o ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToOData() *odata.Query
- func (o ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToQuery() *client.QueryParams
- type ReservationsSummariesListByReservationOrderAndReservationOperationResponse
- type ReservationsSummariesListByReservationOrderCompleteResult
- type ReservationsSummariesListByReservationOrderOperationOptions
- type ReservationsSummariesListByReservationOrderOperationResponse
- type ReservationsSummariesListCompleteResult
- type ReservationsSummariesListOperationOptions
- type ReservationsSummariesListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDatagrain ¶
func PossibleValuesForDatagrain() []string
func ValidateReservationID ¶
ValidateReservationID checks that 'input' can be parsed as a Reservation ID
func ValidateReservationOrderID ¶
ValidateReservationOrderID checks that 'input' can be parsed as a Reservation Order ID
Types ¶
type ReservationId ¶
ReservationId is a struct representing the Resource ID for a Reservation
func NewReservationID ¶
func NewReservationID(reservationOrderId string, reservationId string) ReservationId
NewReservationID returns a new ReservationId struct
func ParseReservationID ¶
func ParseReservationID(input string) (*ReservationId, error)
ParseReservationID parses 'input' into a ReservationId
func ParseReservationIDInsensitively ¶
func ParseReservationIDInsensitively(input string) (*ReservationId, error)
ParseReservationIDInsensitively parses 'input' case-insensitively into a ReservationId note: this method should only be used for API response data and not user input
func (*ReservationId) FromParseResult ¶
func (id *ReservationId) FromParseResult(input resourceids.ParseResult) error
func (ReservationId) ID ¶
func (id ReservationId) ID() string
ID returns the formatted Reservation ID
func (ReservationId) Segments ¶
func (id ReservationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Reservation ID
func (ReservationId) String ¶
func (id ReservationId) String() string
String returns a human-readable description of this Reservation ID
type ReservationOrderId ¶
type ReservationOrderId struct {
ReservationOrderId string
}
ReservationOrderId is a struct representing the Resource ID for a Reservation Order
func NewReservationOrderID ¶
func NewReservationOrderID(reservationOrderId string) ReservationOrderId
NewReservationOrderID returns a new ReservationOrderId struct
func ParseReservationOrderID ¶
func ParseReservationOrderID(input string) (*ReservationOrderId, error)
ParseReservationOrderID parses 'input' into a ReservationOrderId
func ParseReservationOrderIDInsensitively ¶
func ParseReservationOrderIDInsensitively(input string) (*ReservationOrderId, error)
ParseReservationOrderIDInsensitively parses 'input' case-insensitively into a ReservationOrderId note: this method should only be used for API response data and not user input
func (*ReservationOrderId) FromParseResult ¶
func (id *ReservationOrderId) FromParseResult(input resourceids.ParseResult) error
func (ReservationOrderId) ID ¶
func (id ReservationOrderId) ID() string
ID returns the formatted Reservation Order ID
func (ReservationOrderId) Segments ¶
func (id ReservationOrderId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Reservation Order ID
func (ReservationOrderId) String ¶
func (id ReservationOrderId) String() string
String returns a human-readable description of this Reservation Order ID
type ReservationSummariesClient ¶
type ReservationSummariesClient struct {
Client *resourcemanager.Client
}
func NewReservationSummariesClientWithBaseURI ¶
func NewReservationSummariesClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationSummariesClient, error)
func (ReservationSummariesClient) ReservationsSummariesList ¶
func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error)
ReservationsSummariesList ...
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrder ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error)
ReservationsSummariesListByReservationOrder ...
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error)
ReservationsSummariesListByReservationOrderAndReservation ...
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationComplete ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationComplete(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (ReservationsSummariesListByReservationOrderAndReservationCompleteResult, error)
ReservationsSummariesListByReservationOrderAndReservationComplete retrieves all the results into a single object
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationCompleteMatchingPredicate ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservationCompleteMatchingPredicate(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions, predicate ReservationSummaryOperationPredicate) (result ReservationsSummariesListByReservationOrderAndReservationCompleteResult, err error)
ReservationsSummariesListByReservationOrderAndReservationCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrderComplete ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderComplete(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (ReservationsSummariesListByReservationOrderCompleteResult, error)
ReservationsSummariesListByReservationOrderComplete retrieves all the results into a single object
func (ReservationSummariesClient) ReservationsSummariesListByReservationOrderCompleteMatchingPredicate ¶
func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderCompleteMatchingPredicate(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions, predicate ReservationSummaryOperationPredicate) (result ReservationsSummariesListByReservationOrderCompleteResult, err error)
ReservationsSummariesListByReservationOrderCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationSummariesClient) ReservationsSummariesListComplete ¶
func (c ReservationSummariesClient) ReservationsSummariesListComplete(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (ReservationsSummariesListCompleteResult, error)
ReservationsSummariesListComplete retrieves all the results into a single object
func (ReservationSummariesClient) ReservationsSummariesListCompleteMatchingPredicate ¶
func (c ReservationSummariesClient) ReservationsSummariesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions, predicate ReservationSummaryOperationPredicate) (result ReservationsSummariesListCompleteResult, err error)
ReservationsSummariesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ReservationSummary ¶
type ReservationSummaryOperationPredicate ¶
type ReservationSummaryOperationPredicate struct { ETag *string Id *string Name *string Type *string }
func (ReservationSummaryOperationPredicate) Matches ¶
func (p ReservationSummaryOperationPredicate) Matches(input ReservationSummary) bool
type ReservationSummaryProperties ¶
type ReservationSummaryProperties struct { AvgUtilizationPercentage *float64 `json:"avgUtilizationPercentage,omitempty"` Kind *string `json:"kind,omitempty"` MaxUtilizationPercentage *float64 `json:"maxUtilizationPercentage,omitempty"` MinUtilizationPercentage *float64 `json:"minUtilizationPercentage,omitempty"` PurchasedQuantity *float64 `json:"purchasedQuantity,omitempty"` RemainingQuantity *float64 `json:"remainingQuantity,omitempty"` ReservationId *string `json:"reservationId,omitempty"` ReservationOrderId *string `json:"reservationOrderId,omitempty"` ReservedHours *float64 `json:"reservedHours,omitempty"` SkuName *string `json:"skuName,omitempty"` TotalReservedQuantity *float64 `json:"totalReservedQuantity,omitempty"` UsageDate *string `json:"usageDate,omitempty"` UsedHours *float64 `json:"usedHours,omitempty"` UsedQuantity *float64 `json:"usedQuantity,omitempty"` UtilizedPercentage *float64 `json:"utilizedPercentage,omitempty"` }
func (*ReservationSummaryProperties) GetUsageDateAsTime ¶
func (o *ReservationSummaryProperties) GetUsageDateAsTime() (*time.Time, error)
func (*ReservationSummaryProperties) SetUsageDateAsTime ¶
func (o *ReservationSummaryProperties) SetUsageDateAsTime(input time.Time)
type ReservationsSummariesListByReservationOrderAndReservationCompleteResult ¶
type ReservationsSummariesListByReservationOrderAndReservationCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationSummary }
type ReservationsSummariesListByReservationOrderAndReservationOperationOptions ¶
type ReservationsSummariesListByReservationOrderAndReservationOperationOptions struct { Filter *string Grain *Datagrain }
func DefaultReservationsSummariesListByReservationOrderAndReservationOperationOptions ¶
func DefaultReservationsSummariesListByReservationOrderAndReservationOperationOptions() ReservationsSummariesListByReservationOrderAndReservationOperationOptions
func (ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToHeaders ¶
func (o ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToHeaders() *client.Headers
func (ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToOData ¶
func (o ReservationsSummariesListByReservationOrderAndReservationOperationOptions) ToOData() *odata.Query
type ReservationsSummariesListByReservationOrderAndReservationOperationResponse ¶
type ReservationsSummariesListByReservationOrderAndReservationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationSummary }
type ReservationsSummariesListByReservationOrderCompleteResult ¶
type ReservationsSummariesListByReservationOrderCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationSummary }
type ReservationsSummariesListByReservationOrderOperationOptions ¶
type ReservationsSummariesListByReservationOrderOperationOptions struct { Filter *string Grain *Datagrain }
func DefaultReservationsSummariesListByReservationOrderOperationOptions ¶
func DefaultReservationsSummariesListByReservationOrderOperationOptions() ReservationsSummariesListByReservationOrderOperationOptions
func (ReservationsSummariesListByReservationOrderOperationOptions) ToHeaders ¶
func (o ReservationsSummariesListByReservationOrderOperationOptions) ToHeaders() *client.Headers
func (ReservationsSummariesListByReservationOrderOperationOptions) ToOData ¶
func (o ReservationsSummariesListByReservationOrderOperationOptions) ToOData() *odata.Query
func (ReservationsSummariesListByReservationOrderOperationOptions) ToQuery ¶
func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() *client.QueryParams
type ReservationsSummariesListByReservationOrderOperationResponse ¶
type ReservationsSummariesListByReservationOrderOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationSummary }
type ReservationsSummariesListCompleteResult ¶
type ReservationsSummariesListCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationSummary }
type ReservationsSummariesListOperationOptions ¶
type ReservationsSummariesListOperationOptions struct { EndDate *string Filter *string Grain *Datagrain ReservationId *string ReservationOrderId *string StartDate *string }
func DefaultReservationsSummariesListOperationOptions ¶
func DefaultReservationsSummariesListOperationOptions() ReservationsSummariesListOperationOptions
func (ReservationsSummariesListOperationOptions) ToHeaders ¶
func (o ReservationsSummariesListOperationOptions) ToHeaders() *client.Headers
func (ReservationsSummariesListOperationOptions) ToOData ¶
func (o ReservationsSummariesListOperationOptions) ToOData() *odata.Query
func (ReservationsSummariesListOperationOptions) ToQuery ¶
func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams
type ReservationsSummariesListOperationResponse ¶
type ReservationsSummariesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationSummary }
Source Files ¶
- client.go
- constants.go
- id_reservation.go
- id_reservationorder.go
- method_reservationssummarieslist.go
- method_reservationssummarieslistbyreservationorder.go
- method_reservationssummarieslistbyreservationorderandreservation.go
- model_reservationsummary.go
- model_reservationsummaryproperties.go
- predicates.go
- version.go