azure_mgmt_dns 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_dns.gemspec +34 -0
  6. data/lib/azure_mgmt_dns.rb +5 -0
  7. data/lib/generated/azure_mgmt_dns/dns_management_client.rb +72 -0
  8. data/lib/generated/azure_mgmt_dns/models/aaaa_record.rb +45 -0
  9. data/lib/generated/azure_mgmt_dns/models/arecord.rb +45 -0
  10. data/lib/generated/azure_mgmt_dns/models/cname_record.rb +45 -0
  11. data/lib/generated/azure_mgmt_dns/models/htp_status_code.rb +61 -0
  12. data/lib/generated/azure_mgmt_dns/models/mx_record.rb +55 -0
  13. data/lib/generated/azure_mgmt_dns/models/ns_record.rb +45 -0
  14. data/lib/generated/azure_mgmt_dns/models/operation_status.rb +17 -0
  15. data/lib/generated/azure_mgmt_dns/models/ptr_record.rb +45 -0
  16. data/lib/generated/azure_mgmt_dns/models/record_set.rb +258 -0
  17. data/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb +94 -0
  18. data/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +46 -0
  19. data/lib/generated/azure_mgmt_dns/models/record_type.rb +23 -0
  20. data/lib/generated/azure_mgmt_dns/models/soa_record.rb +105 -0
  21. data/lib/generated/azure_mgmt_dns/models/srv_record.rb +75 -0
  22. data/lib/generated/azure_mgmt_dns/models/txt_record.rb +51 -0
  23. data/lib/generated/azure_mgmt_dns/models/zone.rb +132 -0
  24. data/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb +92 -0
  25. data/lib/generated/azure_mgmt_dns/models/zone_list_result.rb +94 -0
  26. data/lib/generated/azure_mgmt_dns/module_definition.rb +8 -0
  27. data/lib/generated/azure_mgmt_dns/record_sets.rb +989 -0
  28. data/lib/generated/azure_mgmt_dns/version.rb +8 -0
  29. data/lib/generated/azure_mgmt_dns/zones.rb +827 -0
  30. data/lib/generated/azure_mgmt_dns.rb +47 -0
  31. metadata +142 -0
@@ -0,0 +1,258 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # Describes a DNS RecordSet (a set of DNS records with the same name and
10
+ # type).
11
+ #
12
+ class RecordSet
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Gets or sets the ID of the resource.
17
+ attr_accessor :id
18
+
19
+ # @return [String] Gets or sets the name of the resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] Gets or sets the type of the resource.
23
+ attr_accessor :type
24
+
25
+ # @return [String] Gets or sets the ETag of the RecordSet.
26
+ attr_accessor :etag
27
+
28
+ # @return [Hash{String => String}] Gets or sets the metadata attached to
29
+ # the resource.
30
+ attr_accessor :metadata
31
+
32
+ # @return [Integer] Gets or sets the TTL of the records in the RecordSet.
33
+ attr_accessor :ttl
34
+
35
+ # @return [Array<ARecord>] Gets or sets the list of A records in the
36
+ # RecordSet.
37
+ attr_accessor :arecords
38
+
39
+ # @return [Array<AaaaRecord>] Gets or sets the list of AAAA records in
40
+ # the RecordSet.
41
+ attr_accessor :aaaa_records
42
+
43
+ # @return [Array<MxRecord>] Gets or sets the list of MX records in the
44
+ # RecordSet.
45
+ attr_accessor :mx_records
46
+
47
+ # @return [Array<NsRecord>] Gets or sets the list of NS records in the
48
+ # RecordSet.
49
+ attr_accessor :ns_records
50
+
51
+ # @return [Array<PtrRecord>] Gets or sets the list of PTR records in the
52
+ # RecordSet.
53
+ attr_accessor :ptr_records
54
+
55
+ # @return [Array<SrvRecord>] Gets or sets the list of SRV records in the
56
+ # RecordSet.
57
+ attr_accessor :srv_records
58
+
59
+ # @return [Array<TxtRecord>] Gets or sets the list of TXT records in the
60
+ # RecordSet.
61
+ attr_accessor :txt_records
62
+
63
+ # @return [CnameRecord] Gets or sets the CNAME record in the RecordSet.
64
+ attr_accessor :cname_record
65
+
66
+ # @return [SoaRecord] Gets or sets the SOA record in the RecordSet.
67
+ attr_accessor :soa_record
68
+
69
+
70
+ #
71
+ # Mapper for RecordSet class as Ruby Hash.
72
+ # This will be used for serialization/deserialization.
73
+ #
74
+ def self.mapper()
75
+ {
76
+ required: false,
77
+ serialized_name: 'RecordSet',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'RecordSet',
81
+ model_properties: {
82
+ id: {
83
+ required: false,
84
+ serialized_name: 'id',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ name: {
90
+ required: false,
91
+ serialized_name: 'name',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ type: {
97
+ required: false,
98
+ serialized_name: 'type',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ etag: {
104
+ required: false,
105
+ serialized_name: 'etag',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ metadata: {
111
+ required: false,
112
+ serialized_name: 'properties.metadata',
113
+ type: {
114
+ name: 'Dictionary',
115
+ value: {
116
+ required: false,
117
+ serialized_name: 'StringElementType',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ }
122
+ }
123
+ },
124
+ ttl: {
125
+ required: false,
126
+ serialized_name: 'properties.TTL',
127
+ type: {
128
+ name: 'Number'
129
+ }
130
+ },
131
+ arecords: {
132
+ required: false,
133
+ serialized_name: 'properties.ARecords',
134
+ type: {
135
+ name: 'Sequence',
136
+ element: {
137
+ required: false,
138
+ serialized_name: 'ARecordElementType',
139
+ type: {
140
+ name: 'Composite',
141
+ class_name: 'ARecord'
142
+ }
143
+ }
144
+ }
145
+ },
146
+ aaaa_records: {
147
+ required: false,
148
+ serialized_name: 'properties.AAAARecords',
149
+ type: {
150
+ name: 'Sequence',
151
+ element: {
152
+ required: false,
153
+ serialized_name: 'AaaaRecordElementType',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'AaaaRecord'
157
+ }
158
+ }
159
+ }
160
+ },
161
+ mx_records: {
162
+ required: false,
163
+ serialized_name: 'properties.MXRecords',
164
+ type: {
165
+ name: 'Sequence',
166
+ element: {
167
+ required: false,
168
+ serialized_name: 'MxRecordElementType',
169
+ type: {
170
+ name: 'Composite',
171
+ class_name: 'MxRecord'
172
+ }
173
+ }
174
+ }
175
+ },
176
+ ns_records: {
177
+ required: false,
178
+ serialized_name: 'properties.NSRecords',
179
+ type: {
180
+ name: 'Sequence',
181
+ element: {
182
+ required: false,
183
+ serialized_name: 'NsRecordElementType',
184
+ type: {
185
+ name: 'Composite',
186
+ class_name: 'NsRecord'
187
+ }
188
+ }
189
+ }
190
+ },
191
+ ptr_records: {
192
+ required: false,
193
+ serialized_name: 'properties.PTRRecords',
194
+ type: {
195
+ name: 'Sequence',
196
+ element: {
197
+ required: false,
198
+ serialized_name: 'PtrRecordElementType',
199
+ type: {
200
+ name: 'Composite',
201
+ class_name: 'PtrRecord'
202
+ }
203
+ }
204
+ }
205
+ },
206
+ srv_records: {
207
+ required: false,
208
+ serialized_name: 'properties.SRVRecords',
209
+ type: {
210
+ name: 'Sequence',
211
+ element: {
212
+ required: false,
213
+ serialized_name: 'SrvRecordElementType',
214
+ type: {
215
+ name: 'Composite',
216
+ class_name: 'SrvRecord'
217
+ }
218
+ }
219
+ }
220
+ },
221
+ txt_records: {
222
+ required: false,
223
+ serialized_name: 'properties.TXTRecords',
224
+ type: {
225
+ name: 'Sequence',
226
+ element: {
227
+ required: false,
228
+ serialized_name: 'TxtRecordElementType',
229
+ type: {
230
+ name: 'Composite',
231
+ class_name: 'TxtRecord'
232
+ }
233
+ }
234
+ }
235
+ },
236
+ cname_record: {
237
+ required: false,
238
+ serialized_name: 'properties.CNAMERecord',
239
+ type: {
240
+ name: 'Composite',
241
+ class_name: 'CnameRecord'
242
+ }
243
+ },
244
+ soa_record: {
245
+ required: false,
246
+ serialized_name: 'properties.SOARecord',
247
+ type: {
248
+ name: 'Composite',
249
+ class_name: 'SoaRecord'
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ end
256
+ end
257
+ end
258
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # The response to a RecordSet List operation.
10
+ #
11
+ class RecordSetListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<RecordSet>] Gets or sets information about the
16
+ # RecordSets in the response.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets or sets the continuation token for the next page.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<RecordSet>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [RecordSetListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for RecordSetListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'RecordSetListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RecordSetListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'RecordSetElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'RecordSet'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # Parameters supplied to update a RecordSet.
10
+ #
11
+ class RecordSetUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [RecordSet] Gets or sets information about the RecordSet being
16
+ # updated.
17
+ attr_accessor :record_set
18
+
19
+
20
+ #
21
+ # Mapper for RecordSetUpdateParameters class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'RecordSetUpdateParameters',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'RecordSetUpdateParameters',
31
+ model_properties: {
32
+ record_set: {
33
+ required: false,
34
+ serialized_name: 'RecordSet',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'RecordSet'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # Defines values for RecordType
10
+ #
11
+ module RecordType
12
+ A = "A"
13
+ AAAA = "AAAA"
14
+ CNAME = "CNAME"
15
+ MX = "MX"
16
+ NS = "NS"
17
+ PTR = "PTR"
18
+ SOA = "SOA"
19
+ SRV = "SRV"
20
+ TXT = "TXT"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # An SOA record.
10
+ #
11
+ class SoaRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the domain name of the authoritative
16
+ # name server, without a temrinating dot.
17
+ attr_accessor :host
18
+
19
+ # @return [String] Gets or sets the email for this record.
20
+ attr_accessor :email
21
+
22
+ # @return [Integer] Gets or sets the serial number for this record.
23
+ attr_accessor :serial_number
24
+
25
+ # @return [Integer] Gets or sets the refresh value for this record.
26
+ attr_accessor :refresh_time
27
+
28
+ # @return [Integer] Gets or sets the retry time for this record.
29
+ attr_accessor :retry_time
30
+
31
+ # @return [Integer] Gets or sets the expire time for this record.
32
+ attr_accessor :expire_time
33
+
34
+ # @return [Integer] Gets or sets the minimum TTL value for this record.
35
+ attr_accessor :minimum_ttl
36
+
37
+
38
+ #
39
+ # Mapper for SoaRecord class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'SoaRecord',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'SoaRecord',
49
+ model_properties: {
50
+ host: {
51
+ required: false,
52
+ serialized_name: 'host',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ email: {
58
+ required: false,
59
+ serialized_name: 'email',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ serial_number: {
65
+ required: false,
66
+ serialized_name: 'serialNumber',
67
+ type: {
68
+ name: 'Number'
69
+ }
70
+ },
71
+ refresh_time: {
72
+ required: false,
73
+ serialized_name: 'refreshTime',
74
+ type: {
75
+ name: 'Number'
76
+ }
77
+ },
78
+ retry_time: {
79
+ required: false,
80
+ serialized_name: 'retryTime',
81
+ type: {
82
+ name: 'Number'
83
+ }
84
+ },
85
+ expire_time: {
86
+ required: false,
87
+ serialized_name: 'expireTime',
88
+ type: {
89
+ name: 'Number'
90
+ }
91
+ },
92
+ minimum_ttl: {
93
+ required: false,
94
+ serialized_name: 'minimumTTL',
95
+ type: {
96
+ name: 'Number'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,75 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # An SRV record.
10
+ #
11
+ class SrvRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets or sets the priority metric for this record.
16
+ attr_accessor :priority
17
+
18
+ # @return [Integer] Gets or sets the weight metric for this this record.
19
+ attr_accessor :weight
20
+
21
+ # @return [Integer] Gets or sets the port of the service for this record.
22
+ attr_accessor :port
23
+
24
+ # @return [String] Gets or sets the domain name of the target for this
25
+ # record, without a terminating dot.
26
+ attr_accessor :target
27
+
28
+
29
+ #
30
+ # Mapper for SrvRecord class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'SrvRecord',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'SrvRecord',
40
+ model_properties: {
41
+ priority: {
42
+ required: false,
43
+ serialized_name: 'priority',
44
+ type: {
45
+ name: 'Number'
46
+ }
47
+ },
48
+ weight: {
49
+ required: false,
50
+ serialized_name: 'weight',
51
+ type: {
52
+ name: 'Number'
53
+ }
54
+ },
55
+ port: {
56
+ required: false,
57
+ serialized_name: 'port',
58
+ type: {
59
+ name: 'Number'
60
+ }
61
+ },
62
+ target: {
63
+ required: false,
64
+ serialized_name: 'target',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,51 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # A TXT record.
10
+ #
11
+ class TxtRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] Gets or sets the text value of this record.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for TxtRecord class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'TxtRecord',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'TxtRecord',
30
+ model_properties: {
31
+ value: {
32
+ required: false,
33
+ serialized_name: 'value',
34
+ type: {
35
+ name: 'Sequence',
36
+ element: {
37
+ required: false,
38
+ serialized_name: 'StringElementType',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ end
49
+ end
50
+ end
51
+ end