README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkresources
Documentation
The privatelinkresources
SDK allows for interaction with the Azure Resource Manager Service insights
(API Version 2019-10-17-preview
).
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/insights/2019-10-17-preview/privatelinkresources"
Client Initialization
client := privatelinkresources.NewPrivateLinkResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PrivateLinkResourcesClient.Get
ctx := context.TODO()
id := privatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateLinkResourceValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PrivateLinkResourcesClient.ListByPrivateLinkScope
ctx := context.TODO()
id := privatelinkresources.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue")
// alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination
items, err := client.ListByPrivateLinkScopeComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidatePrivateLinkResourceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidatePrivateLinkScopeID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByPrivateLinkScopeCompleteResult
- type ListByPrivateLinkScopeOperationResponse
- type PrivateLinkResource
- type PrivateLinkResourceId
- func NewPrivateLinkResourceID(subscriptionId string, resourceGroupName string, privateLinkScopeName string, ...) PrivateLinkResourceId
- func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error)
- func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResourceId, error)
- type PrivateLinkResourceOperationPredicate
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (c PrivateLinkResourcesClient) Get(ctx context.Context, id PrivateLinkResourceId) (result GetOperationResponse, err error)
- func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error)
- func (c PrivateLinkResourcesClient) ListByPrivateLinkScopeComplete(ctx context.Context, id PrivateLinkScopeId) (ListByPrivateLinkScopeCompleteResult, error)
- func (c PrivateLinkResourcesClient) ListByPrivateLinkScopeCompleteMatchingPredicate(ctx context.Context, id PrivateLinkScopeId, ...) (result ListByPrivateLinkScopeCompleteResult, err error)
- type PrivateLinkScopeId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
func ValidatePrivateLinkScopeID ¶
ValidatePrivateLinkScopeID checks that 'input' can be parsed as a Private Link Scope ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrivateLinkResource }
type ListByPrivateLinkScopeCompleteResult ¶
type ListByPrivateLinkScopeCompleteResult struct { LatestHttpResponse *http.Response Items []PrivateLinkResource }
type ListByPrivateLinkScopeOperationResponse ¶
type ListByPrivateLinkScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PrivateLinkResource }
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 PrivateLinkResourceId ¶
type PrivateLinkResourceId struct { SubscriptionId string ResourceGroupName string PrivateLinkScopeName string PrivateLinkResourceName string }
PrivateLinkResourceId is a struct representing the Resource ID for a Private Link Resource
func NewPrivateLinkResourceID ¶
func NewPrivateLinkResourceID(subscriptionId string, resourceGroupName string, privateLinkScopeName string, privateLinkResourceName 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) FromParseResult ¶
func (id *PrivateLinkResourceId) FromParseResult(input resourceids.ParseResult) error
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
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
Client *resourcemanager.Client
}
func NewPrivateLinkResourcesClientWithBaseURI ¶
func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error)
func (PrivateLinkResourcesClient) Get ¶
func (c PrivateLinkResourcesClient) Get(ctx context.Context, id PrivateLinkResourceId) (result GetOperationResponse, err error)
Get ...
func (PrivateLinkResourcesClient) ListByPrivateLinkScope ¶
func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error)
ListByPrivateLinkScope ...
func (PrivateLinkResourcesClient) ListByPrivateLinkScopeComplete ¶
func (c PrivateLinkResourcesClient) ListByPrivateLinkScopeComplete(ctx context.Context, id PrivateLinkScopeId) (ListByPrivateLinkScopeCompleteResult, error)
ListByPrivateLinkScopeComplete retrieves all the results into a single object
func (PrivateLinkResourcesClient) ListByPrivateLinkScopeCompleteMatchingPredicate ¶
func (c PrivateLinkResourcesClient) ListByPrivateLinkScopeCompleteMatchingPredicate(ctx context.Context, id PrivateLinkScopeId, predicate PrivateLinkResourceOperationPredicate) (result ListByPrivateLinkScopeCompleteResult, err error)
ListByPrivateLinkScopeCompleteMatchingPredicate retrieves all the results and then applies the predicate
type PrivateLinkScopeId ¶
type PrivateLinkScopeId struct { SubscriptionId string ResourceGroupName string PrivateLinkScopeName string }
PrivateLinkScopeId is a struct representing the Resource ID for a Private Link Scope
func NewPrivateLinkScopeID ¶
func NewPrivateLinkScopeID(subscriptionId string, resourceGroupName string, privateLinkScopeName string) PrivateLinkScopeId
NewPrivateLinkScopeID returns a new PrivateLinkScopeId struct
func ParsePrivateLinkScopeID ¶
func ParsePrivateLinkScopeID(input string) (*PrivateLinkScopeId, error)
ParsePrivateLinkScopeID parses 'input' into a PrivateLinkScopeId
func ParsePrivateLinkScopeIDInsensitively ¶
func ParsePrivateLinkScopeIDInsensitively(input string) (*PrivateLinkScopeId, error)
ParsePrivateLinkScopeIDInsensitively parses 'input' case-insensitively into a PrivateLinkScopeId note: this method should only be used for API response data and not user input
func (*PrivateLinkScopeId) FromParseResult ¶
func (id *PrivateLinkScopeId) FromParseResult(input resourceids.ParseResult) error
func (PrivateLinkScopeId) ID ¶
func (id PrivateLinkScopeId) ID() string
ID returns the formatted Private Link Scope ID
func (PrivateLinkScopeId) Segments ¶
func (id PrivateLinkScopeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Private Link Scope ID
func (PrivateLinkScopeId) String ¶
func (id PrivateLinkScopeId) String() string
String returns a human-readable description of this Private Link Scope ID