dns

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion is the version of the Dns
	APIVersion = "2015-11-01"

	// 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 client for managing DNS zones and record.

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 *int    `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 RecordSetCreateOrUpdateParameters

type RecordSetCreateOrUpdateParameters struct {
	RecordSet *RecordSet `json:"RecordSet,omitempty"`
}

RecordSetCreateOrUpdateParameters is parameters supplied to create or update a RecordSet.

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.

type RecordSetProperties

type RecordSetProperties struct {
	TTL         *int32        `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 RecordSetsManagementClient

type RecordSetsManagementClient struct {
	ManagementClient
}

RecordSetsManagementClient is the client for managing DNS zones and record.

func NewRecordSetsManagementClient

func NewRecordSetsManagementClient(subscriptionID string) RecordSetsManagementClient

NewRecordSetsManagementClient creates an instance of the RecordSetsManagementClient client.

func NewRecordSetsManagementClientWithBaseURI

func NewRecordSetsManagementClientWithBaseURI(baseURI string, subscriptionID string) RecordSetsManagementClient

NewRecordSetsManagementClientWithBaseURI creates an instance of the RecordSetsManagementClient client.

func (RecordSetsManagementClient) CreateOrUpdate

func (client RecordSetsManagementClient) CreateOrUpdate(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, parameters RecordSetCreateOrUpdateParameters, ifMatch string, ifNoneMatch string) (result RecordSet, ae 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 (RecordSetsManagementClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (RecordSetsManagementClient) CreateOrUpdateResponder

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) CreateOrUpdateSender

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) Delete

func (client RecordSetsManagementClient) Delete(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string, ifMatch string) (result autorest.Response, ae 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 (RecordSetsManagementClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (RecordSetsManagementClient) DeleteResponder

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) DeleteSender

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) Get

func (client RecordSetsManagementClient) Get(resourceGroupName string, zoneName string, recordType RecordType, relativeRecordSetName string) (result RecordSet, ae 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 (RecordSetsManagementClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RecordSetsManagementClient) GetResponder

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) GetSender

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) List

func (client RecordSetsManagementClient) List(resourceGroupName string, zoneName string, recordType RecordType, top string, filter string) (result RecordSetListResult, ae 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 (RecordSetsManagementClient) ListAll

func (client RecordSetsManagementClient) ListAll(resourceGroupName string, zoneName string, top string, filter string) (result RecordSetListResult, ae 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 (RecordSetsManagementClient) ListAllPreparer

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

ListAllPreparer prepares the ListAll request.

func (RecordSetsManagementClient) ListAllResponder

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) ListAllSender

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) ListPreparer

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

ListPreparer prepares the List request.

func (RecordSetsManagementClient) ListResponder

func (client RecordSetsManagementClient) 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 (RecordSetsManagementClient) ListSender

func (client RecordSetsManagementClient) 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 *int32  `json:"serialNumber,omitempty"`
	RefreshTime  *int32  `json:"refreshTime,omitempty"`
	RetryTime    *int32  `json:"retryTime,omitempty"`
	ExpireTime   *int32  `json:"expireTime,omitempty"`
	MinimumTTL   *int32  `json:"minimumTTL,omitempty"`
}

SoaRecord is an SOA record.

type SrvRecord

type SrvRecord struct {
	Priority *int    `json:"priority,omitempty"`
	Weight   *int    `json:"weight,omitempty"`
	Port     *int    `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 ZoneCreateOrUpdateParameters

type ZoneCreateOrUpdateParameters struct {
	Zone *Zone `json:"Zone,omitempty"`
}

ZoneCreateOrUpdateParameters is parameters supplied to create a 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.

type ZoneProperties

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

ZoneProperties is represents the properties of the zone.

type ZonesManagementClient

type ZonesManagementClient struct {
	ManagementClient
}

ZonesManagementClient is the client for managing DNS zones and record.

func NewZonesManagementClient

func NewZonesManagementClient(subscriptionID string) ZonesManagementClient

NewZonesManagementClient creates an instance of the ZonesManagementClient client.

func NewZonesManagementClientWithBaseURI

func NewZonesManagementClientWithBaseURI(baseURI string, subscriptionID string) ZonesManagementClient

NewZonesManagementClientWithBaseURI creates an instance of the ZonesManagementClient client.

func (ZonesManagementClient) CreateOrUpdate

func (client ZonesManagementClient) CreateOrUpdate(resourceGroupName string, zoneName string, parameters ZoneCreateOrUpdateParameters, ifMatch string, ifNoneMatch string) (result Zone, ae 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 (ZonesManagementClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ZonesManagementClient) CreateOrUpdateResponder

func (client ZonesManagementClient) 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 (ZonesManagementClient) CreateOrUpdateSender

func (client ZonesManagementClient) 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 (ZonesManagementClient) Delete

func (client ZonesManagementClient) Delete(resourceGroupName string, zoneName string, ifMatch string) (result autorest.Response, ae 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 (ZonesManagementClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ZonesManagementClient) DeleteResponder

func (client ZonesManagementClient) 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 (ZonesManagementClient) DeleteSender

func (client ZonesManagementClient) 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 (ZonesManagementClient) Get

func (client ZonesManagementClient) Get(resourceGroupName string, zoneName string) (result Zone, ae 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 (ZonesManagementClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ZonesManagementClient) GetResponder

func (client ZonesManagementClient) 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 (ZonesManagementClient) GetSender

func (client ZonesManagementClient) 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 (ZonesManagementClient) ListZonesInResourceGroup

func (client ZonesManagementClient) ListZonesInResourceGroup(resourceGroupName string, top string, filter string) (result ZoneListResult, ae 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 (ZonesManagementClient) ListZonesInResourceGroupPreparer

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

ListZonesInResourceGroupPreparer prepares the ListZonesInResourceGroup request.

func (ZonesManagementClient) ListZonesInResourceGroupResponder

func (client ZonesManagementClient) 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 (ZonesManagementClient) ListZonesInResourceGroupSender

func (client ZonesManagementClient) 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 (ZonesManagementClient) ListZonesInSubscription

func (client ZonesManagementClient) ListZonesInSubscription(top string, filter string) (result ZoneListResult, ae 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 (ZonesManagementClient) ListZonesInSubscriptionPreparer

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

ListZonesInSubscriptionPreparer prepares the ListZonesInSubscription request.

func (ZonesManagementClient) ListZonesInSubscriptionResponder

func (client ZonesManagementClient) 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 (ZonesManagementClient) ListZonesInSubscriptionSender

func (client ZonesManagementClient) 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