azure_mgmt_dns 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +4 -1
  3. data/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb +54 -50
  4. data/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb +52 -47
  5. data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
  6. data/lib/2017-09-01/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
  7. data/lib/2017-09-01/generated/azure_mgmt_dns/models/arecord.rb +46 -0
  8. data/lib/2017-09-01/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
  9. data/lib/2017-09-01/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
  10. data/lib/2017-09-01/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
  11. data/lib/2017-09-01/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
  12. data/lib/2017-09-01/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
  13. data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set.rb +311 -0
  14. data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
  15. data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
  16. data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_type.rb +24 -0
  17. data/lib/2017-09-01/generated/azure_mgmt_dns/models/resource.rb +101 -0
  18. data/lib/2017-09-01/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
  19. data/lib/2017-09-01/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
  20. data/lib/2017-09-01/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
  21. data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone.rb +146 -0
  22. data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
  23. data/lib/2017-09-01/generated/azure_mgmt_dns/module_definition.rb +9 -0
  24. data/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb +1020 -0
  25. data/lib/2017-09-01/generated/azure_mgmt_dns/zones.rb +806 -0
  26. data/lib/2017-09-01/generated/azure_mgmt_dns.rb +46 -0
  27. data/lib/azure_mgmt_dns.rb +1 -0
  28. data/lib/profiles/latest/dns_latest_profile_client.rb +28 -9
  29. data/lib/profiles/latest/dns_module_definition.rb +0 -1
  30. data/lib/profiles/latest/modules/dns_profile_module.rb +98 -87
  31. data/lib/version.rb +1 -1
  32. metadata +24 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5788f75d36905efbae893f7123ab514dfc7858f1
4
- data.tar.gz: f7f6965d2947143fe6deeb48baaa62aa47c24f10
3
+ metadata.gz: 291c4ff3032ac39d863edf6cb15e4dc29d5c6e1c
4
+ data.tar.gz: 05fa51bf3b981520cab18a7c48f8a39079b2f3b1
5
5
  SHA512:
6
- metadata.gz: a6b1004c7a674aba3d72a2b1b23ae416eb459be64d4b33c9a7fa3404a5731e8c91b9a5640dae65daf41af6a8b3b0d4bb5de66121b7502777520d565d343fc10c
7
- data.tar.gz: 11d5cd021bf2afaac8485952206bd3de3dc4c2ea45b1dbc2765f91b5b7d69d5b2f4bea6b34e439707a1e402db484184fa540fc29dfda9f906dea824088009674
6
+ metadata.gz: 99f2040b66604df545a059d826a79832a5289cf65bdc02d2b116acc4d9d51d3b83503a93fa91c5aca181fc4abaaaf46c955bbb7c109ddc9ffde15bdcc6bff9b5
7
+ data.tar.gz: 1cb5deba6c739da29f4f34011f605df63d88abe879269aa5d977aec6ce6cae61f8356a496f7ece3002bc04914470b3f22f9da8f1cba4769fa52fd9f1a88403bd
@@ -109,6 +109,9 @@ module Azure::Dns::Mgmt::V2016_04_01
109
109
  fail ArgumentError, 'path is nil' if path.nil?
110
110
 
111
111
  request_url = options[:base_url] || @base_url
112
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
113
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
114
+ end
112
115
 
113
116
  request_headers = @request_headers
114
117
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -125,7 +128,7 @@ module Azure::Dns::Mgmt::V2016_04_01
125
128
  #
126
129
  def add_telemetry
127
130
  sdk_information = 'azure_mgmt_dns'
128
- sdk_information = "#{sdk_information}/0.15.2"
131
+ sdk_information = "#{sdk_information}/0.16.0"
129
132
  add_user_agent_information(sdk_information)
130
133
  end
131
134
  end
@@ -41,8 +41,8 @@ module Azure::Dns::Mgmt::V2016_04_01
41
41
  #
42
42
  # @return [RecordSet] operation results.
43
43
  #
44
- def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
45
- response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value!
44
+ def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
45
+ response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value!
46
46
  response.body unless response.nil?
47
47
  end
48
48
 
@@ -66,8 +66,8 @@ module Azure::Dns::Mgmt::V2016_04_01
66
66
  #
67
67
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
68
68
  #
69
- def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
70
- update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value!
69
+ def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
70
+ update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value!
71
71
  end
72
72
 
73
73
  #
@@ -90,7 +90,7 @@ module Azure::Dns::Mgmt::V2016_04_01
90
90
  #
91
91
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
92
92
  #
93
- def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil)
93
+ def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
94
94
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
95
95
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
96
96
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
@@ -101,14 +101,13 @@ module Azure::Dns::Mgmt::V2016_04_01
101
101
 
102
102
 
103
103
  request_headers = {}
104
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
104
105
 
105
106
  # Set Headers
106
107
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
107
108
  request_headers['If-Match'] = if_match unless if_match.nil?
108
109
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
109
110
 
110
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
111
-
112
111
  # Serialize Request
113
112
  request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
114
113
  request_content = @client.serialize(request_mapper, parameters)
@@ -181,8 +180,8 @@ module Azure::Dns::Mgmt::V2016_04_01
181
180
  #
182
181
  # @return [RecordSet] operation results.
183
182
  #
184
- def create_or_update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
185
- response = create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, if_none_match, custom_headers).value!
183
+ def create_or_update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
184
+ response = create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
186
185
  response.body unless response.nil?
187
186
  end
188
187
 
@@ -211,8 +210,8 @@ module Azure::Dns::Mgmt::V2016_04_01
211
210
  #
212
211
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
213
212
  #
214
- def create_or_update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
215
- create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, if_none_match, custom_headers).value!
213
+ def create_or_update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
214
+ create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
216
215
  end
217
216
 
218
217
  #
@@ -240,7 +239,7 @@ module Azure::Dns::Mgmt::V2016_04_01
240
239
  #
241
240
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
241
  #
243
- def create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
242
+ def create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
244
243
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
245
244
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
246
245
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
@@ -251,6 +250,7 @@ module Azure::Dns::Mgmt::V2016_04_01
251
250
 
252
251
 
253
252
  request_headers = {}
253
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
254
254
 
255
255
  # Set Headers
256
256
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -258,8 +258,6 @@ module Azure::Dns::Mgmt::V2016_04_01
258
258
  request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
259
259
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
260
260
 
261
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
262
-
263
261
  # Serialize Request
264
262
  request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
265
263
  request_content = @client.serialize(request_mapper, parameters)
@@ -336,8 +334,8 @@ module Azure::Dns::Mgmt::V2016_04_01
336
334
  # will be added to the HTTP request.
337
335
  #
338
336
  #
339
- def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
340
- response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value!
337
+ def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
338
+ response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value!
341
339
  nil
342
340
  end
343
341
 
@@ -361,8 +359,8 @@ module Azure::Dns::Mgmt::V2016_04_01
361
359
  #
362
360
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
363
361
  #
364
- def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
365
- delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value!
362
+ def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
363
+ delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value!
366
364
  end
367
365
 
368
366
  #
@@ -385,7 +383,7 @@ module Azure::Dns::Mgmt::V2016_04_01
385
383
  #
386
384
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
387
385
  #
388
- def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil)
386
+ def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
389
387
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
388
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
391
389
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
@@ -395,6 +393,7 @@ module Azure::Dns::Mgmt::V2016_04_01
395
393
 
396
394
 
397
395
  request_headers = {}
396
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
398
397
 
399
398
  # Set Headers
400
399
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -447,8 +446,8 @@ module Azure::Dns::Mgmt::V2016_04_01
447
446
  #
448
447
  # @return [RecordSet] operation results.
449
448
  #
450
- def get(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil)
451
- response = get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers).value!
449
+ def get(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil)
450
+ response = get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:custom_headers).value!
452
451
  response.body unless response.nil?
453
452
  end
454
453
 
@@ -468,8 +467,8 @@ module Azure::Dns::Mgmt::V2016_04_01
468
467
  #
469
468
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
470
469
  #
471
- def get_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil)
472
- get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers).value!
470
+ def get_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil)
471
+ get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:custom_headers).value!
473
472
  end
474
473
 
475
474
  #
@@ -488,7 +487,7 @@ module Azure::Dns::Mgmt::V2016_04_01
488
487
  #
489
488
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
490
489
  #
491
- def get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil)
490
+ def get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil)
492
491
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
493
492
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
494
493
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
@@ -498,6 +497,7 @@ module Azure::Dns::Mgmt::V2016_04_01
498
497
 
499
498
 
500
499
  request_headers = {}
500
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
501
501
 
502
502
  # Set Headers
503
503
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -563,8 +563,8 @@ module Azure::Dns::Mgmt::V2016_04_01
563
563
  #
564
564
  # @return [Array<RecordSet>] operation results.
565
565
  #
566
- def list_by_type(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
567
- first_page = list_by_type_as_lazy(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers)
566
+ def list_by_type(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
567
+ first_page = list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers)
568
568
  first_page.get_all_items
569
569
  end
570
570
 
@@ -588,8 +588,8 @@ module Azure::Dns::Mgmt::V2016_04_01
588
588
  #
589
589
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
590
590
  #
591
- def list_by_type_with_http_info(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
592
- list_by_type_async(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers).value!
591
+ def list_by_type_with_http_info(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
592
+ list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
593
593
  end
594
594
 
595
595
  #
@@ -612,7 +612,7 @@ module Azure::Dns::Mgmt::V2016_04_01
612
612
  #
613
613
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
614
614
  #
615
- def list_by_type_async(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
615
+ def list_by_type_async(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
616
616
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
617
617
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
618
618
  fail ArgumentError, 'record_type is nil' if record_type.nil?
@@ -621,6 +621,7 @@ module Azure::Dns::Mgmt::V2016_04_01
621
621
 
622
622
 
623
623
  request_headers = {}
624
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
624
625
 
625
626
  # Set Headers
626
627
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -682,8 +683,8 @@ module Azure::Dns::Mgmt::V2016_04_01
682
683
  #
683
684
  # @return [Array<RecordSet>] operation results.
684
685
  #
685
- def list_by_dns_zone(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
686
- first_page = list_by_dns_zone_as_lazy(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers)
686
+ def list_by_dns_zone(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
687
+ first_page = list_by_dns_zone_as_lazy(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers)
687
688
  first_page.get_all_items
688
689
  end
689
690
 
@@ -704,8 +705,8 @@ module Azure::Dns::Mgmt::V2016_04_01
704
705
  #
705
706
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
706
707
  #
707
- def list_by_dns_zone_with_http_info(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
708
- list_by_dns_zone_async(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers).value!
708
+ def list_by_dns_zone_with_http_info(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
709
+ list_by_dns_zone_async(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
709
710
  end
710
711
 
711
712
  #
@@ -725,7 +726,7 @@ module Azure::Dns::Mgmt::V2016_04_01
725
726
  #
726
727
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
727
728
  #
728
- def list_by_dns_zone_async(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
729
+ def list_by_dns_zone_async(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
729
730
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
730
731
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
731
732
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -733,6 +734,7 @@ module Azure::Dns::Mgmt::V2016_04_01
733
734
 
734
735
 
735
736
  request_headers = {}
737
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
736
738
 
737
739
  # Set Headers
738
740
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -787,8 +789,8 @@ module Azure::Dns::Mgmt::V2016_04_01
787
789
  #
788
790
  # @return [RecordSetListResult] operation results.
789
791
  #
790
- def list_by_type_next(next_page_link, custom_headers = nil)
791
- response = list_by_type_next_async(next_page_link, custom_headers).value!
792
+ def list_by_type_next(next_page_link, custom_headers:nil)
793
+ response = list_by_type_next_async(next_page_link, custom_headers:custom_headers).value!
792
794
  response.body unless response.nil?
793
795
  end
794
796
 
@@ -802,8 +804,8 @@ module Azure::Dns::Mgmt::V2016_04_01
802
804
  #
803
805
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
804
806
  #
805
- def list_by_type_next_with_http_info(next_page_link, custom_headers = nil)
806
- list_by_type_next_async(next_page_link, custom_headers).value!
807
+ def list_by_type_next_with_http_info(next_page_link, custom_headers:nil)
808
+ list_by_type_next_async(next_page_link, custom_headers:custom_headers).value!
807
809
  end
808
810
 
809
811
  #
@@ -816,11 +818,12 @@ module Azure::Dns::Mgmt::V2016_04_01
816
818
  #
817
819
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
818
820
  #
819
- def list_by_type_next_async(next_page_link, custom_headers = nil)
821
+ def list_by_type_next_async(next_page_link, custom_headers:nil)
820
822
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
821
823
 
822
824
 
823
825
  request_headers = {}
826
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
824
827
 
825
828
  # Set Headers
826
829
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -874,8 +877,8 @@ module Azure::Dns::Mgmt::V2016_04_01
874
877
  #
875
878
  # @return [RecordSetListResult] operation results.
876
879
  #
877
- def list_by_dns_zone_next(next_page_link, custom_headers = nil)
878
- response = list_by_dns_zone_next_async(next_page_link, custom_headers).value!
880
+ def list_by_dns_zone_next(next_page_link, custom_headers:nil)
881
+ response = list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value!
879
882
  response.body unless response.nil?
880
883
  end
881
884
 
@@ -889,8 +892,8 @@ module Azure::Dns::Mgmt::V2016_04_01
889
892
  #
890
893
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
891
894
  #
892
- def list_by_dns_zone_next_with_http_info(next_page_link, custom_headers = nil)
893
- list_by_dns_zone_next_async(next_page_link, custom_headers).value!
895
+ def list_by_dns_zone_next_with_http_info(next_page_link, custom_headers:nil)
896
+ list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value!
894
897
  end
895
898
 
896
899
  #
@@ -903,11 +906,12 @@ module Azure::Dns::Mgmt::V2016_04_01
903
906
  #
904
907
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
905
908
  #
906
- def list_by_dns_zone_next_async(next_page_link, custom_headers = nil)
909
+ def list_by_dns_zone_next_async(next_page_link, custom_headers:nil)
907
910
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
908
911
 
909
912
 
910
913
  request_headers = {}
914
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
911
915
 
912
916
  # Set Headers
913
917
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -972,12 +976,12 @@ module Azure::Dns::Mgmt::V2016_04_01
972
976
  # @return [RecordSetListResult] which provide lazy access to pages of the
973
977
  # response.
974
978
  #
975
- def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
976
- response = list_by_type_async(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers).value!
979
+ def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
980
+ response = list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
977
981
  unless response.nil?
978
982
  page = response.body
979
983
  page.next_method = Proc.new do |next_page_link|
980
- list_by_type_next_async(next_page_link, custom_headers)
984
+ list_by_type_next_async(next_page_link, custom_headers:custom_headers)
981
985
  end
982
986
  page
983
987
  end
@@ -1001,12 +1005,12 @@ module Azure::Dns::Mgmt::V2016_04_01
1001
1005
  # @return [RecordSetListResult] which provide lazy access to pages of the
1002
1006
  # response.
1003
1007
  #
1004
- def list_by_dns_zone_as_lazy(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil)
1005
- response = list_by_dns_zone_async(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers).value!
1008
+ def list_by_dns_zone_as_lazy(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
1009
+ response = list_by_dns_zone_async(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value!
1006
1010
  unless response.nil?
1007
1011
  page = response.body
1008
1012
  page.next_method = Proc.new do |next_page_link|
1009
- list_by_dns_zone_next_async(next_page_link, custom_headers)
1013
+ list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers)
1010
1014
  end
1011
1015
  page
1012
1016
  end
@@ -39,8 +39,8 @@ module Azure::Dns::Mgmt::V2016_04_01
39
39
  #
40
40
  # @return [Zone] operation results.
41
41
  #
42
- def create_or_update(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
43
- response = create_or_update_async(resource_group_name, zone_name, parameters, if_match, if_none_match, custom_headers).value!
42
+ def create_or_update(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
43
+ response = create_or_update_async(resource_group_name, zone_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
44
44
  response.body unless response.nil?
45
45
  end
46
46
 
@@ -62,8 +62,8 @@ module Azure::Dns::Mgmt::V2016_04_01
62
62
  #
63
63
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
64
64
  #
65
- def create_or_update_with_http_info(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
66
- create_or_update_async(resource_group_name, zone_name, parameters, if_match, if_none_match, custom_headers).value!
65
+ def create_or_update_with_http_info(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
66
+ create_or_update_async(resource_group_name, zone_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
67
67
  end
68
68
 
69
69
  #
@@ -84,7 +84,7 @@ module Azure::Dns::Mgmt::V2016_04_01
84
84
  #
85
85
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
86
86
  #
87
- def create_or_update_async(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil)
87
+ def create_or_update_async(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
88
88
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
89
89
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
90
90
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -93,6 +93,7 @@ module Azure::Dns::Mgmt::V2016_04_01
93
93
 
94
94
 
95
95
  request_headers = {}
96
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
96
97
 
97
98
  # Set Headers
98
99
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -100,8 +101,6 @@ module Azure::Dns::Mgmt::V2016_04_01
100
101
  request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
101
102
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
102
103
 
103
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
104
-
105
104
  # Serialize Request
106
105
  request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::Zone.mapper()
107
106
  request_content = @client.serialize(request_mapper, parameters)
@@ -173,8 +172,8 @@ module Azure::Dns::Mgmt::V2016_04_01
173
172
  #
174
173
  # @return [ZoneDeleteResult] operation results.
175
174
  #
176
- def delete(resource_group_name, zone_name, if_match = nil, custom_headers = nil)
177
- response = delete_async(resource_group_name, zone_name, if_match, custom_headers).value!
175
+ def delete(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
176
+ response = delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value!
178
177
  response.body unless response.nil?
179
178
  end
180
179
 
@@ -191,9 +190,9 @@ module Azure::Dns::Mgmt::V2016_04_01
191
190
  # @return [Concurrent::Promise] promise which provides async access to http
192
191
  # response.
193
192
  #
194
- def delete_async(resource_group_name, zone_name, if_match = nil, custom_headers = nil)
193
+ def delete_async(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
195
194
  # Send request
196
- promise = begin_delete_async(resource_group_name, zone_name, if_match, custom_headers)
195
+ promise = begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers)
197
196
 
198
197
  promise = promise.then do |response|
199
198
  # Defining deserialization method.
@@ -221,8 +220,8 @@ module Azure::Dns::Mgmt::V2016_04_01
221
220
  #
222
221
  # @return [Zone] operation results.
223
222
  #
224
- def get(resource_group_name, zone_name, custom_headers = nil)
225
- response = get_async(resource_group_name, zone_name, custom_headers).value!
223
+ def get(resource_group_name, zone_name, custom_headers:nil)
224
+ response = get_async(resource_group_name, zone_name, custom_headers:custom_headers).value!
226
225
  response.body unless response.nil?
227
226
  end
228
227
 
@@ -238,8 +237,8 @@ module Azure::Dns::Mgmt::V2016_04_01
238
237
  #
239
238
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
240
239
  #
241
- def get_with_http_info(resource_group_name, zone_name, custom_headers = nil)
242
- get_async(resource_group_name, zone_name, custom_headers).value!
240
+ def get_with_http_info(resource_group_name, zone_name, custom_headers:nil)
241
+ get_async(resource_group_name, zone_name, custom_headers:custom_headers).value!
243
242
  end
244
243
 
245
244
  #
@@ -254,7 +253,7 @@ module Azure::Dns::Mgmt::V2016_04_01
254
253
  #
255
254
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
256
255
  #
257
- def get_async(resource_group_name, zone_name, custom_headers = nil)
256
+ def get_async(resource_group_name, zone_name, custom_headers:nil)
258
257
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
259
258
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
260
259
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -262,6 +261,7 @@ module Azure::Dns::Mgmt::V2016_04_01
262
261
 
263
262
 
264
263
  request_headers = {}
264
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
265
265
 
266
266
  # Set Headers
267
267
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -317,8 +317,8 @@ module Azure::Dns::Mgmt::V2016_04_01
317
317
  #
318
318
  # @return [Array<Zone>] operation results.
319
319
  #
320
- def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil)
321
- first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers)
320
+ def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil)
321
+ first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers)
322
322
  first_page.get_all_items
323
323
  end
324
324
 
@@ -333,8 +333,8 @@ module Azure::Dns::Mgmt::V2016_04_01
333
333
  #
334
334
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
335
335
  #
336
- def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil)
337
- list_by_resource_group_async(resource_group_name, top, custom_headers).value!
336
+ def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil)
337
+ list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
338
338
  end
339
339
 
340
340
  #
@@ -348,13 +348,14 @@ module Azure::Dns::Mgmt::V2016_04_01
348
348
  #
349
349
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
350
350
  #
351
- def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil)
351
+ def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil)
352
352
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
353
353
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
354
354
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
355
355
 
356
356
 
357
357
  request_headers = {}
358
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
358
359
 
359
360
  # Set Headers
360
361
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -409,8 +410,8 @@ module Azure::Dns::Mgmt::V2016_04_01
409
410
  #
410
411
  # @return [Array<Zone>] operation results.
411
412
  #
412
- def list(top = nil, custom_headers = nil)
413
- first_page = list_as_lazy(top, custom_headers)
413
+ def list(top:nil, custom_headers:nil)
414
+ first_page = list_as_lazy(top:top, custom_headers:custom_headers)
414
415
  first_page.get_all_items
415
416
  end
416
417
 
@@ -424,8 +425,8 @@ module Azure::Dns::Mgmt::V2016_04_01
424
425
  #
425
426
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
426
427
  #
427
- def list_with_http_info(top = nil, custom_headers = nil)
428
- list_async(top, custom_headers).value!
428
+ def list_with_http_info(top:nil, custom_headers:nil)
429
+ list_async(top:top, custom_headers:custom_headers).value!
429
430
  end
430
431
 
431
432
  #
@@ -438,12 +439,13 @@ module Azure::Dns::Mgmt::V2016_04_01
438
439
  #
439
440
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
440
441
  #
441
- def list_async(top = nil, custom_headers = nil)
442
+ def list_async(top:nil, custom_headers:nil)
442
443
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
443
444
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
444
445
 
445
446
 
446
447
  request_headers = {}
448
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
447
449
 
448
450
  # Set Headers
449
451
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -503,8 +505,8 @@ module Azure::Dns::Mgmt::V2016_04_01
503
505
  #
504
506
  # @return [ZoneDeleteResult] operation results.
505
507
  #
506
- def begin_delete(resource_group_name, zone_name, if_match = nil, custom_headers = nil)
507
- response = begin_delete_async(resource_group_name, zone_name, if_match, custom_headers).value!
508
+ def begin_delete(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
509
+ response = begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value!
508
510
  response.body unless response.nil?
509
511
  end
510
512
 
@@ -523,8 +525,8 @@ module Azure::Dns::Mgmt::V2016_04_01
523
525
  #
524
526
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
525
527
  #
526
- def begin_delete_with_http_info(resource_group_name, zone_name, if_match = nil, custom_headers = nil)
527
- begin_delete_async(resource_group_name, zone_name, if_match, custom_headers).value!
528
+ def begin_delete_with_http_info(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
529
+ begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value!
528
530
  end
529
531
 
530
532
  #
@@ -542,7 +544,7 @@ module Azure::Dns::Mgmt::V2016_04_01
542
544
  #
543
545
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
544
546
  #
545
- def begin_delete_async(resource_group_name, zone_name, if_match = nil, custom_headers = nil)
547
+ def begin_delete_async(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
546
548
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
547
549
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
548
550
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -550,6 +552,7 @@ module Azure::Dns::Mgmt::V2016_04_01
550
552
 
551
553
 
552
554
  request_headers = {}
555
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
553
556
 
554
557
  # Set Headers
555
558
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -605,8 +608,8 @@ module Azure::Dns::Mgmt::V2016_04_01
605
608
  #
606
609
  # @return [ZoneListResult] operation results.
607
610
  #
608
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
609
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
611
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
612
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
610
613
  response.body unless response.nil?
611
614
  end
612
615
 
@@ -620,8 +623,8 @@ module Azure::Dns::Mgmt::V2016_04_01
620
623
  #
621
624
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
622
625
  #
623
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
624
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
626
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
627
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
625
628
  end
626
629
 
627
630
  #
@@ -634,11 +637,12 @@ module Azure::Dns::Mgmt::V2016_04_01
634
637
  #
635
638
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
636
639
  #
637
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
640
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
638
641
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
639
642
 
640
643
 
641
644
  request_headers = {}
645
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
642
646
 
643
647
  # Set Headers
644
648
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -692,8 +696,8 @@ module Azure::Dns::Mgmt::V2016_04_01
692
696
  #
693
697
  # @return [ZoneListResult] operation results.
694
698
  #
695
- def list_next(next_page_link, custom_headers = nil)
696
- response = list_next_async(next_page_link, custom_headers).value!
699
+ def list_next(next_page_link, custom_headers:nil)
700
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
697
701
  response.body unless response.nil?
698
702
  end
699
703
 
@@ -707,8 +711,8 @@ module Azure::Dns::Mgmt::V2016_04_01
707
711
  #
708
712
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
709
713
  #
710
- def list_next_with_http_info(next_page_link, custom_headers = nil)
711
- list_next_async(next_page_link, custom_headers).value!
714
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
715
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
712
716
  end
713
717
 
714
718
  #
@@ -721,11 +725,12 @@ module Azure::Dns::Mgmt::V2016_04_01
721
725
  #
722
726
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
723
727
  #
724
- def list_next_async(next_page_link, custom_headers = nil)
728
+ def list_next_async(next_page_link, custom_headers:nil)
725
729
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
726
730
 
727
731
 
728
732
  request_headers = {}
733
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
729
734
 
730
735
  # Set Headers
731
736
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -780,12 +785,12 @@ module Azure::Dns::Mgmt::V2016_04_01
780
785
  #
781
786
  # @return [ZoneListResult] which provide lazy access to pages of the response.
782
787
  #
783
- def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil)
784
- response = list_by_resource_group_async(resource_group_name, top, custom_headers).value!
788
+ def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil)
789
+ response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value!
785
790
  unless response.nil?
786
791
  page = response.body
787
792
  page.next_method = Proc.new do |next_page_link|
788
- list_by_resource_group_next_async(next_page_link, custom_headers)
793
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
789
794
  end
790
795
  page
791
796
  end
@@ -801,12 +806,12 @@ module Azure::Dns::Mgmt::V2016_04_01
801
806
  #
802
807
  # @return [ZoneListResult] which provide lazy access to pages of the response.
803
808
  #
804
- def list_as_lazy(top = nil, custom_headers = nil)
805
- response = list_async(top, custom_headers).value!
809
+ def list_as_lazy(top:nil, custom_headers:nil)
810
+ response = list_async(top:top, custom_headers:custom_headers).value!
806
811
  unless response.nil?
807
812
  page = response.body
808
813
  page.next_method = Proc.new do |next_page_link|
809
- list_next_async(next_page_link, custom_headers)
814
+ list_next_async(next_page_link, custom_headers:custom_headers)
810
815
  end
811
816
  page
812
817
  end