skus

package
v0.20241009.1142232 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus Documentation

The skus SDK allows for interaction with Azure Resource Manager devcenter (API Version 2023-04-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/devcenter/2023-04-01/skus"

Client Initialization

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

Example Usage: SKUsClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(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 PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

Types

type Capability

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

type DevCenterSku

type DevCenterSku struct {
	Capabilities *[]Capability `json:"capabilities,omitempty"`
	Capacity     *int64        `json:"capacity,omitempty"`
	Family       *string       `json:"family,omitempty"`
	Locations    *[]string     `json:"locations,omitempty"`
	Name         string        `json:"name"`
	ResourceType *string       `json:"resourceType,omitempty"`
	Size         *string       `json:"size,omitempty"`
	Tier         *SkuTier      `json:"tier,omitempty"`
}

type DevCenterSkuOperationPredicate

type DevCenterSkuOperationPredicate struct {
	Capacity     *int64
	Family       *string
	Name         *string
	ResourceType *string
	Size         *string
}

func (DevCenterSkuOperationPredicate) Matches

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DevCenterSku
}

type ListBySubscriptionCustomPager added in v0.20240628.1153531

type ListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DevCenterSku
}

type SKUsClient

type SKUsClient struct {
	Client *resourcemanager.Client
}

func NewSKUsClientWithBaseURI

func NewSKUsClientWithBaseURI(sdkApi sdkEnv.Api) (*SKUsClient, error)

func (SKUsClient) ListBySubscription

func (c SKUsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)

ListBySubscription ...

func (SKUsClient) ListBySubscriptionComplete

func (c SKUsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)

ListBySubscriptionComplete retrieves all the results into a single object

func (SKUsClient) ListBySubscriptionCompleteMatchingPredicate

func (c SKUsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DevCenterSkuOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

type SkuTier

type SkuTier string
const (
	SkuTierBasic    SkuTier = "Basic"
	SkuTierFree     SkuTier = "Free"
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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