Documentation ¶
Index ¶
- func PossibleValuesForResourceSkuRestrictionsReasonCode() []string
- func PossibleValuesForResourceSkuRestrictionsType() []string
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- type ListByLocationCompleteResult
- type ListByLocationCustomPager
- type ListByLocationOperationResponse
- type LocationId
- type ResourceSku
- type ResourceSkuCapabilities
- type ResourceSkuLocationInfo
- type ResourceSkuOperationPredicate
- type ResourceSkuProperties
- type ResourceSkuRestrictionInfo
- type ResourceSkuRestrictions
- type ResourceSkuRestrictionsReasonCode
- type ResourceSkuRestrictionsType
- type ResourceSkuZoneDetails
- type SkuClient
- func (c SkuClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error)
- func (c SkuClient) ListByLocationComplete(ctx context.Context, id LocationId) (ListByLocationCompleteResult, error)
- func (c SkuClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate ResourceSkuOperationPredicate) (result ListByLocationCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForResourceSkuRestrictionsReasonCode ¶
func PossibleValuesForResourceSkuRestrictionsReasonCode() []string
func PossibleValuesForResourceSkuRestrictionsType ¶
func PossibleValuesForResourceSkuRestrictionsType() []string
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
Types ¶
type ListByLocationCompleteResult ¶
type ListByLocationCompleteResult struct { LatestHttpResponse *http.Response Items []ResourceSku }
type ListByLocationCustomPager ¶
func (*ListByLocationCustomPager) NextPageLink ¶
func (p *ListByLocationCustomPager) NextPageLink() *odata.Link
type ListByLocationOperationResponse ¶
type ListByLocationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ResourceSku }
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 ResourceSku ¶
type ResourceSku struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ResourceSkuProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ResourceSkuCapabilities ¶
type ResourceSkuLocationInfo ¶
type ResourceSkuLocationInfo struct { Location string `json:"location"` ZoneDetails []ResourceSkuZoneDetails `json:"zoneDetails"` Zones zones.Schema `json:"zones"` }
type ResourceSkuOperationPredicate ¶
func (ResourceSkuOperationPredicate) Matches ¶
func (p ResourceSkuOperationPredicate) Matches(input ResourceSku) bool
type ResourceSkuProperties ¶
type ResourceSkuProperties struct { Capabilities []ResourceSkuCapabilities `json:"capabilities"` Family string `json:"family"` LocationInfo []ResourceSkuLocationInfo `json:"locationInfo"` Locations []string `json:"locations"` ResourceType string `json:"resourceType"` Restrictions []ResourceSkuRestrictions `json:"restrictions"` Size string `json:"size"` Tier string `json:"tier"` }
type ResourceSkuRestrictions ¶
type ResourceSkuRestrictions struct { ReasonCode *ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` RestrictionInfo ResourceSkuRestrictionInfo `json:"restrictionInfo"` Type *ResourceSkuRestrictionsType `json:"type,omitempty"` Values []string `json:"values"` }
type ResourceSkuRestrictionsReasonCode ¶
type ResourceSkuRestrictionsReasonCode string
const ( ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" ResourceSkuRestrictionsReasonCodeQuotaId ResourceSkuRestrictionsReasonCode = "QuotaId" )
func (*ResourceSkuRestrictionsReasonCode) UnmarshalJSON ¶
func (s *ResourceSkuRestrictionsReasonCode) UnmarshalJSON(bytes []byte) error
type ResourceSkuRestrictionsType ¶
type ResourceSkuRestrictionsType string
const ( ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" )
func (*ResourceSkuRestrictionsType) UnmarshalJSON ¶
func (s *ResourceSkuRestrictionsType) UnmarshalJSON(bytes []byte) error
type ResourceSkuZoneDetails ¶
type ResourceSkuZoneDetails struct { Capabilities []ResourceSkuCapabilities `json:"capabilities"` Name []string `json:"name"` }
type SkuClient ¶
type SkuClient struct {
Client *resourcemanager.Client
}
func (SkuClient) ListByLocation ¶
func (c SkuClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error)
ListByLocation ...
func (SkuClient) ListByLocationComplete ¶
func (c SkuClient) ListByLocationComplete(ctx context.Context, id LocationId) (ListByLocationCompleteResult, error)
ListByLocationComplete retrieves all the results into a single object
func (SkuClient) ListByLocationCompleteMatchingPredicate ¶
func (c SkuClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate ResourceSkuOperationPredicate) (result ListByLocationCompleteResult, err error)
ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate
Source Files ¶
- client.go
- constants.go
- id_location.go
- method_listbylocation.go
- model_resourcesku.go
- model_resourceskucapabilities.go
- model_resourceskulocationinfo.go
- model_resourceskuproperties.go
- model_resourceskurestrictioninfo.go
- model_resourceskurestrictions.go
- model_resourceskuzonedetails.go
- predicates.go
- version.go