skus

package
v0.20231215.1114251 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus Documentation

The skus SDK allows for interaction with the Azure Resource Manager Service storagecache (API Version 2023-05-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/storagecache/2023-05-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 PossibleValuesForReasonCode

func PossibleValuesForReasonCode() []string

Types

type ListCompleteResult

type ListCompleteResult struct {
	Items []ResourceSku
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ResourceSku
}

type ReasonCode

type ReasonCode string
const (
	ReasonCodeNotAvailableForSubscription ReasonCode = "NotAvailableForSubscription"
	ReasonCodeQuotaId                     ReasonCode = "QuotaId"
)

func (*ReasonCode) UnmarshalJSON added in v0.20230720.1124505

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

type ResourceSku

type ResourceSku struct {
	Capabilities *[]ResourceSkuCapabilities `json:"capabilities,omitempty"`
	LocationInfo *[]ResourceSkuLocationInfo `json:"locationInfo,omitempty"`
	Locations    *[]string                  `json:"locations,omitempty"`
	Name         *string                    `json:"name,omitempty"`
	ResourceType *string                    `json:"resourceType,omitempty"`
	Restrictions *[]Restriction             `json:"restrictions,omitempty"`
}

type ResourceSkuCapabilities

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

type ResourceSkuLocationInfo

type ResourceSkuLocationInfo struct {
	Location *string       `json:"location,omitempty"`
	Zones    *zones.Schema `json:"zones,omitempty"`
}

type ResourceSkuOperationPredicate

type ResourceSkuOperationPredicate struct {
	Name         *string
	ResourceType *string
}

func (ResourceSkuOperationPredicate) Matches

type Restriction

type Restriction struct {
	ReasonCode *ReasonCode `json:"reasonCode,omitempty"`
	Type       *string     `json:"type,omitempty"`
	Values     *[]string   `json:"values,omitempty"`
}

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 ResourceSkuOperationPredicate) (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