README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis
Documentation
The privatelinkscopesapis
SDK allows for interaction with Azure Resource Manager insights
(API Version 2021-07-01-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis"
Client Initialization
client := privatelinkscopesapis.NewPrivateLinkScopesAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesCreateOrUpdate
ctx := context.TODO()
id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeName")
payload := privatelinkscopesapis.AzureMonitorPrivateLinkScope{
// ...
}
read, err := client.PrivateLinkScopesCreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesDelete
ctx := context.TODO()
id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeName")
if err := client.PrivateLinkScopesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesGet
ctx := context.TODO()
id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeName")
read, err := client.PrivateLinkScopesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesList
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.PrivateLinkScopesList(ctx, id)` can be used to do batched pagination
items, err := client.PrivateLinkScopesListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.PrivateLinkScopesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.PrivateLinkScopesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: PrivateLinkScopesAPIsClient.PrivateLinkScopesUpdateTags
ctx := context.TODO()
id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeName")
payload := privatelinkscopesapis.TagsResource{
// ...
}
read, err := client.PrivateLinkScopesUpdateTags(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForAccessMode() []string
- func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
- func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
- func ValidatePrivateLinkScopeID(input interface{}, key string) (warnings []string, errors []error)
- type AccessMode
- type AccessModeSettings
- type AccessModeSettingsExclusion
- type AzureMonitorPrivateLinkScope
- type AzureMonitorPrivateLinkScopeOperationPredicate
- type AzureMonitorPrivateLinkScopeProperties
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkScopeId
- type PrivateLinkScopesAPIsClient
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesCreateOrUpdate(ctx context.Context, id PrivateLinkScopeId, input AzureMonitorPrivateLinkScope) (result PrivateLinkScopesCreateOrUpdateOperationResponse, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesDelete(ctx context.Context, id PrivateLinkScopeId) (result PrivateLinkScopesDeleteOperationResponse, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesDeleteThenPoll(ctx context.Context, id PrivateLinkScopeId) error
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesGet(ctx context.Context, id PrivateLinkScopeId) (result PrivateLinkScopesGetOperationResponse, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, id commonids.SubscriptionId) (result PrivateLinkScopesListOperationResponse, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result PrivateLinkScopesListByResourceGroupOperationResponse, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (PrivateLinkScopesListByResourceGroupCompleteResult, error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result PrivateLinkScopesListByResourceGroupCompleteResult, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListComplete(ctx context.Context, id commonids.SubscriptionId) (PrivateLinkScopesListCompleteResult, error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result PrivateLinkScopesListCompleteResult, err error)
- func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesUpdateTags(ctx context.Context, id PrivateLinkScopeId, input TagsResource) (result PrivateLinkScopesUpdateTagsOperationResponse, err error)
- type PrivateLinkScopesCreateOrUpdateOperationResponse
- type PrivateLinkScopesDeleteOperationResponse
- type PrivateLinkScopesGetOperationResponse
- type PrivateLinkScopesListByResourceGroupCompleteResult
- type PrivateLinkScopesListByResourceGroupCustomPager
- type PrivateLinkScopesListByResourceGroupOperationResponse
- type PrivateLinkScopesListCompleteResult
- type PrivateLinkScopesListCustomPager
- type PrivateLinkScopesListOperationResponse
- type PrivateLinkScopesUpdateTagsOperationResponse
- type PrivateLinkServiceConnectionState
- type TagsResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAccessMode ¶
func PossibleValuesForAccessMode() []string
func PossibleValuesForPrivateEndpointConnectionProvisioningState ¶
func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string
func PossibleValuesForPrivateEndpointServiceConnectionStatus ¶
func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string
func ValidatePrivateLinkScopeID ¶
ValidatePrivateLinkScopeID checks that 'input' can be parsed as a Private Link Scope ID
Types ¶
type AccessMode ¶
type AccessMode string
const ( AccessModeOpen AccessMode = "Open" AccessModePrivateOnly AccessMode = "PrivateOnly" )
func (*AccessMode) UnmarshalJSON ¶
func (s *AccessMode) UnmarshalJSON(bytes []byte) error
type AccessModeSettings ¶
type AccessModeSettings struct { Exclusions *[]AccessModeSettingsExclusion `json:"exclusions,omitempty"` IngestionAccessMode AccessMode `json:"ingestionAccessMode"` QueryAccessMode AccessMode `json:"queryAccessMode"` }
type AccessModeSettingsExclusion ¶
type AccessModeSettingsExclusion struct { IngestionAccessMode *AccessMode `json:"ingestionAccessMode,omitempty"` PrivateEndpointConnectionName *string `json:"privateEndpointConnectionName,omitempty"` QueryAccessMode *AccessMode `json:"queryAccessMode,omitempty"` }
type AzureMonitorPrivateLinkScope ¶
type AzureMonitorPrivateLinkScope struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties AzureMonitorPrivateLinkScopeProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type AzureMonitorPrivateLinkScopeOperationPredicate ¶
type AzureMonitorPrivateLinkScopeOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (AzureMonitorPrivateLinkScopeOperationPredicate) Matches ¶
func (p AzureMonitorPrivateLinkScopeOperationPredicate) Matches(input AzureMonitorPrivateLinkScope) bool
type AzureMonitorPrivateLinkScopeProperties ¶
type AzureMonitorPrivateLinkScopeProperties struct { AccessModeSettings AccessModeSettings `json:"accessModeSettings"` PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
type PrivateEndpoint ¶
type PrivateEndpoint struct {
Id *string `json:"id,omitempty"`
}
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` }
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
const ( PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON ¶
func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON ¶
func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error
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
type PrivateLinkScopesAPIsClient ¶
type PrivateLinkScopesAPIsClient struct {
Client *resourcemanager.Client
}
func NewPrivateLinkScopesAPIsClientWithBaseURI ¶
func NewPrivateLinkScopesAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkScopesAPIsClient, error)
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesCreateOrUpdate ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesCreateOrUpdate(ctx context.Context, id PrivateLinkScopeId, input AzureMonitorPrivateLinkScope) (result PrivateLinkScopesCreateOrUpdateOperationResponse, err error)
PrivateLinkScopesCreateOrUpdate ...
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesDelete ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesDelete(ctx context.Context, id PrivateLinkScopeId) (result PrivateLinkScopesDeleteOperationResponse, err error)
PrivateLinkScopesDelete ...
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesDeleteThenPoll ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesDeleteThenPoll(ctx context.Context, id PrivateLinkScopeId) error
PrivateLinkScopesDeleteThenPoll performs PrivateLinkScopesDelete then polls until it's completed
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesGet ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesGet(ctx context.Context, id PrivateLinkScopeId) (result PrivateLinkScopesGetOperationResponse, err error)
PrivateLinkScopesGet ...
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesList ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, id commonids.SubscriptionId) (result PrivateLinkScopesListOperationResponse, err error)
PrivateLinkScopesList ...
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result PrivateLinkScopesListByResourceGroupOperationResponse, err error)
PrivateLinkScopesListByResourceGroup ...
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupComplete ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (PrivateLinkScopesListByResourceGroupCompleteResult, error)
PrivateLinkScopesListByResourceGroupComplete retrieves all the results into a single object
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AzureMonitorPrivateLinkScopeOperationPredicate) (result PrivateLinkScopesListByResourceGroupCompleteResult, err error)
PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListComplete ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListComplete(ctx context.Context, id commonids.SubscriptionId) (PrivateLinkScopesListCompleteResult, error)
PrivateLinkScopesListComplete retrieves all the results into a single object
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListCompleteMatchingPredicate ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AzureMonitorPrivateLinkScopeOperationPredicate) (result PrivateLinkScopesListCompleteResult, err error)
PrivateLinkScopesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PrivateLinkScopesAPIsClient) PrivateLinkScopesUpdateTags ¶
func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesUpdateTags(ctx context.Context, id PrivateLinkScopeId, input TagsResource) (result PrivateLinkScopesUpdateTagsOperationResponse, err error)
PrivateLinkScopesUpdateTags ...
type PrivateLinkScopesCreateOrUpdateOperationResponse ¶
type PrivateLinkScopesCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AzureMonitorPrivateLinkScope }
type PrivateLinkScopesGetOperationResponse ¶
type PrivateLinkScopesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AzureMonitorPrivateLinkScope }
type PrivateLinkScopesListByResourceGroupCompleteResult ¶
type PrivateLinkScopesListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []AzureMonitorPrivateLinkScope }
type PrivateLinkScopesListByResourceGroupCustomPager ¶
type PrivateLinkScopesListByResourceGroupCustomPager struct {
NextLink *odata.Link `json:"nextLink"`
}
func (*PrivateLinkScopesListByResourceGroupCustomPager) NextPageLink ¶
func (p *PrivateLinkScopesListByResourceGroupCustomPager) NextPageLink() *odata.Link
type PrivateLinkScopesListByResourceGroupOperationResponse ¶
type PrivateLinkScopesListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AzureMonitorPrivateLinkScope }
type PrivateLinkScopesListCompleteResult ¶
type PrivateLinkScopesListCompleteResult struct { LatestHttpResponse *http.Response Items []AzureMonitorPrivateLinkScope }
type PrivateLinkScopesListCustomPager ¶
func (*PrivateLinkScopesListCustomPager) NextPageLink ¶
func (p *PrivateLinkScopesListCustomPager) NextPageLink() *odata.Link
type PrivateLinkScopesListOperationResponse ¶
type PrivateLinkScopesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AzureMonitorPrivateLinkScope }
type PrivateLinkScopesUpdateTagsOperationResponse ¶
type PrivateLinkScopesUpdateTagsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AzureMonitorPrivateLinkScope }
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { ActionsRequired *string `json:"actionsRequired,omitempty"` Description *string `json:"description,omitempty"` Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
type TagsResource ¶
Source Files ¶
- client.go
- constants.go
- id_privatelinkscope.go
- method_privatelinkscopescreateorupdate.go
- method_privatelinkscopesdelete.go
- method_privatelinkscopesget.go
- method_privatelinkscopeslist.go
- method_privatelinkscopeslistbyresourcegroup.go
- method_privatelinkscopesupdatetags.go
- model_accessmodesettings.go
- model_accessmodesettingsexclusion.go
- model_azuremonitorprivatelinkscope.go
- model_azuremonitorprivatelinkscopeproperties.go
- model_privateendpoint.go
- model_privateendpointconnection.go
- model_privateendpointconnectionproperties.go
- model_privatelinkserviceconnectionstate.go
- model_tagsresource.go
- predicates.go
- version.go