azure_mgmt_dns 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +4 -1
- data/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb +54 -50
- data/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb +52 -47
- data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/arecord.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set.rb +311 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/record_type.rb +24 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/resource.rb +101 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone.rb +146 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/module_definition.rb +9 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb +1020 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns/zones.rb +806 -0
- data/lib/2017-09-01/generated/azure_mgmt_dns.rb +46 -0
- data/lib/azure_mgmt_dns.rb +1 -0
- data/lib/profiles/latest/dns_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/dns_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/dns_profile_module.rb +98 -87
- data/lib/version.rb +1 -1
- metadata +24 -2
@@ -0,0 +1,46 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2017-09-01/generated/azure_mgmt_dns/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Dns::Mgmt::V2017_09_01
|
23
|
+
autoload :RecordSets, '2017-09-01/generated/azure_mgmt_dns/record_sets.rb'
|
24
|
+
autoload :Zones, '2017-09-01/generated/azure_mgmt_dns/zones.rb'
|
25
|
+
autoload :DnsManagementClient, '2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :CaaRecord, '2017-09-01/generated/azure_mgmt_dns/models/caa_record.rb'
|
29
|
+
autoload :ARecord, '2017-09-01/generated/azure_mgmt_dns/models/arecord.rb'
|
30
|
+
autoload :RecordSet, '2017-09-01/generated/azure_mgmt_dns/models/record_set.rb'
|
31
|
+
autoload :MxRecord, '2017-09-01/generated/azure_mgmt_dns/models/mx_record.rb'
|
32
|
+
autoload :RecordSetUpdateParameters, '2017-09-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
33
|
+
autoload :PtrRecord, '2017-09-01/generated/azure_mgmt_dns/models/ptr_record.rb'
|
34
|
+
autoload :RecordSetListResult, '2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
35
|
+
autoload :TxtRecord, '2017-09-01/generated/azure_mgmt_dns/models/txt_record.rb'
|
36
|
+
autoload :CnameRecord, '2017-09-01/generated/azure_mgmt_dns/models/cname_record.rb'
|
37
|
+
autoload :AaaaRecord, '2017-09-01/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
38
|
+
autoload :ZoneListResult, '2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb'
|
39
|
+
autoload :SrvRecord, '2017-09-01/generated/azure_mgmt_dns/models/srv_record.rb'
|
40
|
+
autoload :Resource, '2017-09-01/generated/azure_mgmt_dns/models/resource.rb'
|
41
|
+
autoload :NsRecord, '2017-09-01/generated/azure_mgmt_dns/models/ns_record.rb'
|
42
|
+
autoload :SoaRecord, '2017-09-01/generated/azure_mgmt_dns/models/soa_record.rb'
|
43
|
+
autoload :Zone, '2017-09-01/generated/azure_mgmt_dns/models/zone.rb'
|
44
|
+
autoload :RecordType, '2017-09-01/generated/azure_mgmt_dns/models/record_type.rb'
|
45
|
+
end
|
46
|
+
end
|
data/lib/azure_mgmt_dns.rb
CHANGED
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/dns_module_definition'
|
6
6
|
require 'profiles/latest/modules/dns_profile_module'
|
7
7
|
|
8
|
-
module Azure::Dns::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Dns::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < DnsManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
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
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,36 +4,35 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_dns'
|
6
6
|
|
7
|
-
module Azure::Dns::Profiles::Latest
|
8
|
-
|
9
|
-
|
7
|
+
module Azure::Dns::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
RecordSets = Azure::Dns::Mgmt::V2017_09_01::RecordSets
|
10
|
+
Zones = Azure::Dns::Mgmt::V2017_09_01::Zones
|
10
11
|
|
11
12
|
module Models
|
12
|
-
|
13
|
-
ARecord = Azure::Dns::Mgmt::
|
14
|
-
|
15
|
-
MxRecord = Azure::Dns::Mgmt::
|
16
|
-
|
17
|
-
PtrRecord = Azure::Dns::Mgmt::
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
AaaaRecord = Azure::Dns::Mgmt::
|
22
|
-
ZoneListResult = Azure::Dns::Mgmt::
|
23
|
-
|
24
|
-
Resource = Azure::Dns::Mgmt::
|
25
|
-
NsRecord = Azure::Dns::Mgmt::
|
26
|
-
SoaRecord = Azure::Dns::Mgmt::
|
27
|
-
Zone = Azure::Dns::Mgmt::
|
28
|
-
|
29
|
-
HttpStatusCode = Azure::Dns::Mgmt::V2016_04_01::Models::HttpStatusCode
|
30
|
-
RecordType = Azure::Dns::Mgmt::V2016_04_01::Models::RecordType
|
13
|
+
CaaRecord = Azure::Dns::Mgmt::V2017_09_01::Models::CaaRecord
|
14
|
+
ARecord = Azure::Dns::Mgmt::V2017_09_01::Models::ARecord
|
15
|
+
RecordSet = Azure::Dns::Mgmt::V2017_09_01::Models::RecordSet
|
16
|
+
MxRecord = Azure::Dns::Mgmt::V2017_09_01::Models::MxRecord
|
17
|
+
RecordSetUpdateParameters = Azure::Dns::Mgmt::V2017_09_01::Models::RecordSetUpdateParameters
|
18
|
+
PtrRecord = Azure::Dns::Mgmt::V2017_09_01::Models::PtrRecord
|
19
|
+
RecordSetListResult = Azure::Dns::Mgmt::V2017_09_01::Models::RecordSetListResult
|
20
|
+
TxtRecord = Azure::Dns::Mgmt::V2017_09_01::Models::TxtRecord
|
21
|
+
CnameRecord = Azure::Dns::Mgmt::V2017_09_01::Models::CnameRecord
|
22
|
+
AaaaRecord = Azure::Dns::Mgmt::V2017_09_01::Models::AaaaRecord
|
23
|
+
ZoneListResult = Azure::Dns::Mgmt::V2017_09_01::Models::ZoneListResult
|
24
|
+
SrvRecord = Azure::Dns::Mgmt::V2017_09_01::Models::SrvRecord
|
25
|
+
Resource = Azure::Dns::Mgmt::V2017_09_01::Models::Resource
|
26
|
+
NsRecord = Azure::Dns::Mgmt::V2017_09_01::Models::NsRecord
|
27
|
+
SoaRecord = Azure::Dns::Mgmt::V2017_09_01::Models::SoaRecord
|
28
|
+
Zone = Azure::Dns::Mgmt::V2017_09_01::Models::Zone
|
29
|
+
RecordType = Azure::Dns::Mgmt::V2017_09_01::Models::RecordType
|
31
30
|
end
|
32
31
|
|
33
32
|
#
|
34
|
-
#
|
33
|
+
# DnsManagementClass
|
35
34
|
#
|
36
|
-
class
|
35
|
+
class DnsManagementClass
|
37
36
|
attr_reader :record_sets, :zones, :configurable, :base_url, :options, :model_classes
|
38
37
|
|
39
38
|
def initialize(options = {})
|
@@ -45,76 +44,88 @@ module Azure::Dns::Profiles::Latest::Mgmt
|
|
45
44
|
|
46
45
|
reset!(options)
|
47
46
|
|
48
|
-
@configurable
|
47
|
+
@configurable = self
|
48
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
49
|
+
@options = options[:options].nil? ? nil:options[:options]
|
49
50
|
|
50
|
-
client_0 = Azure::Dns::Mgmt::
|
51
|
-
if(client_0.respond_to?(:subscription_id))
|
52
|
-
client_0.subscription_id = configurable.subscription_id
|
51
|
+
@client_0 = Azure::Dns::Mgmt::V2017_09_01::DnsManagementClient.new(configurable.credentials, base_url, options)
|
52
|
+
if(@client_0.respond_to?(:subscription_id))
|
53
|
+
@client_0.subscription_id = configurable.subscription_id
|
53
54
|
end
|
54
|
-
@
|
55
|
-
@
|
55
|
+
add_telemetry(@client_0)
|
56
|
+
@record_sets = @client_0.record_sets
|
57
|
+
@zones = @client_0.zones
|
56
58
|
|
57
59
|
@model_classes = ModelClasses.new
|
58
60
|
end
|
59
61
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
62
|
+
def add_telemetry(client)
|
63
|
+
profile_information = 'Profiles/Latest/Dns/Mgmt'
|
64
|
+
client.add_user_agent_information(profile_information)
|
65
|
+
end
|
66
|
+
|
67
|
+
def method_missing(method, *args)
|
68
|
+
if @client_0.respond_to?method
|
69
|
+
@client_0.send(method, *args)
|
70
|
+
else
|
71
|
+
super
|
117
72
|
end
|
118
73
|
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ModelClasses
|
78
|
+
def caa_record
|
79
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::CaaRecord
|
80
|
+
end
|
81
|
+
def arecord
|
82
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::ARecord
|
83
|
+
end
|
84
|
+
def record_set
|
85
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::RecordSet
|
86
|
+
end
|
87
|
+
def mx_record
|
88
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::MxRecord
|
89
|
+
end
|
90
|
+
def record_set_update_parameters
|
91
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::RecordSetUpdateParameters
|
92
|
+
end
|
93
|
+
def ptr_record
|
94
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::PtrRecord
|
95
|
+
end
|
96
|
+
def record_set_list_result
|
97
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::RecordSetListResult
|
98
|
+
end
|
99
|
+
def txt_record
|
100
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::TxtRecord
|
101
|
+
end
|
102
|
+
def cname_record
|
103
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::CnameRecord
|
104
|
+
end
|
105
|
+
def aaaa_record
|
106
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::AaaaRecord
|
107
|
+
end
|
108
|
+
def zone_list_result
|
109
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::ZoneListResult
|
110
|
+
end
|
111
|
+
def srv_record
|
112
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::SrvRecord
|
113
|
+
end
|
114
|
+
def resource
|
115
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::Resource
|
116
|
+
end
|
117
|
+
def ns_record
|
118
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::NsRecord
|
119
|
+
end
|
120
|
+
def soa_record
|
121
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::SoaRecord
|
122
|
+
end
|
123
|
+
def zone
|
124
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::Zone
|
125
|
+
end
|
126
|
+
def record_type
|
127
|
+
Azure::Dns::Mgmt::V2017_09_01::Models::RecordType
|
128
|
+
end
|
119
129
|
end
|
130
|
+
end
|
120
131
|
end
|
data/lib/version.rb
CHANGED
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.16.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:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,6 +111,28 @@ files:
|
|
111
111
|
- lib/2016-04-01/generated/azure_mgmt_dns/module_definition.rb
|
112
112
|
- lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb
|
113
113
|
- lib/2016-04-01/generated/azure_mgmt_dns/zones.rb
|
114
|
+
- lib/2017-09-01/generated/azure_mgmt_dns.rb
|
115
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb
|
116
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/aaaa_record.rb
|
117
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/arecord.rb
|
118
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/caa_record.rb
|
119
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/cname_record.rb
|
120
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/mx_record.rb
|
121
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/ns_record.rb
|
122
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/ptr_record.rb
|
123
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/record_set.rb
|
124
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_list_result.rb
|
125
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
|
126
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/record_type.rb
|
127
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/resource.rb
|
128
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/soa_record.rb
|
129
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/srv_record.rb
|
130
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/txt_record.rb
|
131
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/zone.rb
|
132
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/models/zone_list_result.rb
|
133
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/module_definition.rb
|
134
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb
|
135
|
+
- lib/2017-09-01/generated/azure_mgmt_dns/zones.rb
|
114
136
|
- lib/azure_mgmt_dns.rb
|
115
137
|
- lib/module_definition.rb
|
116
138
|
- lib/profiles/latest/dns_latest_profile_client.rb
|