dnsforwardingrulesets

package
v0.20230503.1130337 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

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

The dnsforwardingrulesets 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/dnsforwardingrulesets"

Client Initialization

client := dnsforwardingrulesets.NewDnsForwardingRulesetsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DnsForwardingRulesetsClient.CreateOrUpdate

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

payload := dnsforwardingrulesets.DnsForwardingRuleset{
	// ...
}


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

Example Usage: DnsForwardingRulesetsClient.Delete

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

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

Example Usage: DnsForwardingRulesetsClient.Get

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

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

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

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

Example Usage: DnsForwardingRulesetsClient.ListByResourceGroup

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

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

Example Usage: DnsForwardingRulesetsClient.ListByVirtualNetwork

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

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

Example Usage: DnsForwardingRulesetsClient.Update

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

payload := dnsforwardingrulesets.DnsForwardingRulesetPatch{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateDnsForwardingRulesetID

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

ValidateDnsForwardingRulesetID checks that 'input' can be parsed as a Dns Forwarding Ruleset ID

func ValidateVirtualNetworkID

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

ValidateVirtualNetworkID checks that 'input' can be parsed as a Virtual Network 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 DnsForwardingRuleset

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

type DnsForwardingRulesetId

type DnsForwardingRulesetId struct {
	SubscriptionId           string
	ResourceGroupName        string
	DnsForwardingRulesetName string
}

DnsForwardingRulesetId is a struct representing the Resource ID for a Dns Forwarding Ruleset

func NewDnsForwardingRulesetID

func NewDnsForwardingRulesetID(subscriptionId string, resourceGroupName string, dnsForwardingRulesetName string) DnsForwardingRulesetId

NewDnsForwardingRulesetID returns a new DnsForwardingRulesetId struct

func ParseDnsForwardingRulesetID

func ParseDnsForwardingRulesetID(input string) (*DnsForwardingRulesetId, error)

ParseDnsForwardingRulesetID parses 'input' into a DnsForwardingRulesetId

func ParseDnsForwardingRulesetIDInsensitively

func ParseDnsForwardingRulesetIDInsensitively(input string) (*DnsForwardingRulesetId, error)

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

func (DnsForwardingRulesetId) ID

ID returns the formatted Dns Forwarding Ruleset ID

func (DnsForwardingRulesetId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Dns Forwarding Ruleset ID

func (DnsForwardingRulesetId) String

func (id DnsForwardingRulesetId) String() string

String returns a human-readable description of this Dns Forwarding Ruleset ID

type DnsForwardingRulesetOperationPredicate

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

func (DnsForwardingRulesetOperationPredicate) Matches

type DnsForwardingRulesetPatch

type DnsForwardingRulesetPatch struct {
	DnsResolverOutboundEndpoints *[]SubResource     `json:"dnsResolverOutboundEndpoints,omitempty"`
	Tags                         *map[string]string `json:"tags,omitempty"`
}

type DnsForwardingRulesetProperties

type DnsForwardingRulesetProperties struct {
	DnsResolverOutboundEndpoints []SubResource      `json:"dnsResolverOutboundEndpoints"`
	ProvisioningState            *ProvisioningState `json:"provisioningState,omitempty"`
	ResourceGuid                 *string            `json:"resourceGuid,omitempty"`
}

type DnsForwardingRulesetsClient

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

func NewDnsForwardingRulesetsClientWithBaseURI

func NewDnsForwardingRulesetsClientWithBaseURI(endpoint string) DnsForwardingRulesetsClient

func (DnsForwardingRulesetsClient) CreateOrUpdate

CreateOrUpdate ...

func (DnsForwardingRulesetsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DnsForwardingRulesetsClient) Delete

Delete ...

func (DnsForwardingRulesetsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (DnsForwardingRulesetsClient) Get

Get ...

func (DnsForwardingRulesetsClient) List

List ...

func (DnsForwardingRulesetsClient) ListByResourceGroup

ListByResourceGroup ...

func (DnsForwardingRulesetsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (DnsForwardingRulesetsClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DnsForwardingRulesetsClient) ListByVirtualNetwork

ListByVirtualNetwork ...

func (DnsForwardingRulesetsClient) ListByVirtualNetworkComplete

ListByVirtualNetworkComplete retrieves all of the results into a single object

func (DnsForwardingRulesetsClient) ListByVirtualNetworkCompleteMatchingPredicate

ListByVirtualNetworkCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DnsForwardingRulesetsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (DnsForwardingRulesetsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DnsForwardingRulesetsClient) Update

Update ...

func (DnsForwardingRulesetsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []DnsForwardingRuleset
}

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Top *int64
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

type ListByResourceGroupOperationResponse

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

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListByVirtualNetworkCompleteResult

type ListByVirtualNetworkCompleteResult struct {
	Items []VirtualNetworkDnsForwardingRuleset
}

type ListByVirtualNetworkOperationOptions

type ListByVirtualNetworkOperationOptions struct {
	Top *int64
}

func DefaultListByVirtualNetworkOperationOptions

func DefaultListByVirtualNetworkOperationOptions() ListByVirtualNetworkOperationOptions

type ListByVirtualNetworkOperationResponse

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

func (ListByVirtualNetworkOperationResponse) HasMore

func (ListByVirtualNetworkOperationResponse) LoadMore

type ListCompleteResult

type ListCompleteResult struct {
	Items []DnsForwardingRuleset
}

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]DnsForwardingRuleset
	// 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
}

type VirtualNetworkDnsForwardingRuleset

type VirtualNetworkDnsForwardingRuleset struct {
	Id         *string                                  `json:"id,omitempty"`
	Properties *VirtualNetworkLinkSubResourceProperties `json:"properties,omitempty"`
}

type VirtualNetworkDnsForwardingRulesetOperationPredicate

type VirtualNetworkDnsForwardingRulesetOperationPredicate struct {
	Id *string
}

func (VirtualNetworkDnsForwardingRulesetOperationPredicate) Matches

type VirtualNetworkId

type VirtualNetworkId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualNetworkName string
}

VirtualNetworkId is a struct representing the Resource ID for a Virtual Network

func NewVirtualNetworkID

func NewVirtualNetworkID(subscriptionId string, resourceGroupName string, virtualNetworkName string) VirtualNetworkId

NewVirtualNetworkID returns a new VirtualNetworkId struct

func ParseVirtualNetworkID

func ParseVirtualNetworkID(input string) (*VirtualNetworkId, error)

ParseVirtualNetworkID parses 'input' into a VirtualNetworkId

func ParseVirtualNetworkIDInsensitively

func ParseVirtualNetworkIDInsensitively(input string) (*VirtualNetworkId, error)

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

func (VirtualNetworkId) ID

func (id VirtualNetworkId) ID() string

ID returns the formatted Virtual Network ID

func (VirtualNetworkId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Virtual Network ID

func (VirtualNetworkId) String

func (id VirtualNetworkId) String() string

String returns a human-readable description of this Virtual Network ID

type VirtualNetworkLinkSubResourceProperties

type VirtualNetworkLinkSubResourceProperties struct {
	VirtualNetworkLink *SubResource `json:"virtualNetworkLink,omitempty"`
}

Jump to

Keyboard shortcuts

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