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
@@ -103,7 +103,9 @@ module Azure::Dns::Mgmt::V2017_09_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_09_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_09_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_09_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_09_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_09_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 = {}
|
@@ -95,7 +95,9 @@ module Azure::Dns::Mgmt::V2017_09_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_09_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 = {}
|
@@ -367,7 +371,9 @@ module Azure::Dns::Mgmt::V2017_09_01
|
|
367
371
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
368
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?
|
369
373
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
374
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
370
375
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
376
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
371
377
|
|
372
378
|
|
373
379
|
request_headers = {}
|
@@ -457,7 +463,9 @@ module Azure::Dns::Mgmt::V2017_09_01
|
|
457
463
|
#
|
458
464
|
def list_async(top:nil, custom_headers:nil)
|
459
465
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
466
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
460
467
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
468
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
461
469
|
|
462
470
|
|
463
471
|
request_headers = {}
|
@@ -569,7 +577,9 @@ module Azure::Dns::Mgmt::V2017_09_01
|
|
569
577
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
570
578
|
fail ArgumentError, 'zone_name is nil' if zone_name.nil?
|
571
579
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
580
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
572
581
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
582
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
573
583
|
|
574
584
|
|
575
585
|
request_headers = {}
|
@@ -25,23 +25,26 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
25
25
|
autoload :DnsManagementClient, '2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
-
autoload :CaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb'
|
29
|
-
autoload :RecordSet, '2017-10-01/generated/azure_mgmt_dns/models/record_set.rb'
|
30
|
-
autoload :AaaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
31
28
|
autoload :RecordSetUpdateParameters, '2017-10-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
32
|
-
autoload :
|
29
|
+
autoload :ARecord, '2017-10-01/generated/azure_mgmt_dns/models/arecord.rb'
|
33
30
|
autoload :RecordSetListResult, '2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
31
|
+
autoload :MxRecord, '2017-10-01/generated/azure_mgmt_dns/models/mx_record.rb'
|
32
|
+
autoload :AaaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
33
|
+
autoload :NsRecord, '2017-10-01/generated/azure_mgmt_dns/models/ns_record.rb'
|
34
34
|
autoload :SrvRecord, '2017-10-01/generated/azure_mgmt_dns/models/srv_record.rb'
|
35
35
|
autoload :TxtRecord, '2017-10-01/generated/azure_mgmt_dns/models/txt_record.rb'
|
36
|
+
autoload :Resource, '2017-10-01/generated/azure_mgmt_dns/models/resource.rb'
|
36
37
|
autoload :SoaRecord, '2017-10-01/generated/azure_mgmt_dns/models/soa_record.rb'
|
37
38
|
autoload :ZoneUpdate, '2017-10-01/generated/azure_mgmt_dns/models/zone_update.rb'
|
38
|
-
autoload :
|
39
|
+
autoload :RecordSet, '2017-10-01/generated/azure_mgmt_dns/models/record_set.rb'
|
39
40
|
autoload :ZoneListResult, '2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb'
|
40
41
|
autoload :CnameRecord, '2017-10-01/generated/azure_mgmt_dns/models/cname_record.rb'
|
41
|
-
autoload :Resource, '2017-10-01/generated/azure_mgmt_dns/models/resource.rb'
|
42
42
|
autoload :PtrRecord, '2017-10-01/generated/azure_mgmt_dns/models/ptr_record.rb'
|
43
|
-
autoload :
|
43
|
+
autoload :CaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb'
|
44
|
+
autoload :TrackedResource, '2017-10-01/generated/azure_mgmt_dns/models/tracked_resource.rb'
|
44
45
|
autoload :Zone, '2017-10-01/generated/azure_mgmt_dns/models/zone.rb'
|
46
|
+
autoload :ProxyResource, '2017-10-01/generated/azure_mgmt_dns/models/proxy_resource.rb'
|
47
|
+
autoload :AzureEntityResource, '2017-10-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb'
|
45
48
|
autoload :RecordType, '2017-10-01/generated/azure_mgmt_dns/models/record_type.rb'
|
46
49
|
end
|
47
50
|
end
|
@@ -17,11 +17,10 @@ module Azure::Dns::Mgmt::V2017_10_01
|
|
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::V2017_10_01
|
|
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::V2017_10_01
|
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::V2017_10_01
|
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
|
@@ -6,26 +6,32 @@
|
|
6
6
|
module Azure::Dns::Mgmt::V2017_10_01
|
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::V2017_10_01
|
|
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
|
}
|
@@ -0,0 +1,92 @@
|
|
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::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for a ARM tracked top level resource
|
10
|
+
#
|
11
|
+
class TrackedResource < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Resource tags.
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
# @return [String] The geo-location where the resource lives
|
19
|
+
attr_accessor :location
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for TrackedResource class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'TrackedResource',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'TrackedResource',
|
34
|
+
model_properties: {
|
35
|
+
id: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
type: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'type',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
tags: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'tags',
|
66
|
+
type: {
|
67
|
+
name: 'Dictionary',
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'StringElementType',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
location: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: true,
|
81
|
+
serialized_name: 'location',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|