skus

package
v0.20221025.1104718 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2021-04-01/skus Documentation

The skus SDK allows for interaction with the Azure Resource Manager Service storage (API Version 2021-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-sdk/resource-manager/storage/2021-04-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")

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

type ListOperationResponse

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

type ReasonCode

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

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

type SkuTier

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

type SkusClient

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

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(endpoint string) SkusClient

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