azure_mgmt_dns 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/dns_management_client.rb +3 -3
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/aaaa_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/arecord.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/cname_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/http_status_code.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/mx_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/ns_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/operation_status.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/ptr_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/record_set.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/record_set_list_result.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/record_set_update_parameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/record_type.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/resource.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/soa_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/srv_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/txt_record.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/zone.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/zone_delete_result.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/models/zone_list_result.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/module_definition.rb +3 -2
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/record_sets.rb +11 -11
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/version.rb +2 -2
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns/zones.rb +11 -11
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_dns.rb +24 -24
- data/lib/azure_mgmt_dns.rb +2 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/dns_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/dns_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/dns_profile_module.rb +120 -0
- data/lib/version.rb +7 -0
- metadata +34 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee559cd2d5896e5c3fdc07ef14ea6f36b45d7b03
|
4
|
+
data.tar.gz: 649da3c9d280fa1b4e85759240e95d97cc93ed00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd534b8a9e28cc34da6223dfc2e4ef76244d1bf29ad0a3d3907b56da3c274ba5a9bced686064f13cf2a489d6cc7250b88ce2cdadd81693f03728a14bf9001c09
|
7
|
+
data.tar.gz: 5da2d7f1bf93990b727348bf1eb8bcddbe39a2a2bf9e415ad6a32a70cbe473920be7a3e0a51f60abc02559fefaf4ef7916b689f6c98c8c393001007650238583
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Dns::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
@@ -125,8 +125,8 @@ module Azure::ARM::Dns
|
|
125
125
|
#
|
126
126
|
def add_telemetry
|
127
127
|
sdk_information = 'azure_mgmt_dns'
|
128
|
-
if defined? Azure::
|
129
|
-
sdk_information = "#{sdk_information}/#{Azure::
|
128
|
+
if defined? Azure::Dns::Mgmt::V2016_04_01::VERSION
|
129
|
+
sdk_information = "#{sdk_information}/#{Azure::Dns::Mgmt::V2016_04_01::VERSION}"
|
130
130
|
end
|
131
131
|
add_user_agent_information(sdk_information)
|
132
132
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Dns::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# The DNS Management Client.
|
9
9
|
#
|
@@ -110,7 +110,7 @@ module Azure::ARM::Dns
|
|
110
110
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
111
111
|
|
112
112
|
# Serialize Request
|
113
|
-
request_mapper = Azure::
|
113
|
+
request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
114
114
|
request_content = @client.serialize(request_mapper, parameters)
|
115
115
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
116
116
|
|
@@ -143,7 +143,7 @@ module Azure::ARM::Dns
|
|
143
143
|
if status_code == 200
|
144
144
|
begin
|
145
145
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
146
|
-
result_mapper = Azure::
|
146
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
147
147
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
148
148
|
rescue Exception => e
|
149
149
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -261,7 +261,7 @@ module Azure::ARM::Dns
|
|
261
261
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
262
262
|
|
263
263
|
# Serialize Request
|
264
|
-
request_mapper = Azure::
|
264
|
+
request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
265
265
|
request_content = @client.serialize(request_mapper, parameters)
|
266
266
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
267
267
|
|
@@ -294,7 +294,7 @@ module Azure::ARM::Dns
|
|
294
294
|
if status_code == 201
|
295
295
|
begin
|
296
296
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
297
|
-
result_mapper = Azure::
|
297
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
298
298
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
299
299
|
rescue Exception => e
|
300
300
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -304,7 +304,7 @@ module Azure::ARM::Dns
|
|
304
304
|
if status_code == 200
|
305
305
|
begin
|
306
306
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
307
|
-
result_mapper = Azure::
|
307
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
308
308
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
309
309
|
rescue Exception => e
|
310
310
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -530,7 +530,7 @@ module Azure::ARM::Dns
|
|
530
530
|
if status_code == 200
|
531
531
|
begin
|
532
532
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
533
|
-
result_mapper = Azure::
|
533
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet.mapper()
|
534
534
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
535
535
|
rescue Exception => e
|
536
536
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -652,7 +652,7 @@ module Azure::ARM::Dns
|
|
652
652
|
if status_code == 200
|
653
653
|
begin
|
654
654
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
655
|
-
result_mapper = Azure::
|
655
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult.mapper()
|
656
656
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
657
657
|
rescue Exception => e
|
658
658
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -764,7 +764,7 @@ module Azure::ARM::Dns
|
|
764
764
|
if status_code == 200
|
765
765
|
begin
|
766
766
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
767
|
-
result_mapper = Azure::
|
767
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult.mapper()
|
768
768
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
769
769
|
rescue Exception => e
|
770
770
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -851,7 +851,7 @@ module Azure::ARM::Dns
|
|
851
851
|
if status_code == 200
|
852
852
|
begin
|
853
853
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
854
|
-
result_mapper = Azure::
|
854
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult.mapper()
|
855
855
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
856
856
|
rescue Exception => e
|
857
857
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -938,7 +938,7 @@ module Azure::ARM::Dns
|
|
938
938
|
if status_code == 200
|
939
939
|
begin
|
940
940
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
941
|
-
result_mapper = Azure::
|
941
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult.mapper()
|
942
942
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
943
943
|
rescue Exception => e
|
944
944
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Dns::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# The DNS Management Client.
|
9
9
|
#
|
@@ -103,7 +103,7 @@ module Azure::ARM::Dns
|
|
103
103
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
104
104
|
|
105
105
|
# Serialize Request
|
106
|
-
request_mapper = Azure::
|
106
|
+
request_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::Zone.mapper()
|
107
107
|
request_content = @client.serialize(request_mapper, parameters)
|
108
108
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
109
109
|
|
@@ -135,7 +135,7 @@ module Azure::ARM::Dns
|
|
135
135
|
if status_code == 200
|
136
136
|
begin
|
137
137
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
138
|
-
result_mapper = Azure::
|
138
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::Zone.mapper()
|
139
139
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
140
140
|
rescue Exception => e
|
141
141
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -145,7 +145,7 @@ module Azure::ARM::Dns
|
|
145
145
|
if status_code == 201
|
146
146
|
begin
|
147
147
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
148
|
-
result_mapper = Azure::
|
148
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::Zone.mapper()
|
149
149
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
150
150
|
rescue Exception => e
|
151
151
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -198,7 +198,7 @@ module Azure::ARM::Dns
|
|
198
198
|
promise = promise.then do |response|
|
199
199
|
# Defining deserialization method.
|
200
200
|
deserialize_method = lambda do |parsed_response|
|
201
|
-
result_mapper = Azure::
|
201
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult.mapper()
|
202
202
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
203
203
|
end
|
204
204
|
|
@@ -293,7 +293,7 @@ module Azure::ARM::Dns
|
|
293
293
|
if status_code == 200
|
294
294
|
begin
|
295
295
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
296
|
-
result_mapper = Azure::
|
296
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::Zone.mapper()
|
297
297
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
298
298
|
rescue Exception => e
|
299
299
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -386,7 +386,7 @@ module Azure::ARM::Dns
|
|
386
386
|
if status_code == 200
|
387
387
|
begin
|
388
388
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
389
|
-
result_mapper = Azure::
|
389
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult.mapper()
|
390
390
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
391
391
|
rescue Exception => e
|
392
392
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -475,7 +475,7 @@ module Azure::ARM::Dns
|
|
475
475
|
if status_code == 200
|
476
476
|
begin
|
477
477
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
478
|
-
result_mapper = Azure::
|
478
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult.mapper()
|
479
479
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
480
480
|
rescue Exception => e
|
481
481
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -582,7 +582,7 @@ module Azure::ARM::Dns
|
|
582
582
|
if status_code == 200
|
583
583
|
begin
|
584
584
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
585
|
-
result_mapper = Azure::
|
585
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult.mapper()
|
586
586
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
587
587
|
rescue Exception => e
|
588
588
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -669,7 +669,7 @@ module Azure::ARM::Dns
|
|
669
669
|
if status_code == 200
|
670
670
|
begin
|
671
671
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
672
|
-
result_mapper = Azure::
|
672
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult.mapper()
|
673
673
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
674
674
|
rescue Exception => e
|
675
675
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -756,7 +756,7 @@ module Azure::ARM::Dns
|
|
756
756
|
if status_code == 200
|
757
757
|
begin
|
758
758
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
759
|
-
result_mapper = Azure::
|
759
|
+
result_mapper = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult.mapper()
|
760
760
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
761
761
|
rescue Exception => e
|
762
762
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -16,33 +16,33 @@ require 'faraday'
|
|
16
16
|
require 'faraday-cookie_jar'
|
17
17
|
require 'concurrent'
|
18
18
|
require 'ms_rest'
|
19
|
-
require 'generated/azure_mgmt_dns/module_definition'
|
19
|
+
require '2016-04-01/generated/azure_mgmt_dns/module_definition'
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
|
-
module Azure::
|
23
|
-
autoload :RecordSets, 'generated/azure_mgmt_dns/record_sets.rb'
|
24
|
-
autoload :Zones, 'generated/azure_mgmt_dns/zones.rb'
|
25
|
-
autoload :DnsManagementClient, 'generated/azure_mgmt_dns/dns_management_client.rb'
|
22
|
+
module Azure::Dns::Mgmt::V2016_04_01
|
23
|
+
autoload :RecordSets, '2016-04-01/generated/azure_mgmt_dns/record_sets.rb'
|
24
|
+
autoload :Zones, '2016-04-01/generated/azure_mgmt_dns/zones.rb'
|
25
|
+
autoload :DnsManagementClient, '2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
-
autoload :RecordSet, 'generated/azure_mgmt_dns/models/record_set.rb'
|
29
|
-
autoload :ARecord, 'generated/azure_mgmt_dns/models/arecord.rb'
|
30
|
-
autoload :RecordSetUpdateParameters, 'generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
31
|
-
autoload :MxRecord, 'generated/azure_mgmt_dns/models/mx_record.rb'
|
32
|
-
autoload :RecordSetListResult, 'generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
33
|
-
autoload :PtrRecord, 'generated/azure_mgmt_dns/models/ptr_record.rb'
|
34
|
-
autoload :SrvRecord, 'generated/azure_mgmt_dns/models/srv_record.rb'
|
35
|
-
autoload :CnameRecord, 'generated/azure_mgmt_dns/models/cname_record.rb'
|
36
|
-
autoload :ZoneDeleteResult, 'generated/azure_mgmt_dns/models/zone_delete_result.rb'
|
37
|
-
autoload :AaaaRecord, 'generated/azure_mgmt_dns/models/aaaa_record.rb'
|
38
|
-
autoload :ZoneListResult, 'generated/azure_mgmt_dns/models/zone_list_result.rb'
|
39
|
-
autoload :TxtRecord, 'generated/azure_mgmt_dns/models/txt_record.rb'
|
40
|
-
autoload :Resource, 'generated/azure_mgmt_dns/models/resource.rb'
|
41
|
-
autoload :NsRecord, 'generated/azure_mgmt_dns/models/ns_record.rb'
|
42
|
-
autoload :SoaRecord, 'generated/azure_mgmt_dns/models/soa_record.rb'
|
43
|
-
autoload :Zone, 'generated/azure_mgmt_dns/models/zone.rb'
|
44
|
-
autoload :OperationStatus, 'generated/azure_mgmt_dns/models/operation_status.rb'
|
45
|
-
autoload :HttpStatusCode, 'generated/azure_mgmt_dns/models/http_status_code.rb'
|
46
|
-
autoload :RecordType, 'generated/azure_mgmt_dns/models/record_type.rb'
|
28
|
+
autoload :RecordSet, '2016-04-01/generated/azure_mgmt_dns/models/record_set.rb'
|
29
|
+
autoload :ARecord, '2016-04-01/generated/azure_mgmt_dns/models/arecord.rb'
|
30
|
+
autoload :RecordSetUpdateParameters, '2016-04-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
31
|
+
autoload :MxRecord, '2016-04-01/generated/azure_mgmt_dns/models/mx_record.rb'
|
32
|
+
autoload :RecordSetListResult, '2016-04-01/generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
33
|
+
autoload :PtrRecord, '2016-04-01/generated/azure_mgmt_dns/models/ptr_record.rb'
|
34
|
+
autoload :SrvRecord, '2016-04-01/generated/azure_mgmt_dns/models/srv_record.rb'
|
35
|
+
autoload :CnameRecord, '2016-04-01/generated/azure_mgmt_dns/models/cname_record.rb'
|
36
|
+
autoload :ZoneDeleteResult, '2016-04-01/generated/azure_mgmt_dns/models/zone_delete_result.rb'
|
37
|
+
autoload :AaaaRecord, '2016-04-01/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
38
|
+
autoload :ZoneListResult, '2016-04-01/generated/azure_mgmt_dns/models/zone_list_result.rb'
|
39
|
+
autoload :TxtRecord, '2016-04-01/generated/azure_mgmt_dns/models/txt_record.rb'
|
40
|
+
autoload :Resource, '2016-04-01/generated/azure_mgmt_dns/models/resource.rb'
|
41
|
+
autoload :NsRecord, '2016-04-01/generated/azure_mgmt_dns/models/ns_record.rb'
|
42
|
+
autoload :SoaRecord, '2016-04-01/generated/azure_mgmt_dns/models/soa_record.rb'
|
43
|
+
autoload :Zone, '2016-04-01/generated/azure_mgmt_dns/models/zone.rb'
|
44
|
+
autoload :OperationStatus, '2016-04-01/generated/azure_mgmt_dns/models/operation_status.rb'
|
45
|
+
autoload :HttpStatusCode, '2016-04-01/generated/azure_mgmt_dns/models/http_status_code.rb'
|
46
|
+
autoload :RecordType, '2016-04-01/generated/azure_mgmt_dns/models/record_type.rb'
|
47
47
|
end
|
48
48
|
end
|
data/lib/azure_mgmt_dns.rb
CHANGED
@@ -2,4 +2,5 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require 'generated/azure_mgmt_dns'
|
5
|
+
require '2016-04-01/generated/azure_mgmt_dns'
|
6
|
+
require 'profiles/latest/dns_latest_profile_client'
|
@@ -0,0 +1,73 @@
|
|
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::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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::ARM
|
6
|
+
# Default configuration options for {Azure::ARM.Client}
|
7
|
+
module Default
|
8
|
+
class << self
|
9
|
+
#
|
10
|
+
# Default Azure Tenant Id.
|
11
|
+
# @return [String] Azure Tenant Id.
|
12
|
+
#
|
13
|
+
def tenant_id
|
14
|
+
ENV['AZURE_TENANT_ID']
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Default Azure Client Id.
|
19
|
+
# @return [String] Azure Client Id.
|
20
|
+
#
|
21
|
+
def client_id
|
22
|
+
ENV['AZURE_CLIENT_ID']
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Default Azure Client Secret.
|
27
|
+
# @return [String] Azure Client Secret.
|
28
|
+
#
|
29
|
+
def client_secret
|
30
|
+
ENV['AZURE_CLIENT_SECRET']
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Default Azure Subscription Id.
|
35
|
+
# @return [String] Azure Subscription Id.
|
36
|
+
#
|
37
|
+
def subscription_id
|
38
|
+
ENV['AZURE_SUBSCRIPTION_ID']
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Default Azure credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
|
44
|
+
#
|
45
|
+
def credentials
|
46
|
+
MsRest::TokenCredentials.new(
|
47
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
48
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Default Azure Active Directory Service Settings.
|
53
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
54
|
+
#
|
55
|
+
def active_directory_settings
|
56
|
+
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Configuration options.
|
61
|
+
# @return [Hash] Configuration options.
|
62
|
+
#
|
63
|
+
def options
|
64
|
+
Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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/latest/dns_module_definition'
|
6
|
+
require 'profiles/latest/modules/dns_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Dns::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < DnsClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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::Latest end
|
9
|
+
module Azure::Dns::Profiles::Latest::Mgmt end
|
@@ -0,0 +1,120 @@
|
|
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::Latest::Mgmt
|
8
|
+
RecordSets = Azure::Dns::Mgmt::V2016_04_01::RecordSets
|
9
|
+
Zones = Azure::Dns::Mgmt::V2016_04_01::Zones
|
10
|
+
|
11
|
+
module Models
|
12
|
+
RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
|
13
|
+
ARecord = Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
|
14
|
+
RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
|
15
|
+
MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
|
16
|
+
RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
|
17
|
+
PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
|
18
|
+
SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
|
19
|
+
CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
|
20
|
+
ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
|
21
|
+
AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
|
22
|
+
ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
|
23
|
+
TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
|
24
|
+
Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource
|
25
|
+
NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
|
26
|
+
SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
|
27
|
+
Zone = Azure::Dns::Mgmt::V2016_04_01::Models::Zone
|
28
|
+
OperationStatus = Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
|
29
|
+
HttpStatusCode = Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
|
30
|
+
RecordType = Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Dns
|
35
|
+
#
|
36
|
+
class DnsClass
|
37
|
+
attr_reader :record_sets, :zones, :configurable, :base_url, :options, :model_classes
|
38
|
+
|
39
|
+
def initialize(options = {})
|
40
|
+
if options.is_a?(Hash) && options.length == 0
|
41
|
+
@options = setup_options
|
42
|
+
else
|
43
|
+
@options = options
|
44
|
+
end
|
45
|
+
|
46
|
+
reset!(options)
|
47
|
+
|
48
|
+
@configurable, @base_url, @options = self, nil, nil
|
49
|
+
|
50
|
+
client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options)
|
51
|
+
if(client_0.respond_to?(:subscription_id))
|
52
|
+
client_0.subscription_id = configurable.subscription_id
|
53
|
+
end
|
54
|
+
@record_sets = client_0.record_sets
|
55
|
+
@zones = client_0.zones
|
56
|
+
|
57
|
+
@model_classes = ModelClasses.new
|
58
|
+
end
|
59
|
+
|
60
|
+
class ModelClasses
|
61
|
+
def record_set
|
62
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet
|
63
|
+
end
|
64
|
+
def arecord
|
65
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::ARecord
|
66
|
+
end
|
67
|
+
def record_set_update_parameters
|
68
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters
|
69
|
+
end
|
70
|
+
def mx_record
|
71
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord
|
72
|
+
end
|
73
|
+
def record_set_list_result
|
74
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult
|
75
|
+
end
|
76
|
+
def ptr_record
|
77
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord
|
78
|
+
end
|
79
|
+
def srv_record
|
80
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord
|
81
|
+
end
|
82
|
+
def cname_record
|
83
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord
|
84
|
+
end
|
85
|
+
def zone_delete_result
|
86
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult
|
87
|
+
end
|
88
|
+
def aaaa_record
|
89
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord
|
90
|
+
end
|
91
|
+
def zone_list_result
|
92
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult
|
93
|
+
end
|
94
|
+
def txt_record
|
95
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord
|
96
|
+
end
|
97
|
+
def resource
|
98
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::Resource
|
99
|
+
end
|
100
|
+
def ns_record
|
101
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord
|
102
|
+
end
|
103
|
+
def soa_record
|
104
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord
|
105
|
+
end
|
106
|
+
def zone
|
107
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::Zone
|
108
|
+
end
|
109
|
+
def operation_status
|
110
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::OperationStatus
|
111
|
+
end
|
112
|
+
def http_status_code
|
113
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
|
114
|
+
end
|
115
|
+
def record_type
|
116
|
+
Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,32 +87,39 @@ extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
89
|
- LICENSE.txt
|
90
|
+
- lib/2016-04-01/generated/azure_mgmt_dns.rb
|
91
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb
|
92
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/aaaa_record.rb
|
93
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/arecord.rb
|
94
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/cname_record.rb
|
95
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/http_status_code.rb
|
96
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/mx_record.rb
|
97
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/ns_record.rb
|
98
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/operation_status.rb
|
99
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/ptr_record.rb
|
100
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/record_set.rb
|
101
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/record_set_list_result.rb
|
102
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
|
103
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/record_type.rb
|
104
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/resource.rb
|
105
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/soa_record.rb
|
106
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/srv_record.rb
|
107
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/txt_record.rb
|
108
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/zone.rb
|
109
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/zone_delete_result.rb
|
110
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/models/zone_list_result.rb
|
111
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/module_definition.rb
|
112
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb
|
113
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/version.rb
|
114
|
+
- lib/2016-04-01/generated/azure_mgmt_dns/zones.rb
|
90
115
|
- lib/azure_mgmt_dns.rb
|
91
|
-
- lib/
|
92
|
-
- lib/
|
93
|
-
- lib/
|
94
|
-
- lib/
|
95
|
-
- lib/
|
96
|
-
- lib/
|
97
|
-
- lib/
|
98
|
-
- lib/generated/azure_mgmt_dns/models/ns_record.rb
|
99
|
-
- lib/generated/azure_mgmt_dns/models/operation_status.rb
|
100
|
-
- lib/generated/azure_mgmt_dns/models/ptr_record.rb
|
101
|
-
- lib/generated/azure_mgmt_dns/models/record_set.rb
|
102
|
-
- lib/generated/azure_mgmt_dns/models/record_set_list_result.rb
|
103
|
-
- lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
|
104
|
-
- lib/generated/azure_mgmt_dns/models/record_type.rb
|
105
|
-
- lib/generated/azure_mgmt_dns/models/resource.rb
|
106
|
-
- lib/generated/azure_mgmt_dns/models/soa_record.rb
|
107
|
-
- lib/generated/azure_mgmt_dns/models/srv_record.rb
|
108
|
-
- lib/generated/azure_mgmt_dns/models/txt_record.rb
|
109
|
-
- lib/generated/azure_mgmt_dns/models/zone.rb
|
110
|
-
- lib/generated/azure_mgmt_dns/models/zone_delete_result.rb
|
111
|
-
- lib/generated/azure_mgmt_dns/models/zone_list_result.rb
|
112
|
-
- lib/generated/azure_mgmt_dns/module_definition.rb
|
113
|
-
- lib/generated/azure_mgmt_dns/record_sets.rb
|
114
|
-
- lib/generated/azure_mgmt_dns/version.rb
|
115
|
-
- lib/generated/azure_mgmt_dns/zones.rb
|
116
|
+
- lib/module_definition.rb
|
117
|
+
- lib/profiles/common/configurable.rb
|
118
|
+
- lib/profiles/common/default.rb
|
119
|
+
- lib/profiles/latest/dns_latest_profile_client.rb
|
120
|
+
- lib/profiles/latest/dns_module_definition.rb
|
121
|
+
- lib/profiles/latest/modules/dns_profile_module.rb
|
122
|
+
- lib/version.rb
|
116
123
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
117
124
|
licenses:
|
118
125
|
- MIT
|