elasticsanskus

package
v0.20231121.1131003 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2021-11-20-preview/elasticsanskus Documentation

The elasticsanskus SDK allows for interaction with the Azure Resource Manager Service elasticsan (API Version 2021-11-20-preview).

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/elasticsan/2021-11-20-preview/elasticsanskus"

Client Initialization

client := elasticsanskus.NewElasticSanSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ElasticSanSkusClient.SkusList

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

read, err := client.SkusList(ctx, id, elasticsanskus.DefaultSkusListOperationOptions())
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 PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

Types

type ElasticSanSkusClient

type ElasticSanSkusClient struct {
	Client *resourcemanager.Client
}

func NewElasticSanSkusClientWithBaseURI

func NewElasticSanSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticSanSkusClient, error)

func (ElasticSanSkusClient) SkusList

SkusList ...

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"`
	LocationInfo *[]SkuLocationInfo `json:"locationInfo,omitempty"`
	Locations    *[]string          `json:"locations,omitempty"`
	Name         SkuName            `json:"name"`
	ResourceType *string            `json:"resourceType,omitempty"`
	Tier         *SkuTier           `json:"tier,omitempty"`
}

type SkuInformationList

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

type SkuLocationInfo

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

type SkuName

type SkuName string
const (
	SkuNamePremiumLRS SkuName = "Premium_LRS"
	SkuNamePremiumZRS SkuName = "Premium_ZRS"
)

func (*SkuName) UnmarshalJSON added in v0.20230516.1215417

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

type SkuTier

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

func (*SkuTier) UnmarshalJSON added in v0.20230516.1215417

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

type SkusListOperationOptions

type SkusListOperationOptions struct {
	Filter *string
}

func DefaultSkusListOperationOptions

func DefaultSkusListOperationOptions() SkusListOperationOptions

func (SkusListOperationOptions) ToHeaders added in v0.20230516.1215417

func (o SkusListOperationOptions) ToHeaders() *client.Headers

func (SkusListOperationOptions) ToOData added in v0.20230516.1215417

func (o SkusListOperationOptions) ToOData() *odata.Query

func (SkusListOperationOptions) ToQuery added in v0.20230516.1215417

type SkusListOperationResponse

type SkusListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SkuInformationList
}

Jump to

Keyboard shortcuts

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