inboundendpoints

package
v0.20240227.1165506 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 12 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

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

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

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

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

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) FromParseResult

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

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
	OData        *odata.OData
	Model        *InboundEndpoint
}

type IPAllocationMethod

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

func (*IPAllocationMethod) UnmarshalJSON

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

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) FromParseResult

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

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 *resourcemanager.Client
}

func NewInboundEndpointsClientWithBaseURI

func NewInboundEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*InboundEndpointsClient, error)

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 the results into a single object

func (InboundEndpointsClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InboundEndpointsClient) Update

Update ...

func (InboundEndpointsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

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

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON

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

type SubResource

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

type UpdateOperationOptions

type UpdateOperationOptions struct {
	IfMatch *string
}

func DefaultUpdateOperationOptions

func DefaultUpdateOperationOptions() UpdateOperationOptions

func (UpdateOperationOptions) ToHeaders

func (o UpdateOperationOptions) ToHeaders() *client.Headers

func (UpdateOperationOptions) ToOData

func (o UpdateOperationOptions) ToOData() *odata.Query

func (UpdateOperationOptions) ToQuery

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *InboundEndpoint
}

Jump to

Keyboard shortcuts

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