skus

package
v0.20220829.1124140 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2021-08-01/skus Documentation

The skus SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2021-08-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/apimanagement/2021-08-01/skus"

Client Initialization

client := skus.NewSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SkusClient.ApiManagementSkusList

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

// alternatively `client.ApiManagementSkusList(ctx, id)` can be used to do batched pagination
items, err := client.ApiManagementSkusListComplete(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 PossibleValuesForApiManagementSkuCapacityScaleType

func PossibleValuesForApiManagementSkuCapacityScaleType() []string

func PossibleValuesForApiManagementSkuRestrictionsReasonCode

func PossibleValuesForApiManagementSkuRestrictionsReasonCode() []string

func PossibleValuesForApiManagementSkuRestrictionsType

func PossibleValuesForApiManagementSkuRestrictionsType() []string

Types

type ApiManagementSku

type ApiManagementSku struct {
	ApiVersions  *[]string                       `json:"apiVersions,omitempty"`
	Capabilities *[]ApiManagementSkuCapabilities `json:"capabilities,omitempty"`
	Capacity     *ApiManagementSkuCapacity       `json:"capacity,omitempty"`
	Costs        *[]ApiManagementSkuCosts        `json:"costs,omitempty"`
	Family       *string                         `json:"family,omitempty"`
	Kind         *string                         `json:"kind,omitempty"`
	LocationInfo *[]ApiManagementSkuLocationInfo `json:"locationInfo,omitempty"`
	Locations    *[]string                       `json:"locations,omitempty"`
	Name         *string                         `json:"name,omitempty"`
	ResourceType *string                         `json:"resourceType,omitempty"`
	Restrictions *[]ApiManagementSkuRestrictions `json:"restrictions,omitempty"`
	Size         *string                         `json:"size,omitempty"`
	Tier         *string                         `json:"tier,omitempty"`
}

type ApiManagementSkuCapabilities

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

type ApiManagementSkuCapacity

type ApiManagementSkuCapacity struct {
	Default   *int64                             `json:"default,omitempty"`
	Maximum   *int64                             `json:"maximum,omitempty"`
	Minimum   *int64                             `json:"minimum,omitempty"`
	ScaleType *ApiManagementSkuCapacityScaleType `json:"scaleType,omitempty"`
}

type ApiManagementSkuCapacityScaleType

type ApiManagementSkuCapacityScaleType string
const (
	ApiManagementSkuCapacityScaleTypeAutomatic ApiManagementSkuCapacityScaleType = "Automatic"
	ApiManagementSkuCapacityScaleTypeManual    ApiManagementSkuCapacityScaleType = "Manual"
	ApiManagementSkuCapacityScaleTypeNone      ApiManagementSkuCapacityScaleType = "None"
)

type ApiManagementSkuCosts

type ApiManagementSkuCosts struct {
	ExtendedUnit *string `json:"extendedUnit,omitempty"`
	MeterID      *string `json:"meterID,omitempty"`
	Quantity     *int64  `json:"quantity,omitempty"`
}

type ApiManagementSkuLocationInfo

type ApiManagementSkuLocationInfo struct {
	Location    *string                        `json:"location,omitempty"`
	ZoneDetails *[]ApiManagementSkuZoneDetails `json:"zoneDetails,omitempty"`
	Zones       *[]string                      `json:"zones,omitempty"`
}

type ApiManagementSkuOperationPredicate

type ApiManagementSkuOperationPredicate struct {
	Family       *string
	Kind         *string
	Name         *string
	ResourceType *string
	Size         *string
	Tier         *string
}

func (ApiManagementSkuOperationPredicate) Matches

type ApiManagementSkuRestrictionInfo

type ApiManagementSkuRestrictionInfo struct {
	Locations *[]string `json:"locations,omitempty"`
	Zones     *[]string `json:"zones,omitempty"`
}

type ApiManagementSkuRestrictions

type ApiManagementSkuRestrictions struct {
	ReasonCode      *ApiManagementSkuRestrictionsReasonCode `json:"reasonCode,omitempty"`
	RestrictionInfo *ApiManagementSkuRestrictionInfo        `json:"restrictionInfo,omitempty"`
	Type            *ApiManagementSkuRestrictionsType       `json:"type,omitempty"`
	Values          *[]string                               `json:"values,omitempty"`
}

type ApiManagementSkuRestrictionsReasonCode

type ApiManagementSkuRestrictionsReasonCode string
const (
	ApiManagementSkuRestrictionsReasonCodeNotAvailableForSubscription ApiManagementSkuRestrictionsReasonCode = "NotAvailableForSubscription"
	ApiManagementSkuRestrictionsReasonCodeQuotaId                     ApiManagementSkuRestrictionsReasonCode = "QuotaId"
)

type ApiManagementSkuRestrictionsType

type ApiManagementSkuRestrictionsType string
const (
	ApiManagementSkuRestrictionsTypeLocation ApiManagementSkuRestrictionsType = "Location"
	ApiManagementSkuRestrictionsTypeZone     ApiManagementSkuRestrictionsType = "Zone"
)

type ApiManagementSkuZoneDetails

type ApiManagementSkuZoneDetails struct {
	Capabilities *[]ApiManagementSkuCapabilities `json:"capabilities,omitempty"`
	Name         *[]string                       `json:"name,omitempty"`
}

type ApiManagementSkusListCompleteResult

type ApiManagementSkusListCompleteResult struct {
	Items []ApiManagementSku
}

type ApiManagementSkusListOperationResponse

type ApiManagementSkusListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ApiManagementSku
	// contains filtered or unexported fields
}

func (ApiManagementSkusListOperationResponse) HasMore

func (ApiManagementSkusListOperationResponse) LoadMore

type SkusClient

type SkusClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewSkusClientWithBaseURI

func NewSkusClientWithBaseURI(endpoint string) SkusClient

func (SkusClient) ApiManagementSkusList

func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.SubscriptionId) (resp ApiManagementSkusListOperationResponse, err error)

ApiManagementSkusList ...

func (SkusClient) ApiManagementSkusListComplete

func (c SkusClient) ApiManagementSkusListComplete(ctx context.Context, id commonids.SubscriptionId) (ApiManagementSkusListCompleteResult, error)

ApiManagementSkusListComplete retrieves all of the results into a single object

func (SkusClient) ApiManagementSkusListCompleteMatchingPredicate

func (c SkusClient) ApiManagementSkusListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApiManagementSkuOperationPredicate) (resp ApiManagementSkusListCompleteResult, err error)

ApiManagementSkusListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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