apimanagementserviceskus

package
v0.20230922.1111207 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

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

The apimanagementserviceskus SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2022-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/2022-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 *resourcemanager.Client
}

func NewApiManagementServiceSkusClientWithBaseURI

func NewApiManagementServiceSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiManagementServiceSkusClient, error)

func (ApiManagementServiceSkusClient) ListAvailableServiceSkus

ListAvailableServiceSkus ...

func (ApiManagementServiceSkusClient) ListAvailableServiceSkusComplete

ListAvailableServiceSkusComplete retrieves all the results into a single object

func (ApiManagementServiceSkusClient) ListAvailableServiceSkusCompleteMatchingPredicate

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

ListAvailableServiceSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListAvailableServiceSkusCompleteResult

type ListAvailableServiceSkusCompleteResult struct {
	Items []ResourceSkuResult
}

type ListAvailableServiceSkusOperationResponse

type ListAvailableServiceSkusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ResourceSkuResult
}

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"
)

func (*ResourceSkuCapacityScaleType) UnmarshalJSON added in v0.20230801.1071415

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

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"
)

func (*SkuType) UnmarshalJSON added in v0.20230801.1071415

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

Jump to

Keyboard shortcuts

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