azure_mgmt_dns 0.17.0 → 0.17.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-04-01/generated/azure_mgmt_dns.rb +8 -5
- data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/resource.rb +12 -31
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
- data/lib/2016-04-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb +12 -0
- data/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb +10 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns.rb +10 -7
- data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/resource.rb +14 -32
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb +12 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/zones.rb +10 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns.rb +10 -7
- data/lib/2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/resource.rb +14 -32
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_dns/record_sets.rb +14 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/zones.rb +12 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns.rb +12 -9
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb +14 -32
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb +9 -9
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb +14 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/zones.rb +12 -0
- data/lib/azure_mgmt_dns.rb +3 -0
- data/lib/profiles/latest/modules/dns_profile_module.rb +42 -30
- data/lib/profiles/v2017_03_09/dns_module_definition.rb +8 -0
- data/lib/profiles/v2017_03_09/dns_v2017_03_09_profile_client.rb +40 -0
- data/lib/profiles/v2017_03_09/modules/dns_profile_module.rb +151 -0
- data/lib/profiles/v2018_03_01/dns_module_definition.rb +8 -0
- data/lib/profiles/v2018_03_01/dns_v2018_03_01_profile_client.rb +40 -0
- data/lib/profiles/v2018_03_01/modules/dns_profile_module.rb +151 -0
- data/lib/profiles/v2019_03_01_hybrid/dns_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/dns_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/profiles/v2019_03_01_hybrid/modules/dns_profile_module.rb +151 -0
- data/lib/version.rb +1 -1
- metadata +26 -5
@@ -8,7 +8,7 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
8
8
|
#
|
9
9
|
# Describes a DNS zone.
|
10
10
|
#
|
11
|
-
class Zone <
|
11
|
+
class Zone < TrackedResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -70,14 +70,6 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
70
70
|
name: 'String'
|
71
71
|
}
|
72
72
|
},
|
73
|
-
location: {
|
74
|
-
client_side_validation: true,
|
75
|
-
required: true,
|
76
|
-
serialized_name: 'location',
|
77
|
-
type: {
|
78
|
-
name: 'String'
|
79
|
-
}
|
80
|
-
},
|
81
73
|
tags: {
|
82
74
|
client_side_validation: true,
|
83
75
|
required: false,
|
@@ -94,6 +86,14 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
94
86
|
}
|
95
87
|
}
|
96
88
|
},
|
89
|
+
location: {
|
90
|
+
client_side_validation: true,
|
91
|
+
required: true,
|
92
|
+
serialized_name: 'location',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
97
|
etag: {
|
98
98
|
client_side_validation: true,
|
99
99
|
required: false,
|
@@ -103,7 +103,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
103
103
|
fail ArgumentError, 'record_type is nil' if record_type.nil?
|
104
104
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
105
105
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
106
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
106
107
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
108
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
107
109
|
|
108
110
|
|
109
111
|
request_headers = {}
|
@@ -258,7 +260,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
258
260
|
fail ArgumentError, 'record_type is nil' if record_type.nil?
|
259
261
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
260
262
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
263
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
261
264
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
265
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
262
266
|
|
263
267
|
|
264
268
|
request_headers = {}
|
@@ -407,7 +411,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
407
411
|
fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
|
408
412
|
fail ArgumentError, 'record_type is nil' if record_type.nil?
|
409
413
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
414
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
410
415
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
416
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
411
417
|
|
412
418
|
|
413
419
|
request_headers = {}
|
@@ -517,7 +523,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
517
523
|
fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil?
|
518
524
|
fail ArgumentError, 'record_type is nil' if record_type.nil?
|
519
525
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
526
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
520
527
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
528
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
521
529
|
|
522
530
|
|
523
531
|
request_headers = {}
|
@@ -647,7 +655,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
647
655
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
648
656
|
fail ArgumentError, 'record_type is nil' if record_type.nil?
|
649
657
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
658
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
650
659
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
660
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
651
661
|
|
652
662
|
|
653
663
|
request_headers = {}
|
@@ -766,7 +776,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
766
776
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
767
777
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
768
778
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
779
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
769
780
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
781
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
770
782
|
|
771
783
|
|
772
784
|
request_headers = {}
|
@@ -885,7 +897,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
885
897
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
886
898
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
887
899
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
900
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
888
901
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
902
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
889
903
|
|
890
904
|
|
891
905
|
request_headers = {}
|
@@ -95,7 +95,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
95
95
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
96
96
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
97
97
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
98
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
98
99
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
100
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
99
101
|
|
100
102
|
|
101
103
|
request_headers = {}
|
@@ -267,7 +269,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
267
269
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
268
270
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
269
271
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
272
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
270
273
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
274
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
271
275
|
|
272
276
|
|
273
277
|
request_headers = {}
|
@@ -381,7 +385,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
381
385
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
382
386
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
383
387
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
388
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
384
389
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
390
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
385
391
|
|
386
392
|
|
387
393
|
request_headers = {}
|
@@ -489,7 +495,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
489
495
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
490
496
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
491
497
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
498
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
492
499
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
500
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
493
501
|
|
494
502
|
|
495
503
|
request_headers = {}
|
@@ -579,7 +587,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
579
587
|
#
|
580
588
|
def list_async(top:nil, custom_headers:nil)
|
581
589
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
590
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
582
591
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
592
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
583
593
|
|
584
594
|
|
585
595
|
request_headers = {}
|
@@ -691,7 +701,9 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
691
701
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
692
702
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
693
703
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
704
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
694
705
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
706
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
695
707
|
|
696
708
|
|
697
709
|
request_headers = {}
|
@@ -25,24 +25,27 @@ module Azure::Dns::Mgmt::V2018_03_01_preview
|
|
25
25
|
autoload :DnsManagementClient, '2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
-
autoload :CaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb'
|
29
|
-
autoload :RecordSet, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb'
|
30
|
-
autoload :AaaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
31
28
|
autoload :RecordSetUpdateParameters, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
32
|
-
autoload :
|
29
|
+
autoload :ARecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/arecord.rb'
|
33
30
|
autoload :RecordSetListResult, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
34
|
-
autoload :
|
31
|
+
autoload :MxRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/mx_record.rb'
|
35
32
|
autoload :SubResource, '2018-03-01-preview/generated/azure_mgmt_dns/models/sub_resource.rb'
|
33
|
+
autoload :PtrRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/ptr_record.rb'
|
34
|
+
autoload :NsRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/ns_record.rb'
|
35
|
+
autoload :SrvRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/srv_record.rb'
|
36
36
|
autoload :CnameRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/cname_record.rb'
|
37
37
|
autoload :SoaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/soa_record.rb'
|
38
|
-
autoload :
|
38
|
+
autoload :Resource, '2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb'
|
39
|
+
autoload :RecordSet, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb'
|
39
40
|
autoload :ZoneUpdate, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_update.rb'
|
40
41
|
autoload :TxtRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/txt_record.rb'
|
41
42
|
autoload :ZoneListResult, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb'
|
42
|
-
autoload :
|
43
|
-
autoload :
|
44
|
-
autoload :
|
43
|
+
autoload :AaaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
44
|
+
autoload :CaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb'
|
45
|
+
autoload :TrackedResource, '2018-03-01-preview/generated/azure_mgmt_dns/models/tracked_resource.rb'
|
45
46
|
autoload :Zone, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb'
|
47
|
+
autoload :ProxyResource, '2018-03-01-preview/generated/azure_mgmt_dns/models/proxy_resource.rb'
|
48
|
+
autoload :AzureEntityResource, '2018-03-01-preview/generated/azure_mgmt_dns/models/azure_entity_resource.rb'
|
46
49
|
autoload :ZoneType, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_type.rb'
|
47
50
|
autoload :RecordType, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_type.rb'
|
48
51
|
end
|
@@ -17,11 +17,10 @@ module Azure::Dns::Mgmt::V2018_03_01_preview
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
|
-
# @return [String]
|
21
|
-
# identifies the Microsoft Azure subscription.
|
20
|
+
# @return [String] The ID of the target subscription.
|
22
21
|
attr_accessor :subscription_id
|
23
22
|
|
24
|
-
# @return [String]
|
23
|
+
# @return [String] The API version to use for this operation.
|
25
24
|
attr_reader :api_version
|
26
25
|
|
27
26
|
# @return [String] The preferred language for the response.
|
@@ -129,7 +128,7 @@ module Azure::Dns::Mgmt::V2018_03_01_preview
|
|
129
128
|
#
|
130
129
|
def add_telemetry
|
131
130
|
sdk_information = 'azure_mgmt_dns'
|
132
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
133
132
|
add_user_agent_information(sdk_information)
|
134
133
|
end
|
135
134
|
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for a Azure Resource Manager resource with
|
10
|
+
# an etag.
|
11
|
+
#
|
12
|
+
class AzureEntityResource < Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Resource Etag.
|
17
|
+
attr_accessor :etag
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for AzureEntityResource class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'AzureEntityResource',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'AzureEntityResource',
|
32
|
+
model_properties: {
|
33
|
+
id: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
read_only: true,
|
37
|
+
serialized_name: 'id',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
name: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
type: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'type',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
etag: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'etag',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for a ARM proxy resource. It will have
|
10
|
+
# everything other than required location and tags
|
11
|
+
#
|
12
|
+
class ProxyResource < Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
#
|
18
|
+
# Mapper for ProxyResource class as Ruby Hash.
|
19
|
+
# This will be used for serialization/deserialization.
|
20
|
+
#
|
21
|
+
def self.mapper()
|
22
|
+
{
|
23
|
+
client_side_validation: true,
|
24
|
+
required: false,
|
25
|
+
serialized_name: 'ProxyResource',
|
26
|
+
type: {
|
27
|
+
name: 'Composite',
|
28
|
+
class_name: 'ProxyResource',
|
29
|
+
model_properties: {
|
30
|
+
id: {
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
read_only: true,
|
34
|
+
serialized_name: 'id',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
name: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
type: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'type',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -31,7 +31,7 @@ module Azure::Dns::Mgmt::V2018_03_01_preview
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -6,26 +6,32 @@
|
|
6
6
|
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Model object.
|
10
|
+
#
|
10
11
|
#
|
11
12
|
class Resource
|
12
13
|
|
13
14
|
include MsRestAzure
|
14
15
|
|
15
|
-
# @return [String]
|
16
|
+
# @return [String] Fully qualified resource Id for the resource. Ex -
|
17
|
+
# /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
16
18
|
attr_accessor :id
|
17
19
|
|
18
|
-
# @return [String]
|
20
|
+
# @return [String] The name of the resource
|
19
21
|
attr_accessor :name
|
20
22
|
|
21
|
-
# @return [String]
|
23
|
+
# @return [String] The type of the resource. Ex-
|
24
|
+
# Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
|
22
25
|
attr_accessor :type
|
23
26
|
|
24
|
-
# @return [String] Resource location.
|
25
|
-
attr_accessor :location
|
26
27
|
|
27
|
-
# @return [
|
28
|
-
|
28
|
+
# @return [String] the name of the resource group of the resource.
|
29
|
+
def resource_group
|
30
|
+
unless self.id.nil?
|
31
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
32
|
+
groups.captures[0].strip if groups
|
33
|
+
end
|
34
|
+
end
|
29
35
|
|
30
36
|
|
31
37
|
#
|
@@ -67,30 +73,6 @@ module Azure::Dns::Mgmt::V2018_03_01_preview
|
|
67
73
|
type: {
|
68
74
|
name: 'String'
|
69
75
|
}
|
70
|
-
},
|
71
|
-
location: {
|
72
|
-
client_side_validation: true,
|
73
|
-
required: true,
|
74
|
-
serialized_name: 'location',
|
75
|
-
type: {
|
76
|
-
name: 'String'
|
77
|
-
}
|
78
|
-
},
|
79
|
-
tags: {
|
80
|
-
client_side_validation: true,
|
81
|
-
required: false,
|
82
|
-
serialized_name: 'tags',
|
83
|
-
type: {
|
84
|
-
name: 'Dictionary',
|
85
|
-
value: {
|
86
|
-
client_side_validation: true,
|
87
|
-
required: false,
|
88
|
-
serialized_name: 'StringElementType',
|
89
|
-
type: {
|
90
|
-
name: 'String'
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
76
|
}
|
95
77
|
}
|
96
78
|
}
|