README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2023-06-07/skus
Documentation
The skus
SDK allows for interaction with the Azure Resource Manager Service labservices
(API Version 2023-06-07
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2023-06-07/skus"
Client Initialization
client := skus.NewSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SkusClient.List
ctx := context.TODO()
id := skus.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation
¶
Index ¶
- func PossibleValuesForLabServicesSkuTier() []string
- func PossibleValuesForRestrictionReasonCode() []string
- func PossibleValuesForRestrictionType() []string
- func PossibleValuesForScaleType() []string
- type LabServicesSku
- type LabServicesSkuCapabilities
- type LabServicesSkuCapacity
- type LabServicesSkuCost
- type LabServicesSkuOperationPredicate
- type LabServicesSkuRestrictions
- type LabServicesSkuTier
- type ListCompleteResult
- type ListOperationResponse
- type RestrictionReasonCode
- type RestrictionType
- type ScaleType
- type SkusClient
- func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c SkusClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c SkusClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLabServicesSkuTier ¶
func PossibleValuesForLabServicesSkuTier() []string
func PossibleValuesForRestrictionReasonCode ¶
func PossibleValuesForRestrictionReasonCode() []string
func PossibleValuesForRestrictionType ¶
func PossibleValuesForRestrictionType() []string
func PossibleValuesForScaleType ¶
func PossibleValuesForScaleType() []string
Types ¶
type LabServicesSku ¶
type LabServicesSku struct { Capabilities *[]LabServicesSkuCapabilities `json:"capabilities,omitempty"` Capacity *LabServicesSkuCapacity `json:"capacity,omitempty"` Costs *[]LabServicesSkuCost `json:"costs,omitempty"` Family *string `json:"family,omitempty"` Locations *[]string `json:"locations,omitempty"` Name *string `json:"name,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Restrictions *[]LabServicesSkuRestrictions `json:"restrictions,omitempty"` Size *string `json:"size,omitempty"` Tier *LabServicesSkuTier `json:"tier,omitempty"` }
type LabServicesSkuCapacity ¶
type LabServicesSkuCost ¶
type LabServicesSkuOperationPredicate ¶
type LabServicesSkuOperationPredicate struct { Family *string Name *string ResourceType *string Size *string }
func (LabServicesSkuOperationPredicate) Matches ¶
func (p LabServicesSkuOperationPredicate) Matches(input LabServicesSku) bool
type LabServicesSkuRestrictions ¶
type LabServicesSkuRestrictions struct { ReasonCode *RestrictionReasonCode `json:"reasonCode,omitempty"` Type *RestrictionType `json:"type,omitempty"` Values *[]string `json:"values,omitempty"` }
type LabServicesSkuTier ¶
type LabServicesSkuTier string
const ( LabServicesSkuTierPremium LabServicesSkuTier = "Premium" LabServicesSkuTierStandard LabServicesSkuTier = "Standard" )
func (*LabServicesSkuTier) UnmarshalJSON ¶
func (s *LabServicesSkuTier) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []LabServicesSku }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LabServicesSku }
type RestrictionReasonCode ¶
type RestrictionReasonCode string
const ( RestrictionReasonCodeNotAvailableForSubscription RestrictionReasonCode = "NotAvailableForSubscription" RestrictionReasonCodeQuotaId RestrictionReasonCode = "QuotaId" )
func (*RestrictionReasonCode) UnmarshalJSON ¶
func (s *RestrictionReasonCode) UnmarshalJSON(bytes []byte) error
type RestrictionType ¶
type RestrictionType string
const (
RestrictionTypeLocation RestrictionType = "Location"
)
func (*RestrictionType) UnmarshalJSON ¶
func (s *RestrictionType) UnmarshalJSON(bytes []byte) error
type SkusClient ¶
type SkusClient struct {
Client *resourcemanager.Client
}
func NewSkusClientWithBaseURI ¶
func NewSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusClient, error)
func (SkusClient) List ¶
func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (SkusClient) ListComplete ¶
func (c SkusClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SkusClient) ListCompleteMatchingPredicate ¶
func (c SkusClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LabServicesSkuOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
Click to show internal directories.
Click to hide internal directories.