dns

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: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns Documentation

The dns SDK allows for interaction with Azure Resource Manager dns (API Version 2018-05-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/dns/2018-05-01/dns"

Client Initialization

client := dns.NewDnsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DnsClient.ResourceReferenceGetByTargetResources

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

payload := dns.DnsResourceReferenceRequest{
	// ...
}


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

This section is empty.

Types

type DnsClient

type DnsClient struct {
	Client *resourcemanager.Client
}

func NewDnsClientWithBaseURI

func NewDnsClientWithBaseURI(sdkApi sdkEnv.Api) (*DnsClient, error)

func (DnsClient) ResourceReferenceGetByTargetResources

ResourceReferenceGetByTargetResources ...

type DnsResourceReference

type DnsResourceReference struct {
	DnsResources   *[]SubResource `json:"dnsResources,omitempty"`
	TargetResource *SubResource   `json:"targetResource,omitempty"`
}

type DnsResourceReferenceRequest

type DnsResourceReferenceRequest struct {
	Properties *DnsResourceReferenceRequestProperties `json:"properties,omitempty"`
}

type DnsResourceReferenceRequestProperties

type DnsResourceReferenceRequestProperties struct {
	TargetResources *[]SubResource `json:"targetResources,omitempty"`
}

type DnsResourceReferenceResult

type DnsResourceReferenceResult struct {
	Properties *DnsResourceReferenceResultProperties `json:"properties,omitempty"`
}

type DnsResourceReferenceResultProperties

type DnsResourceReferenceResultProperties struct {
	DnsResourceReferences *[]DnsResourceReference `json:"dnsResourceReferences,omitempty"`
}

type ResourceReferenceGetByTargetResourcesOperationResponse

type ResourceReferenceGetByTargetResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DnsResourceReferenceResult
}

type SubResource

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

Jump to

Keyboard shortcuts

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