Documentation ¶
Index ¶
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUsageID(input interface{}, key string) (warnings []string, errors []error)
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type LocationId
- type QuotaUsageResult
- type QuotaUsageResultName
- type QuotaUsageResultOperationPredicate
- type UsageBySubscriptionSkuOperationOptions
- type UsageBySubscriptionSkuOperationResponse
- type UsageId
- type UsagesClient
- func (c UsagesClient) ListBySubscription(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
- func (c UsagesClient) ListBySubscriptionComplete(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
- func (c UsagesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c UsagesClient) UsageBySubscriptionSku(ctx context.Context, id UsageId, ...) (result UsageBySubscriptionSkuOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
func ValidateUsageID ¶
ValidateUsageID checks that 'input' can be parsed as a Usage ID
Types ¶
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response Items []QuotaUsageResult }
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct {
XMsClientRequestId *string
}
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
func (ListBySubscriptionOperationOptions) ToHeaders ¶
func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListBySubscriptionOperationOptions) ToOData ¶
func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query
func (ListBySubscriptionOperationOptions) ToQuery ¶
func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]QuotaUsageResult }
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (*LocationId) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type QuotaUsageResult ¶
type QuotaUsageResult struct { CurrentValue *int64 `json:"currentValue,omitempty"` Id *string `json:"id,omitempty"` Limit *int64 `json:"limit,omitempty"` Name *QuotaUsageResultName `json:"name,omitempty"` Unit *string `json:"unit,omitempty"` }
type QuotaUsageResultName ¶
type QuotaUsageResultOperationPredicate ¶
type QuotaUsageResultOperationPredicate struct { CurrentValue *int64 Id *string Limit *int64 Unit *string }
func (QuotaUsageResultOperationPredicate) Matches ¶
func (p QuotaUsageResultOperationPredicate) Matches(input QuotaUsageResult) bool
type UsageBySubscriptionSkuOperationOptions ¶
type UsageBySubscriptionSkuOperationOptions struct {
XMsClientRequestId *string
}
func DefaultUsageBySubscriptionSkuOperationOptions ¶
func DefaultUsageBySubscriptionSkuOperationOptions() UsageBySubscriptionSkuOperationOptions
func (UsageBySubscriptionSkuOperationOptions) ToHeaders ¶
func (o UsageBySubscriptionSkuOperationOptions) ToHeaders() *client.Headers
func (UsageBySubscriptionSkuOperationOptions) ToOData ¶
func (o UsageBySubscriptionSkuOperationOptions) ToOData() *odata.Query
func (UsageBySubscriptionSkuOperationOptions) ToQuery ¶
func (o UsageBySubscriptionSkuOperationOptions) ToQuery() *client.QueryParams
type UsageBySubscriptionSkuOperationResponse ¶
type UsageBySubscriptionSkuOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *QuotaUsageResult }
type UsageId ¶
UsageId is a struct representing the Resource ID for a Usage
func NewUsageID ¶
NewUsageID returns a new UsageId struct
func ParseUsageID ¶
ParseUsageID parses 'input' into a UsageId
func ParseUsageIDInsensitively ¶
ParseUsageIDInsensitively parses 'input' case-insensitively into a UsageId note: this method should only be used for API response data and not user input
func (*UsageId) FromParseResult ¶
func (id *UsageId) FromParseResult(input resourceids.ParseResult) error
func (UsageId) Segments ¶
func (id UsageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Usage ID
type UsagesClient ¶
type UsagesClient struct {
Client *resourcemanager.Client
}
func NewUsagesClientWithBaseURI ¶
func NewUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*UsagesClient, error)
func (UsagesClient) ListBySubscription ¶
func (c UsagesClient) ListBySubscription(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (UsagesClient) ListBySubscriptionComplete ¶
func (c UsagesClient) ListBySubscriptionComplete(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (UsagesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c UsagesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions, predicate QuotaUsageResultOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UsagesClient) UsageBySubscriptionSku ¶
func (c UsagesClient) UsageBySubscriptionSku(ctx context.Context, id UsageId, options UsageBySubscriptionSkuOperationOptions) (result UsageBySubscriptionSkuOperationResponse, err error)
UsageBySubscriptionSku ...