azure_mgmt_dns 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8137b9c9fd272049a06f0a0a08112486c1e0802a
4
- data.tar.gz: a5033767009c172ef97ded4c8d13e04739d42371
3
+ metadata.gz: 23165461da77efa58fd5e5e7f45ae4ad5dd5d192
4
+ data.tar.gz: 181485e0ee942fbee759dc10de94f6ad28b3ab2c
5
5
  SHA512:
6
- metadata.gz: 32095dfaba008b2b6643243f773c29a332cb907503f9369a37769d3629932eba417b93dbc08d5bf85c14f8441a67cac4ff525b074520b8cbdb25c7d495313f2f
7
- data.tar.gz: 3aa5e3dfdd05048dbffd10473749dd0ea04211f1566e22b96e2bf0e01d949467618c59acca59e0281da702954ac7fce9534e9ba127140d45c384f51651dbe8b4
6
+ metadata.gz: 1095cd247a2ccba60f065c4bd89db4a723e9bd290aeb0461d2e80f2bfa933c5904d086905a6ad0845e2ad925b611832b4a04560cf2c8fa38efd545df071082a9
7
+ data.tar.gz: 0d54aea08a0c30a10cdc0930b20fe1d82760c197a965499ad333ae269298d06549b00301085c4a415f08976c3f2bd7bd7d37ed54816f42f02fafeab8b566518b
@@ -24,15 +24,16 @@ module Azure::Dns::Mgmt::V2016_04_01
24
24
  # @return [String] Specifies the API version.
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
38
39
  # @return [RecordSets] record_sets
@@ -128,7 +129,7 @@ module Azure::Dns::Mgmt::V2016_04_01
128
129
  #
129
130
  def add_telemetry
130
131
  sdk_information = 'azure_mgmt_dns'
131
- sdk_information = "#{sdk_information}/0.16.1"
132
+ sdk_information = "#{sdk_information}/0.17.0"
132
133
  add_user_agent_information(sdk_information)
133
134
  end
134
135
  end
@@ -24,7 +24,8 @@ module Azure::Dns::Mgmt::V2016_04_01
24
24
  #
25
25
  # Updates a record set within a DNS zone.
26
26
  #
27
- # @param resource_group_name [String] The name of the resource group.
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
28
29
  # @param zone_name [String] The name of the DNS zone (without a terminating
29
30
  # dot).
30
31
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -49,7 +50,8 @@ module Azure::Dns::Mgmt::V2016_04_01
49
50
  #
50
51
  # Updates a record set within a DNS zone.
51
52
  #
52
- # @param resource_group_name [String] The name of the resource group.
53
+ # @param resource_group_name [String] The name of the resource group. The name
54
+ # is case insensitive.
53
55
  # @param zone_name [String] The name of the DNS zone (without a terminating
54
56
  # dot).
55
57
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -73,7 +75,8 @@ module Azure::Dns::Mgmt::V2016_04_01
73
75
  #
74
76
  # Updates a record set within a DNS zone.
75
77
  #
76
- # @param resource_group_name [String] The name of the resource group.
78
+ # @param resource_group_name [String] The name of the resource group. The name
79
+ # is case insensitive.
77
80
  # @param zone_name [String] The name of the DNS zone (without a terminating
78
81
  # dot).
79
82
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -92,6 +95,9 @@ module Azure::Dns::Mgmt::V2016_04_01
92
95
  #
93
96
  def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil)
94
97
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
98
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
99
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
100
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
95
101
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
96
102
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
97
103
  fail ArgumentError, 'record_type is nil' if record_type.nil?
@@ -158,7 +164,8 @@ module Azure::Dns::Mgmt::V2016_04_01
158
164
  #
159
165
  # Creates or updates a record set within a DNS zone.
160
166
  #
161
- # @param resource_group_name [String] The name of the resource group.
167
+ # @param resource_group_name [String] The name of the resource group. The name
168
+ # is case insensitive.
162
169
  # @param zone_name [String] The name of the DNS zone (without a terminating
163
170
  # dot).
164
171
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -188,7 +195,8 @@ module Azure::Dns::Mgmt::V2016_04_01
188
195
  #
189
196
  # Creates or updates a record set within a DNS zone.
190
197
  #
191
- # @param resource_group_name [String] The name of the resource group.
198
+ # @param resource_group_name [String] The name of the resource group. The name
199
+ # is case insensitive.
192
200
  # @param zone_name [String] The name of the DNS zone (without a terminating
193
201
  # dot).
194
202
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -217,7 +225,8 @@ module Azure::Dns::Mgmt::V2016_04_01
217
225
  #
218
226
  # Creates or updates a record set within a DNS zone.
219
227
  #
220
- # @param resource_group_name [String] The name of the resource group.
228
+ # @param resource_group_name [String] The name of the resource group. The name
229
+ # is case insensitive.
221
230
  # @param zone_name [String] The name of the DNS zone (without a terminating
222
231
  # dot).
223
232
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -241,6 +250,9 @@ module Azure::Dns::Mgmt::V2016_04_01
241
250
  #
242
251
  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)
243
252
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
253
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
254
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
255
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
244
256
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
245
257
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
246
258
  fail ArgumentError, 'record_type is nil' if record_type.nil?
@@ -318,7 +330,8 @@ module Azure::Dns::Mgmt::V2016_04_01
318
330
  #
319
331
  # Deletes a record set from a DNS zone. This operation cannot be undone.
320
332
  #
321
- # @param resource_group_name [String] The name of the resource group.
333
+ # @param resource_group_name [String] The name of the resource group. The name
334
+ # is case insensitive.
322
335
  # @param zone_name [String] The name of the DNS zone (without a terminating
323
336
  # dot).
324
337
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -342,7 +355,8 @@ module Azure::Dns::Mgmt::V2016_04_01
342
355
  #
343
356
  # Deletes a record set from a DNS zone. This operation cannot be undone.
344
357
  #
345
- # @param resource_group_name [String] The name of the resource group.
358
+ # @param resource_group_name [String] The name of the resource group. The name
359
+ # is case insensitive.
346
360
  # @param zone_name [String] The name of the DNS zone (without a terminating
347
361
  # dot).
348
362
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -366,7 +380,8 @@ module Azure::Dns::Mgmt::V2016_04_01
366
380
  #
367
381
  # Deletes a record set from a DNS zone. This operation cannot be undone.
368
382
  #
369
- # @param resource_group_name [String] The name of the resource group.
383
+ # @param resource_group_name [String] The name of the resource group. The name
384
+ # is case insensitive.
370
385
  # @param zone_name [String] The name of the DNS zone (without a terminating
371
386
  # dot).
372
387
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -385,6 +400,9 @@ module Azure::Dns::Mgmt::V2016_04_01
385
400
  #
386
401
  def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil)
387
402
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
403
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
404
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
405
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
388
406
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
389
407
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
390
408
  fail ArgumentError, 'record_type is nil' if record_type.nil?
@@ -433,7 +451,8 @@ module Azure::Dns::Mgmt::V2016_04_01
433
451
  #
434
452
  # Gets a record set.
435
453
  #
436
- # @param resource_group_name [String] The name of the resource group.
454
+ # @param resource_group_name [String] The name of the resource group. The name
455
+ # is case insensitive.
437
456
  # @param zone_name [String] The name of the DNS zone (without a terminating
438
457
  # dot).
439
458
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -454,7 +473,8 @@ module Azure::Dns::Mgmt::V2016_04_01
454
473
  #
455
474
  # Gets a record set.
456
475
  #
457
- # @param resource_group_name [String] The name of the resource group.
476
+ # @param resource_group_name [String] The name of the resource group. The name
477
+ # is case insensitive.
458
478
  # @param zone_name [String] The name of the DNS zone (without a terminating
459
479
  # dot).
460
480
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -474,7 +494,8 @@ module Azure::Dns::Mgmt::V2016_04_01
474
494
  #
475
495
  # Gets a record set.
476
496
  #
477
- # @param resource_group_name [String] The name of the resource group.
497
+ # @param resource_group_name [String] The name of the resource group. The name
498
+ # is case insensitive.
478
499
  # @param zone_name [String] The name of the DNS zone (without a terminating
479
500
  # dot).
480
501
  # @param relative_record_set_name [String] The name of the record set, relative
@@ -489,6 +510,9 @@ module Azure::Dns::Mgmt::V2016_04_01
489
510
  #
490
511
  def get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil)
491
512
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
513
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
514
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
515
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
492
516
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
493
517
  fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
494
518
  fail ArgumentError, 'record_type is nil' if record_type.nil?
@@ -546,7 +570,8 @@ module Azure::Dns::Mgmt::V2016_04_01
546
570
  #
547
571
  # Lists the record sets of a specified type in a DNS zone.
548
572
  #
549
- # @param resource_group_name [String] The name of the resource group.
573
+ # @param resource_group_name [String] The name of the resource group. The name
574
+ # is case insensitive.
550
575
  # @param zone_name [String] The name of the DNS zone (without a terminating
551
576
  # dot).
552
577
  # @param record_type [RecordType] The type of record sets to enumerate.
@@ -571,7 +596,8 @@ module Azure::Dns::Mgmt::V2016_04_01
571
596
  #
572
597
  # Lists the record sets of a specified type in a DNS zone.
573
598
  #
574
- # @param resource_group_name [String] The name of the resource group.
599
+ # @param resource_group_name [String] The name of the resource group. The name
600
+ # is case insensitive.
575
601
  # @param zone_name [String] The name of the DNS zone (without a terminating
576
602
  # dot).
577
603
  # @param record_type [RecordType] The type of record sets to enumerate.
@@ -595,7 +621,8 @@ module Azure::Dns::Mgmt::V2016_04_01
595
621
  #
596
622
  # Lists the record sets of a specified type in a DNS zone.
597
623
  #
598
- # @param resource_group_name [String] The name of the resource group.
624
+ # @param resource_group_name [String] The name of the resource group. The name
625
+ # is case insensitive.
599
626
  # @param zone_name [String] The name of the DNS zone (without a terminating
600
627
  # dot).
601
628
  # @param record_type [RecordType] The type of record sets to enumerate.
@@ -614,6 +641,9 @@ module Azure::Dns::Mgmt::V2016_04_01
614
641
  #
615
642
  def list_by_type_async(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
616
643
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
644
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
645
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
646
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
617
647
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
618
648
  fail ArgumentError, 'record_type is nil' if record_type.nil?
619
649
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -669,7 +699,8 @@ module Azure::Dns::Mgmt::V2016_04_01
669
699
  #
670
700
  # Lists all record sets in a DNS zone.
671
701
  #
672
- # @param resource_group_name [String] The name of the resource group.
702
+ # @param resource_group_name [String] The name of the resource group. The name
703
+ # is case insensitive.
673
704
  # @param zone_name [String] The name of the DNS zone (without a terminating
674
705
  # dot).
675
706
  # @param top [Integer] The maximum number of record sets to return. If not
@@ -691,7 +722,8 @@ module Azure::Dns::Mgmt::V2016_04_01
691
722
  #
692
723
  # Lists all record sets in a DNS zone.
693
724
  #
694
- # @param resource_group_name [String] The name of the resource group.
725
+ # @param resource_group_name [String] The name of the resource group. The name
726
+ # is case insensitive.
695
727
  # @param zone_name [String] The name of the DNS zone (without a terminating
696
728
  # dot).
697
729
  # @param top [Integer] The maximum number of record sets to return. If not
@@ -712,7 +744,8 @@ module Azure::Dns::Mgmt::V2016_04_01
712
744
  #
713
745
  # Lists all record sets in a DNS zone.
714
746
  #
715
- # @param resource_group_name [String] The name of the resource group.
747
+ # @param resource_group_name [String] The name of the resource group. The name
748
+ # is case insensitive.
716
749
  # @param zone_name [String] The name of the DNS zone (without a terminating
717
750
  # dot).
718
751
  # @param top [Integer] The maximum number of record sets to return. If not
@@ -728,6 +761,9 @@ module Azure::Dns::Mgmt::V2016_04_01
728
761
  #
729
762
  def list_by_dns_zone_async(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil)
730
763
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
764
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
765
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
766
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
731
767
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
732
768
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
733
769
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -958,7 +994,8 @@ module Azure::Dns::Mgmt::V2016_04_01
958
994
  #
959
995
  # Lists the record sets of a specified type in a DNS zone.
960
996
  #
961
- # @param resource_group_name [String] The name of the resource group.
997
+ # @param resource_group_name [String] The name of the resource group. The name
998
+ # is case insensitive.
962
999
  # @param zone_name [String] The name of the DNS zone (without a terminating
963
1000
  # dot).
964
1001
  # @param record_type [RecordType] The type of record sets to enumerate.
@@ -990,7 +1027,8 @@ module Azure::Dns::Mgmt::V2016_04_01
990
1027
  #
991
1028
  # Lists all record sets in a DNS zone.
992
1029
  #
993
- # @param resource_group_name [String] The name of the resource group.
1030
+ # @param resource_group_name [String] The name of the resource group. The name
1031
+ # is case insensitive.
994
1032
  # @param zone_name [String] The name of the DNS zone (without a terminating
995
1033
  # dot).
996
1034
  # @param top [Integer] The maximum number of record sets to return. If not
@@ -24,7 +24,8 @@ module Azure::Dns::Mgmt::V2016_04_01
24
24
  #
25
25
  # Creates or updates a DNS zone. Does not modify DNS records within the zone.
26
26
  #
27
- # @param resource_group_name [String] The name of the resource group.
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
28
29
  # @param zone_name [String] The name of the DNS zone (without a terminating
29
30
  # dot).
30
31
  # @param parameters [Zone] Parameters supplied to the CreateOrUpdate operation.
@@ -47,7 +48,8 @@ module Azure::Dns::Mgmt::V2016_04_01
47
48
  #
48
49
  # Creates or updates a DNS zone. Does not modify DNS records within the zone.
49
50
  #
50
- # @param resource_group_name [String] The name of the resource group.
51
+ # @param resource_group_name [String] The name of the resource group. The name
52
+ # is case insensitive.
51
53
  # @param zone_name [String] The name of the DNS zone (without a terminating
52
54
  # dot).
53
55
  # @param parameters [Zone] Parameters supplied to the CreateOrUpdate operation.
@@ -69,7 +71,8 @@ module Azure::Dns::Mgmt::V2016_04_01
69
71
  #
70
72
  # Creates or updates a DNS zone. Does not modify DNS records within the zone.
71
73
  #
72
- # @param resource_group_name [String] The name of the resource group.
74
+ # @param resource_group_name [String] The name of the resource group. The name
75
+ # is case insensitive.
73
76
  # @param zone_name [String] The name of the DNS zone (without a terminating
74
77
  # dot).
75
78
  # @param parameters [Zone] Parameters supplied to the CreateOrUpdate operation.
@@ -86,6 +89,9 @@ module Azure::Dns::Mgmt::V2016_04_01
86
89
  #
87
90
  def create_or_update_async(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil)
88
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
92
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
93
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
94
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
89
95
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
90
96
  fail ArgumentError, 'parameters is nil' if parameters.nil?
91
97
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -161,7 +167,8 @@ module Azure::Dns::Mgmt::V2016_04_01
161
167
  # Deletes a DNS zone. WARNING: All DNS records in the zone will also be
162
168
  # deleted. This operation cannot be undone.
163
169
  #
164
- # @param resource_group_name [String] The name of the resource group.
170
+ # @param resource_group_name [String] The name of the resource group. The name
171
+ # is case insensitive.
165
172
  # @param zone_name [String] The name of the DNS zone (without a terminating
166
173
  # dot).
167
174
  # @param if_match [String] The etag of the DNS zone. Omit this value to always
@@ -178,7 +185,8 @@ module Azure::Dns::Mgmt::V2016_04_01
178
185
  end
179
186
 
180
187
  #
181
- # @param resource_group_name [String] The name of the resource group.
188
+ # @param resource_group_name [String] The name of the resource group. The name
189
+ # is case insensitive.
182
190
  # @param zone_name [String] The name of the DNS zone (without a terminating
183
191
  # dot).
184
192
  # @param if_match [String] The etag of the DNS zone. Omit this value to always
@@ -212,7 +220,8 @@ module Azure::Dns::Mgmt::V2016_04_01
212
220
  # Gets a DNS zone. Retrieves the zone properties, but not the record sets
213
221
  # within the zone.
214
222
  #
215
- # @param resource_group_name [String] The name of the resource group.
223
+ # @param resource_group_name [String] The name of the resource group. The name
224
+ # is case insensitive.
216
225
  # @param zone_name [String] The name of the DNS zone (without a terminating
217
226
  # dot).
218
227
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -229,7 +238,8 @@ module Azure::Dns::Mgmt::V2016_04_01
229
238
  # Gets a DNS zone. Retrieves the zone properties, but not the record sets
230
239
  # within the zone.
231
240
  #
232
- # @param resource_group_name [String] The name of the resource group.
241
+ # @param resource_group_name [String] The name of the resource group. The name
242
+ # is case insensitive.
233
243
  # @param zone_name [String] The name of the DNS zone (without a terminating
234
244
  # dot).
235
245
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -245,7 +255,8 @@ module Azure::Dns::Mgmt::V2016_04_01
245
255
  # Gets a DNS zone. Retrieves the zone properties, but not the record sets
246
256
  # within the zone.
247
257
  #
248
- # @param resource_group_name [String] The name of the resource group.
258
+ # @param resource_group_name [String] The name of the resource group. The name
259
+ # is case insensitive.
249
260
  # @param zone_name [String] The name of the DNS zone (without a terminating
250
261
  # dot).
251
262
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -255,6 +266,9 @@ module Azure::Dns::Mgmt::V2016_04_01
255
266
  #
256
267
  def get_async(resource_group_name, zone_name, custom_headers:nil)
257
268
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
269
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
270
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
271
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
258
272
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
259
273
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
260
274
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -309,7 +323,8 @@ module Azure::Dns::Mgmt::V2016_04_01
309
323
  #
310
324
  # Lists the DNS zones within a resource group.
311
325
  #
312
- # @param resource_group_name [String] The name of the resource group.
326
+ # @param resource_group_name [String] The name of the resource group. The name
327
+ # is case insensitive.
313
328
  # @param top [Integer] The maximum number of record sets to return. If not
314
329
  # specified, returns up to 100 record sets.
315
330
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -325,7 +340,8 @@ module Azure::Dns::Mgmt::V2016_04_01
325
340
  #
326
341
  # Lists the DNS zones within a resource group.
327
342
  #
328
- # @param resource_group_name [String] The name of the resource group.
343
+ # @param resource_group_name [String] The name of the resource group. The name
344
+ # is case insensitive.
329
345
  # @param top [Integer] The maximum number of record sets to return. If not
330
346
  # specified, returns up to 100 record sets.
331
347
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -340,7 +356,8 @@ module Azure::Dns::Mgmt::V2016_04_01
340
356
  #
341
357
  # Lists the DNS zones within a resource group.
342
358
  #
343
- # @param resource_group_name [String] The name of the resource group.
359
+ # @param resource_group_name [String] The name of the resource group. The name
360
+ # is case insensitive.
344
361
  # @param top [Integer] The maximum number of record sets to return. If not
345
362
  # specified, returns up to 100 record sets.
346
363
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -350,6 +367,9 @@ module Azure::Dns::Mgmt::V2016_04_01
350
367
  #
351
368
  def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil)
352
369
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
370
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
371
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
372
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
353
373
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
354
374
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
355
375
 
@@ -494,7 +514,8 @@ module Azure::Dns::Mgmt::V2016_04_01
494
514
  # Deletes a DNS zone. WARNING: All DNS records in the zone will also be
495
515
  # deleted. This operation cannot be undone.
496
516
  #
497
- # @param resource_group_name [String] The name of the resource group.
517
+ # @param resource_group_name [String] The name of the resource group. The name
518
+ # is case insensitive.
498
519
  # @param zone_name [String] The name of the DNS zone (without a terminating
499
520
  # dot).
500
521
  # @param if_match [String] The etag of the DNS zone. Omit this value to always
@@ -514,7 +535,8 @@ module Azure::Dns::Mgmt::V2016_04_01
514
535
  # Deletes a DNS zone. WARNING: All DNS records in the zone will also be
515
536
  # deleted. This operation cannot be undone.
516
537
  #
517
- # @param resource_group_name [String] The name of the resource group.
538
+ # @param resource_group_name [String] The name of the resource group. The name
539
+ # is case insensitive.
518
540
  # @param zone_name [String] The name of the DNS zone (without a terminating
519
541
  # dot).
520
542
  # @param if_match [String] The etag of the DNS zone. Omit this value to always
@@ -533,7 +555,8 @@ module Azure::Dns::Mgmt::V2016_04_01
533
555
  # Deletes a DNS zone. WARNING: All DNS records in the zone will also be
534
556
  # deleted. This operation cannot be undone.
535
557
  #
536
- # @param resource_group_name [String] The name of the resource group.
558
+ # @param resource_group_name [String] The name of the resource group. The name
559
+ # is case insensitive.
537
560
  # @param zone_name [String] The name of the DNS zone (without a terminating
538
561
  # dot).
539
562
  # @param if_match [String] The etag of the DNS zone. Omit this value to always
@@ -546,6 +569,9 @@ module Azure::Dns::Mgmt::V2016_04_01
546
569
  #
547
570
  def begin_delete_async(resource_group_name, zone_name, if_match:nil, custom_headers:nil)
548
571
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
572
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
573
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
574
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
549
575
  fail ArgumentError, 'zone_name is nil' if zone_name.nil?
550
576
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
551
577
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -777,7 +803,8 @@ module Azure::Dns::Mgmt::V2016_04_01
777
803
  #
778
804
  # Lists the DNS zones within a resource group.
779
805
  #
780
- # @param resource_group_name [String] The name of the resource group.
806
+ # @param resource_group_name [String] The name of the resource group. The name
807
+ # is case insensitive.
781
808
  # @param top [Integer] The maximum number of record sets to return. If not
782
809
  # specified, returns up to 100 record sets.
783
810
  # @param custom_headers [Hash{String => String}] A hash of custom headers that