azure_mgmt_dns 0.16.0 → 0.16.1
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 +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_dns.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/arecord.rb +46 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set.rb +311 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_type.rb +24 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/resource.rb +101 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone.rb +146 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/module_definition.rb +9 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/record_sets.rb +1250 -0
- data/lib/2017-10-01/generated/azure_mgmt_dns/zones.rb +922 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns.rb +49 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/arecord.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb +311 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_type.rb +24 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb +101 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/sub_resource.rb +46 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb +204 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_type.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/module_definition.rb +9 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb +1250 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_dns/zones.rb +922 -0
- data/lib/azure_mgmt_dns.rb +2 -0
- data/lib/profiles/latest/modules/dns_profile_module.rb +59 -47
- data/lib/version.rb +1 -1
- metadata +50 -2
@@ -0,0 +1,49 @@
|
|
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 '2018-03-01-preview/generated/azure_mgmt_dns/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
23
|
+
autoload :RecordSets, '2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb'
|
24
|
+
autoload :Zones, '2018-03-01-preview/generated/azure_mgmt_dns/zones.rb'
|
25
|
+
autoload :DnsManagementClient, '2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :CaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb'
|
29
|
+
autoload :RecordSet, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb'
|
30
|
+
autoload :AaaaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb'
|
31
|
+
autoload :RecordSetUpdateParameters, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
|
32
|
+
autoload :NsRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/ns_record.rb'
|
33
|
+
autoload :RecordSetListResult, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb'
|
34
|
+
autoload :SrvRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/srv_record.rb'
|
35
|
+
autoload :SubResource, '2018-03-01-preview/generated/azure_mgmt_dns/models/sub_resource.rb'
|
36
|
+
autoload :CnameRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/cname_record.rb'
|
37
|
+
autoload :SoaRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/soa_record.rb'
|
38
|
+
autoload :MxRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/mx_record.rb'
|
39
|
+
autoload :ZoneUpdate, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_update.rb'
|
40
|
+
autoload :TxtRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/txt_record.rb'
|
41
|
+
autoload :ZoneListResult, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb'
|
42
|
+
autoload :PtrRecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/ptr_record.rb'
|
43
|
+
autoload :Resource, '2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb'
|
44
|
+
autoload :ARecord, '2018-03-01-preview/generated/azure_mgmt_dns/models/arecord.rb'
|
45
|
+
autoload :Zone, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb'
|
46
|
+
autoload :ZoneType, '2018-03-01-preview/generated/azure_mgmt_dns/models/zone_type.rb'
|
47
|
+
autoload :RecordType, '2018-03-01-preview/generated/azure_mgmt_dns/models/record_type.rb'
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class DnsManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Specifies the Azure subscription ID, which uniquely
|
21
|
+
# identifies the Microsoft Azure subscription.
|
22
|
+
attr_accessor :subscription_id
|
23
|
+
|
24
|
+
# @return [String] Specifies the API version.
|
25
|
+
attr_reader :api_version
|
26
|
+
|
27
|
+
# @return [String] Gets or sets the preferred language for the response.
|
28
|
+
attr_accessor :accept_language
|
29
|
+
|
30
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
31
|
+
# Running Operations. Default value is 30.
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
33
|
+
|
34
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
35
|
+
# is generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [RecordSets] record_sets
|
39
|
+
attr_reader :record_sets
|
40
|
+
|
41
|
+
# @return [Zones] zones
|
42
|
+
attr_reader :zones
|
43
|
+
|
44
|
+
#
|
45
|
+
# Creates initializes a new instance of the DnsManagementClient class.
|
46
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
47
|
+
# @param base_url [String] the base URI of the service.
|
48
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
49
|
+
#
|
50
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
51
|
+
super(credentials, options)
|
52
|
+
@base_url = base_url || 'https://management.azure.com'
|
53
|
+
|
54
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
55
|
+
@credentials = credentials
|
56
|
+
|
57
|
+
@record_sets = RecordSets.new(self)
|
58
|
+
@zones = Zones.new(self)
|
59
|
+
@api_version = '2018-03-01-preview'
|
60
|
+
@accept_language = 'en-US'
|
61
|
+
@long_running_operation_retry_timeout = 30
|
62
|
+
@generate_client_request_id = true
|
63
|
+
add_telemetry
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Makes a request and returns the body of the response.
|
68
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
69
|
+
# @param path [String] the path, relative to {base_url}.
|
70
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
71
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
72
|
+
# Example:
|
73
|
+
#
|
74
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
75
|
+
# path = "/path"
|
76
|
+
# options = {
|
77
|
+
# body: request_content,
|
78
|
+
# query_params: {'api-version' => '2016-02-01'}
|
79
|
+
# }
|
80
|
+
# result = @client.make_request(:put, path, options)
|
81
|
+
#
|
82
|
+
def make_request(method, path, options = {})
|
83
|
+
result = make_request_with_http_info(method, path, options)
|
84
|
+
result.body unless result.nil?
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
# Makes a request and returns the operation response.
|
89
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
90
|
+
# @param path [String] the path, relative to {base_url}.
|
91
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
92
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
93
|
+
#
|
94
|
+
def make_request_with_http_info(method, path, options = {})
|
95
|
+
result = make_request_async(method, path, options).value!
|
96
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
97
|
+
result
|
98
|
+
end
|
99
|
+
|
100
|
+
#
|
101
|
+
# Makes a request asynchronously.
|
102
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
103
|
+
# @param path [String] the path, relative to {base_url}.
|
104
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
105
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
106
|
+
#
|
107
|
+
def make_request_async(method, path, options = {})
|
108
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
109
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
110
|
+
|
111
|
+
request_url = options[:base_url] || @base_url
|
112
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
113
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
114
|
+
end
|
115
|
+
|
116
|
+
request_headers = @request_headers
|
117
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
118
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
119
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
120
|
+
|
121
|
+
super(request_url, method, path, options)
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
private
|
126
|
+
#
|
127
|
+
# Adds telemetry information.
|
128
|
+
#
|
129
|
+
def add_telemetry
|
130
|
+
sdk_information = 'azure_mgmt_dns'
|
131
|
+
sdk_information = "#{sdk_information}/0.16.1"
|
132
|
+
add_user_agent_information(sdk_information)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -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
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An AAAA record.
|
10
|
+
#
|
11
|
+
class AaaaRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The IPv6 address of this AAAA record.
|
16
|
+
attr_accessor :ipv6address
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for AaaaRecord class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'AaaaRecord',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'AaaaRecord',
|
31
|
+
model_properties: {
|
32
|
+
ipv6address: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ipv6Address',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -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
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An A record.
|
10
|
+
#
|
11
|
+
class ARecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The IPv4 address of this A record.
|
16
|
+
attr_accessor :ipv4address
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ARecord class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ARecord',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ARecord',
|
31
|
+
model_properties: {
|
32
|
+
ipv4address: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ipv4Address',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A CAA record.
|
10
|
+
#
|
11
|
+
class CaaRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The flags for this CAA record as an integer between 0
|
16
|
+
# and 255.
|
17
|
+
attr_accessor :flags
|
18
|
+
|
19
|
+
# @return [String] The tag for this CAA record.
|
20
|
+
attr_accessor :tag
|
21
|
+
|
22
|
+
# @return [String] The value for this CAA record.
|
23
|
+
attr_accessor :value
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for CaaRecord class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'CaaRecord',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'CaaRecord',
|
38
|
+
model_properties: {
|
39
|
+
flags: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'flags',
|
43
|
+
type: {
|
44
|
+
name: 'Number'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
tag: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'tag',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
value: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'value',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -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
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A CNAME record.
|
10
|
+
#
|
11
|
+
class CnameRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The canonical name for this CNAME record.
|
16
|
+
attr_accessor :cname
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for CnameRecord class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'CnameRecord',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CnameRecord',
|
31
|
+
model_properties: {
|
32
|
+
cname: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'cname',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Dns::Mgmt::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An MX record.
|
10
|
+
#
|
11
|
+
class MxRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The preference value for this MX record.
|
16
|
+
attr_accessor :preference
|
17
|
+
|
18
|
+
# @return [String] The domain name of the mail host for this MX record.
|
19
|
+
attr_accessor :exchange
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for MxRecord 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: 'MxRecord',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MxRecord',
|
34
|
+
model_properties: {
|
35
|
+
preference: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'preference',
|
39
|
+
type: {
|
40
|
+
name: 'Number'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
exchange: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'exchange',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|