azure_mgmt_dns 0.7.0 → 0.8.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 +4 -4
- data/lib/generated/azure_mgmt_dns.rb +9 -9
- data/lib/generated/azure_mgmt_dns/dns_management_client.rb +17 -5
- data/lib/generated/azure_mgmt_dns/models/aaaa_record.rb +2 -3
- data/lib/generated/azure_mgmt_dns/models/arecord.rb +2 -3
- data/lib/generated/azure_mgmt_dns/models/cname_record.rb +2 -3
- data/lib/generated/azure_mgmt_dns/models/{htp_status_code.rb → http_status_code.rb} +3 -3
- data/lib/generated/azure_mgmt_dns/models/mx_record.rb +3 -4
- data/lib/generated/azure_mgmt_dns/models/ns_record.rb +2 -3
- data/lib/generated/azure_mgmt_dns/models/operation_status.rb +1 -1
- data/lib/generated/azure_mgmt_dns/models/ptr_record.rb +2 -3
- data/lib/generated/azure_mgmt_dns/models/record_set.rb +20 -26
- data/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb +5 -5
- data/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +3 -3
- data/lib/generated/azure_mgmt_dns/models/record_type.rb +1 -1
- data/lib/generated/azure_mgmt_dns/models/soa_record.rb +10 -9
- data/lib/generated/azure_mgmt_dns/models/srv_record.rb +5 -6
- data/lib/generated/azure_mgmt_dns/models/txt_record.rb +2 -2
- data/lib/generated/azure_mgmt_dns/models/zone.rb +10 -10
- data/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb +8 -9
- data/lib/generated/azure_mgmt_dns/models/zone_list_result.rb +3 -4
- data/lib/generated/azure_mgmt_dns/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_dns/record_sets.rb +261 -241
- data/lib/generated/azure_mgmt_dns/version.rb +2 -2
- data/lib/generated/azure_mgmt_dns/zones.rb +212 -201
- metadata +5 -5
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,7 +12,7 @@ module Azure::ARM::Dns
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<String>]
|
15
|
+
# @return [Array<String>] The text value of this TXT record.
|
16
16
|
attr_accessor :value
|
17
17
|
|
18
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,21 +12,21 @@ module Azure::ARM::Dns
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
16
|
-
# updated, as received from a Get operation.
|
15
|
+
# @return [String] The etag of the zone.
|
17
16
|
attr_accessor :etag
|
18
17
|
|
19
|
-
# @return [Integer]
|
20
|
-
#
|
18
|
+
# @return [Integer] The maximum number of record sets that can be created
|
19
|
+
# in this DNS zone. This is a read-only property and any attempt to set
|
20
|
+
# this value will be ignored.
|
21
21
|
attr_accessor :max_number_of_record_sets
|
22
22
|
|
23
|
-
# @return [Integer]
|
24
|
-
# this
|
23
|
+
# @return [Integer] The current number of record sets in this DNS zone.
|
24
|
+
# This is a read-only property and any attempt to set this value will be
|
25
|
+
# ignored.
|
25
26
|
attr_accessor :number_of_record_sets
|
26
27
|
|
27
|
-
# @return [Array<String>]
|
28
|
-
#
|
29
|
-
# be ignored.
|
28
|
+
# @return [Array<String>] The name servers for this DNS zone. This is a
|
29
|
+
# read-only property and any attempt to set this value will be ignored.
|
30
30
|
attr_accessor :name_servers
|
31
31
|
|
32
32
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,15 +12,15 @@ module Azure::ARM::Dns
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Users can perform a Get on Azure-AsyncOperation to
|
16
|
-
#
|
15
|
+
# @return [String] Users can perform a Get on Azure-AsyncOperation to get
|
16
|
+
# the status of their delete Zone operations.
|
17
17
|
attr_accessor :azure_async_operation
|
18
18
|
|
19
19
|
# @return [OperationStatus] Possible values include: 'InProgress',
|
20
20
|
# 'Succeeded', 'Failed'
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# @return [
|
23
|
+
# @return [HttpStatusCode] Possible values include: 'Continue',
|
24
24
|
# 'SwitchingProtocols', 'OK', 'Created', 'Accepted',
|
25
25
|
# 'NonAuthoritativeInformation', 'NoContent', 'ResetContent',
|
26
26
|
# 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently',
|
@@ -31,10 +31,9 @@ module Azure::ARM::Dns
|
|
31
31
|
# 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone',
|
32
32
|
# 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge',
|
33
33
|
# 'RequestUriTooLong', 'UnsupportedMediaType',
|
34
|
-
# 'RequestedRangeNotSatisfiable', 'ExpectationFailed',
|
35
|
-
# '
|
36
|
-
# '
|
37
|
-
# 'HttpVersionNotSupported'
|
34
|
+
# 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired',
|
35
|
+
# 'InternalServerError', 'NotImplemented', 'BadGateway',
|
36
|
+
# 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported'
|
38
37
|
attr_accessor :status_code
|
39
38
|
|
40
39
|
# @return [String]
|
@@ -73,7 +72,7 @@ module Azure::ARM::Dns
|
|
73
72
|
serialized_name: 'statusCode',
|
74
73
|
type: {
|
75
74
|
name: 'Enum',
|
76
|
-
module: '
|
75
|
+
module: 'HttpStatusCode'
|
77
76
|
}
|
78
77
|
},
|
79
78
|
request_id: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,11 +12,10 @@ module Azure::ARM::Dns
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Array<Zone>]
|
16
|
-
# response.
|
15
|
+
# @return [Array<Zone>] Information about the DNS zones.
|
17
16
|
attr_accessor :value
|
18
17
|
|
19
|
-
# @return [String]
|
18
|
+
# @return [String] The continuation token for the next page of results.
|
20
19
|
attr_accessor :next_link
|
21
20
|
|
22
21
|
# return [Proc] with next page method call.
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Dns
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# The DNS Management Client.
|
9
9
|
#
|
10
10
|
class RecordSets
|
11
11
|
include Azure::ARM::Dns::Models
|
@@ -23,69 +23,75 @@ module Azure::ARM::Dns
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Updates a
|
26
|
+
# Updates a record set within a DNS zone.
|
27
27
|
#
|
28
28
|
# @param resource_group_name [String] The name of the resource group.
|
29
|
-
# @param zone_name [String] The name of the zone without a terminating
|
30
|
-
#
|
29
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
30
|
+
# dot).
|
31
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
31
32
|
# to the name of the zone.
|
32
|
-
# @param record_type [RecordType] The type of DNS record
|
33
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
33
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
34
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
35
|
+
# 'SRV', 'TXT'
|
34
36
|
# @param parameters [RecordSet] Parameters supplied to the Update operation.
|
35
|
-
# @param if_match [String] The etag of
|
36
|
-
#
|
37
|
-
#
|
37
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
38
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
39
|
+
# prevent accidentally overwritting concurrent changes.
|
38
40
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
41
|
# will be added to the HTTP request.
|
40
42
|
#
|
41
43
|
# @return [RecordSet] operation results.
|
42
44
|
#
|
43
|
-
def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil,
|
44
|
-
response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match,
|
45
|
+
def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
|
46
|
+
response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value!
|
45
47
|
response.body unless response.nil?
|
46
48
|
end
|
47
49
|
|
48
50
|
#
|
49
|
-
# Updates a
|
51
|
+
# Updates a record set within a DNS zone.
|
50
52
|
#
|
51
53
|
# @param resource_group_name [String] The name of the resource group.
|
52
|
-
# @param zone_name [String] The name of the zone without a terminating
|
53
|
-
#
|
54
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
55
|
+
# dot).
|
56
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
54
57
|
# to the name of the zone.
|
55
|
-
# @param record_type [RecordType] The type of DNS record
|
56
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
58
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
59
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
60
|
+
# 'SRV', 'TXT'
|
57
61
|
# @param parameters [RecordSet] Parameters supplied to the Update operation.
|
58
|
-
# @param if_match [String] The etag of
|
59
|
-
#
|
60
|
-
#
|
62
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
63
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
64
|
+
# prevent accidentally overwritting concurrent changes.
|
61
65
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
66
|
# will be added to the HTTP request.
|
63
67
|
#
|
64
68
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
65
69
|
#
|
66
|
-
def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil,
|
67
|
-
update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match,
|
70
|
+
def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
|
71
|
+
update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value!
|
68
72
|
end
|
69
73
|
|
70
74
|
#
|
71
|
-
# Updates a
|
75
|
+
# Updates a record set within a DNS zone.
|
72
76
|
#
|
73
77
|
# @param resource_group_name [String] The name of the resource group.
|
74
|
-
# @param zone_name [String] The name of the zone without a terminating
|
75
|
-
#
|
78
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
79
|
+
# dot).
|
80
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
76
81
|
# to the name of the zone.
|
77
|
-
# @param record_type [RecordType] The type of DNS record
|
78
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
82
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
83
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
84
|
+
# 'SRV', 'TXT'
|
79
85
|
# @param parameters [RecordSet] Parameters supplied to the Update operation.
|
80
|
-
# @param if_match [String] The etag of
|
81
|
-
#
|
82
|
-
#
|
86
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
87
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
88
|
+
# prevent accidentally overwritting concurrent changes.
|
83
89
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
84
90
|
# to the HTTP request.
|
85
91
|
#
|
86
92
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
87
93
|
#
|
88
|
-
def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil,
|
94
|
+
def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
|
89
95
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
90
96
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
91
97
|
fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
|
@@ -100,7 +106,6 @@ module Azure::ARM::Dns
|
|
100
106
|
# Set Headers
|
101
107
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
102
108
|
request_headers['If-Match'] = if_match unless if_match.nil?
|
103
|
-
request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
|
104
109
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
105
110
|
|
106
111
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
@@ -110,7 +115,7 @@ module Azure::ARM::Dns
|
|
110
115
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
111
116
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
112
117
|
|
113
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
118
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}'
|
114
119
|
|
115
120
|
request_url = @base_url || @client.base_url
|
116
121
|
|
@@ -153,19 +158,25 @@ module Azure::ARM::Dns
|
|
153
158
|
end
|
154
159
|
|
155
160
|
#
|
156
|
-
# Creates or
|
161
|
+
# Creates or updates a record set within a DNS zone.
|
157
162
|
#
|
158
163
|
# @param resource_group_name [String] The name of the resource group.
|
159
|
-
# @param zone_name [String] The name of the zone without a terminating
|
160
|
-
#
|
164
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
165
|
+
# dot).
|
166
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
161
167
|
# to the name of the zone.
|
162
|
-
# @param record_type [RecordType] The type of DNS record
|
163
|
-
#
|
168
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
169
|
+
# Record sets of type SOA can be updated but not created (they are created when
|
170
|
+
# the DNS zone is created). Possible values include: 'A', 'AAAA', 'CNAME',
|
171
|
+
# 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
|
164
172
|
# @param parameters [RecordSet] Parameters supplied to the CreateOrUpdate
|
165
173
|
# operation.
|
166
|
-
# @param if_match [String] The etag of
|
167
|
-
#
|
168
|
-
#
|
174
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
175
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
176
|
+
# prevent accidentally overwritting any concurrent changes.
|
177
|
+
# @param if_none_match [String] Set to '*' to allow a new record set to be
|
178
|
+
# created, but to prevent updating an existing record set. Other values will be
|
179
|
+
# ignored.
|
169
180
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
170
181
|
# will be added to the HTTP request.
|
171
182
|
#
|
@@ -177,19 +188,25 @@ module Azure::ARM::Dns
|
|
177
188
|
end
|
178
189
|
|
179
190
|
#
|
180
|
-
# Creates or
|
191
|
+
# Creates or updates a record set within a DNS zone.
|
181
192
|
#
|
182
193
|
# @param resource_group_name [String] The name of the resource group.
|
183
|
-
# @param zone_name [String] The name of the zone without a terminating
|
184
|
-
#
|
194
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
195
|
+
# dot).
|
196
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
185
197
|
# to the name of the zone.
|
186
|
-
# @param record_type [RecordType] The type of DNS record
|
187
|
-
#
|
198
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
199
|
+
# Record sets of type SOA can be updated but not created (they are created when
|
200
|
+
# the DNS zone is created). Possible values include: 'A', 'AAAA', 'CNAME',
|
201
|
+
# 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
|
188
202
|
# @param parameters [RecordSet] Parameters supplied to the CreateOrUpdate
|
189
203
|
# operation.
|
190
|
-
# @param if_match [String] The etag of
|
191
|
-
#
|
192
|
-
#
|
204
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
205
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
206
|
+
# prevent accidentally overwritting any concurrent changes.
|
207
|
+
# @param if_none_match [String] Set to '*' to allow a new record set to be
|
208
|
+
# created, but to prevent updating an existing record set. Other values will be
|
209
|
+
# ignored.
|
193
210
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
194
211
|
# will be added to the HTTP request.
|
195
212
|
#
|
@@ -200,19 +217,25 @@ module Azure::ARM::Dns
|
|
200
217
|
end
|
201
218
|
|
202
219
|
#
|
203
|
-
# Creates or
|
220
|
+
# Creates or updates a record set within a DNS zone.
|
204
221
|
#
|
205
222
|
# @param resource_group_name [String] The name of the resource group.
|
206
|
-
# @param zone_name [String] The name of the zone without a terminating
|
207
|
-
#
|
223
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
224
|
+
# dot).
|
225
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
208
226
|
# to the name of the zone.
|
209
|
-
# @param record_type [RecordType] The type of DNS record
|
210
|
-
#
|
227
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
228
|
+
# Record sets of type SOA can be updated but not created (they are created when
|
229
|
+
# the DNS zone is created). Possible values include: 'A', 'AAAA', 'CNAME',
|
230
|
+
# 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
|
211
231
|
# @param parameters [RecordSet] Parameters supplied to the CreateOrUpdate
|
212
232
|
# operation.
|
213
|
-
# @param if_match [String] The etag of
|
214
|
-
#
|
215
|
-
#
|
233
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
234
|
+
# always overwrite the current record set. Specify the last-seen etag value to
|
235
|
+
# prevent accidentally overwritting any concurrent changes.
|
236
|
+
# @param if_none_match [String] Set to '*' to allow a new record set to be
|
237
|
+
# created, but to prevent updating an existing record set. Other values will be
|
238
|
+
# ignored.
|
216
239
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
217
240
|
# to the HTTP request.
|
218
241
|
#
|
@@ -243,7 +266,7 @@ module Azure::ARM::Dns
|
|
243
266
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
244
267
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
245
268
|
|
246
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
269
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}'
|
247
270
|
|
248
271
|
request_url = @base_url || @client.base_url
|
249
272
|
|
@@ -296,74 +319,74 @@ module Azure::ARM::Dns
|
|
296
319
|
end
|
297
320
|
|
298
321
|
#
|
299
|
-
#
|
322
|
+
# Deletes a record set from a DNS zone. This operation cannot be undone.
|
300
323
|
#
|
301
324
|
# @param resource_group_name [String] The name of the resource group.
|
302
|
-
# @param zone_name [String] The name of the zone without a terminating
|
303
|
-
#
|
325
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
326
|
+
# dot).
|
327
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
304
328
|
# to the name of the zone.
|
305
|
-
# @param record_type [RecordType] The type of DNS record
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
-
# server does not match this value.
|
329
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
330
|
+
# Record sets of type SOA cannot be deleted (they are deleted when the DNS zone
|
331
|
+
# is deleted). Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS',
|
332
|
+
# 'PTR', 'SOA', 'SRV', 'TXT'
|
333
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
334
|
+
# always delete the current record set. Specify the last-seen etag value to
|
335
|
+
# prevent accidentally deleting any concurrent changes.
|
313
336
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
314
337
|
# will be added to the HTTP request.
|
315
338
|
#
|
316
339
|
#
|
317
|
-
def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil,
|
318
|
-
response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match,
|
340
|
+
def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
|
341
|
+
response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value!
|
319
342
|
nil
|
320
343
|
end
|
321
344
|
|
322
345
|
#
|
323
|
-
#
|
346
|
+
# Deletes a record set from a DNS zone. This operation cannot be undone.
|
324
347
|
#
|
325
348
|
# @param resource_group_name [String] The name of the resource group.
|
326
|
-
# @param zone_name [String] The name of the zone without a terminating
|
327
|
-
#
|
349
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
350
|
+
# dot).
|
351
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
328
352
|
# to the name of the zone.
|
329
|
-
# @param record_type [RecordType] The type of DNS record
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
336
|
-
# server does not match this value.
|
353
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
354
|
+
# Record sets of type SOA cannot be deleted (they are deleted when the DNS zone
|
355
|
+
# is deleted). Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS',
|
356
|
+
# 'PTR', 'SOA', 'SRV', 'TXT'
|
357
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
358
|
+
# always delete the current record set. Specify the last-seen etag value to
|
359
|
+
# prevent accidentally deleting any concurrent changes.
|
337
360
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
338
361
|
# will be added to the HTTP request.
|
339
362
|
#
|
340
363
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
341
364
|
#
|
342
|
-
def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil,
|
343
|
-
delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match,
|
365
|
+
def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
|
366
|
+
delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value!
|
344
367
|
end
|
345
368
|
|
346
369
|
#
|
347
|
-
#
|
370
|
+
# Deletes a record set from a DNS zone. This operation cannot be undone.
|
348
371
|
#
|
349
372
|
# @param resource_group_name [String] The name of the resource group.
|
350
|
-
# @param zone_name [String] The name of the zone without a terminating
|
351
|
-
#
|
373
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
374
|
+
# dot).
|
375
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
352
376
|
# to the name of the zone.
|
353
|
-
# @param record_type [RecordType] The type of DNS record
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
# server does not match this value.
|
377
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
378
|
+
# Record sets of type SOA cannot be deleted (they are deleted when the DNS zone
|
379
|
+
# is deleted). Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS',
|
380
|
+
# 'PTR', 'SOA', 'SRV', 'TXT'
|
381
|
+
# @param if_match [String] The etag of the record set. Omit this value to
|
382
|
+
# always delete the current record set. Specify the last-seen etag value to
|
383
|
+
# prevent accidentally deleting any concurrent changes.
|
361
384
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
362
385
|
# to the HTTP request.
|
363
386
|
#
|
364
387
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
365
388
|
#
|
366
|
-
def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil,
|
389
|
+
def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
|
367
390
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
368
391
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
369
392
|
fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
|
@@ -377,9 +400,8 @@ module Azure::ARM::Dns
|
|
377
400
|
# Set Headers
|
378
401
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
379
402
|
request_headers['If-Match'] = if_match unless if_match.nil?
|
380
|
-
request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
|
381
403
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
382
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
404
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}'
|
383
405
|
|
384
406
|
request_url = @base_url || @client.base_url
|
385
407
|
|
@@ -411,14 +433,16 @@ module Azure::ARM::Dns
|
|
411
433
|
end
|
412
434
|
|
413
435
|
#
|
414
|
-
# Gets a
|
436
|
+
# Gets a record set.
|
415
437
|
#
|
416
438
|
# @param resource_group_name [String] The name of the resource group.
|
417
|
-
# @param zone_name [String] The name of the zone without a terminating
|
418
|
-
#
|
439
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
440
|
+
# dot).
|
441
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
419
442
|
# to the name of the zone.
|
420
|
-
# @param record_type [RecordType] The type of DNS record
|
421
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
443
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
444
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
445
|
+
# 'SRV', 'TXT'
|
422
446
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
423
447
|
# will be added to the HTTP request.
|
424
448
|
#
|
@@ -430,14 +454,16 @@ module Azure::ARM::Dns
|
|
430
454
|
end
|
431
455
|
|
432
456
|
#
|
433
|
-
# Gets a
|
457
|
+
# Gets a record set.
|
434
458
|
#
|
435
459
|
# @param resource_group_name [String] The name of the resource group.
|
436
|
-
# @param zone_name [String] The name of the zone without a terminating
|
437
|
-
#
|
460
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
461
|
+
# dot).
|
462
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
438
463
|
# to the name of the zone.
|
439
|
-
# @param record_type [RecordType] The type of DNS record
|
440
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
464
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
465
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
466
|
+
# 'SRV', 'TXT'
|
441
467
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
442
468
|
# will be added to the HTTP request.
|
443
469
|
#
|
@@ -448,14 +474,16 @@ module Azure::ARM::Dns
|
|
448
474
|
end
|
449
475
|
|
450
476
|
#
|
451
|
-
# Gets a
|
477
|
+
# Gets a record set.
|
452
478
|
#
|
453
479
|
# @param resource_group_name [String] The name of the resource group.
|
454
|
-
# @param zone_name [String] The name of the zone without a terminating
|
455
|
-
#
|
480
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
481
|
+
# dot).
|
482
|
+
# @param relative_record_set_name [String] The name of the record set, relative
|
456
483
|
# to the name of the zone.
|
457
|
-
# @param record_type [RecordType] The type of DNS record
|
458
|
-
# include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
484
|
+
# @param record_type [RecordType] The type of DNS record in this record set.
|
485
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
486
|
+
# 'SRV', 'TXT'
|
459
487
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
460
488
|
# to the HTTP request.
|
461
489
|
#
|
@@ -475,7 +503,7 @@ module Azure::ARM::Dns
|
|
475
503
|
# Set Headers
|
476
504
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
477
505
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
478
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
506
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}'
|
479
507
|
|
480
508
|
request_url = @base_url || @client.base_url
|
481
509
|
|
@@ -517,46 +545,16 @@ module Azure::ARM::Dns
|
|
517
545
|
end
|
518
546
|
|
519
547
|
#
|
520
|
-
# Lists the
|
521
|
-
#
|
522
|
-
# @param resource_group_name [String] The name of the resource group that
|
523
|
-
# contains the zone.
|
524
|
-
# @param zone_name [String] The name of the zone from which to enumerate
|
525
|
-
# RecordsSets.
|
526
|
-
# @param record_type [RecordType] The type of record sets to enumerate.
|
527
|
-
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
528
|
-
# 'SRV', 'TXT'
|
529
|
-
# @param top [String] Query parameters. If null is passed returns the default
|
530
|
-
# number of zones.
|
531
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
532
|
-
# will be added to the HTTP request.
|
533
|
-
#
|
534
|
-
# @return [RecordSetListResult] which provide lazy access to pages of the
|
535
|
-
# response.
|
548
|
+
# Lists the record sets of a specified type in a DNS zone.
|
536
549
|
#
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
page = response.body
|
541
|
-
page.next_method = Proc.new do |next_page_link|
|
542
|
-
list_by_type_next_async(next_page_link, custom_headers)
|
543
|
-
end
|
544
|
-
page
|
545
|
-
end
|
546
|
-
end
|
547
|
-
|
548
|
-
#
|
549
|
-
# Lists the RecordSets of a specified type in a DNS zone.
|
550
|
-
#
|
551
|
-
# @param resource_group_name [String] The name of the resource group that
|
552
|
-
# contains the zone.
|
553
|
-
# @param zone_name [String] The name of the zone from which to enumerate
|
554
|
-
# RecordsSets.
|
550
|
+
# @param resource_group_name [String] The name of the resource group.
|
551
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
552
|
+
# dot).
|
555
553
|
# @param record_type [RecordType] The type of record sets to enumerate.
|
556
554
|
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
557
555
|
# 'SRV', 'TXT'
|
558
|
-
# @param top [
|
559
|
-
#
|
556
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
557
|
+
# specified, returns up to 100 record sets.
|
560
558
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
561
559
|
# will be added to the HTTP request.
|
562
560
|
#
|
@@ -568,17 +566,16 @@ module Azure::ARM::Dns
|
|
568
566
|
end
|
569
567
|
|
570
568
|
#
|
571
|
-
# Lists the
|
569
|
+
# Lists the record sets of a specified type in a DNS zone.
|
572
570
|
#
|
573
|
-
# @param resource_group_name [String] The name of the resource group
|
574
|
-
#
|
575
|
-
#
|
576
|
-
# RecordsSets.
|
571
|
+
# @param resource_group_name [String] The name of the resource group.
|
572
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
573
|
+
# dot).
|
577
574
|
# @param record_type [RecordType] The type of record sets to enumerate.
|
578
575
|
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
579
576
|
# 'SRV', 'TXT'
|
580
|
-
# @param top [
|
581
|
-
#
|
577
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
578
|
+
# specified, returns up to 100 record sets.
|
582
579
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
583
580
|
# will be added to the HTTP request.
|
584
581
|
#
|
@@ -589,17 +586,16 @@ module Azure::ARM::Dns
|
|
589
586
|
end
|
590
587
|
|
591
588
|
#
|
592
|
-
# Lists the
|
589
|
+
# Lists the record sets of a specified type in a DNS zone.
|
593
590
|
#
|
594
|
-
# @param resource_group_name [String] The name of the resource group
|
595
|
-
#
|
596
|
-
#
|
597
|
-
# RecordsSets.
|
591
|
+
# @param resource_group_name [String] The name of the resource group.
|
592
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
593
|
+
# dot).
|
598
594
|
# @param record_type [RecordType] The type of record sets to enumerate.
|
599
595
|
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
600
596
|
# 'SRV', 'TXT'
|
601
|
-
# @param top [
|
602
|
-
#
|
597
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
598
|
+
# specified, returns up to 100 record sets.
|
603
599
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
604
600
|
# to the HTTP request.
|
605
601
|
#
|
@@ -618,7 +614,7 @@ module Azure::ARM::Dns
|
|
618
614
|
# Set Headers
|
619
615
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
620
616
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
621
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
617
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}'
|
622
618
|
|
623
619
|
request_url = @base_url || @client.base_url
|
624
620
|
|
@@ -659,83 +655,54 @@ module Azure::ARM::Dns
|
|
659
655
|
end
|
660
656
|
|
661
657
|
#
|
662
|
-
# Lists all
|
663
|
-
#
|
664
|
-
# @param resource_group_name [String] The name of the resource group that
|
665
|
-
# contains the zone.
|
666
|
-
# @param zone_name [String] The name of the zone from which to enumerate
|
667
|
-
# RecordSets.
|
668
|
-
# @param top [String] Query parameters. If null is passed returns the default
|
669
|
-
# number of zones.
|
670
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
671
|
-
# will be added to the HTTP request.
|
672
|
-
#
|
673
|
-
# @return [RecordSetListResult] which provide lazy access to pages of the
|
674
|
-
# response.
|
675
|
-
#
|
676
|
-
def list_all_in_resource_group_as_lazy(resource_group_name, zone_name, top = nil, custom_headers = nil)
|
677
|
-
response = list_all_in_resource_group_async(resource_group_name, zone_name, top, custom_headers).value!
|
678
|
-
unless response.nil?
|
679
|
-
page = response.body
|
680
|
-
page.next_method = Proc.new do |next_page_link|
|
681
|
-
list_all_in_resource_group_next_async(next_page_link, custom_headers)
|
682
|
-
end
|
683
|
-
page
|
684
|
-
end
|
685
|
-
end
|
686
|
-
|
687
|
-
#
|
688
|
-
# Lists all RecordSets in a DNS zone.
|
658
|
+
# Lists all record sets in a DNS zone.
|
689
659
|
#
|
690
|
-
# @param resource_group_name [String] The name of the resource group
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
#
|
695
|
-
# number of zones.
|
660
|
+
# @param resource_group_name [String] The name of the resource group.
|
661
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
662
|
+
# dot).
|
663
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
664
|
+
# specified, returns up to 100 record sets.
|
696
665
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
697
666
|
# will be added to the HTTP request.
|
698
667
|
#
|
699
668
|
# @return [Array<RecordSet>] operation results.
|
700
669
|
#
|
701
|
-
def
|
702
|
-
first_page =
|
670
|
+
def list_by_dns_zone(resource_group_name, zone_name, top = nil, custom_headers = nil)
|
671
|
+
first_page = list_by_dns_zone_as_lazy(resource_group_name, zone_name, top, custom_headers)
|
703
672
|
first_page.get_all_items
|
704
673
|
end
|
705
674
|
|
706
675
|
#
|
707
|
-
# Lists all
|
676
|
+
# Lists all record sets in a DNS zone.
|
708
677
|
#
|
709
|
-
# @param resource_group_name [String] The name of the resource group
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
# number of zones.
|
678
|
+
# @param resource_group_name [String] The name of the resource group.
|
679
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
680
|
+
# dot).
|
681
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
682
|
+
# specified, returns up to 100 record sets.
|
715
683
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
716
684
|
# will be added to the HTTP request.
|
717
685
|
#
|
718
686
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
719
687
|
#
|
720
|
-
def
|
721
|
-
|
688
|
+
def list_by_dns_zone_with_http_info(resource_group_name, zone_name, top = nil, custom_headers = nil)
|
689
|
+
list_by_dns_zone_async(resource_group_name, zone_name, top, custom_headers).value!
|
722
690
|
end
|
723
691
|
|
724
692
|
#
|
725
|
-
# Lists all
|
693
|
+
# Lists all record sets in a DNS zone.
|
726
694
|
#
|
727
|
-
# @param resource_group_name [String] The name of the resource group
|
728
|
-
#
|
729
|
-
#
|
730
|
-
#
|
731
|
-
#
|
732
|
-
# number of zones.
|
695
|
+
# @param resource_group_name [String] The name of the resource group.
|
696
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
697
|
+
# dot).
|
698
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
699
|
+
# specified, returns up to 100 record sets.
|
733
700
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
734
701
|
# to the HTTP request.
|
735
702
|
#
|
736
703
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
737
704
|
#
|
738
|
-
def
|
705
|
+
def list_by_dns_zone_async(resource_group_name, zone_name, top = nil, custom_headers = nil)
|
739
706
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
740
707
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
741
708
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -747,7 +714,7 @@ module Azure::ARM::Dns
|
|
747
714
|
# Set Headers
|
748
715
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
749
716
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
750
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/
|
717
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets'
|
751
718
|
|
752
719
|
request_url = @base_url || @client.base_url
|
753
720
|
|
@@ -788,10 +755,10 @@ module Azure::ARM::Dns
|
|
788
755
|
end
|
789
756
|
|
790
757
|
#
|
791
|
-
# Lists the
|
758
|
+
# Lists the record sets of a specified type in a DNS zone.
|
792
759
|
#
|
793
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
794
|
-
#
|
760
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
761
|
+
# to List operation.
|
795
762
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
796
763
|
# will be added to the HTTP request.
|
797
764
|
#
|
@@ -803,10 +770,10 @@ module Azure::ARM::Dns
|
|
803
770
|
end
|
804
771
|
|
805
772
|
#
|
806
|
-
# Lists the
|
773
|
+
# Lists the record sets of a specified type in a DNS zone.
|
807
774
|
#
|
808
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
809
|
-
#
|
775
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
776
|
+
# to List operation.
|
810
777
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
811
778
|
# will be added to the HTTP request.
|
812
779
|
#
|
@@ -817,10 +784,10 @@ module Azure::ARM::Dns
|
|
817
784
|
end
|
818
785
|
|
819
786
|
#
|
820
|
-
# Lists the
|
787
|
+
# Lists the record sets of a specified type in a DNS zone.
|
821
788
|
#
|
822
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
823
|
-
#
|
789
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
790
|
+
# to List operation.
|
824
791
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
825
792
|
# to the HTTP request.
|
826
793
|
#
|
@@ -875,45 +842,45 @@ module Azure::ARM::Dns
|
|
875
842
|
end
|
876
843
|
|
877
844
|
#
|
878
|
-
# Lists all
|
845
|
+
# Lists all record sets in a DNS zone.
|
879
846
|
#
|
880
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
881
|
-
#
|
847
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
848
|
+
# to List operation.
|
882
849
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
883
850
|
# will be added to the HTTP request.
|
884
851
|
#
|
885
852
|
# @return [RecordSetListResult] operation results.
|
886
853
|
#
|
887
|
-
def
|
888
|
-
response =
|
854
|
+
def list_by_dns_zone_next(next_page_link, custom_headers = nil)
|
855
|
+
response = list_by_dns_zone_next_async(next_page_link, custom_headers).value!
|
889
856
|
response.body unless response.nil?
|
890
857
|
end
|
891
858
|
|
892
859
|
#
|
893
|
-
# Lists all
|
860
|
+
# Lists all record sets in a DNS zone.
|
894
861
|
#
|
895
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
896
|
-
#
|
862
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
863
|
+
# to List operation.
|
897
864
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
898
865
|
# will be added to the HTTP request.
|
899
866
|
#
|
900
867
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
901
868
|
#
|
902
|
-
def
|
903
|
-
|
869
|
+
def list_by_dns_zone_next_with_http_info(next_page_link, custom_headers = nil)
|
870
|
+
list_by_dns_zone_next_async(next_page_link, custom_headers).value!
|
904
871
|
end
|
905
872
|
|
906
873
|
#
|
907
|
-
# Lists all
|
874
|
+
# Lists all record sets in a DNS zone.
|
908
875
|
#
|
909
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
910
|
-
#
|
876
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
877
|
+
# to List operation.
|
911
878
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
912
879
|
# to the HTTP request.
|
913
880
|
#
|
914
881
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
915
882
|
#
|
916
|
-
def
|
883
|
+
def list_by_dns_zone_next_async(next_page_link, custom_headers = nil)
|
917
884
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
918
885
|
|
919
886
|
|
@@ -961,5 +928,58 @@ module Azure::ARM::Dns
|
|
961
928
|
promise.execute
|
962
929
|
end
|
963
930
|
|
931
|
+
#
|
932
|
+
# Lists the record sets of a specified type in a DNS zone.
|
933
|
+
#
|
934
|
+
# @param resource_group_name [String] The name of the resource group.
|
935
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
936
|
+
# dot).
|
937
|
+
# @param record_type [RecordType] The type of record sets to enumerate.
|
938
|
+
# Possible values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
|
939
|
+
# 'SRV', 'TXT'
|
940
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
941
|
+
# specified, returns up to 100 record sets.
|
942
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
943
|
+
# will be added to the HTTP request.
|
944
|
+
#
|
945
|
+
# @return [RecordSetListResult] which provide lazy access to pages of the
|
946
|
+
# response.
|
947
|
+
#
|
948
|
+
def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top = nil, custom_headers = nil)
|
949
|
+
response = list_by_type_async(resource_group_name, zone_name, record_type, top, custom_headers).value!
|
950
|
+
unless response.nil?
|
951
|
+
page = response.body
|
952
|
+
page.next_method = Proc.new do |next_page_link|
|
953
|
+
list_by_type_next_async(next_page_link, custom_headers)
|
954
|
+
end
|
955
|
+
page
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
#
|
960
|
+
# Lists all record sets in a DNS zone.
|
961
|
+
#
|
962
|
+
# @param resource_group_name [String] The name of the resource group.
|
963
|
+
# @param zone_name [String] The name of the DNS zone (without a terminating
|
964
|
+
# dot).
|
965
|
+
# @param top [Integer] The maximum number of record sets to return. If not
|
966
|
+
# specified, returns up to 100 record sets.
|
967
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
968
|
+
# will be added to the HTTP request.
|
969
|
+
#
|
970
|
+
# @return [RecordSetListResult] which provide lazy access to pages of the
|
971
|
+
# response.
|
972
|
+
#
|
973
|
+
def list_by_dns_zone_as_lazy(resource_group_name, zone_name, top = nil, custom_headers = nil)
|
974
|
+
response = list_by_dns_zone_async(resource_group_name, zone_name, top, custom_headers).value!
|
975
|
+
unless response.nil?
|
976
|
+
page = response.body
|
977
|
+
page.next_method = Proc.new do |next_page_link|
|
978
|
+
list_by_dns_zone_next_async(next_page_link, custom_headers)
|
979
|
+
end
|
980
|
+
page
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
964
984
|
end
|
965
985
|
end
|