Documentation ¶
Index ¶
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUsageID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByLocationCompleteResult
- type ListByLocationCustomPager
- type ListByLocationOperationResponse
- type LocationId
- type SubscriptionUsage
- type SubscriptionUsageOperationPredicate
- type SubscriptionUsageProperties
- type SubscriptionUsagesClient
- func (c SubscriptionUsagesClient) Get(ctx context.Context, id UsageId) (result GetOperationResponse, err error)
- func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error)
- func (c SubscriptionUsagesClient) ListByLocationComplete(ctx context.Context, id LocationId) (ListByLocationCompleteResult, error)
- func (c SubscriptionUsagesClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, ...) (result ListByLocationCompleteResult, err error)
- type UsageId
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionUsage }
type ListByLocationCompleteResult ¶
type ListByLocationCompleteResult struct { LatestHttpResponse *http.Response Items []SubscriptionUsage }
type ListByLocationCustomPager ¶ added in v0.20240628.1153531
func (*ListByLocationCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByLocationCustomPager) NextPageLink() *odata.Link
type ListByLocationOperationResponse ¶
type ListByLocationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SubscriptionUsage }
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 SubscriptionUsage ¶
type SubscriptionUsage struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SubscriptionUsageProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SubscriptionUsageOperationPredicate ¶
func (SubscriptionUsageOperationPredicate) Matches ¶
func (p SubscriptionUsageOperationPredicate) Matches(input SubscriptionUsage) bool
type SubscriptionUsagesClient ¶
type SubscriptionUsagesClient struct {
Client *resourcemanager.Client
}
func NewSubscriptionUsagesClientWithBaseURI ¶
func NewSubscriptionUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionUsagesClient, error)
func (SubscriptionUsagesClient) Get ¶
func (c SubscriptionUsagesClient) Get(ctx context.Context, id UsageId) (result GetOperationResponse, err error)
Get ...
func (SubscriptionUsagesClient) ListByLocation ¶
func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error)
ListByLocation ...
func (SubscriptionUsagesClient) ListByLocationComplete ¶
func (c SubscriptionUsagesClient) ListByLocationComplete(ctx context.Context, id LocationId) (ListByLocationCompleteResult, error)
ListByLocationComplete retrieves all the results into a single object
func (SubscriptionUsagesClient) ListByLocationCompleteMatchingPredicate ¶
func (c SubscriptionUsagesClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate SubscriptionUsageOperationPredicate) (result ListByLocationCompleteResult, err error)
ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate
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