elasticsan

package
v0.20231218.1170952 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

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

The elasticsan 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/elasticsan"

Client Initialization

client := elasticsan.NewElasticSanClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ElasticSanClient.ListByResourceGroup

ctx := context.TODO()
id := elasticsan.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningStates

func PossibleValuesForProvisioningStates() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

Types

type ElasticSan

type ElasticSan struct {
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties ElasticSanProperties   `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type ElasticSanClient

type ElasticSanClient struct {
	Client *resourcemanager.Client
}

func NewElasticSanClientWithBaseURI

func NewElasticSanClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticSanClient, error)

func (ElasticSanClient) ListByResourceGroup

ListByResourceGroup ...

func (ElasticSanClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (ElasticSanClient) ListByResourceGroupCompleteMatchingPredicate

func (c ElasticSanClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ElasticSanOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ElasticSanOperationPredicate

type ElasticSanOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ElasticSanOperationPredicate) Matches

func (p ElasticSanOperationPredicate) Matches(input ElasticSan) bool

type ElasticSanProperties

type ElasticSanProperties struct {
	AvailabilityZones       *zones.Schema       `json:"availabilityZones,omitempty"`
	BaseSizeTiB             int64               `json:"baseSizeTiB"`
	ExtendedCapacitySizeTiB int64               `json:"extendedCapacitySizeTiB"`
	ProvisioningState       *ProvisioningStates `json:"provisioningState,omitempty"`
	Sku                     Sku                 `json:"sku"`
	TotalIops               *int64              `json:"totalIops,omitempty"`
	TotalMBps               *int64              `json:"totalMBps,omitempty"`
	TotalSizeTiB            *int64              `json:"totalSizeTiB,omitempty"`
	TotalVolumeSizeGiB      *int64              `json:"totalVolumeSizeGiB,omitempty"`
	VolumeGroupCount        *int64              `json:"volumeGroupCount,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []ElasticSan
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ElasticSan
}

type ProvisioningStates

type ProvisioningStates string
const (
	ProvisioningStatesCanceled  ProvisioningStates = "Canceled"
	ProvisioningStatesCreating  ProvisioningStates = "Creating"
	ProvisioningStatesDeleting  ProvisioningStates = "Deleting"
	ProvisioningStatesFailed    ProvisioningStates = "Failed"
	ProvisioningStatesInvalid   ProvisioningStates = "Invalid"
	ProvisioningStatesPending   ProvisioningStates = "Pending"
	ProvisioningStatesSucceeded ProvisioningStates = "Succeeded"
	ProvisioningStatesUpdating  ProvisioningStates = "Updating"
)

func (*ProvisioningStates) UnmarshalJSON added in v0.20230516.1215417

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

type Sku

type Sku struct {
	Name SkuName  `json:"name"`
	Tier *SkuTier `json:"tier,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

Jump to

Keyboard shortcuts

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