skus

package
v0.20230206.1104846 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MPL-2.0 Imports: 8 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-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 := 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

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"
)

type ListCompleteResult

type ListCompleteResult struct {
	Items []LabServicesSku
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LabServicesSku
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type RestrictionReasonCode

type RestrictionReasonCode string
const (
	RestrictionReasonCodeNotAvailableForSubscription RestrictionReasonCode = "NotAvailableForSubscription"
	RestrictionReasonCodeQuotaId                     RestrictionReasonCode = "QuotaId"
)

type RestrictionType

type RestrictionType string
const (
	RestrictionTypeLocation RestrictionType = "Location"
)

type ScaleType

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

type SkusClient

type SkusClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(endpoint string) SkusClient

func (SkusClient) List

List ...

func (SkusClient) ListComplete

ListComplete retrieves all of the results into a single object

func (SkusClient) ListCompleteMatchingPredicate

func (c SkusClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LabServicesSkuOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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