skus

package
v0.20240516.1091934 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/skus Documentation

The skus SDK allows for interaction with the Azure Resource Manager Service labservices (API Version 2022-08-01).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/skus"

Client Initialization

client := skus.NewSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SkusClient.List

ctx := context.TODO()
id := commonids.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

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 LabServicesSkuCapabilities

type LabServicesSkuCapabilities struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type LabServicesSkuCapacity

type LabServicesSkuCapacity struct {
	Default   *int64     `json:"default,omitempty"`
	Maximum   *int64     `json:"maximum,omitempty"`
	Minimum   *int64     `json:"minimum,omitempty"`
	ScaleType *ScaleType `json:"scaleType,omitempty"`
}

type LabServicesSkuCost

type LabServicesSkuCost struct {
	ExtendedUnit *string  `json:"extendedUnit,omitempty"`
	MeterId      *string  `json:"meterId,omitempty"`
	Quantity     *float64 `json:"quantity,omitempty"`
}

type LabServicesSkuOperationPredicate

type LabServicesSkuOperationPredicate struct {
	Family       *string
	Name         *string
	ResourceType *string
	Size         *string
}

func (LabServicesSkuOperationPredicate) Matches

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 ScaleType

type ScaleType string
const (
	ScaleTypeAutomatic ScaleType = "Automatic"
	ScaleTypeManual    ScaleType = "Manual"
	ScaleTypeNone      ScaleType = "None"
)

func (*ScaleType) UnmarshalJSON

func (s *ScaleType) UnmarshalJSON(bytes []byte) error

type SkusClient

type SkusClient struct {
	Client *resourcemanager.Client
}

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusClient, error)

func (SkusClient) List

List ...

func (SkusClient) ListComplete

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL