3
// Copyright (c) Microsoft and contributors. All rights reserved.
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
// http://www.apache.org/licenses/LICENSE-2.0
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
18
// Changes may cause incorrect behavior and will be lost if the code is
22
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
25
// RecordType enumerates the values for record type.
26
type RecordType string
29
// A specifies the a state for record type.
31
// AAAA specifies the aaaa state for record type.
32
AAAA RecordType = "AAAA"
33
// CNAME specifies the cname state for record type.
34
CNAME RecordType = "CNAME"
35
// MX specifies the mx state for record type.
37
// NS specifies the ns state for record type.
39
// PTR specifies the ptr state for record type.
40
PTR RecordType = "PTR"
41
// SOA specifies the soa state for record type.
42
SOA RecordType = "SOA"
43
// SRV specifies the srv state for record type.
44
SRV RecordType = "SRV"
45
// TXT specifies the txt state for record type.
46
TXT RecordType = "TXT"
49
// AaaaRecord is an AAAA record.
50
type AaaaRecord struct {
51
Ipv6Address *string `json:"ipv6Address,omitempty"`
54
// ARecord is an A record.
56
Ipv4Address *string `json:"ipv4Address,omitempty"`
59
// CnameRecord is a CNAME record.
60
type CnameRecord struct {
61
Cname *string `json:"cname,omitempty"`
64
// MxRecord is an MX record.
65
type MxRecord struct {
66
Preference *int `json:"preference,omitempty"`
67
Exchange *string `json:"exchange,omitempty"`
70
// NsRecord is an NS record.
71
type NsRecord struct {
72
Nsdname *string `json:"nsdname,omitempty"`
75
// PtrRecord is a PTR record.
76
type PtrRecord struct {
77
Ptrdname *string `json:"ptrdname,omitempty"`
80
// RecordSet is describes a DNS RecordSet (a set of DNS records with the same
82
type RecordSet struct {
83
autorest.Response `json:"-"`
84
ID *string `json:"id,omitempty"`
85
Name *string `json:"name,omitempty"`
86
Type *string `json:"type,omitempty"`
87
Location *string `json:"location,omitempty"`
88
Tags *map[string]*string `json:"tags,omitempty"`
89
Etag *string `json:"etag,omitempty"`
90
Properties *RecordSetProperties `json:"properties,omitempty"`
93
// RecordSetCreateOrUpdateParameters is parameters supplied to create or
94
// update a RecordSet.
95
type RecordSetCreateOrUpdateParameters struct {
96
RecordSet *RecordSet `json:"RecordSet,omitempty"`
99
// RecordSetListResult is the response to a RecordSet List operation.
100
type RecordSetListResult struct {
101
autorest.Response `json:"-"`
102
Value *[]RecordSet `json:"value,omitempty"`
103
NextLink *string `json:"nextLink,omitempty"`
106
// RecordSetProperties is represents the properties of the records in the
108
type RecordSetProperties struct {
109
TTL *int32 `json:"TTL,omitempty"`
110
ARecords *[]ARecord `json:"ARecords,omitempty"`
111
AAAARecords *[]AaaaRecord `json:"AAAARecords,omitempty"`
112
MXRecords *[]MxRecord `json:"MXRecords,omitempty"`
113
NSRecords *[]NsRecord `json:"NSRecords,omitempty"`
114
PTRRecords *[]PtrRecord `json:"PTRRecords,omitempty"`
115
SRVRecords *[]SrvRecord `json:"SRVRecords,omitempty"`
116
TXTRecords *[]TxtRecord `json:"TXTRecords,omitempty"`
117
CNAMERecord *CnameRecord `json:"CNAMERecord,omitempty"`
118
SOARecord *SoaRecord `json:"SOARecord,omitempty"`
122
type Resource struct {
123
ID *string `json:"id,omitempty"`
124
Name *string `json:"name,omitempty"`
125
Type *string `json:"type,omitempty"`
126
Location *string `json:"location,omitempty"`
127
Tags *map[string]*string `json:"tags,omitempty"`
130
// SoaRecord is an SOA record.
131
type SoaRecord struct {
132
Host *string `json:"host,omitempty"`
133
Email *string `json:"email,omitempty"`
134
SerialNumber *int32 `json:"serialNumber,omitempty"`
135
RefreshTime *int32 `json:"refreshTime,omitempty"`
136
RetryTime *int32 `json:"retryTime,omitempty"`
137
ExpireTime *int32 `json:"expireTime,omitempty"`
138
MinimumTTL *int32 `json:"minimumTTL,omitempty"`
141
// SrvRecord is an SRV record.
142
type SrvRecord struct {
143
Priority *int `json:"priority,omitempty"`
144
Weight *int `json:"weight,omitempty"`
145
Port *int `json:"port,omitempty"`
146
Target *string `json:"target,omitempty"`
150
type SubResource struct {
151
ID *string `json:"id,omitempty"`
154
// TxtRecord is a TXT record.
155
type TxtRecord struct {
156
Value *[]string `json:"value,omitempty"`
159
// Zone is describes a DNS zone.
161
autorest.Response `json:"-"`
162
ID *string `json:"id,omitempty"`
163
Name *string `json:"name,omitempty"`
164
Type *string `json:"type,omitempty"`
165
Location *string `json:"location,omitempty"`
166
Tags *map[string]*string `json:"tags,omitempty"`
167
Etag *string `json:"etag,omitempty"`
168
Properties *ZoneProperties `json:"properties,omitempty"`
171
// ZoneCreateOrUpdateParameters is parameters supplied to create a zone.
172
type ZoneCreateOrUpdateParameters struct {
173
Zone *Zone `json:"Zone,omitempty"`
176
// ZoneListResult is the response to a Zone List or ListAll operation.
177
type ZoneListResult struct {
178
autorest.Response `json:"-"`
179
Value *[]Zone `json:"value,omitempty"`
180
NextLink *string `json:"nextLink,omitempty"`
183
// ZoneProperties is represents the properties of the zone.
184
type ZoneProperties struct {
185
MaxNumberOfRecordSets *int32 `json:"maxNumberOfRecordSets,omitempty"`
186
NumberOfRecordSets *int32 `json:"numberOfRecordSets,omitempty"`