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 ¶
- func PossibleValuesForResourceSkuCapacityScaleType() []string
- func PossibleValuesForSkuType() []string
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type ApiManagementServiceSkusClient
- func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, id ServiceId) (resp ListAvailableServiceSkusOperationResponse, err error)
- func (c ApiManagementServiceSkusClient) ListAvailableServiceSkusComplete(ctx context.Context, id ServiceId) (ListAvailableServiceSkusCompleteResult, error)
- func (c ApiManagementServiceSkusClient) ListAvailableServiceSkusCompleteMatchingPredicate(ctx context.Context, id ServiceId, ...) (resp ListAvailableServiceSkusCompleteResult, err error)
- type ListAvailableServiceSkusCompleteResult
- type ListAvailableServiceSkusOperationResponse
- type ResourceSku
- type ResourceSkuCapacity
- type ResourceSkuCapacityScaleType
- type ResourceSkuResult
- type ResourceSkuResultOperationPredicate
- type ServiceId
- type SkuType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForResourceSkuCapacityScaleType ¶
func PossibleValuesForResourceSkuCapacityScaleType() []string
func PossibleValuesForSkuType ¶
func PossibleValuesForSkuType() []string
func ValidateServiceID ¶
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 ¶
func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, id ServiceId) (resp ListAvailableServiceSkusOperationResponse, err error)
ListAvailableServiceSkus ...
func (ApiManagementServiceSkusClient) ListAvailableServiceSkusComplete ¶
func (c ApiManagementServiceSkusClient) ListAvailableServiceSkusComplete(ctx context.Context, id ServiceId) (ListAvailableServiceSkusCompleteResult, error)
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 (r ListAvailableServiceSkusOperationResponse) HasMore() bool
func (ListAvailableServiceSkusOperationResponse) LoadMore ¶
func (r ListAvailableServiceSkusOperationResponse) LoadMore(ctx context.Context) (resp ListAvailableServiceSkusOperationResponse, err error)
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 ¶
func (p ResourceSkuResultOperationPredicate) Matches(input ResourceSkuResult) bool
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
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) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID