privateendpoints

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints Documentation

The privateendpoints SDK allows for interaction with the Azure Resource Manager Service streamanalytics (API Version 2020-03-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/streamanalytics/2020-03-01/privateendpoints"

Client Initialization

client := privateendpoints.NewPrivateEndpointsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PrivateEndpointsClient.CreateOrUpdate

ctx := context.TODO()
id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue")

payload := privateendpoints.PrivateEndpoint{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload, privateendpoints.DefaultCreateOrUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PrivateEndpointsClient.Delete

ctx := context.TODO()
id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: PrivateEndpointsClient.Get

ctx := context.TODO()
id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue")

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: PrivateEndpointsClient.ListByCluster

ctx := context.TODO()
id := privateendpoints.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

// alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.ListByClusterComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

func ValidatePrivateEndpointID

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

ValidatePrivateEndpointID checks that 'input' can be parsed as a Private Endpoint ID

Types

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

func (id ClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Cluster ID

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch     *string
	IfNoneMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *PrivateEndpoint
}

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *PrivateEndpoint
}

type ListByClusterCompleteResult

type ListByClusterCompleteResult struct {
	Items []PrivateEndpoint
}

type ListByClusterOperationResponse

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

func (ListByClusterOperationResponse) HasMore

func (ListByClusterOperationResponse) LoadMore

type PrivateEndpoint

type PrivateEndpoint struct {
	Etag       *string                    `json:"etag,omitempty"`
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties *PrivateEndpointProperties `json:"properties,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type PrivateEndpointId

type PrivateEndpointId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ClusterName         string
	PrivateEndpointName string
}

PrivateEndpointId is a struct representing the Resource ID for a Private Endpoint

func NewPrivateEndpointID

func NewPrivateEndpointID(subscriptionId string, resourceGroupName string, clusterName string, privateEndpointName string) PrivateEndpointId

NewPrivateEndpointID returns a new PrivateEndpointId struct

func ParsePrivateEndpointID

func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error)

ParsePrivateEndpointID parses 'input' into a PrivateEndpointId

func ParsePrivateEndpointIDInsensitively

func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, error)

ParsePrivateEndpointIDInsensitively parses 'input' case-insensitively into a PrivateEndpointId note: this method should only be used for API response data and not user input

func (PrivateEndpointId) ID

func (id PrivateEndpointId) ID() string

ID returns the formatted Private Endpoint ID

func (PrivateEndpointId) Segments

func (id PrivateEndpointId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Private Endpoint ID

func (PrivateEndpointId) String

func (id PrivateEndpointId) String() string

String returns a human-readable description of this Private Endpoint ID

type PrivateEndpointOperationPredicate

type PrivateEndpointOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (PrivateEndpointOperationPredicate) Matches

type PrivateEndpointProperties

type PrivateEndpointProperties struct {
	CreatedDate                         *string                         `json:"createdDate,omitempty"`
	ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"`
}

type PrivateEndpointsClient

type PrivateEndpointsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewPrivateEndpointsClientWithBaseURI

func NewPrivateEndpointsClientWithBaseURI(endpoint string) PrivateEndpointsClient

func (PrivateEndpointsClient) CreateOrUpdate

CreateOrUpdate ...

func (PrivateEndpointsClient) Delete

Delete ...

func (PrivateEndpointsClient) DeleteThenPoll

func (c PrivateEndpointsClient) DeleteThenPoll(ctx context.Context, id PrivateEndpointId) error

DeleteThenPoll performs Delete then polls until it's completed

func (PrivateEndpointsClient) Get

Get ...

func (PrivateEndpointsClient) ListByCluster

ListByCluster ...

func (PrivateEndpointsClient) ListByClusterComplete

ListByClusterComplete retrieves all of the results into a single object

func (PrivateEndpointsClient) ListByClusterCompleteMatchingPredicate

func (c PrivateEndpointsClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate PrivateEndpointOperationPredicate) (resp ListByClusterCompleteResult, err error)

ListByClusterCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type PrivateLinkConnectionState

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

type PrivateLinkServiceConnection

type PrivateLinkServiceConnection struct {
	Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"`
}

type PrivateLinkServiceConnectionProperties

type PrivateLinkServiceConnectionProperties struct {
	GroupIds                          *[]string                   `json:"groupIds,omitempty"`
	PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
	PrivateLinkServiceId              *string                     `json:"privateLinkServiceId,omitempty"`
	RequestMessage                    *string                     `json:"requestMessage,omitempty"`
}

Jump to

Keyboard shortcuts

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