Documentation ¶
Index ¶
- func ValidateReservationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReservationOrderID(input interface{}, key string) (warnings []string, errors []error)
- type ReservationDetail
- type ReservationDetailOperationPredicate
- type ReservationDetailProperties
- type ReservationDetailsClient
- func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, ...) (result ReservationsDetailsListOperationResponse, err error)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, ...) (result ReservationsDetailsListByReservationOrderOperationResponse, err error)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, ...) (...)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationComplete(ctx context.Context, id ReservationId, ...) (ReservationsDetailsListByReservationOrderAndReservationCompleteResult, error)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationCompleteMatchingPredicate(ctx context.Context, id ReservationId, ...) (result ReservationsDetailsListByReservationOrderAndReservationCompleteResult, ...)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderComplete(ctx context.Context, id ReservationOrderId, ...) (ReservationsDetailsListByReservationOrderCompleteResult, error)
- func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderCompleteMatchingPredicate(ctx context.Context, id ReservationOrderId, ...) (result ReservationsDetailsListByReservationOrderCompleteResult, err error)
- func (c ReservationDetailsClient) ReservationsDetailsListComplete(ctx context.Context, id commonids.ScopeId, ...) (ReservationsDetailsListCompleteResult, error)
- func (c ReservationDetailsClient) ReservationsDetailsListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ReservationsDetailsListCompleteResult, err error)
- type ReservationId
- type ReservationOrderId
- type ReservationsDetailsListByReservationOrderAndReservationCompleteResult
- type ReservationsDetailsListByReservationOrderAndReservationOperationOptions
- func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToHeaders() *client.Headers
- func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToOData() *odata.Query
- func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToQuery() *client.QueryParams
- type ReservationsDetailsListByReservationOrderAndReservationOperationResponse
- type ReservationsDetailsListByReservationOrderCompleteResult
- type ReservationsDetailsListByReservationOrderOperationOptions
- type ReservationsDetailsListByReservationOrderOperationResponse
- type ReservationsDetailsListCompleteResult
- type ReservationsDetailsListOperationOptions
- type ReservationsDetailsListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ReservationDetail ¶
type ReservationDetailOperationPredicate ¶
type ReservationDetailOperationPredicate struct { Etag *string Id *string Name *string Type *string }
func (ReservationDetailOperationPredicate) Matches ¶
func (p ReservationDetailOperationPredicate) Matches(input ReservationDetail) bool
type ReservationDetailProperties ¶
type ReservationDetailProperties struct { InstanceFlexibilityGroup *string `json:"instanceFlexibilityGroup,omitempty"` InstanceFlexibilityRatio *string `json:"instanceFlexibilityRatio,omitempty"` InstanceId *string `json:"instanceId,omitempty"` Kind *string `json:"kind,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"` }
func (*ReservationDetailProperties) GetUsageDateAsTime ¶
func (o *ReservationDetailProperties) GetUsageDateAsTime() (*time.Time, error)
func (*ReservationDetailProperties) SetUsageDateAsTime ¶
func (o *ReservationDetailProperties) SetUsageDateAsTime(input time.Time)
type ReservationDetailsClient ¶
type ReservationDetailsClient struct {
Client *resourcemanager.Client
}
func NewReservationDetailsClientWithBaseURI ¶
func NewReservationDetailsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationDetailsClient, error)
func (ReservationDetailsClient) ReservationsDetailsList ¶
func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error)
ReservationsDetailsList ...
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrder ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error)
ReservationsDetailsListByReservationOrder ...
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error)
ReservationsDetailsListByReservationOrderAndReservation ...
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationComplete ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationComplete(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (ReservationsDetailsListByReservationOrderAndReservationCompleteResult, error)
ReservationsDetailsListByReservationOrderAndReservationComplete retrieves all the results into a single object
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationCompleteMatchingPredicate ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservationCompleteMatchingPredicate(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions, predicate ReservationDetailOperationPredicate) (result ReservationsDetailsListByReservationOrderAndReservationCompleteResult, err error)
ReservationsDetailsListByReservationOrderAndReservationCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrderComplete ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderComplete(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (ReservationsDetailsListByReservationOrderCompleteResult, error)
ReservationsDetailsListByReservationOrderComplete retrieves all the results into a single object
func (ReservationDetailsClient) ReservationsDetailsListByReservationOrderCompleteMatchingPredicate ¶
func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderCompleteMatchingPredicate(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions, predicate ReservationDetailOperationPredicate) (result ReservationsDetailsListByReservationOrderCompleteResult, err error)
ReservationsDetailsListByReservationOrderCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReservationDetailsClient) ReservationsDetailsListComplete ¶
func (c ReservationDetailsClient) ReservationsDetailsListComplete(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (ReservationsDetailsListCompleteResult, error)
ReservationsDetailsListComplete retrieves all the results into a single object
func (ReservationDetailsClient) ReservationsDetailsListCompleteMatchingPredicate ¶
func (c ReservationDetailsClient) ReservationsDetailsListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions, predicate ReservationDetailOperationPredicate) (result ReservationsDetailsListCompleteResult, err error)
ReservationsDetailsListCompleteMatchingPredicate retrieves all the results and then applies the predicate
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 ReservationsDetailsListByReservationOrderAndReservationCompleteResult ¶
type ReservationsDetailsListByReservationOrderAndReservationCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationDetail }
type ReservationsDetailsListByReservationOrderAndReservationOperationOptions ¶
type ReservationsDetailsListByReservationOrderAndReservationOperationOptions struct {
Filter *string
}
func DefaultReservationsDetailsListByReservationOrderAndReservationOperationOptions ¶
func DefaultReservationsDetailsListByReservationOrderAndReservationOperationOptions() ReservationsDetailsListByReservationOrderAndReservationOperationOptions
func (ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToHeaders ¶
func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToHeaders() *client.Headers
func (ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToOData ¶
func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToOData() *odata.Query
func (ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToQuery ¶
func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) ToQuery() *client.QueryParams
type ReservationsDetailsListByReservationOrderAndReservationOperationResponse ¶
type ReservationsDetailsListByReservationOrderAndReservationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationDetail }
type ReservationsDetailsListByReservationOrderCompleteResult ¶
type ReservationsDetailsListByReservationOrderCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationDetail }
type ReservationsDetailsListByReservationOrderOperationOptions ¶
type ReservationsDetailsListByReservationOrderOperationOptions struct {
Filter *string
}
func DefaultReservationsDetailsListByReservationOrderOperationOptions ¶
func DefaultReservationsDetailsListByReservationOrderOperationOptions() ReservationsDetailsListByReservationOrderOperationOptions
func (ReservationsDetailsListByReservationOrderOperationOptions) ToHeaders ¶
func (o ReservationsDetailsListByReservationOrderOperationOptions) ToHeaders() *client.Headers
func (ReservationsDetailsListByReservationOrderOperationOptions) ToOData ¶
func (o ReservationsDetailsListByReservationOrderOperationOptions) ToOData() *odata.Query
func (ReservationsDetailsListByReservationOrderOperationOptions) ToQuery ¶
func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *client.QueryParams
type ReservationsDetailsListByReservationOrderOperationResponse ¶
type ReservationsDetailsListByReservationOrderOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationDetail }
type ReservationsDetailsListCompleteResult ¶
type ReservationsDetailsListCompleteResult struct { LatestHttpResponse *http.Response Items []ReservationDetail }
type ReservationsDetailsListOperationOptions ¶
type ReservationsDetailsListOperationOptions struct { EndDate *string Filter *string ReservationId *string ReservationOrderId *string StartDate *string }
func DefaultReservationsDetailsListOperationOptions ¶
func DefaultReservationsDetailsListOperationOptions() ReservationsDetailsListOperationOptions
func (ReservationsDetailsListOperationOptions) ToHeaders ¶
func (o ReservationsDetailsListOperationOptions) ToHeaders() *client.Headers
func (ReservationsDetailsListOperationOptions) ToOData ¶
func (o ReservationsDetailsListOperationOptions) ToOData() *odata.Query
func (ReservationsDetailsListOperationOptions) ToQuery ¶
func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams
type ReservationsDetailsListOperationResponse ¶
type ReservationsDetailsListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ReservationDetail }