dns

package
v6.0.0-beta+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package dns implements the Azure ARM Dns service API version 2016-04-01.

Index

Constants

View Source
const (
	// APIVersion is the version of the Dns
	APIVersion = "2016-04-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 CloudError

type CloudError struct {
	Error *CloudErrorBody `json:"error,omitempty"`
}

CloudError is

type CloudErrorBody

type CloudErrorBody struct {
	Code    *string           `json:"code,omitempty"`
	Message *string           `json:"message,omitempty"`
	Target  *string           `json:"target,omitempty"`
	Details *[]CloudErrorBody `json:"details,omitempty"`
}

CloudErrorBody is

type CnameRecord

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

CnameRecord is a CNAME record.

type HtpStatusCode

type HtpStatusCode string

HtpStatusCode enumerates the values for htp status code.

const (
	// Accepted specifies the accepted state for htp status code.
	Accepted HtpStatusCode = "Accepted"
	// Ambiguous specifies the ambiguous state for htp status code.
	Ambiguous HtpStatusCode = "Ambiguous"
	// BadGateway specifies the bad gateway state for htp status code.
	BadGateway HtpStatusCode = "BadGateway"
	// BadRequest specifies the bad request state for htp status code.
	BadRequest HtpStatusCode = "BadRequest"
	// Conflict specifies the conflict state for htp status code.
	Conflict HtpStatusCode = "Conflict"
	// Continue specifies the continue state for htp status code.
	Continue HtpStatusCode = "Continue"
	// Created specifies the created state for htp status code.
	Created HtpStatusCode = "Created"
	// ExpectationFailed specifies the expectation failed state for htp status
	// code.
	ExpectationFailed HtpStatusCode = "ExpectationFailed"
	// Forbidden specifies the forbidden state for htp status code.
	Forbidden HtpStatusCode = "Forbidden"
	// Found specifies the found state for htp status code.
	Found HtpStatusCode = "Found"
	// GatewayTimeout specifies the gateway timeout state for htp status code.
	GatewayTimeout HtpStatusCode = "GatewayTimeout"
	// Gone specifies the gone state for htp status code.
	Gone HtpStatusCode = "Gone"
	// HTTPVersionNotSupported specifies the http version not supported state
	// for htp status code.
	HTTPVersionNotSupported HtpStatusCode = "HttpVersionNotSupported"
	// InternalServerError specifies the internal server error state for htp
	// status code.
	InternalServerError HtpStatusCode = "InternalServerError"
	// LengthRequired specifies the length required state for htp status code.
	LengthRequired HtpStatusCode = "LengthRequired"
	// MethodNotAllowed specifies the method not allowed state for htp status
	// code.
	MethodNotAllowed HtpStatusCode = "MethodNotAllowed"
	// Moved specifies the moved state for htp status code.
	Moved HtpStatusCode = "Moved"
	// MovedPermanently specifies the moved permanently state for htp status
	// code.
	MovedPermanently HtpStatusCode = "MovedPermanently"
	// MultipleChoices specifies the multiple choices state for htp status
	// code.
	MultipleChoices HtpStatusCode = "MultipleChoices"
	// NoContent specifies the no content state for htp status code.
	NoContent HtpStatusCode = "NoContent"
	// NonAuthoritativeInformation specifies the non authoritative information
	// state for htp status code.
	NonAuthoritativeInformation HtpStatusCode = "NonAuthoritativeInformation"
	// NotAcceptable specifies the not acceptable state for htp status code.
	NotAcceptable HtpStatusCode = "NotAcceptable"
	// NotFound specifies the not found state for htp status code.
	NotFound HtpStatusCode = "NotFound"
	// NotImplemented specifies the not implemented state for htp status code.
	NotImplemented HtpStatusCode = "NotImplemented"
	// NotModified specifies the not modified state for htp status code.
	NotModified HtpStatusCode = "NotModified"
	// OK specifies the ok state for htp status code.
	OK HtpStatusCode = "OK"
	// PartialContent specifies the partial content state for htp status code.
	PartialContent HtpStatusCode = "PartialContent"
	// PaymentRequired specifies the payment required state for htp status
	// code.
	PaymentRequired HtpStatusCode = "PaymentRequired"
	// PreconditionFailed specifies the precondition failed state for htp
	// status code.
	PreconditionFailed HtpStatusCode = "PreconditionFailed"
	// ProxyAuthenticationRequired specifies the proxy authentication required
	// state for htp status code.
	ProxyAuthenticationRequired HtpStatusCode = "ProxyAuthenticationRequired"
	// Redirect specifies the redirect state for htp status code.
	Redirect HtpStatusCode = "Redirect"
	// RedirectKeepVerb specifies the redirect keep verb state for htp status
	// code.
	RedirectKeepVerb HtpStatusCode = "RedirectKeepVerb"
	// RedirectMethod specifies the redirect method state for htp status code.
	RedirectMethod HtpStatusCode = "RedirectMethod"
	// RequestedRangeNotSatisfiable specifies the requested range not
	// satisfiable state for htp status code.
	RequestedRangeNotSatisfiable HtpStatusCode = "RequestedRangeNotSatisfiable"
	// RequestEntityTooLarge specifies the request entity too large state for
	// htp status code.
	RequestEntityTooLarge HtpStatusCode = "RequestEntityTooLarge"
	// RequestTimeout specifies the request timeout state for htp status code.
	RequestTimeout HtpStatusCode = "RequestTimeout"
	// RequestURITooLong specifies the request uri too long state for htp
	// status code.
	RequestURITooLong HtpStatusCode = "RequestUriTooLong"
	// ResetContent specifies the reset content state for htp status code.
	ResetContent HtpStatusCode = "ResetContent"
	// SeeOther specifies the see other state for htp status code.
	SeeOther HtpStatusCode = "SeeOther"
	// ServiceUnavailable specifies the service unavailable state for htp
	// status code.
	ServiceUnavailable HtpStatusCode = "ServiceUnavailable"
	// SwitchingProtocols specifies the switching protocols state for htp
	// status code.
	SwitchingProtocols HtpStatusCode = "SwitchingProtocols"
	// TemporaryRedirect specifies the temporary redirect state for htp status
	// code.
	TemporaryRedirect HtpStatusCode = "TemporaryRedirect"
	// Unauthorized specifies the unauthorized state for htp status code.
	Unauthorized HtpStatusCode = "Unauthorized"
	// UnsupportedMediaType specifies the unsupported media type state for htp
	// status code.
	UnsupportedMediaType HtpStatusCode = "UnsupportedMediaType"
	// Unused specifies the unused state for htp status code.
	Unused HtpStatusCode = "Unused"
	// UpgradeRequired specifies the upgrade required state for htp status
	// code.
	UpgradeRequired HtpStatusCode = "UpgradeRequired"
	// UseProxy specifies the use proxy state for htp status code.
	UseProxy HtpStatusCode = "UseProxy"
)

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	APIVersion     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 OperationStatus

type OperationStatus string

OperationStatus enumerates the values for operation status.

const (
	// Failed specifies the failed state for operation status.
	Failed OperationStatus = "Failed"
	// InProgress specifies the in progress state for operation status.
	InProgress OperationStatus = "InProgress"
	// Succeeded specifies the succeeded state for operation status.
	Succeeded OperationStatus = "Succeeded"
)

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"`
	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 {
	Metadata    *map[string]*string `json:"metadata,omitempty"`
	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 RecordSetUpdateParameters

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

RecordSetUpdateParameters is parameters supplied to update a RecordSet.

type RecordSetsClient

type RecordSetsClient struct {
	ManagementClient
}

RecordSetsClient is the client for the RecordSets methods of the Dns service.

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, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (result RecordSet, err error)

CreateOrUpdate creates or Updates 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. relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. recordType is the type of DNS record. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' 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, relativeRecordSetName string, recordType RecordType, 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, relativeRecordSetName string, recordType RecordType, ifMatch string, ifNoneMatch 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. relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. recordType is the type of DNS record. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' 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. ifNoneMatch is defines the If-None-Match condition. The delete operation will be performed only if the ETag of the zone on the server does not match this value.

func (RecordSetsClient) DeletePreparer

func (client RecordSetsClient) DeletePreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, ifMatch string, ifNoneMatch 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, relativeRecordSetName string, recordType RecordType) (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. relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. recordType is the type of DNS record. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'

func (RecordSetsClient) GetPreparer

func (client RecordSetsClient) GetPreparer(resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType) (*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) ListAllInResourceGroup

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

ListAllInResourceGroup 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.

func (RecordSetsClient) ListAllInResourceGroupNextResults

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

ListAllInResourceGroupNextResults retrieves the next set of results, if any.

func (RecordSetsClient) ListAllInResourceGroupPreparer

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

ListAllInResourceGroupPreparer prepares the ListAllInResourceGroup request.

func (RecordSetsClient) ListAllInResourceGroupResponder

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

ListAllInResourceGroupResponder handles the response to the ListAllInResourceGroup request. The method always closes the http.Response Body.

func (RecordSetsClient) ListAllInResourceGroupSender

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

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

func (RecordSetsClient) ListByType

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

ListByType 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 include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' top is query parameters. If null is passed returns the default number of zones.

func (RecordSetsClient) ListByTypeNextResults

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

ListByTypeNextResults retrieves the next set of results, if any.

func (RecordSetsClient) ListByTypePreparer

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

ListByTypePreparer prepares the ListByType request.

func (RecordSetsClient) ListByTypeResponder

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

ListByTypeResponder handles the response to the ListByType request. The method always closes the http.Response Body.

func (RecordSetsClient) ListByTypeSender

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

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

func (RecordSetsClient) Update

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

Update updates 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. relativeRecordSetName is the name of the RecordSet, relative to the name of the zone. recordType is the type of DNS record. Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT' parameters is parameters supplied to the Update 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 (RecordSetsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (RecordSetsClient) UpdateResponder

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

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (RecordSetsClient) UpdateSender

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

UpdateSender sends the Update 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 ZoneDeleteResult

type ZoneDeleteResult struct {
	autorest.Response   `json:"-"`
	AzureAsyncOperation *string         `json:"azureAsyncOperation,omitempty"`
	Status              OperationStatus `json:"status,omitempty"`
	StatusCode          HtpStatusCode   `json:"statusCode,omitempty"`
	RequestID           *string         `json:"requestId,omitempty"`
}

ZoneDeleteResult is the response to a Zone Delete operation.

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"`
	NameServers           *[]string `json:"nameServers,omitempty"`
}

ZoneProperties is represents the properties of the zone.

type ZonesClient

type ZonesClient struct {
	ManagementClient
}

ZonesClient is the client for the Zones methods of the Dns service.

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 or Updates 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, ifNoneMatch string, cancel <-chan struct{}) (result autorest.Response, err error)

Delete removes a DNS zone from a resource group. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

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. ifNoneMatch is defines the If-None-Match condition. The delete operation will be performed only if the ETag of the zone on the server does not match this value.

func (ZonesClient) DeletePreparer

func (client ZonesClient) DeletePreparer(resourceGroupName string, zoneName string, ifMatch string, ifNoneMatch string, cancel <-chan struct{}) (*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) ListInResourceGroup

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

ListInResourceGroup 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.

func (ZonesClient) ListInResourceGroupNextResults

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

ListInResourceGroupNextResults retrieves the next set of results, if any.

func (ZonesClient) ListInResourceGroupPreparer

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

ListInResourceGroupPreparer prepares the ListInResourceGroup request.

func (ZonesClient) ListInResourceGroupResponder

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

ListInResourceGroupResponder handles the response to the ListInResourceGroup request. The method always closes the http.Response Body.

func (ZonesClient) ListInResourceGroupSender

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

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

func (ZonesClient) ListInSubscription

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

ListInSubscription lists the DNS zones within a resource group.

top is query parameters. If null is passed returns the default number of zones.

func (ZonesClient) ListInSubscriptionNextResults

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

ListInSubscriptionNextResults retrieves the next set of results, if any.

func (ZonesClient) ListInSubscriptionPreparer

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

ListInSubscriptionPreparer prepares the ListInSubscription request.

func (ZonesClient) ListInSubscriptionResponder

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

ListInSubscriptionResponder handles the response to the ListInSubscription request. The method always closes the http.Response Body.

func (ZonesClient) ListInSubscriptionSender

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

ListInSubscriptionSender sends the ListInSubscription 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