azure_mgmt_dns 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +1 -1
  3. data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +1 -1
  4. data/lib/2017-10-01/generated/azure_mgmt_dns.rb +47 -0
  5. data/lib/2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
  6. data/lib/2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
  7. data/lib/2017-10-01/generated/azure_mgmt_dns/models/arecord.rb +46 -0
  8. data/lib/2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
  9. data/lib/2017-10-01/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
  10. data/lib/2017-10-01/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
  11. data/lib/2017-10-01/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
  12. data/lib/2017-10-01/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
  13. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set.rb +311 -0
  14. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
  15. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
  16. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_type.rb +24 -0
  17. data/lib/2017-10-01/generated/azure_mgmt_dns/models/resource.rb +101 -0
  18. data/lib/2017-10-01/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
  19. data/lib/2017-10-01/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
  20. data/lib/2017-10-01/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
  21. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone.rb +146 -0
  22. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
  23. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
  24. data/lib/2017-10-01/generated/azure_mgmt_dns/module_definition.rb +9 -0
  25. data/lib/2017-10-01/generated/azure_mgmt_dns/record_sets.rb +1250 -0
  26. data/lib/2017-10-01/generated/azure_mgmt_dns/zones.rb +922 -0
  27. data/lib/2018-03-01-preview/generated/azure_mgmt_dns.rb +49 -0
  28. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
  29. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
  30. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/arecord.rb +46 -0
  31. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
  32. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
  33. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
  34. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
  35. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
  36. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb +311 -0
  37. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
  38. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
  39. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_type.rb +24 -0
  40. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb +101 -0
  41. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
  42. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
  43. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/sub_resource.rb +46 -0
  44. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
  45. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb +204 -0
  46. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
  47. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_type.rb +16 -0
  48. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
  49. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/module_definition.rb +9 -0
  50. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb +1250 -0
  51. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/zones.rb +922 -0
  52. data/lib/azure_mgmt_dns.rb +2 -0
  53. data/lib/profiles/latest/modules/dns_profile_module.rb +59 -47
  54. data/lib/version.rb +1 -1
  55. metadata +50 -2
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # An NS record.
10
+ #
11
+ class NsRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The name server name for this NS record.
16
+ attr_accessor :nsdname
17
+
18
+
19
+ #
20
+ # Mapper for NsRecord class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'NsRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'NsRecord',
31
+ model_properties: {
32
+ nsdname: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'nsdname',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # A PTR record.
10
+ #
11
+ class PtrRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The PTR target domain name for this PTR record.
16
+ attr_accessor :ptrdname
17
+
18
+
19
+ #
20
+ # Mapper for PtrRecord class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'PtrRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PtrRecord',
31
+ model_properties: {
32
+ ptrdname: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'ptrdname',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,311 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # Describes a DNS record set (a collection of DNS records with the same
10
+ # name and type).
11
+ #
12
+ class RecordSet
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The ID of the record set.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the record set.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The type of the record set.
23
+ attr_accessor :type
24
+
25
+ # @return [String] The etag of the record set.
26
+ attr_accessor :etag
27
+
28
+ # @return [Hash{String => String}] The metadata attached to the record
29
+ # set.
30
+ attr_accessor :metadata
31
+
32
+ # @return [Integer] The TTL (time-to-live) of the records in the record
33
+ # set.
34
+ attr_accessor :ttl
35
+
36
+ # @return [String] Fully qualified domain name of the record set.
37
+ attr_accessor :fqdn
38
+
39
+ # @return [Array<ARecord>] The list of A records in the record set.
40
+ attr_accessor :arecords
41
+
42
+ # @return [Array<AaaaRecord>] The list of AAAA records in the record set.
43
+ attr_accessor :aaaa_records
44
+
45
+ # @return [Array<MxRecord>] The list of MX records in the record set.
46
+ attr_accessor :mx_records
47
+
48
+ # @return [Array<NsRecord>] The list of NS records in the record set.
49
+ attr_accessor :ns_records
50
+
51
+ # @return [Array<PtrRecord>] The list of PTR records in the record set.
52
+ attr_accessor :ptr_records
53
+
54
+ # @return [Array<SrvRecord>] The list of SRV records in the record set.
55
+ attr_accessor :srv_records
56
+
57
+ # @return [Array<TxtRecord>] The list of TXT records in the record set.
58
+ attr_accessor :txt_records
59
+
60
+ # @return [CnameRecord] The CNAME record in the record set.
61
+ attr_accessor :cname_record
62
+
63
+ # @return [SoaRecord] The SOA record in the record set.
64
+ attr_accessor :soa_record
65
+
66
+ # @return [Array<CaaRecord>] The list of CAA records in the record set.
67
+ attr_accessor :caa_records
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
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'RecordSet',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'RecordSet',
82
+ model_properties: {
83
+ id: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'id',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ name: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'name',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ type: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'type',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ etag: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'etag',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ metadata: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'properties.metadata',
122
+ type: {
123
+ name: 'Dictionary',
124
+ value: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'StringElementType',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ }
132
+ }
133
+ },
134
+ ttl: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ serialized_name: 'properties.TTL',
138
+ type: {
139
+ name: 'Number'
140
+ }
141
+ },
142
+ fqdn: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'properties.fqdn',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ },
151
+ arecords: {
152
+ client_side_validation: true,
153
+ required: false,
154
+ serialized_name: 'properties.ARecords',
155
+ type: {
156
+ name: 'Sequence',
157
+ element: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ serialized_name: 'ARecordElementType',
161
+ type: {
162
+ name: 'Composite',
163
+ class_name: 'ARecord'
164
+ }
165
+ }
166
+ }
167
+ },
168
+ aaaa_records: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'properties.AAAARecords',
172
+ type: {
173
+ name: 'Sequence',
174
+ element: {
175
+ client_side_validation: true,
176
+ required: false,
177
+ serialized_name: 'AaaaRecordElementType',
178
+ type: {
179
+ name: 'Composite',
180
+ class_name: 'AaaaRecord'
181
+ }
182
+ }
183
+ }
184
+ },
185
+ mx_records: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ serialized_name: 'properties.MXRecords',
189
+ type: {
190
+ name: 'Sequence',
191
+ element: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ serialized_name: 'MxRecordElementType',
195
+ type: {
196
+ name: 'Composite',
197
+ class_name: 'MxRecord'
198
+ }
199
+ }
200
+ }
201
+ },
202
+ ns_records: {
203
+ client_side_validation: true,
204
+ required: false,
205
+ serialized_name: 'properties.NSRecords',
206
+ type: {
207
+ name: 'Sequence',
208
+ element: {
209
+ client_side_validation: true,
210
+ required: false,
211
+ serialized_name: 'NsRecordElementType',
212
+ type: {
213
+ name: 'Composite',
214
+ class_name: 'NsRecord'
215
+ }
216
+ }
217
+ }
218
+ },
219
+ ptr_records: {
220
+ client_side_validation: true,
221
+ required: false,
222
+ serialized_name: 'properties.PTRRecords',
223
+ type: {
224
+ name: 'Sequence',
225
+ element: {
226
+ client_side_validation: true,
227
+ required: false,
228
+ serialized_name: 'PtrRecordElementType',
229
+ type: {
230
+ name: 'Composite',
231
+ class_name: 'PtrRecord'
232
+ }
233
+ }
234
+ }
235
+ },
236
+ srv_records: {
237
+ client_side_validation: true,
238
+ required: false,
239
+ serialized_name: 'properties.SRVRecords',
240
+ type: {
241
+ name: 'Sequence',
242
+ element: {
243
+ client_side_validation: true,
244
+ required: false,
245
+ serialized_name: 'SrvRecordElementType',
246
+ type: {
247
+ name: 'Composite',
248
+ class_name: 'SrvRecord'
249
+ }
250
+ }
251
+ }
252
+ },
253
+ txt_records: {
254
+ client_side_validation: true,
255
+ required: false,
256
+ serialized_name: 'properties.TXTRecords',
257
+ type: {
258
+ name: 'Sequence',
259
+ element: {
260
+ client_side_validation: true,
261
+ required: false,
262
+ serialized_name: 'TxtRecordElementType',
263
+ type: {
264
+ name: 'Composite',
265
+ class_name: 'TxtRecord'
266
+ }
267
+ }
268
+ }
269
+ },
270
+ cname_record: {
271
+ client_side_validation: true,
272
+ required: false,
273
+ serialized_name: 'properties.CNAMERecord',
274
+ type: {
275
+ name: 'Composite',
276
+ class_name: 'CnameRecord'
277
+ }
278
+ },
279
+ soa_record: {
280
+ client_side_validation: true,
281
+ required: false,
282
+ serialized_name: 'properties.SOARecord',
283
+ type: {
284
+ name: 'Composite',
285
+ class_name: 'SoaRecord'
286
+ }
287
+ },
288
+ caa_records: {
289
+ client_side_validation: true,
290
+ required: false,
291
+ serialized_name: 'properties.caaRecords',
292
+ type: {
293
+ name: 'Sequence',
294
+ element: {
295
+ client_side_validation: true,
296
+ required: false,
297
+ serialized_name: 'CaaRecordElementType',
298
+ type: {
299
+ name: 'Composite',
300
+ class_name: 'CaaRecord'
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ end
309
+ end
310
+ end
311
+ end
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # The response to a record set List operation.
10
+ #
11
+ class RecordSetListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<RecordSet>] Information about the record sets in the
17
+ # response.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The continuation token for the next page of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<RecordSet>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [RecordSetListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for RecordSetListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'RecordSetListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'RecordSetListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'RecordSetElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'RecordSet'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end