azure_mgmt_privatedns 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns.rb +51 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/aaaa_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/arecord.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/cname_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/mx_record.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/private_zone.rb +196 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/private_zone_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/provisioning_state.rb +20 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/proxy_resource.rb +62 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/ptr_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_set.rb +275 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_set_list_result.rb +100 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_type.rb +22 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/resource.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/soa_record.rb +114 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/srv_record.rb +79 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/sub_resource.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/tracked_resource.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/txt_record.rb +54 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link.rb +151 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link_list_result.rb +101 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link_state.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/private_dns_management_client.rb +141 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/private_zones.rb +1051 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb +1023 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/virtual_network_links.rb +908 -0
- data/lib/azure_mgmt_privatedns.rb +6 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/modules/privatedns_profile_module.rb +149 -0
- data/lib/profiles/latest/privatedns_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/privatedns_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +153 -0
@@ -0,0 +1,99 @@
|
|
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::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response to a Private DNS zone list operation.
|
10
|
+
#
|
11
|
+
class PrivateZoneListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<PrivateZone>] Information about the Private DNS zones.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The continuation token for the next page of results.
|
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<PrivateZone>] 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 [PrivateZoneListResult] 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 PrivateZoneListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'PrivateZoneListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'PrivateZoneListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'PrivateZoneElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'PrivateZone'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProvisioningState
|
10
|
+
#
|
11
|
+
module ProvisioningState
|
12
|
+
Creating = "Creating"
|
13
|
+
Updating = "Updating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Failed = "Failed"
|
17
|
+
Canceled = "Canceled"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for an ARM proxy resource.
|
10
|
+
#
|
11
|
+
class ProxyResource < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
#
|
17
|
+
# Mapper for ProxyResource class as Ruby Hash.
|
18
|
+
# This will be used for serialization/deserialization.
|
19
|
+
#
|
20
|
+
def self.mapper()
|
21
|
+
{
|
22
|
+
client_side_validation: true,
|
23
|
+
required: false,
|
24
|
+
serialized_name: 'ProxyResource',
|
25
|
+
type: {
|
26
|
+
name: 'Composite',
|
27
|
+
class_name: 'ProxyResource',
|
28
|
+
model_properties: {
|
29
|
+
id: {
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
read_only: true,
|
33
|
+
serialized_name: 'id',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
},
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
type: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'type',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
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::PrivateDns::Mgmt::V2018_09_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,275 @@
|
|
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::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes a DNS record set (a collection of DNS records with the same
|
10
|
+
# name and type) in a Private DNS zone.
|
11
|
+
#
|
12
|
+
class RecordSet < ProxyResource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The ETag of the record set.
|
17
|
+
attr_accessor :etag
|
18
|
+
|
19
|
+
# @return [Hash{String => String}] The metadata attached to the record
|
20
|
+
# set.
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# @return [Integer] The TTL (time-to-live) of the records in the record
|
24
|
+
# set.
|
25
|
+
attr_accessor :ttl
|
26
|
+
|
27
|
+
# @return [String] Fully qualified domain name of the record set.
|
28
|
+
attr_accessor :fqdn
|
29
|
+
|
30
|
+
# @return [Boolean] Is the record set auto-registered in the Private DNS
|
31
|
+
# zone through a virtual network link?
|
32
|
+
attr_accessor :is_auto_registered
|
33
|
+
|
34
|
+
# @return [Array<ARecord>] The list of A records in the record set.
|
35
|
+
attr_accessor :a_records
|
36
|
+
|
37
|
+
# @return [Array<AaaaRecord>] The list of AAAA records in the record set.
|
38
|
+
attr_accessor :aaaa_records
|
39
|
+
|
40
|
+
# @return [CnameRecord] The CNAME record in the record set.
|
41
|
+
attr_accessor :cname_record
|
42
|
+
|
43
|
+
# @return [Array<MxRecord>] The list of MX records in the record set.
|
44
|
+
attr_accessor :mx_records
|
45
|
+
|
46
|
+
# @return [Array<PtrRecord>] The list of PTR records in the record set.
|
47
|
+
attr_accessor :ptr_records
|
48
|
+
|
49
|
+
# @return [SoaRecord] The SOA record in the record set.
|
50
|
+
attr_accessor :soa_record
|
51
|
+
|
52
|
+
# @return [Array<SrvRecord>] The list of SRV records in the record set.
|
53
|
+
attr_accessor :srv_records
|
54
|
+
|
55
|
+
# @return [Array<TxtRecord>] The list of TXT records in the record set.
|
56
|
+
attr_accessor :txt_records
|
57
|
+
|
58
|
+
|
59
|
+
#
|
60
|
+
# Mapper for RecordSet class as Ruby Hash.
|
61
|
+
# This will be used for serialization/deserialization.
|
62
|
+
#
|
63
|
+
def self.mapper()
|
64
|
+
{
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'RecordSet',
|
68
|
+
type: {
|
69
|
+
name: 'Composite',
|
70
|
+
class_name: 'RecordSet',
|
71
|
+
model_properties: {
|
72
|
+
id: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
read_only: true,
|
76
|
+
serialized_name: 'id',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
name: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'name',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
type: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
read_only: true,
|
94
|
+
serialized_name: 'type',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
etag: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'etag',
|
103
|
+
type: {
|
104
|
+
name: 'String'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
metadata: {
|
108
|
+
client_side_validation: true,
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'properties.metadata',
|
111
|
+
type: {
|
112
|
+
name: 'Dictionary',
|
113
|
+
value: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'StringElementType',
|
117
|
+
type: {
|
118
|
+
name: 'String'
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
ttl: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'properties.ttl',
|
127
|
+
type: {
|
128
|
+
name: 'Number'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
fqdn: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
read_only: true,
|
135
|
+
serialized_name: 'properties.fqdn',
|
136
|
+
type: {
|
137
|
+
name: 'String'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
is_auto_registered: {
|
141
|
+
client_side_validation: true,
|
142
|
+
required: false,
|
143
|
+
read_only: true,
|
144
|
+
serialized_name: 'properties.isAutoRegistered',
|
145
|
+
type: {
|
146
|
+
name: 'Boolean'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
a_records: {
|
150
|
+
client_side_validation: true,
|
151
|
+
required: false,
|
152
|
+
serialized_name: 'properties.aRecords',
|
153
|
+
type: {
|
154
|
+
name: 'Sequence',
|
155
|
+
element: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'ARecordElementType',
|
159
|
+
type: {
|
160
|
+
name: 'Composite',
|
161
|
+
class_name: 'ARecord'
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
},
|
166
|
+
aaaa_records: {
|
167
|
+
client_side_validation: true,
|
168
|
+
required: false,
|
169
|
+
serialized_name: 'properties.aaaaRecords',
|
170
|
+
type: {
|
171
|
+
name: 'Sequence',
|
172
|
+
element: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'AaaaRecordElementType',
|
176
|
+
type: {
|
177
|
+
name: 'Composite',
|
178
|
+
class_name: 'AaaaRecord'
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
},
|
183
|
+
cname_record: {
|
184
|
+
client_side_validation: true,
|
185
|
+
required: false,
|
186
|
+
serialized_name: 'properties.cnameRecord',
|
187
|
+
type: {
|
188
|
+
name: 'Composite',
|
189
|
+
class_name: 'CnameRecord'
|
190
|
+
}
|
191
|
+
},
|
192
|
+
mx_records: {
|
193
|
+
client_side_validation: true,
|
194
|
+
required: false,
|
195
|
+
serialized_name: 'properties.mxRecords',
|
196
|
+
type: {
|
197
|
+
name: 'Sequence',
|
198
|
+
element: {
|
199
|
+
client_side_validation: true,
|
200
|
+
required: false,
|
201
|
+
serialized_name: 'MxRecordElementType',
|
202
|
+
type: {
|
203
|
+
name: 'Composite',
|
204
|
+
class_name: 'MxRecord'
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
},
|
209
|
+
ptr_records: {
|
210
|
+
client_side_validation: true,
|
211
|
+
required: false,
|
212
|
+
serialized_name: 'properties.ptrRecords',
|
213
|
+
type: {
|
214
|
+
name: 'Sequence',
|
215
|
+
element: {
|
216
|
+
client_side_validation: true,
|
217
|
+
required: false,
|
218
|
+
serialized_name: 'PtrRecordElementType',
|
219
|
+
type: {
|
220
|
+
name: 'Composite',
|
221
|
+
class_name: 'PtrRecord'
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
},
|
226
|
+
soa_record: {
|
227
|
+
client_side_validation: true,
|
228
|
+
required: false,
|
229
|
+
serialized_name: 'properties.soaRecord',
|
230
|
+
type: {
|
231
|
+
name: 'Composite',
|
232
|
+
class_name: 'SoaRecord'
|
233
|
+
}
|
234
|
+
},
|
235
|
+
srv_records: {
|
236
|
+
client_side_validation: true,
|
237
|
+
required: false,
|
238
|
+
serialized_name: 'properties.srvRecords',
|
239
|
+
type: {
|
240
|
+
name: 'Sequence',
|
241
|
+
element: {
|
242
|
+
client_side_validation: true,
|
243
|
+
required: false,
|
244
|
+
serialized_name: 'SrvRecordElementType',
|
245
|
+
type: {
|
246
|
+
name: 'Composite',
|
247
|
+
class_name: 'SrvRecord'
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
},
|
252
|
+
txt_records: {
|
253
|
+
client_side_validation: true,
|
254
|
+
required: false,
|
255
|
+
serialized_name: 'properties.txtRecords',
|
256
|
+
type: {
|
257
|
+
name: 'Sequence',
|
258
|
+
element: {
|
259
|
+
client_side_validation: true,
|
260
|
+
required: false,
|
261
|
+
serialized_name: 'TxtRecordElementType',
|
262
|
+
type: {
|
263
|
+
name: 'Composite',
|
264
|
+
class_name: 'TxtRecord'
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|