sku

package
v0.20231024.1145744 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/sku Documentation

The sku SDK allows for interaction with the Azure Resource Manager Service redisenterprise (API Version 2023-10-01-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/redisenterprise/2023-10-01-preview/sku"

Client Initialization

client := sku.NewSKUClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SKUClient.List

ctx := context.TODO()
id := sku.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

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 PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func ValidateLocationID

func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type Capability

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

type ListOperationResponse

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

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

func (id LocationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type LocationInfo

type LocationInfo struct {
	Capabilities *[]Capability `json:"capabilities,omitempty"`
	Location     *string       `json:"location,omitempty"`
}

type RegionSkuDetail

type RegionSkuDetail struct {
	LocationInfo *LocationInfo `json:"locationInfo,omitempty"`
	ResourceType *string       `json:"resourceType,omitempty"`
	SkuDetails   *SkuDetail    `json:"skuDetails,omitempty"`
}

type RegionSkuDetails

type RegionSkuDetails struct {
	Value *[]RegionSkuDetail `json:"value,omitempty"`
}

type SKUClient

type SKUClient struct {
	Client *resourcemanager.Client
}

func NewSKUClientWithBaseURI

func NewSKUClientWithBaseURI(sdkApi sdkEnv.Api) (*SKUClient, error)

func (SKUClient) List

func (c SKUClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error)

List ...

type SkuDetail

type SkuDetail struct {
	Name *SkuName `json:"name,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNameEnterpriseEFive                SkuName = "Enterprise_E5"
	SkuNameEnterpriseEFiveZero            SkuName = "Enterprise_E50"
	SkuNameEnterpriseEFourHundred         SkuName = "Enterprise_E400"
	SkuNameEnterpriseEOneHundred          SkuName = "Enterprise_E100"
	SkuNameEnterpriseEOneZero             SkuName = "Enterprise_E10"
	SkuNameEnterpriseETwoHundred          SkuName = "Enterprise_E200"
	SkuNameEnterpriseETwoZero             SkuName = "Enterprise_E20"
	SkuNameEnterpriseFlashFOneFiveHundred SkuName = "EnterpriseFlash_F1500"
	SkuNameEnterpriseFlashFSevenHundred   SkuName = "EnterpriseFlash_F700"
	SkuNameEnterpriseFlashFThreeHundred   SkuName = "EnterpriseFlash_F300"
)

func (*SkuName) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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