inboundendpoints

package
v0.20230124.1141353 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints Documentation

The inboundendpoints SDK allows for interaction with the Azure Resource Manager Service dnsresolver (API Version 2022-07-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/dnsresolver/2022-07-01/inboundendpoints"

Client Initialization

client := inboundendpoints.NewInboundEndpointsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: InboundEndpointsClient.CreateOrUpdate

ctx := context.TODO()
id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue")

payload := inboundendpoints.InboundEndpoint{
	// ...
}


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

Example Usage: InboundEndpointsClient.Delete

ctx := context.TODO()
id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue")

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

Example Usage: InboundEndpointsClient.Get

ctx := context.TODO()
id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue")

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

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

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

Example Usage: InboundEndpointsClient.Update

ctx := context.TODO()
id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue")

payload := inboundendpoints.InboundEndpointPatch{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForIPAllocationMethod

func PossibleValuesForIPAllocationMethod() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateDnsResolverID

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

ValidateDnsResolverID checks that 'input' can be parsed as a Dns Resolver ID

func ValidateInboundEndpointID

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

ValidateInboundEndpointID checks that 'input' can be parsed as a Inbound Endpoint ID

Types

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch     *string
	IfNoneMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

type CreateOrUpdateOperationResponse

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

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

type DeleteOperationResponse

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

type DnsResolverId

type DnsResolverId struct {
	SubscriptionId    string
	ResourceGroupName string
	DnsResolverName   string
}

DnsResolverId is a struct representing the Resource ID for a Dns Resolver

func NewDnsResolverID

func NewDnsResolverID(subscriptionId string, resourceGroupName string, dnsResolverName string) DnsResolverId

NewDnsResolverID returns a new DnsResolverId struct

func ParseDnsResolverID

func ParseDnsResolverID(input string) (*DnsResolverId, error)

ParseDnsResolverID parses 'input' into a DnsResolverId

func ParseDnsResolverIDInsensitively

func ParseDnsResolverIDInsensitively(input string) (*DnsResolverId, error)

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

func (DnsResolverId) ID

func (id DnsResolverId) ID() string

ID returns the formatted Dns Resolver ID

func (DnsResolverId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Dns Resolver ID

func (DnsResolverId) String

func (id DnsResolverId) String() string

String returns a human-readable description of this Dns Resolver ID

type GetOperationResponse

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

type IPAllocationMethod

type IPAllocationMethod string
const (
	IPAllocationMethodDynamic IPAllocationMethod = "Dynamic"
	IPAllocationMethodStatic  IPAllocationMethod = "Static"
)

type IPConfiguration

type IPConfiguration struct {
	PrivateIPAddress          *string             `json:"privateIpAddress,omitempty"`
	PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIpAllocationMethod,omitempty"`
	Subnet                    SubResource         `json:"subnet"`
}

type InboundEndpoint

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

type InboundEndpointId

type InboundEndpointId struct {
	SubscriptionId      string
	ResourceGroupName   string
	DnsResolverName     string
	InboundEndpointName string
}

InboundEndpointId is a struct representing the Resource ID for a Inbound Endpoint

func NewInboundEndpointID

func NewInboundEndpointID(subscriptionId string, resourceGroupName string, dnsResolverName string, inboundEndpointName string) InboundEndpointId

NewInboundEndpointID returns a new InboundEndpointId struct

func ParseInboundEndpointID

func ParseInboundEndpointID(input string) (*InboundEndpointId, error)

ParseInboundEndpointID parses 'input' into a InboundEndpointId

func ParseInboundEndpointIDInsensitively

func ParseInboundEndpointIDInsensitively(input string) (*InboundEndpointId, error)

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

func (InboundEndpointId) ID

func (id InboundEndpointId) ID() string

ID returns the formatted Inbound Endpoint ID

func (InboundEndpointId) Segments

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

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

func (InboundEndpointId) String

func (id InboundEndpointId) String() string

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

type InboundEndpointOperationPredicate

type InboundEndpointOperationPredicate struct {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (InboundEndpointOperationPredicate) Matches

type InboundEndpointPatch

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

type InboundEndpointProperties

type InboundEndpointProperties struct {
	IPConfigurations  []IPConfiguration  `json:"ipConfigurations"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	ResourceGuid      *string            `json:"resourceGuid,omitempty"`
}

type InboundEndpointsClient

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

func NewInboundEndpointsClientWithBaseURI

func NewInboundEndpointsClientWithBaseURI(endpoint string) InboundEndpointsClient

func (InboundEndpointsClient) CreateOrUpdate

CreateOrUpdate ...

func (InboundEndpointsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (InboundEndpointsClient) Delete

Delete ...

func (InboundEndpointsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (InboundEndpointsClient) Get

Get ...

func (InboundEndpointsClient) List

List ...

func (InboundEndpointsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (InboundEndpointsClient) ListCompleteMatchingPredicate

func (c InboundEndpointsClient) ListCompleteMatchingPredicate(ctx context.Context, id DnsResolverId, options ListOperationOptions, predicate InboundEndpointOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (InboundEndpointsClient) Update

Update ...

func (InboundEndpointsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ListCompleteResult

type ListCompleteResult struct {
	Items []InboundEndpoint
}

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

type SubResource

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

type UpdateOperationOptions

type UpdateOperationOptions struct {
	IfMatch *string
}

func DefaultUpdateOperationOptions

func DefaultUpdateOperationOptions() UpdateOperationOptions

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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