associationsinterface

package
v0.20240125.1115017 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-05-01-preview/associationsinterface Documentation

The associationsinterface SDK allows for interaction with the Azure Resource Manager Service servicenetworking (API Version 2023-05-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/servicenetworking/2023-05-01-preview/associationsinterface"

Client Initialization

client := associationsinterface.NewAssociationsInterfaceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AssociationsInterfaceClient.CreateOrUpdate

ctx := context.TODO()
id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue")

payload := associationsinterface.Association{
	// ...
}


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

Example Usage: AssociationsInterfaceClient.Delete

ctx := context.TODO()
id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue")

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

Example Usage: AssociationsInterfaceClient.Get

ctx := context.TODO()
id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue")

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: AssociationsInterfaceClient.ListByTrafficController

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

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

Example Usage: AssociationsInterfaceClient.Update

ctx := context.TODO()
id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue")

payload := associationsinterface.AssociationUpdate{
	// ...
}


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 PossibleValuesForAssociationType

func PossibleValuesForAssociationType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateAssociationID

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

ValidateAssociationID checks that 'input' can be parsed as a Association ID

func ValidateTrafficControllerID

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

ValidateTrafficControllerID checks that 'input' can be parsed as a Traffic Controller ID

Types

type Association

type Association struct {
	Id         *string                `json:"id,omitempty"`
	Location   string                 `json:"location"`
	Name       *string                `json:"name,omitempty"`
	Properties *AssociationProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type AssociationId

type AssociationId struct {
	SubscriptionId        string
	ResourceGroupName     string
	TrafficControllerName string
	AssociationName       string
}

AssociationId is a struct representing the Resource ID for a Association

func NewAssociationID

func NewAssociationID(subscriptionId string, resourceGroupName string, trafficControllerName string, associationName string) AssociationId

NewAssociationID returns a new AssociationId struct

func ParseAssociationID

func ParseAssociationID(input string) (*AssociationId, error)

ParseAssociationID parses 'input' into a AssociationId

func ParseAssociationIDInsensitively

func ParseAssociationIDInsensitively(input string) (*AssociationId, error)

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

func (*AssociationId) FromParseResult

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

func (AssociationId) ID

func (id AssociationId) ID() string

ID returns the formatted Association ID

func (AssociationId) Segments

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

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

func (AssociationId) String

func (id AssociationId) String() string

String returns a human-readable description of this Association ID

type AssociationOperationPredicate

type AssociationOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (AssociationOperationPredicate) Matches

type AssociationProperties

type AssociationProperties struct {
	AssociationType   AssociationType    `json:"associationType"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	Subnet            *AssociationSubnet `json:"subnet,omitempty"`
}

type AssociationSubnet

type AssociationSubnet struct {
	Id string `json:"id"`
}

type AssociationSubnetUpdate

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

type AssociationType

type AssociationType string
const (
	AssociationTypeSubnets AssociationType = "subnets"
)

func (*AssociationType) UnmarshalJSON

func (s *AssociationType) UnmarshalJSON(bytes []byte) error

type AssociationUpdate

type AssociationUpdate struct {
	Properties *AssociationUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string           `json:"tags,omitempty"`
}

type AssociationUpdateProperties

type AssociationUpdateProperties struct {
	AssociationType *AssociationType         `json:"associationType,omitempty"`
	Subnet          *AssociationSubnetUpdate `json:"subnet,omitempty"`
}

type AssociationsInterfaceClient

type AssociationsInterfaceClient struct {
	Client *resourcemanager.Client
}

func NewAssociationsInterfaceClientWithBaseURI

func NewAssociationsInterfaceClientWithBaseURI(sdkApi sdkEnv.Api) (*AssociationsInterfaceClient, error)

func (AssociationsInterfaceClient) CreateOrUpdate

CreateOrUpdate ...

func (AssociationsInterfaceClient) CreateOrUpdateThenPoll

func (c AssociationsInterfaceClient) CreateOrUpdateThenPoll(ctx context.Context, id AssociationId, input Association) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (AssociationsInterfaceClient) Delete

Delete ...

func (AssociationsInterfaceClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (AssociationsInterfaceClient) Get

Get ...

func (AssociationsInterfaceClient) ListByTrafficController

ListByTrafficController ...

func (AssociationsInterfaceClient) ListByTrafficControllerComplete

ListByTrafficControllerComplete retrieves all the results into a single object

func (AssociationsInterfaceClient) ListByTrafficControllerCompleteMatchingPredicate

func (c AssociationsInterfaceClient) ListByTrafficControllerCompleteMatchingPredicate(ctx context.Context, id TrafficControllerId, predicate AssociationOperationPredicate) (result ListByTrafficControllerCompleteResult, err error)

ListByTrafficControllerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AssociationsInterfaceClient) Update

Update ...

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Association
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByTrafficControllerCompleteResult

type ListByTrafficControllerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Association
}

type ListByTrafficControllerOperationResponse

type ListByTrafficControllerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Association
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type TrafficControllerId

type TrafficControllerId struct {
	SubscriptionId        string
	ResourceGroupName     string
	TrafficControllerName string
}

TrafficControllerId is a struct representing the Resource ID for a Traffic Controller

func NewTrafficControllerID

func NewTrafficControllerID(subscriptionId string, resourceGroupName string, trafficControllerName string) TrafficControllerId

NewTrafficControllerID returns a new TrafficControllerId struct

func ParseTrafficControllerID

func ParseTrafficControllerID(input string) (*TrafficControllerId, error)

ParseTrafficControllerID parses 'input' into a TrafficControllerId

func ParseTrafficControllerIDInsensitively

func ParseTrafficControllerIDInsensitively(input string) (*TrafficControllerId, error)

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

func (*TrafficControllerId) FromParseResult

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

func (TrafficControllerId) ID

func (id TrafficControllerId) ID() string

ID returns the formatted Traffic Controller ID

func (TrafficControllerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Traffic Controller ID

func (TrafficControllerId) String

func (id TrafficControllerId) String() string

String returns a human-readable description of this Traffic Controller ID

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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