apimanagementserviceskus

package
v0.20230124.1141353 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := apimanagementserviceskus.NewApiManagementServiceSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApiManagementServiceSkusClient.ListAvailableServiceSkus

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

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

func PossibleValuesForResourceSkuCapacityScaleType() []string

func PossibleValuesForSkuType

func PossibleValuesForSkuType() []string

func ValidateServiceID

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

ValidateServiceID checks that 'input' can be parsed as a Service ID

Types

type ApiManagementServiceSkusClient

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

func NewApiManagementServiceSkusClientWithBaseURI

func NewApiManagementServiceSkusClientWithBaseURI(endpoint string) ApiManagementServiceSkusClient

func (ApiManagementServiceSkusClient) ListAvailableServiceSkus

ListAvailableServiceSkus ...

func (ApiManagementServiceSkusClient) ListAvailableServiceSkusComplete

ListAvailableServiceSkusComplete retrieves all of the results into a single object

func (ApiManagementServiceSkusClient) ListAvailableServiceSkusCompleteMatchingPredicate

func (c ApiManagementServiceSkusClient) ListAvailableServiceSkusCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate ResourceSkuResultOperationPredicate) (resp ListAvailableServiceSkusCompleteResult, err error)

ListAvailableServiceSkusCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ListAvailableServiceSkusCompleteResult

type ListAvailableServiceSkusCompleteResult struct {
	Items []ResourceSkuResult
}

type ListAvailableServiceSkusOperationResponse

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

func (ListAvailableServiceSkusOperationResponse) HasMore

func (ListAvailableServiceSkusOperationResponse) LoadMore

type ResourceSku

type ResourceSku struct {
	Name *SkuType `json:"name,omitempty"`
}

type ResourceSkuCapacity

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

type ResourceSkuCapacityScaleType

type ResourceSkuCapacityScaleType string
const (
	ResourceSkuCapacityScaleTypeAutomatic ResourceSkuCapacityScaleType = "automatic"
	ResourceSkuCapacityScaleTypeManual    ResourceSkuCapacityScaleType = "manual"
	ResourceSkuCapacityScaleTypeNone      ResourceSkuCapacityScaleType = "none"
)

type ResourceSkuResult

type ResourceSkuResult struct {
	Capacity     *ResourceSkuCapacity `json:"capacity,omitempty"`
	ResourceType *string              `json:"resourceType,omitempty"`
	Sku          *ResourceSku         `json:"sku,omitempty"`
}

type ResourceSkuResultOperationPredicate

type ResourceSkuResultOperationPredicate struct {
	ResourceType *string
}

func (ResourceSkuResultOperationPredicate) Matches

type ServiceId

type ServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

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

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

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

type SkuType

type SkuType string
const (
	SkuTypeBasic       SkuType = "Basic"
	SkuTypeConsumption SkuType = "Consumption"
	SkuTypeDeveloper   SkuType = "Developer"
	SkuTypeIsolated    SkuType = "Isolated"
	SkuTypePremium     SkuType = "Premium"
	SkuTypeStandard    SkuType = "Standard"
)

Jump to

Keyboard shortcuts

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