Documentation
¶
Index ¶
- func PossibleValuesForResourceSkuRestrictionsReasonCode() []string
- func PossibleValuesForResourceSkuRestrictionsType() []string
- func ValidateSubscriptionID(input interface{}, key string) (warnings []string, errors []error)
- type ResourceSku
- type ResourceSkuPredicate
- type ResourceSkuRestrictionInfo
- type ResourceSkuRestrictions
- type ResourceSkuRestrictionsReasonCode
- type ResourceSkuRestrictionsType
- type ResourceSkusListCompleteResult
- type ResourceSkusListResponse
- type SkusClient
- func (c SkusClient) ResourceSkusList(ctx context.Context, id SubscriptionId) (resp ResourceSkusListResponse, err error)
- func (c SkusClient) ResourceSkusListComplete(ctx context.Context, id SubscriptionId) (ResourceSkusListCompleteResult, error)
- func (c SkusClient) ResourceSkusListCompleteMatchingPredicate(ctx context.Context, id SubscriptionId, predicate ResourceSkuPredicate) (resp ResourceSkusListCompleteResult, err error)
- type SubscriptionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForResourceSkuRestrictionsReasonCode ¶
func PossibleValuesForResourceSkuRestrictionsReasonCode() []string
func PossibleValuesForResourceSkuRestrictionsType ¶
func PossibleValuesForResourceSkuRestrictionsType() []string
func ValidateSubscriptionID ¶
ValidateSubscriptionID checks that 'input' can be parsed as a Subscription ID
Types ¶
type ResourceSku ¶
type ResourceSku struct { Kind *string `json:"kind,omitempty"` Locations *[]string `json:"locations,omitempty"` Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Restrictions *[]ResourceSkuRestrictions `json:"restrictions,omitempty"` Tier *string `json:"tier,omitempty"` }
type ResourceSkuPredicate ¶
func (ResourceSkuPredicate) Matches ¶
func (p ResourceSkuPredicate) Matches(input ResourceSku) bool
type ResourceSkuRestrictions ¶
type ResourceSkuRestrictions struct { ReasonCode *ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` RestrictionInfo *ResourceSkuRestrictionInfo `json:"restrictionInfo,omitempty"` Type *ResourceSkuRestrictionsType `json:"type,omitempty"` Values *[]string `json:"values,omitempty"` }
type ResourceSkuRestrictionsReasonCode ¶
type ResourceSkuRestrictionsReasonCode string
const ( ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" ResourceSkuRestrictionsReasonCodeQuotaId ResourceSkuRestrictionsReasonCode = "QuotaId" )
type ResourceSkuRestrictionsType ¶
type ResourceSkuRestrictionsType string
const ( ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" )
type ResourceSkusListCompleteResult ¶
type ResourceSkusListCompleteResult struct {
Items []ResourceSku
}
type ResourceSkusListResponse ¶
type ResourceSkusListResponse struct { HttpResponse *http.Response Model *[]ResourceSku // contains filtered or unexported fields }
func (ResourceSkusListResponse) HasMore ¶
func (r ResourceSkusListResponse) HasMore() bool
func (ResourceSkusListResponse) LoadMore ¶
func (r ResourceSkusListResponse) LoadMore(ctx context.Context) (resp ResourceSkusListResponse, err error)
type SkusClient ¶
func NewSkusClientWithBaseURI ¶
func NewSkusClientWithBaseURI(endpoint string) SkusClient
func (SkusClient) ResourceSkusList ¶
func (c SkusClient) ResourceSkusList(ctx context.Context, id SubscriptionId) (resp ResourceSkusListResponse, err error)
ResourceSkusList ...
func (SkusClient) ResourceSkusListComplete ¶
func (c SkusClient) ResourceSkusListComplete(ctx context.Context, id SubscriptionId) (ResourceSkusListCompleteResult, error)
ResourceSkusListComplete retrieves all of the results into a single object
func (SkusClient) ResourceSkusListCompleteMatchingPredicate ¶
func (c SkusClient) ResourceSkusListCompleteMatchingPredicate(ctx context.Context, id SubscriptionId, predicate ResourceSkuPredicate) (resp ResourceSkusListCompleteResult, err error)
ResourceSkusListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type SubscriptionId ¶
type SubscriptionId struct {
SubscriptionId string
}
SubscriptionId is a struct representing the Resource ID for a Subscription
func NewSubscriptionID ¶
func NewSubscriptionID(subscriptionId string) SubscriptionId
NewSubscriptionID returns a new SubscriptionId struct
func ParseSubscriptionID ¶
func ParseSubscriptionID(input string) (*SubscriptionId, error)
ParseSubscriptionID parses 'input' into a SubscriptionId
func ParseSubscriptionIDInsensitively ¶
func ParseSubscriptionIDInsensitively(input string) (*SubscriptionId, error)
ParseSubscriptionIDInsensitively parses 'input' case-insensitively into a SubscriptionId note: this method should only be used for API response data and not user input
func (SubscriptionId) ID ¶
func (id SubscriptionId) ID() string
ID returns the formatted Subscription ID
func (SubscriptionId) Segments ¶
func (id SubscriptionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Subscription ID
func (SubscriptionId) String ¶
func (id SubscriptionId) String() string
String returns a human-readable description of this Subscription ID