dns

package
v0.0.0-...-3b8a704 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dns implements the Azure ARM Dns service API version 2015-05-04-preview.

Client for managing DNS zones and record.

Index

Constants

View Source
const (
	// APIVersion is the version of the Dns
	APIVersion = "2015-05-04-preview"

	// DefaultBaseURI is the default URI used for the service Dns
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type ARecord

type ARecord struct {
	Ipv4Address *string `json:"ipv4Address,omitempty"`
}

ARecord is an A record.

type AaaaRecord

type AaaaRecord struct {
	Ipv6Address *string `json:"ipv6Address,omitempty"`
}

AaaaRecord is an AAAA record.

type CnameRecord

type CnameRecord struct {
	Cname *string `json:"cname,omitempty"`
}

CnameRecord is a CNAME record.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Dns.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type MxRecord

type MxRecord struct {
	Preference *int32  `json:"preference,omitempty"`
	Exchange   *string `json:"exchange,omitempty"`
}

MxRecord is an MX record.

type NsRecord

type NsRecord struct {
	Nsdname *string `json:"nsdname,omitempty"`
}

NsRecord is an NS record.

type PtrRecord

type PtrRecord struct {
	Ptrdname *string `json:"ptrdname,omitempty"`
}

PtrRecord is a PTR record.

type RecordSet

type RecordSet struct {
	autorest.Response `json:"-"`
	ID                *string              `json:"id,omitempty"`
	Name              *string              `json:"name,omitempty"`
	Type              *string              `json:"type,omitempty"`
	Location          *string              `json:"location,omitempty"`
	Tags              *map[string]*string  `json:"tags,omitempty"`
	Etag              *string              `json:"etag,omitempty"`
	Properties        *RecordSetProperties `json:"properties,omitempty"`
}

RecordSet is describes a DNS RecordSet (a set of DNS records with the same name and type).

type RecordSetListResult

type RecordSetListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RecordSet `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

RecordSetListResult is the response to a RecordSet List operation.

func (RecordSetListResult) RecordSetListResultPreparer

func (client RecordSetListResult) RecordSetListResultPreparer() (*http.Request, error)

RecordSetListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type RecordSetProperties

type RecordSetProperties struct {
	TTL         *int64        `json:"TTL,omitempty"`
	ARecords    *[]ARecord    `json:"ARecords,omitempty"`
	AAAARecords *[]AaaaRecord `json:"AAAARecords,omitempty"`
	MXRecords   *[]MxRecord   `json:"MXRecords,omitempty"`
	NSRecords   *[]NsRecord   `json:"NSRecords,omitempty"`
	PTRRecords  *[]PtrRecord  `json:"PTRRecords,omitempty"`
	SRVRecords  *[]SrvRecord  `json:"SRVRecords,omitempty"`
	TXTRecords  *[]TxtRecord  `json:"TXTRecords,omitempty"`
	CNAMERecord *CnameRecord  `json:"CNAMERecord,omitempty"`
	SOARecord   *SoaRecord    `json:"SOARecord,omitempty"`
}

RecordSetProperties is represents the properties of the records in the RecordSet.

type RecordSetsClient

type RecordSetsClient struct {
	ManagementClient
}

RecordSetsClient is the client for managing DNS zones and record.

func NewRecordSetsClient

func NewRecordSetsClient(subscriptionID string) RecordSetsClient

NewRecordSetsClient creates an instance of the RecordSetsClient client.

func NewRecordSetsClientWithBaseURI

func NewRecordSetsClientWithBaseURI(baseURI string, subscriptionID string) RecordSetsClient

NewRecordSetsClientWithBaseURI creates an instance of the RecordSetsClient client.

func (RecordSetsClient) CreateOrUpdate

func (client RecordSetsClient) CreateOrUpdate(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, parameters RecordSet, ifMatch string, ifNoneMatch string) (result RecordSet, err error)

CreateOrUpdate creates a RecordSet within a DNS zone.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot. recordType is the type of DNS record. Possible values for this parameter include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the etag of RecordSet. ifNoneMatch is defines the If-None-Match condition. Set to '*' to force Create-If-Not-Exist. Other values will be ignored.

func (RecordSetsClient) CreateOrUpdatePreparer

func (client RecordSetsClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, parameters RecordSet, ifMatch string, ifNoneMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RecordSetsClient) CreateOrUpdateResponder

func (client RecordSetsClient) CreateOrUpdateResponder(resp *http.Response) (result RecordSet, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (RecordSetsClient) CreateOrUpdateSender

func (client RecordSetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (RecordSetsClient) Delete

func (client RecordSetsClient) Delete(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, ifMatch string) (result autorest.Response, err error)

Delete removes a RecordSet from a DNS zone.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot. recordType is the type of DNS record. Possible values for this parameter include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. ifMatch is defines the If-Match condition. The delete operation will be performed only if the ETag of the zone on the server matches this value.

func (RecordSetsClient) DeletePreparer

func (client RecordSetsClient) DeletePreparer(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RecordSetsClient) DeleteResponder

func (client RecordSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (RecordSetsClient) DeleteSender

func (client RecordSetsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (RecordSetsClient) Get

func (client RecordSetsClient) Get(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string) (result RecordSet, err error)

Get gets a RecordSet.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot. recordType is the type of DNS record. Possible values for this parameter include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' relativeRecordSetName is the name of the RecordSet, relative to the name of the zone.

func (RecordSetsClient) GetPreparer

func (client RecordSetsClient) GetPreparer(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecordSetsClient) GetResponder

func (client RecordSetsClient) GetResponder(resp *http.Response) (result RecordSet, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecordSetsClient) GetSender

func (client RecordSetsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecordSetsClient) List

func (client RecordSetsClient) List(resourceGroupName string, zoneName string, recordType RecordType, top string, filter string) (result RecordSetListResult, err error)

List lists the RecordSets of a specified type in a DNS zone.

resourceGroupName is the name of the resource group that contains the zone. zoneName is the name of the zone from which to enumerate RecordsSets. recordType is the type of record sets to enumerate. Possible values for this parameter include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' top is query parameters. If null is passed returns the default number of zones. filter is the filter to apply on the operation.

func (RecordSetsClient) ListAll

func (client RecordSetsClient) ListAll(resourceGroupName string, zoneName string, top string, filter string) (result RecordSetListResult, err error)

ListAll lists all RecordSets in a DNS zone.

resourceGroupName is the name of the resource group that contains the zone. zoneName is the name of the zone from which to enumerate RecordSets. top is query parameters. If null is passed returns the default number of zones. filter is the filter to apply on the operation.

func (RecordSetsClient) ListAllNextResults

func (client RecordSetsClient) ListAllNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)

ListAllNextResults retrieves the next set of results, if any.

func (RecordSetsClient) ListAllPreparer

func (client RecordSetsClient) ListAllPreparer(resourceGroupName string, zoneName string, top string, filter string) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (RecordSetsClient) ListAllResponder

func (client RecordSetsClient) ListAllResponder(resp *http.Response) (result RecordSetListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (RecordSetsClient) ListAllSender

func (client RecordSetsClient) ListAllSender(req *http.Request) (*http.Response, error)

ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.

func (RecordSetsClient) ListNextResults

func (client RecordSetsClient) ListNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (RecordSetsClient) ListPreparer

func (client RecordSetsClient) ListPreparer(resourceGroupName string, zoneName string, recordType RecordType, top string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (RecordSetsClient) ListResponder

func (client RecordSetsClient) ListResponder(resp *http.Response) (result RecordSetListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RecordSetsClient) ListSender

func (client RecordSetsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type RecordType

type RecordType string

RecordType enumerates the values for record type.

const (
	// A specifies the a state for record type.
	A RecordType = "A"
	// AAAA specifies the aaaa state for record type.
	AAAA RecordType = "AAAA"
	// CNAME specifies the cname state for record type.
	CNAME RecordType = "CNAME"
	// MX specifies the mx state for record type.
	MX RecordType = "MX"
	// NS specifies the ns state for record type.
	NS RecordType = "NS"
	// PTR specifies the ptr state for record type.
	PTR RecordType = "PTR"
	// SOA specifies the soa state for record type.
	SOA RecordType = "SOA"
	// SRV specifies the srv state for record type.
	SRV RecordType = "SRV"
	// TXT specifies the txt state for record type.
	TXT RecordType = "TXT"
)

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is

type SoaRecord

type SoaRecord struct {
	Host         *string `json:"host,omitempty"`
	Email        *string `json:"email,omitempty"`
	SerialNumber *int64  `json:"serialNumber,omitempty"`
	RefreshTime  *int64  `json:"refreshTime,omitempty"`
	RetryTime    *int64  `json:"retryTime,omitempty"`
	ExpireTime   *int64  `json:"expireTime,omitempty"`
	MinimumTTL   *int64  `json:"minimumTTL,omitempty"`
}

SoaRecord is an SOA record.

type SrvRecord

type SrvRecord struct {
	Priority *int32  `json:"priority,omitempty"`
	Weight   *int32  `json:"weight,omitempty"`
	Port     *int32  `json:"port,omitempty"`
	Target   *string `json:"target,omitempty"`
}

SrvRecord is an SRV record.

type SubResource

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

SubResource is

type TxtRecord

type TxtRecord struct {
	Value *[]string `json:"value,omitempty"`
}

TxtRecord is a TXT record.

type Zone

type Zone struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Etag              *string             `json:"etag,omitempty"`
	Properties        *ZoneProperties     `json:"properties,omitempty"`
}

Zone is describes a DNS zone.

type ZoneListResult

type ZoneListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Zone `json:"value,omitempty"`
	NextLink          *string `json:"nextLink,omitempty"`
}

ZoneListResult is the response to a Zone List or ListAll operation.

func (ZoneListResult) ZoneListResultPreparer

func (client ZoneListResult) ZoneListResultPreparer() (*http.Request, error)

ZoneListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ZoneProperties

type ZoneProperties struct {
	MaxNumberOfRecordSets *int64 `json:"maxNumberOfRecordSets,omitempty"`
	NumberOfRecordSets    *int64 `json:"numberOfRecordSets,omitempty"`
}

ZoneProperties is represents the properties of the zone.

type ZonesClient

type ZonesClient struct {
	ManagementClient
}

ZonesClient is the client for managing DNS zones and record.

func NewZonesClient

func NewZonesClient(subscriptionID string) ZonesClient

NewZonesClient creates an instance of the ZonesClient client.

func NewZonesClientWithBaseURI

func NewZonesClientWithBaseURI(baseURI string, subscriptionID string) ZonesClient

NewZonesClientWithBaseURI creates an instance of the ZonesClient client.

func (ZonesClient) CreateOrUpdate

func (client ZonesClient) CreateOrUpdate(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (result Zone, err error)

CreateOrUpdate creates a DNS zone within a resource group.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot. parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the etag of Zone. ifNoneMatch is defines the If-None-Match condition. Set to '*' to force Create-If-Not-Exist. Other values will be ignored.

func (ZonesClient) CreateOrUpdatePreparer

func (client ZonesClient) CreateOrUpdatePreparer(resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ZonesClient) CreateOrUpdateResponder

func (client ZonesClient) CreateOrUpdateResponder(resp *http.Response) (result Zone, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ZonesClient) CreateOrUpdateSender

func (client ZonesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ZonesClient) Delete

func (client ZonesClient) Delete(resourceGroupName string, zoneName string, ifMatch string) (result autorest.Response, err error)

Delete removes a DNS zone from a resource group.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot. ifMatch is defines the If-Match condition. The delete operation will be performed only if the ETag of the zone on the server matches this value.

func (ZonesClient) DeletePreparer

func (client ZonesClient) DeletePreparer(resourceGroupName string, zoneName string, ifMatch string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ZonesClient) DeleteResponder

func (client ZonesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ZonesClient) DeleteSender

func (client ZonesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ZonesClient) Get

func (client ZonesClient) Get(resourceGroupName string, zoneName string) (result Zone, err error)

Get gets a DNS zone.

resourceGroupName is the name of the resource group. zoneName is the name of the zone without a terminating dot.

func (ZonesClient) GetPreparer

func (client ZonesClient) GetPreparer(resourceGroupName string, zoneName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ZonesClient) GetResponder

func (client ZonesClient) GetResponder(resp *http.Response) (result Zone, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ZonesClient) GetSender

func (client ZonesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ZonesClient) ListZonesInResourceGroup

func (client ZonesClient) ListZonesInResourceGroup(resourceGroupName string, top string, filter string) (result ZoneListResult, err error)

ListZonesInResourceGroup lists the DNS zones within a resource group.

resourceGroupName is the name of the resource group. top is query parameters. If null is passed returns the default number of zones. filter is the filter to apply on the operation.

func (ZonesClient) ListZonesInResourceGroupNextResults

func (client ZonesClient) ListZonesInResourceGroupNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)

ListZonesInResourceGroupNextResults retrieves the next set of results, if any.

func (ZonesClient) ListZonesInResourceGroupPreparer

func (client ZonesClient) ListZonesInResourceGroupPreparer(resourceGroupName string, top string, filter string) (*http.Request, error)

ListZonesInResourceGroupPreparer prepares the ListZonesInResourceGroup request.

func (ZonesClient) ListZonesInResourceGroupResponder

func (client ZonesClient) ListZonesInResourceGroupResponder(resp *http.Response) (result ZoneListResult, err error)

ListZonesInResourceGroupResponder handles the response to the ListZonesInResourceGroup request. The method always closes the http.Response Body.

func (ZonesClient) ListZonesInResourceGroupSender

func (client ZonesClient) ListZonesInResourceGroupSender(req *http.Request) (*http.Response, error)

ListZonesInResourceGroupSender sends the ListZonesInResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ZonesClient) ListZonesInSubscription

func (client ZonesClient) ListZonesInSubscription(top string, filter string) (result ZoneListResult, err error)

ListZonesInSubscription lists the DNS zones within a resource group.

top is query parameters. If null is passed returns the default number of zones. filter is the filter to apply on the operation.

func (ZonesClient) ListZonesInSubscriptionNextResults

func (client ZonesClient) ListZonesInSubscriptionNextResults(lastResults ZoneListResult) (result ZoneListResult, err error)

ListZonesInSubscriptionNextResults retrieves the next set of results, if any.

func (ZonesClient) ListZonesInSubscriptionPreparer

func (client ZonesClient) ListZonesInSubscriptionPreparer(top string, filter string) (*http.Request, error)

ListZonesInSubscriptionPreparer prepares the ListZonesInSubscription request.

func (ZonesClient) ListZonesInSubscriptionResponder

func (client ZonesClient) ListZonesInSubscriptionResponder(resp *http.Response) (result ZoneListResult, err error)

ListZonesInSubscriptionResponder handles the response to the ListZonesInSubscription request. The method always closes the http.Response Body.

func (ZonesClient) ListZonesInSubscriptionSender

func (client ZonesClient) ListZonesInSubscriptionSender(req *http.Request) (*http.Response, error)

ListZonesInSubscriptionSender sends the ListZonesInSubscription request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

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