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.
Files changed (58) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-04-01/generated/azure_mgmt_dns.rb +8 -5
  3. data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
  4. data/lib/2016-04-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
  5. data/lib/2016-04-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
  6. data/lib/2016-04-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
  7. data/lib/2016-04-01/generated/azure_mgmt_dns/models/resource.rb +12 -31
  8. data/lib/2016-04-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
  9. data/lib/2016-04-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
  10. data/lib/2016-04-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
  11. data/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb +12 -0
  12. data/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb +10 -0
  13. data/lib/2017-09-01/generated/azure_mgmt_dns.rb +10 -7
  14. data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
  15. data/lib/2017-09-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
  16. data/lib/2017-09-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
  17. data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
  18. data/lib/2017-09-01/generated/azure_mgmt_dns/models/resource.rb +14 -32
  19. data/lib/2017-09-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
  20. data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
  21. data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
  22. data/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb +12 -0
  23. data/lib/2017-09-01/generated/azure_mgmt_dns/zones.rb +10 -0
  24. data/lib/2017-10-01/generated/azure_mgmt_dns.rb +10 -7
  25. data/lib/2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
  26. data/lib/2017-10-01/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
  27. data/lib/2017-10-01/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
  28. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
  29. data/lib/2017-10-01/generated/azure_mgmt_dns/models/resource.rb +14 -32
  30. data/lib/2017-10-01/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
  31. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone.rb +9 -9
  32. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
  33. data/lib/2017-10-01/generated/azure_mgmt_dns/record_sets.rb +14 -0
  34. data/lib/2017-10-01/generated/azure_mgmt_dns/zones.rb +12 -0
  35. data/lib/2018-03-01-preview/generated/azure_mgmt_dns.rb +12 -9
  36. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb +3 -4
  37. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/azure_entity_resource.rb +75 -0
  38. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/proxy_resource.rb +63 -0
  39. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
  40. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb +14 -32
  41. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/tracked_resource.rb +92 -0
  42. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb +9 -9
  43. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb +1 -1
  44. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb +14 -0
  45. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/zones.rb +12 -0
  46. data/lib/azure_mgmt_dns.rb +3 -0
  47. data/lib/profiles/latest/modules/dns_profile_module.rb +42 -30
  48. data/lib/profiles/v2017_03_09/dns_module_definition.rb +8 -0
  49. data/lib/profiles/v2017_03_09/dns_v2017_03_09_profile_client.rb +40 -0
  50. data/lib/profiles/v2017_03_09/modules/dns_profile_module.rb +151 -0
  51. data/lib/profiles/v2018_03_01/dns_module_definition.rb +8 -0
  52. data/lib/profiles/v2018_03_01/dns_v2018_03_01_profile_client.rb +40 -0
  53. data/lib/profiles/v2018_03_01/modules/dns_profile_module.rb +151 -0
  54. data/lib/profiles/v2019_03_01_hybrid/dns_module_definition.rb +8 -0
  55. data/lib/profiles/v2019_03_01_hybrid/dns_v2019_03_01_hybrid_profile_client.rb +40 -0
  56. data/lib/profiles/v2019_03_01_hybrid/modules/dns_profile_module.rb +151 -0
  57. data/lib/version.rb +1 -1
  58. metadata +26 -5
@@ -0,0 +1,151 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_dns'
6
+
7
+ module Azure::Dns::Profiles::V2017_03_09
8
+ module Mgmt
9
+ RecordSets = Azure::Dns::Mgmt::V2016_04_01::RecordSets
10
+ Zones = Azure::Dns::Mgmt::V2016_04_01::Zones
11
+
12
+ module Models
13
+ RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
14
+ RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
15
+ AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
16
+ ARecord = Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
17
+ MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
18
+ PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
19
+ SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
20
+ Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource
21
+ CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
22
+ ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
23
+ RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
24
+ ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
25
+ TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
26
+ NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
27
+ SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
28
+ TrackedResource = Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
29
+ Zone = Azure::Dns::Mgmt::V2016_04_01::Models::Zone
30
+ ProxyResource = Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
31
+ AzureEntityResource = Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
32
+ OperationStatus = Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
33
+ HttpStatusCode = Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
34
+ RecordType = Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
35
+ end
36
+
37
+ #
38
+ # DnsManagementClass
39
+ #
40
+ class DnsManagementClass
41
+ attr_reader :record_sets, :zones, :configurable, :base_url, :options, :model_classes
42
+
43
+ def initialize(options = {})
44
+ if options.is_a?(Hash) && options.length == 0
45
+ @options = setup_default_options
46
+ else
47
+ @options = options
48
+ end
49
+
50
+ reset!(options)
51
+
52
+ @configurable = self
53
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
+ @options = options[:options].nil? ? nil:options[:options]
55
+
56
+ @client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options)
57
+ if(@client_0.respond_to?(:subscription_id))
58
+ @client_0.subscription_id = configurable.subscription_id
59
+ end
60
+ add_telemetry(@client_0)
61
+ @record_sets = @client_0.record_sets
62
+ @zones = @client_0.zones
63
+
64
+ @model_classes = ModelClasses.new
65
+ end
66
+
67
+ def add_telemetry(client)
68
+ profile_information = 'Profiles/V2017_03_09/Dns/Mgmt'
69
+ client.add_user_agent_information(profile_information)
70
+ end
71
+
72
+ def method_missing(method, *args)
73
+ if @client_0.respond_to?method
74
+ @client_0.send(method, *args)
75
+ else
76
+ super
77
+ end
78
+ end
79
+
80
+ end
81
+
82
+ class ModelClasses
83
+ def record_set_update_parameters
84
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
85
+ end
86
+ def record_set_list_result
87
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
88
+ end
89
+ def aaaa_record
90
+ Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
91
+ end
92
+ def arecord
93
+ Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
94
+ end
95
+ def mx_record
96
+ Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
97
+ end
98
+ def ptr_record
99
+ Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
100
+ end
101
+ def srv_record
102
+ Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
103
+ end
104
+ def resource
105
+ Azure::Dns::Mgmt::V2016_04_01::Models::Resource
106
+ end
107
+ def cname_record
108
+ Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
109
+ end
110
+ def zone_delete_result
111
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
112
+ end
113
+ def record_set
114
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
115
+ end
116
+ def zone_list_result
117
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
118
+ end
119
+ def txt_record
120
+ Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
121
+ end
122
+ def ns_record
123
+ Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
124
+ end
125
+ def soa_record
126
+ Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
127
+ end
128
+ def tracked_resource
129
+ Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
130
+ end
131
+ def zone
132
+ Azure::Dns::Mgmt::V2016_04_01::Models::Zone
133
+ end
134
+ def proxy_resource
135
+ Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
136
+ end
137
+ def azure_entity_resource
138
+ Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
139
+ end
140
+ def operation_status
141
+ Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
142
+ end
143
+ def http_status_code
144
+ Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
145
+ end
146
+ def record_type
147
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Dns end
7
+ module Azure::Dns::Profiles end
8
+ module Azure::Dns::Profiles::V2018_03_01 end
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/v2018_03_01/dns_module_definition'
6
+ require 'profiles/v2018_03_01/modules/dns_profile_module'
7
+
8
+ module Azure::Dns::Profiles::V2018_03_01
9
+ module Mgmt
10
+ #
11
+ # Client class for the V2018_03_01 profile SDK.
12
+ #
13
+ class Client < DnsManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,151 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_dns'
6
+
7
+ module Azure::Dns::Profiles::V2018_03_01
8
+ module Mgmt
9
+ RecordSets = Azure::Dns::Mgmt::V2016_04_01::RecordSets
10
+ Zones = Azure::Dns::Mgmt::V2016_04_01::Zones
11
+
12
+ module Models
13
+ RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
14
+ RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
15
+ AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
16
+ ARecord = Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
17
+ MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
18
+ PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
19
+ SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
20
+ Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource
21
+ CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
22
+ ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
23
+ RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
24
+ ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
25
+ TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
26
+ NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
27
+ SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
28
+ TrackedResource = Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
29
+ Zone = Azure::Dns::Mgmt::V2016_04_01::Models::Zone
30
+ ProxyResource = Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
31
+ AzureEntityResource = Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
32
+ OperationStatus = Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
33
+ HttpStatusCode = Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
34
+ RecordType = Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
35
+ end
36
+
37
+ #
38
+ # DnsManagementClass
39
+ #
40
+ class DnsManagementClass
41
+ attr_reader :record_sets, :zones, :configurable, :base_url, :options, :model_classes
42
+
43
+ def initialize(options = {})
44
+ if options.is_a?(Hash) && options.length == 0
45
+ @options = setup_default_options
46
+ else
47
+ @options = options
48
+ end
49
+
50
+ reset!(options)
51
+
52
+ @configurable = self
53
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
+ @options = options[:options].nil? ? nil:options[:options]
55
+
56
+ @client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options)
57
+ if(@client_0.respond_to?(:subscription_id))
58
+ @client_0.subscription_id = configurable.subscription_id
59
+ end
60
+ add_telemetry(@client_0)
61
+ @record_sets = @client_0.record_sets
62
+ @zones = @client_0.zones
63
+
64
+ @model_classes = ModelClasses.new
65
+ end
66
+
67
+ def add_telemetry(client)
68
+ profile_information = 'Profiles/V2018_03_01/Dns/Mgmt'
69
+ client.add_user_agent_information(profile_information)
70
+ end
71
+
72
+ def method_missing(method, *args)
73
+ if @client_0.respond_to?method
74
+ @client_0.send(method, *args)
75
+ else
76
+ super
77
+ end
78
+ end
79
+
80
+ end
81
+
82
+ class ModelClasses
83
+ def record_set_update_parameters
84
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
85
+ end
86
+ def record_set_list_result
87
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
88
+ end
89
+ def aaaa_record
90
+ Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
91
+ end
92
+ def arecord
93
+ Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
94
+ end
95
+ def mx_record
96
+ Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
97
+ end
98
+ def ptr_record
99
+ Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
100
+ end
101
+ def srv_record
102
+ Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
103
+ end
104
+ def resource
105
+ Azure::Dns::Mgmt::V2016_04_01::Models::Resource
106
+ end
107
+ def cname_record
108
+ Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
109
+ end
110
+ def zone_delete_result
111
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
112
+ end
113
+ def record_set
114
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
115
+ end
116
+ def zone_list_result
117
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
118
+ end
119
+ def txt_record
120
+ Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
121
+ end
122
+ def ns_record
123
+ Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
124
+ end
125
+ def soa_record
126
+ Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
127
+ end
128
+ def tracked_resource
129
+ Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
130
+ end
131
+ def zone
132
+ Azure::Dns::Mgmt::V2016_04_01::Models::Zone
133
+ end
134
+ def proxy_resource
135
+ Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
136
+ end
137
+ def azure_entity_resource
138
+ Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
139
+ end
140
+ def operation_status
141
+ Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
142
+ end
143
+ def http_status_code
144
+ Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
145
+ end
146
+ def record_type
147
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Dns end
7
+ module Azure::Dns::Profiles end
8
+ module Azure::Dns::Profiles::V2019_03_01_Hybrid end
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/v2019_03_01_hybrid/dns_module_definition'
6
+ require 'profiles/v2019_03_01_hybrid/modules/dns_profile_module'
7
+
8
+ module Azure::Dns::Profiles::V2019_03_01_Hybrid
9
+ module Mgmt
10
+ #
11
+ # Client class for the V2019_03_01_Hybrid profile SDK.
12
+ #
13
+ class Client < DnsManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,151 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_dns'
6
+
7
+ module Azure::Dns::Profiles::V2019_03_01_Hybrid
8
+ module Mgmt
9
+ RecordSets = Azure::Dns::Mgmt::V2016_04_01::RecordSets
10
+ Zones = Azure::Dns::Mgmt::V2016_04_01::Zones
11
+
12
+ module Models
13
+ RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
14
+ RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
15
+ AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
16
+ ARecord = Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
17
+ MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
18
+ PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
19
+ SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
20
+ Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource
21
+ CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
22
+ ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
23
+ RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
24
+ ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
25
+ TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
26
+ NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
27
+ SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
28
+ TrackedResource = Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
29
+ Zone = Azure::Dns::Mgmt::V2016_04_01::Models::Zone
30
+ ProxyResource = Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
31
+ AzureEntityResource = Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
32
+ OperationStatus = Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
33
+ HttpStatusCode = Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
34
+ RecordType = Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
35
+ end
36
+
37
+ #
38
+ # DnsManagementClass
39
+ #
40
+ class DnsManagementClass
41
+ attr_reader :record_sets, :zones, :configurable, :base_url, :options, :model_classes
42
+
43
+ def initialize(options = {})
44
+ if options.is_a?(Hash) && options.length == 0
45
+ @options = setup_default_options
46
+ else
47
+ @options = options
48
+ end
49
+
50
+ reset!(options)
51
+
52
+ @configurable = self
53
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
+ @options = options[:options].nil? ? nil:options[:options]
55
+
56
+ @client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options)
57
+ if(@client_0.respond_to?(:subscription_id))
58
+ @client_0.subscription_id = configurable.subscription_id
59
+ end
60
+ add_telemetry(@client_0)
61
+ @record_sets = @client_0.record_sets
62
+ @zones = @client_0.zones
63
+
64
+ @model_classes = ModelClasses.new
65
+ end
66
+
67
+ def add_telemetry(client)
68
+ profile_information = 'Profiles/V2019_03_01_Hybrid/Dns/Mgmt'
69
+ client.add_user_agent_information(profile_information)
70
+ end
71
+
72
+ def method_missing(method, *args)
73
+ if @client_0.respond_to?method
74
+ @client_0.send(method, *args)
75
+ else
76
+ super
77
+ end
78
+ end
79
+
80
+ end
81
+
82
+ class ModelClasses
83
+ def record_set_update_parameters
84
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
85
+ end
86
+ def record_set_list_result
87
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
88
+ end
89
+ def aaaa_record
90
+ Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
91
+ end
92
+ def arecord
93
+ Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
94
+ end
95
+ def mx_record
96
+ Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
97
+ end
98
+ def ptr_record
99
+ Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
100
+ end
101
+ def srv_record
102
+ Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
103
+ end
104
+ def resource
105
+ Azure::Dns::Mgmt::V2016_04_01::Models::Resource
106
+ end
107
+ def cname_record
108
+ Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
109
+ end
110
+ def zone_delete_result
111
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
112
+ end
113
+ def record_set
114
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
115
+ end
116
+ def zone_list_result
117
+ Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
118
+ end
119
+ def txt_record
120
+ Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
121
+ end
122
+ def ns_record
123
+ Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
124
+ end
125
+ def soa_record
126
+ Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
127
+ end
128
+ def tracked_resource
129
+ Azure::Dns::Mgmt::V2016_04_01::Models::TrackedResource
130
+ end
131
+ def zone
132
+ Azure::Dns::Mgmt::V2016_04_01::Models::Zone
133
+ end
134
+ def proxy_resource
135
+ Azure::Dns::Mgmt::V2016_04_01::Models::ProxyResource
136
+ end
137
+ def azure_entity_resource
138
+ Azure::Dns::Mgmt::V2016_04_01::Models::AzureEntityResource
139
+ end
140
+ def operation_status
141
+ Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
142
+ end
143
+ def http_status_code
144
+ Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
145
+ end
146
+ def record_type
147
+ Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
148
+ end
149
+ end
150
+ end
151
+ end