README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/privatelinkresource
Documentation
The privatelinkresource
SDK allows for interaction with the Azure Resource Manager Service purview
(API Version 2021-07-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/purview/2021-07-01/privatelinkresource"
Client Initialization
client := privatelinkresource.NewPrivateLinkResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PrivateLinkResourceClient.GetByGroupId
ctx := context.TODO()
id := privatelinkresource.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "groupIdValue")
read, err := client.GetByGroupId(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PrivateLinkResourceClient.ListByAccount
ctx := context.TODO()
id := privatelinkresource.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")
// alternatively `client.ListByAccount(ctx, id)` can be used to do batched pagination
items, err := client.ListByAccountComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidatePrivateLinkResourceID(input interface{}, key string) (warnings []string, errors []error)
- type AccountId
- type GetByGroupIdOperationResponse
- type ListByAccountCompleteResult
- type ListByAccountOperationResponse
- type PrivateLinkResource
- type PrivateLinkResourceClient
- func (c PrivateLinkResourceClient) GetByGroupId(ctx context.Context, id PrivateLinkResourceId) (result GetByGroupIdOperationResponse, err error)
- func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id AccountId) (resp ListByAccountOperationResponse, err error)
- func (c PrivateLinkResourceClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
- func (c PrivateLinkResourceClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, ...) (resp ListByAccountCompleteResult, err error)
- type PrivateLinkResourceId
- type PrivateLinkResourceOperationPredicate
- type PrivateLinkResourceProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidatePrivateLinkResourceID ¶
func ValidatePrivateLinkResourceID(input interface{}, key string) (warnings []string, errors []error)
ValidatePrivateLinkResourceID checks that 'input' can be parsed as a Private Link Resource ID
Types ¶
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
type GetByGroupIdOperationResponse ¶
type GetByGroupIdOperationResponse struct { HttpResponse *http.Response Model *PrivateLinkResource }
type ListByAccountCompleteResult ¶
type ListByAccountCompleteResult struct {
Items []PrivateLinkResource
}
type ListByAccountOperationResponse ¶
type ListByAccountOperationResponse struct { HttpResponse *http.Response Model *[]PrivateLinkResource // contains filtered or unexported fields }
func (ListByAccountOperationResponse) HasMore ¶
func (r ListByAccountOperationResponse) HasMore() bool
func (ListByAccountOperationResponse) LoadMore ¶
func (r ListByAccountOperationResponse) LoadMore(ctx context.Context) (resp ListByAccountOperationResponse, err error)
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 PrivateLinkResourceClient ¶
type PrivateLinkResourceClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewPrivateLinkResourceClientWithBaseURI ¶
func NewPrivateLinkResourceClientWithBaseURI(endpoint string) PrivateLinkResourceClient
func (PrivateLinkResourceClient) GetByGroupId ¶
func (c PrivateLinkResourceClient) GetByGroupId(ctx context.Context, id PrivateLinkResourceId) (result GetByGroupIdOperationResponse, err error)
GetByGroupId ...
func (PrivateLinkResourceClient) ListByAccount ¶
func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id AccountId) (resp ListByAccountOperationResponse, err error)
ListByAccount ...
func (PrivateLinkResourceClient) ListByAccountComplete ¶
func (c PrivateLinkResourceClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
ListByAccountComplete retrieves all of the results into a single object
func (PrivateLinkResourceClient) ListByAccountCompleteMatchingPredicate ¶
func (c PrivateLinkResourceClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate PrivateLinkResourceOperationPredicate) (resp ListByAccountCompleteResult, err error)
ListByAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type PrivateLinkResourceId ¶
type PrivateLinkResourceId struct { SubscriptionId string ResourceGroupName string AccountName string GroupId string }
PrivateLinkResourceId is a struct representing the Resource ID for a Private Link Resource
func NewPrivateLinkResourceID ¶
func NewPrivateLinkResourceID(subscriptionId string, resourceGroupName string, accountName string, groupId string) PrivateLinkResourceId
NewPrivateLinkResourceID returns a new PrivateLinkResourceId struct
func ParsePrivateLinkResourceID ¶
func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error)
ParsePrivateLinkResourceID parses 'input' into a PrivateLinkResourceId
func ParsePrivateLinkResourceIDInsensitively ¶
func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResourceId, error)
ParsePrivateLinkResourceIDInsensitively parses 'input' case-insensitively into a PrivateLinkResourceId note: this method should only be used for API response data and not user input
func (PrivateLinkResourceId) ID ¶
func (id PrivateLinkResourceId) ID() string
ID returns the formatted Private Link Resource ID
func (PrivateLinkResourceId) Segments ¶
func (id PrivateLinkResourceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Private Link Resource ID
func (PrivateLinkResourceId) String ¶
func (id PrivateLinkResourceId) String() string
String returns a human-readable description of this Private Link Resource ID
type PrivateLinkResourceOperationPredicate ¶
func (PrivateLinkResourceOperationPredicate) Matches ¶
func (p PrivateLinkResourceOperationPredicate) Matches(input PrivateLinkResource) bool