resourcemanagementprivatelink

package
v0.20240710.1075622 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

The resourcemanagementprivatelink SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2020-05-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink"

Client Initialization

client := resourcemanagementprivatelink.NewResourceManagementPrivateLinkClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ResourceManagementPrivateLinkClient.Delete

ctx := context.TODO()
id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue")

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

Example Usage: ResourceManagementPrivateLinkClient.Get

ctx := context.TODO()
id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue")

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: ResourceManagementPrivateLinkClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: ResourceManagementPrivateLinkClient.ListByResourceGroup

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

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

Example Usage: ResourceManagementPrivateLinkClient.Put

ctx := context.TODO()
id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue")

payload := resourcemanagementprivatelink.ResourceManagementPrivateLinkLocation{
	// ...
}


read, err := client.Put(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 ValidateResourceManagementPrivateLinkID

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

ValidateResourceManagementPrivateLinkID checks that 'input' can be parsed as a Resource Management Private Link ID

Types

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceManagementPrivateLink
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceManagementPrivateLinkListResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceManagementPrivateLinkListResult
}

type PutOperationResponse

type PutOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceManagementPrivateLink
}
type ResourceManagementPrivateLink struct {
	Id         *string                                           `json:"id,omitempty"`
	Location   *string                                           `json:"location,omitempty"`
	Name       *string                                           `json:"name,omitempty"`
	Properties *ResourceManagementPrivateLinkEndpointConnections `json:"properties,omitempty"`
	Type       *string                                           `json:"type,omitempty"`
}

type ResourceManagementPrivateLinkClient

type ResourceManagementPrivateLinkClient struct {
	Client *resourcemanager.Client
}

func NewResourceManagementPrivateLinkClientWithBaseURI

func NewResourceManagementPrivateLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceManagementPrivateLinkClient, error)

func (ResourceManagementPrivateLinkClient) Delete

Delete ...

func (ResourceManagementPrivateLinkClient) Get

Get ...

func (ResourceManagementPrivateLinkClient) List

List ...

func (ResourceManagementPrivateLinkClient) ListByResourceGroup

ListByResourceGroup ...

func (ResourceManagementPrivateLinkClient) Put

Put ...

type ResourceManagementPrivateLinkEndpointConnections

type ResourceManagementPrivateLinkEndpointConnections struct {
	PrivateEndpointConnections *[]string `json:"privateEndpointConnections,omitempty"`
}

type ResourceManagementPrivateLinkId

type ResourceManagementPrivateLinkId struct {
	SubscriptionId                    string
	ResourceGroupName                 string
	ResourceManagementPrivateLinkName string
}

ResourceManagementPrivateLinkId is a struct representing the Resource ID for a Resource Management Private Link

func NewResourceManagementPrivateLinkID

func NewResourceManagementPrivateLinkID(subscriptionId string, resourceGroupName string, resourceManagementPrivateLinkName string) ResourceManagementPrivateLinkId

NewResourceManagementPrivateLinkID returns a new ResourceManagementPrivateLinkId struct

func ParseResourceManagementPrivateLinkID

func ParseResourceManagementPrivateLinkID(input string) (*ResourceManagementPrivateLinkId, error)

ParseResourceManagementPrivateLinkID parses 'input' into a ResourceManagementPrivateLinkId

func ParseResourceManagementPrivateLinkIDInsensitively

func ParseResourceManagementPrivateLinkIDInsensitively(input string) (*ResourceManagementPrivateLinkId, error)

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

func (*ResourceManagementPrivateLinkId) FromParseResult

func (id *ResourceManagementPrivateLinkId) FromParseResult(input resourceids.ParseResult) error

func (ResourceManagementPrivateLinkId) ID

ID returns the formatted Resource Management Private Link ID

func (ResourceManagementPrivateLinkId) Segments

Segments returns a slice of Resource ID Segments which comprise this Resource Management Private Link ID

func (ResourceManagementPrivateLinkId) String

String returns a human-readable description of this Resource Management Private Link ID

type ResourceManagementPrivateLinkListResult

type ResourceManagementPrivateLinkListResult struct {
	Value *[]ResourceManagementPrivateLink `json:"value,omitempty"`
}

type ResourceManagementPrivateLinkLocation

type ResourceManagementPrivateLinkLocation struct {
	Location *string `json:"location,omitempty"`
}

Jump to

Keyboard shortcuts

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