README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2022-09-10/listprivatelinkresources
Documentation
The listprivatelinkresources
SDK allows for interaction with the Azure Resource Manager Service recoveryservices
(API Version 2022-09-10
).
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/recoveryservices/2022-09-10/listprivatelinkresources"
Client Initialization
client := listprivatelinkresources.NewListPrivateLinkResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ListPrivateLinkResourcesClient.PrivateLinkResourcesList
ctx := context.TODO()
id := listprivatelinkresources.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")
// alternatively `client.PrivateLinkResourcesList(ctx, id)` can be used to do batched pagination
items, err := client.PrivateLinkResourcesListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type ListPrivateLinkResourcesClient
- func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error)
- func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesListComplete(ctx context.Context, id VaultId) (PrivateLinkResourcesListCompleteResult, error)
- func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesListCompleteMatchingPredicate(ctx context.Context, id VaultId, ...) (result PrivateLinkResourcesListCompleteResult, err error)
- type PrivateLinkResource
- type PrivateLinkResourceOperationPredicate
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesListCompleteResult
- type PrivateLinkResourcesListOperationResponse
- type VaultId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type ListPrivateLinkResourcesClient ¶
type ListPrivateLinkResourcesClient struct {
Client *resourcemanager.Client
}
func NewListPrivateLinkResourcesClientWithBaseURI ¶
func NewListPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ListPrivateLinkResourcesClient, error)
func (ListPrivateLinkResourcesClient) PrivateLinkResourcesList ¶
func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error)
PrivateLinkResourcesList ...
func (ListPrivateLinkResourcesClient) PrivateLinkResourcesListComplete ¶
func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesListComplete(ctx context.Context, id VaultId) (PrivateLinkResourcesListCompleteResult, error)
PrivateLinkResourcesListComplete retrieves all the results into a single object
func (ListPrivateLinkResourcesClient) PrivateLinkResourcesListCompleteMatchingPredicate ¶
func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate PrivateLinkResourceOperationPredicate) (result PrivateLinkResourcesListCompleteResult, err error)
PrivateLinkResourcesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type PrivateLinkResource ¶
type PrivateLinkResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PrivateLinkResourceOperationPredicate ¶
func (PrivateLinkResourceOperationPredicate) Matches ¶
func (p PrivateLinkResourceOperationPredicate) Matches(input PrivateLinkResource) bool
type PrivateLinkResourcesListCompleteResult ¶
type PrivateLinkResourcesListCompleteResult struct {
Items []PrivateLinkResource
}
type PrivateLinkResourcesListOperationResponse ¶
type PrivateLinkResourcesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PrivateLinkResource }
type VaultId ¶
VaultId is a struct representing the Resource ID for a Vault
func NewVaultID ¶
NewVaultID returns a new VaultId struct
func ParseVaultID ¶
ParseVaultID parses 'input' into a VaultId
func ParseVaultIDInsensitively ¶
ParseVaultIDInsensitively parses 'input' case-insensitively into a VaultId note: this method should only be used for API response data and not user input
func (VaultId) Segments ¶
func (id VaultId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Vault ID