package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/networking Documentation

The networking SDK allows for interaction with the Azure Resource Manager Service iotcentral (API Version 2021-11-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-sdk/resource-manager/iotcentral/2021-11-01-preview/networking"

Client Initialization

client := networking.NewNetworkingClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NetworkingClient.PrivateEndpointConnectionsCreate

ctx := context.TODO()
id := networking.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue", "privateEndpointConnectionValue")

payload := networking.PrivateEndpointConnection{
	// ...
}


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

Example Usage: NetworkingClient.PrivateEndpointConnectionsDelete

ctx := context.TODO()
id := networking.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue", "privateEndpointConnectionValue")

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

Example Usage: NetworkingClient.PrivateEndpointConnectionsGet

ctx := context.TODO()
id := networking.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue", "privateEndpointConnectionValue")

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

Example Usage: NetworkingClient.PrivateEndpointConnectionsList

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

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

Example Usage: NetworkingClient.PrivateLinksGet

ctx := context.TODO()
id := networking.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue", "groupIdValue")

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

Example Usage: NetworkingClient.PrivateLinksList

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

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