privatelinkforazuread

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread Documentation

The privatelinkforazuread SDK allows for interaction with Azure Resource Manager azureactivedirectory (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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread"

Client Initialization

client := privatelinkforazuread.NewPrivateLinkForAzureAdClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PrivateLinkForAzureAdClient.Create

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

payload := privatelinkforazuread.PrivateLinkPolicy{
	// ...
}


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

Example Usage: PrivateLinkForAzureAdClient.Delete

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

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: PrivateLinkForAzureAdClient.Get

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

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

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

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

Example Usage: PrivateLinkForAzureAdClient.ListBySubscription

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

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

Example Usage: PrivateLinkForAzureAdClient.Update

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

payload := privatelinkforazuread.PrivateLinkPolicyUpdateParameter{
	// ...
}


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

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

ValidatePrivateLinkForAzureAdID checks that 'input' can be parsed as a Private Link For Azure Ad ID

Types

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PrivateLinkPolicy
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PrivateLinkPolicy
}

type ListBySubscriptionCustomPager added in v0.20240628.1153531

type ListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PrivateLinkPolicy
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PrivateLinkPolicy
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PrivateLinkPolicy
}

type PrivateLinkForAzureAdClient

type PrivateLinkForAzureAdClient struct {
	Client *resourcemanager.Client
}

func NewPrivateLinkForAzureAdClientWithBaseURI

func NewPrivateLinkForAzureAdClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkForAzureAdClient, error)

func (PrivateLinkForAzureAdClient) Create

Create ...

func (PrivateLinkForAzureAdClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (PrivateLinkForAzureAdClient) Delete

Delete ...

func (PrivateLinkForAzureAdClient) Get

Get ...

func (PrivateLinkForAzureAdClient) List

List ...

func (PrivateLinkForAzureAdClient) ListBySubscription

ListBySubscription ...

func (PrivateLinkForAzureAdClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (PrivateLinkForAzureAdClient) ListBySubscriptionCompleteMatchingPredicate

func (c PrivateLinkForAzureAdClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PrivateLinkPolicyOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PrivateLinkForAzureAdClient) ListComplete

ListComplete retrieves all the results into a single object

func (PrivateLinkForAzureAdClient) ListCompleteMatchingPredicate

func (c PrivateLinkForAzureAdClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PrivateLinkPolicyOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PrivateLinkForAzureAdClient) Update

Update ...

type PrivateLinkForAzureAdId

type PrivateLinkForAzureAdId struct {
	SubscriptionId            string
	ResourceGroupName         string
	PrivateLinkForAzureAdName string
}

PrivateLinkForAzureAdId is a struct representing the Resource ID for a Private Link For Azure Ad

func NewPrivateLinkForAzureAdID

func NewPrivateLinkForAzureAdID(subscriptionId string, resourceGroupName string, privateLinkForAzureAdName string) PrivateLinkForAzureAdId

NewPrivateLinkForAzureAdID returns a new PrivateLinkForAzureAdId struct

func ParsePrivateLinkForAzureAdID

func ParsePrivateLinkForAzureAdID(input string) (*PrivateLinkForAzureAdId, error)

ParsePrivateLinkForAzureAdID parses 'input' into a PrivateLinkForAzureAdId

func ParsePrivateLinkForAzureAdIDInsensitively

func ParsePrivateLinkForAzureAdIDInsensitively(input string) (*PrivateLinkForAzureAdId, error)

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

func (*PrivateLinkForAzureAdId) FromParseResult

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

func (PrivateLinkForAzureAdId) ID

ID returns the formatted Private Link For Azure Ad ID

func (PrivateLinkForAzureAdId) Segments

Segments returns a slice of Resource ID Segments which comprise this Private Link For Azure Ad ID

func (PrivateLinkForAzureAdId) String

func (id PrivateLinkForAzureAdId) String() string

String returns a human-readable description of this Private Link For Azure Ad ID

type PrivateLinkPolicy

type PrivateLinkPolicy struct {
	AllTenants     *bool              `json:"allTenants,omitempty"`
	Id             *string            `json:"id,omitempty"`
	Name           *string            `json:"name,omitempty"`
	OwnerTenantId  *string            `json:"ownerTenantId,omitempty"`
	ResourceGroup  *string            `json:"resourceGroup,omitempty"`
	ResourceName   *string            `json:"resourceName,omitempty"`
	SubscriptionId *string            `json:"subscriptionId,omitempty"`
	Tags           *map[string]string `json:"tags,omitempty"`
	Tenants        *[]string          `json:"tenants,omitempty"`
	Type           *string            `json:"type,omitempty"`
}

type PrivateLinkPolicyOperationPredicate

type PrivateLinkPolicyOperationPredicate struct {
	AllTenants     *bool
	Id             *string
	Name           *string
	OwnerTenantId  *string
	ResourceGroup  *string
	ResourceName   *string
	SubscriptionId *string
	Type           *string
}

func (PrivateLinkPolicyOperationPredicate) Matches

type PrivateLinkPolicyUpdateParameter

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PrivateLinkPolicy
}

Jump to

Keyboard shortcuts

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