Documentation ¶
Index ¶
- func PossibleValuesForUsagesTypes() []string
- func ValidateScopedUsageID(input interface{}, key string) (warnings []string, errors []error)
- type CurrentUsagesBase
- type CurrentUsagesBaseOperationPredicate
- type ResourceName
- type ScopedUsageId
- type UsagesGetOperationResponse
- type UsagesInformationClient
- func (c UsagesInformationClient) UsagesGet(ctx context.Context, id ScopedUsageId) (result UsagesGetOperationResponse, err error)
- func (c UsagesInformationClient) UsagesList(ctx context.Context, id commonids.ScopeId) (result UsagesListOperationResponse, err error)
- func (c UsagesInformationClient) UsagesListComplete(ctx context.Context, id commonids.ScopeId) (UsagesListCompleteResult, error)
- func (c UsagesInformationClient) UsagesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result UsagesListCompleteResult, err error)
- type UsagesListCompleteResult
- type UsagesListCustomPager
- type UsagesListOperationResponse
- type UsagesObject
- type UsagesProperties
- type UsagesTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForUsagesTypes ¶
func PossibleValuesForUsagesTypes() []string
func ValidateScopedUsageID ¶
ValidateScopedUsageID checks that 'input' can be parsed as a Scoped Usage ID
Types ¶
type CurrentUsagesBase ¶
type CurrentUsagesBase struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *UsagesProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type CurrentUsagesBaseOperationPredicate ¶
func (CurrentUsagesBaseOperationPredicate) Matches ¶
func (p CurrentUsagesBaseOperationPredicate) Matches(input CurrentUsagesBase) bool
type ResourceName ¶
type ScopedUsageId ¶
ScopedUsageId is a struct representing the Resource ID for a Scoped Usage
func NewScopedUsageID ¶
func NewScopedUsageID(scope string, usageName string) ScopedUsageId
NewScopedUsageID returns a new ScopedUsageId struct
func ParseScopedUsageID ¶
func ParseScopedUsageID(input string) (*ScopedUsageId, error)
ParseScopedUsageID parses 'input' into a ScopedUsageId
func ParseScopedUsageIDInsensitively ¶
func ParseScopedUsageIDInsensitively(input string) (*ScopedUsageId, error)
ParseScopedUsageIDInsensitively parses 'input' case-insensitively into a ScopedUsageId note: this method should only be used for API response data and not user input
func (*ScopedUsageId) FromParseResult ¶
func (id *ScopedUsageId) FromParseResult(input resourceids.ParseResult) error
func (ScopedUsageId) ID ¶
func (id ScopedUsageId) ID() string
ID returns the formatted Scoped Usage ID
func (ScopedUsageId) Segments ¶
func (id ScopedUsageId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Usage ID
func (ScopedUsageId) String ¶
func (id ScopedUsageId) String() string
String returns a human-readable description of this Scoped Usage ID
type UsagesGetOperationResponse ¶
type UsagesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CurrentUsagesBase }
type UsagesInformationClient ¶
type UsagesInformationClient struct {
Client *resourcemanager.Client
}
func NewUsagesInformationClientWithBaseURI ¶
func NewUsagesInformationClientWithBaseURI(sdkApi sdkEnv.Api) (*UsagesInformationClient, error)
func (UsagesInformationClient) UsagesGet ¶
func (c UsagesInformationClient) UsagesGet(ctx context.Context, id ScopedUsageId) (result UsagesGetOperationResponse, err error)
UsagesGet ...
func (UsagesInformationClient) UsagesList ¶
func (c UsagesInformationClient) UsagesList(ctx context.Context, id commonids.ScopeId) (result UsagesListOperationResponse, err error)
UsagesList ...
func (UsagesInformationClient) UsagesListComplete ¶
func (c UsagesInformationClient) UsagesListComplete(ctx context.Context, id commonids.ScopeId) (UsagesListCompleteResult, error)
UsagesListComplete retrieves all the results into a single object
func (UsagesInformationClient) UsagesListCompleteMatchingPredicate ¶
func (c UsagesInformationClient) UsagesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate CurrentUsagesBaseOperationPredicate) (result UsagesListCompleteResult, err error)
UsagesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type UsagesListCompleteResult ¶
type UsagesListCompleteResult struct { LatestHttpResponse *http.Response Items []CurrentUsagesBase }
type UsagesListCustomPager ¶
func (*UsagesListCustomPager) NextPageLink ¶
func (p *UsagesListCustomPager) NextPageLink() *odata.Link
type UsagesListOperationResponse ¶
type UsagesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CurrentUsagesBase }
type UsagesObject ¶
type UsagesObject struct { UsagesType *UsagesTypes `json:"usagesType,omitempty"` Value int64 `json:"value"` }
type UsagesProperties ¶
type UsagesProperties struct { IsQuotaApplicable *bool `json:"isQuotaApplicable,omitempty"` Name *ResourceName `json:"name,omitempty"` Properties *interface{} `json:"properties,omitempty"` QuotaPeriod *string `json:"quotaPeriod,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Unit *string `json:"unit,omitempty"` Usages *UsagesObject `json:"usages,omitempty"` }
type UsagesTypes ¶
type UsagesTypes string
const ( UsagesTypesCombined UsagesTypes = "Combined" UsagesTypesIndividual UsagesTypes = "Individual" )
func (*UsagesTypes) UnmarshalJSON ¶
func (s *UsagesTypes) UnmarshalJSON(bytes []byte) error