~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/dns/models.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package dns
 
2
 
 
3
// Copyright (c) Microsoft and contributors.  All rights reserved.
 
4
//
 
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
 
9
//
 
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.
 
13
//
 
14
// See the License for the specific language governing permissions and
 
15
// limitations under the License.
 
16
//
 
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
 
19
// regenerated.
 
20
 
 
21
import (
 
22
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
 
23
)
 
24
 
 
25
// RecordType enumerates the values for record type.
 
26
type RecordType string
 
27
 
 
28
const (
 
29
        // A specifies the a state for record type.
 
30
        A RecordType = "A"
 
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.
 
36
        MX RecordType = "MX"
 
37
        // NS specifies the ns state for record type.
 
38
        NS RecordType = "NS"
 
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"
 
47
)
 
48
 
 
49
// AaaaRecord is an AAAA record.
 
50
type AaaaRecord struct {
 
51
        Ipv6Address *string `json:"ipv6Address,omitempty"`
 
52
}
 
53
 
 
54
// ARecord is an A record.
 
55
type ARecord struct {
 
56
        Ipv4Address *string `json:"ipv4Address,omitempty"`
 
57
}
 
58
 
 
59
// CnameRecord is a CNAME record.
 
60
type CnameRecord struct {
 
61
        Cname *string `json:"cname,omitempty"`
 
62
}
 
63
 
 
64
// MxRecord is an MX record.
 
65
type MxRecord struct {
 
66
        Preference *int    `json:"preference,omitempty"`
 
67
        Exchange   *string `json:"exchange,omitempty"`
 
68
}
 
69
 
 
70
// NsRecord is an NS record.
 
71
type NsRecord struct {
 
72
        Nsdname *string `json:"nsdname,omitempty"`
 
73
}
 
74
 
 
75
// PtrRecord is a PTR record.
 
76
type PtrRecord struct {
 
77
        Ptrdname *string `json:"ptrdname,omitempty"`
 
78
}
 
79
 
 
80
// RecordSet is describes a DNS RecordSet (a set of DNS records with the same
 
81
// name and type).
 
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"`
 
91
}
 
92
 
 
93
// RecordSetCreateOrUpdateParameters is parameters supplied to create or
 
94
// update a RecordSet.
 
95
type RecordSetCreateOrUpdateParameters struct {
 
96
        RecordSet *RecordSet `json:"RecordSet,omitempty"`
 
97
}
 
98
 
 
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"`
 
104
}
 
105
 
 
106
// RecordSetProperties is represents the properties of the records in the
 
107
// RecordSet.
 
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"`
 
119
}
 
120
 
 
121
// Resource is
 
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"`
 
128
}
 
129
 
 
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"`
 
139
}
 
140
 
 
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"`
 
147
}
 
148
 
 
149
// SubResource is
 
150
type SubResource struct {
 
151
        ID *string `json:"id,omitempty"`
 
152
}
 
153
 
 
154
// TxtRecord is a TXT record.
 
155
type TxtRecord struct {
 
156
        Value *[]string `json:"value,omitempty"`
 
157
}
 
158
 
 
159
// Zone is describes a DNS zone.
 
160
type Zone struct {
 
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"`
 
169
}
 
170
 
 
171
// ZoneCreateOrUpdateParameters is parameters supplied to create a zone.
 
172
type ZoneCreateOrUpdateParameters struct {
 
173
        Zone *Zone `json:"Zone,omitempty"`
 
174
}
 
175
 
 
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"`
 
181
}
 
182
 
 
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"`
 
187
}