README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2024-05-01/elasticsanskus
Documentation
The elasticsanskus
SDK allows for interaction with Azure Resource Manager elasticsan
(API Version 2024-05-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2024-05-01/elasticsanskus"
Client Initialization
client := elasticsanskus.NewElasticSanSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ElasticSanSkusClient.SkusList
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.SkusList(ctx, id, elasticsanskus.DefaultSkusListOperationOptions())` can be used to do batched pagination
items, err := client.SkusListComplete(ctx, id, elasticsanskus.DefaultSkusListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation
¶
Index ¶
- func PossibleValuesForSkuName() []string
- func PossibleValuesForSkuTier() []string
- type ElasticSanSkusClient
- func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.SubscriptionId, ...) (result SkusListOperationResponse, err error)
- func (c ElasticSanSkusClient) SkusListComplete(ctx context.Context, id commonids.SubscriptionId, ...) (SkusListCompleteResult, error)
- func (c ElasticSanSkusClient) SkusListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result SkusListCompleteResult, err error)
- type SKUCapability
- type SkuInformation
- type SkuInformationOperationPredicate
- type SkuLocationInfo
- type SkuName
- type SkuTier
- type SkusListCompleteResult
- type SkusListCustomPager
- type SkusListOperationOptions
- type SkusListOperationResponse
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 ¶
func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.SubscriptionId, options SkusListOperationOptions) (result SkusListOperationResponse, err error)
SkusList ...
func (ElasticSanSkusClient) SkusListComplete ¶
func (c ElasticSanSkusClient) SkusListComplete(ctx context.Context, id commonids.SubscriptionId, options SkusListOperationOptions) (SkusListCompleteResult, error)
SkusListComplete retrieves all the results into a single object
func (ElasticSanSkusClient) SkusListCompleteMatchingPredicate ¶
func (c ElasticSanSkusClient) SkusListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options SkusListOperationOptions, predicate SkuInformationOperationPredicate) (result SkusListCompleteResult, err error)
SkusListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SKUCapability ¶
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 SkuInformationOperationPredicate ¶
type SkuInformationOperationPredicate struct {
ResourceType *string
}
func (SkuInformationOperationPredicate) Matches ¶
func (p SkuInformationOperationPredicate) Matches(input SkuInformation) bool
type SkuLocationInfo ¶
type SkuTier ¶
type SkuTier string
const (
SkuTierPremium SkuTier = "Premium"
)
func (*SkuTier) UnmarshalJSON ¶
type SkusListCompleteResult ¶
type SkusListCompleteResult struct { LatestHttpResponse *http.Response Items []SkuInformation }
type SkusListCustomPager ¶ added in v0.20240628.1153531
func (*SkusListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *SkusListCustomPager) NextPageLink() *odata.Link
type SkusListOperationOptions ¶
type SkusListOperationOptions struct {
Filter *string
}
func DefaultSkusListOperationOptions ¶
func DefaultSkusListOperationOptions() SkusListOperationOptions
func (SkusListOperationOptions) ToHeaders ¶
func (o SkusListOperationOptions) ToHeaders() *client.Headers
func (SkusListOperationOptions) ToOData ¶
func (o SkusListOperationOptions) ToOData() *odata.Query
func (SkusListOperationOptions) ToQuery ¶
func (o SkusListOperationOptions) ToQuery() *client.QueryParams
type SkusListOperationResponse ¶
type SkusListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SkuInformation }
Click to show internal directories.
Click to hide internal directories.