skus

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

The skus SDK allows for interaction with Azure Resource Manager storage (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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/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 := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.List(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForKind

func PossibleValuesForKind() []string

func PossibleValuesForReasonCode

func PossibleValuesForReasonCode() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

Types

type Kind

type Kind string
const (
	KindBlobStorage      Kind = "BlobStorage"
	KindBlockBlobStorage Kind = "BlockBlobStorage"
	KindFileStorage      Kind = "FileStorage"
	KindStorage          Kind = "Storage"
	KindStorageVTwo      Kind = "StorageV2"
)

func (*Kind) UnmarshalJSON

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageSkuListResult
}

type ReasonCode

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

func (*ReasonCode) UnmarshalJSON

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

type Restriction

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

type SKUCapability

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

type SkuInformation

type SkuInformation struct {
	Capabilities *[]SKUCapability `json:"capabilities,omitempty"`
	Kind         *Kind            `json:"kind,omitempty"`
	Locations    *[]string        `json:"locations,omitempty"`
	Name         SkuName          `json:"name"`
	ResourceType *string          `json:"resourceType,omitempty"`
	Restrictions *[]Restriction   `json:"restrictions,omitempty"`
	Tier         *SkuTier         `json:"tier,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNamePremiumLRS     SkuName = "Premium_LRS"
	SkuNamePremiumZRS     SkuName = "Premium_ZRS"
	SkuNameStandardGRS    SkuName = "Standard_GRS"
	SkuNameStandardGZRS   SkuName = "Standard_GZRS"
	SkuNameStandardLRS    SkuName = "Standard_LRS"
	SkuNameStandardRAGRS  SkuName = "Standard_RAGRS"
	SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS"
	SkuNameStandardZRS    SkuName = "Standard_ZRS"
)

func (*SkuName) UnmarshalJSON

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

type SkuTier

type SkuTier string
const (
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

func (s *SkuTier) 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 ...

type StorageSkuListResult

type StorageSkuListResult struct {
	Value *[]SkuInformation `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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