README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-09-01/skus
Documentation
The skus
SDK allows for interaction with the Azure Resource Manager Service storage
(API Version 2022-09-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/2022-09-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 ¶
- func PossibleValuesForKind() []string
- func PossibleValuesForReasonCode() []string
- func PossibleValuesForSkuName() []string
- func PossibleValuesForSkuTier() []string
- type Kind
- type ListOperationResponse
- type ReasonCode
- type Restriction
- type SKUCapability
- type SkuInformation
- type SkuName
- type SkuTier
- type SkusClient
- type StorageSkuListResult
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 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 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 SkusClient ¶
func NewSkusClientWithBaseURI ¶
func NewSkusClientWithBaseURI(endpoint string) SkusClient
func (SkusClient) List ¶
func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
type StorageSkuListResult ¶
type StorageSkuListResult struct {
Value *[]SkuInformation `json:"value,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.