README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2021-08-01/region
Documentation
The region
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/region"
Client Initialization
client := region.NewRegionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: RegionClient.ListByService
ctx := context.TODO()
id := region.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue")
// alternatively `client.ListByService(ctx, id)` can be used to do batched pagination
items, err := client.ListByServiceComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type ListByServiceCompleteResult
- type ListByServiceOperationResponse
- type RegionClient
- func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (resp ListByServiceOperationResponse, err error)
- func (c RegionClient) ListByServiceComplete(ctx context.Context, id ServiceId) (ListByServiceCompleteResult, error)
- func (c RegionClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate RegionContractOperationPredicate) (resp ListByServiceCompleteResult, err error)
- type RegionContract
- type RegionContractOperationPredicate
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type ListByServiceCompleteResult ¶
type ListByServiceCompleteResult struct {
Items []RegionContract
}
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response Model *[]RegionContract // contains filtered or unexported fields }
func (ListByServiceOperationResponse) HasMore ¶
func (r ListByServiceOperationResponse) HasMore() bool
func (ListByServiceOperationResponse) LoadMore ¶
func (r ListByServiceOperationResponse) LoadMore(ctx context.Context) (resp ListByServiceOperationResponse, err error)
type RegionClient ¶
func NewRegionClientWithBaseURI ¶
func NewRegionClientWithBaseURI(endpoint string) RegionClient
func (RegionClient) ListByService ¶
func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (resp ListByServiceOperationResponse, err error)
ListByService ...
func (RegionClient) ListByServiceComplete ¶
func (c RegionClient) ListByServiceComplete(ctx context.Context, id ServiceId) (ListByServiceCompleteResult, error)
ListByServiceComplete retrieves all of the results into a single object
func (RegionClient) ListByServiceCompleteMatchingPredicate ¶
func (c RegionClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, predicate RegionContractOperationPredicate) (resp ListByServiceCompleteResult, err error)
ListByServiceCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type RegionContract ¶
type RegionContractOperationPredicate ¶
func (RegionContractOperationPredicate) Matches ¶
func (p RegionContractOperationPredicate) Matches(input RegionContract) 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