privatelinkscopesapis

package
v0.20230505.1083730 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis Documentation

The privatelinkscopesapis 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/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", "privateLinkScopeValue")

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", "privateLinkScopeValue")

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", "privateLinkScopeValue")

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 := privatelinkscopesapis.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 := privatelinkscopesapis.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", "privateLinkScopeValue")

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePrivateLinkScopeID

func ValidatePrivateLinkScopeID(input interface{}, key string) (warnings []string, errors []error)

ValidatePrivateLinkScopeID checks that 'input' can be parsed as a Private Link Scope ID

Types

type AzureMonitorPrivateLinkScope

type AzureMonitorPrivateLinkScope struct {
	Id         *string                                `json:"id,omitempty"`
	Location   string                                 `json:"location"`
	Name       *string                                `json:"name,omitempty"`
	Properties AzureMonitorPrivateLinkScopeProperties `json:"properties"`
	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

type AzureMonitorPrivateLinkScopeProperties

type AzureMonitorPrivateLinkScopeProperties struct {
	PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
	ProvisioningState          *string                      `json:"provisioningState,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                   *PrivateEndpointProperty                   `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"`
	ProvisioningState                 *string                                    `json:"provisioningState,omitempty"`
}

type PrivateEndpointProperty

type PrivateEndpointProperty struct {
	Id *string `json:"id,omitempty"`
}

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) 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 autorest.Client
	// contains filtered or unexported fields
}

func NewPrivateLinkScopesAPIsClientWithBaseURI

func NewPrivateLinkScopesAPIsClientWithBaseURI(endpoint string) PrivateLinkScopesAPIsClient

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesCreateOrUpdate

PrivateLinkScopesCreateOrUpdate ...

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesDelete

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

PrivateLinkScopesGet ...

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesList

PrivateLinkScopesList ...

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup

PrivateLinkScopesListByResourceGroup ...

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupComplete

PrivateLinkScopesListByResourceGroupComplete retrieves all of the results into a single object

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate

func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AzureMonitorPrivateLinkScopeOperationPredicate) (resp PrivateLinkScopesListByResourceGroupCompleteResult, err error)

PrivateLinkScopesListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListComplete

PrivateLinkScopesListComplete retrieves all of the results into a single object

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesListCompleteMatchingPredicate

PrivateLinkScopesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (PrivateLinkScopesAPIsClient) PrivateLinkScopesUpdateTags

PrivateLinkScopesUpdateTags ...

type PrivateLinkScopesCreateOrUpdateOperationResponse

type PrivateLinkScopesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *AzureMonitorPrivateLinkScope
}

type PrivateLinkScopesDeleteOperationResponse

type PrivateLinkScopesDeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type PrivateLinkScopesGetOperationResponse

type PrivateLinkScopesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *AzureMonitorPrivateLinkScope
}

type PrivateLinkScopesListByResourceGroupCompleteResult

type PrivateLinkScopesListByResourceGroupCompleteResult struct {
	Items []AzureMonitorPrivateLinkScope
}

type PrivateLinkScopesListByResourceGroupOperationResponse

type PrivateLinkScopesListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]AzureMonitorPrivateLinkScope
	// contains filtered or unexported fields
}

func (PrivateLinkScopesListByResourceGroupOperationResponse) HasMore

func (PrivateLinkScopesListByResourceGroupOperationResponse) LoadMore

type PrivateLinkScopesListCompleteResult

type PrivateLinkScopesListCompleteResult struct {
	Items []AzureMonitorPrivateLinkScope
}

type PrivateLinkScopesListOperationResponse

type PrivateLinkScopesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]AzureMonitorPrivateLinkScope
	// contains filtered or unexported fields
}

func (PrivateLinkScopesListOperationResponse) HasMore

func (PrivateLinkScopesListOperationResponse) LoadMore

type PrivateLinkScopesUpdateTagsOperationResponse

type PrivateLinkScopesUpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	Model        *AzureMonitorPrivateLinkScope
}

type PrivateLinkServiceConnectionStateProperty

type PrivateLinkServiceConnectionStateProperty struct {
	ActionsRequired *string `json:"actionsRequired,omitempty"`
	Description     string  `json:"description"`
	Status          string  `json:"status"`
}

type TagsResource

type TagsResource struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL