mandrill-api 1.0.46 → 1.0.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +32 -0
  2. metadata +4 -5
@@ -1282,6 +1282,38 @@ module Mandrill
1282
1282
  return @master.call 'ips/delete-pool', _params
1283
1283
  end
1284
1284
 
1285
+ # Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
1286
+ # @param [String] ip a dedicated ip address
1287
+ # @param [String] domain the domain name to test
1288
+ # @return [Hash] validation results for the domain
1289
+ # - [String] valid whether the domain name has a correctly-configured A record pointing to the ip address
1290
+ # - [String] error if valid is false, this will contain details about why the domain's A record is incorrect
1291
+ def check_custom_dns(ip, domain)
1292
+ _params = {:ip => ip, :domain => domain}
1293
+ return @master.call 'ips/check-custom-dns', _params
1294
+ end
1295
+
1296
+ # Configures the custom DNS name for a dedicated IP.
1297
+ # @param [String] ip a dedicated ip address
1298
+ # @param [String] domain a domain name to set as the dedicated IP's custom dns name.
1299
+ # @return [Hash] information about the dedicated IP's new configuration
1300
+ # - [String] ip the ip address
1301
+ # - [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
1302
+ # - [String] pool the name of the pool that this dedicated IP belongs to
1303
+ # - [String] domain the domain name (reverse dns) of this dedicated IP
1304
+ # - [Hash] custom_dns information about the ip's custom dns, if it has been configured
1305
+ # - [Boolean] enabled a boolean indicating whether custom dns has been configured for this ip
1306
+ # - [Boolean] valid whether the ip's custom dns is currently valid
1307
+ # - [String] error if the ip's custom dns is invalid, this will include details about the error
1308
+ # - [Hash] warmup information about the ip's warmup status
1309
+ # - [Boolean] warming_up whether the ip is currently in warmup mode
1310
+ # - [String] start_at the start time for the warmup process as a UTC string in YYYY-MM-DD HH:MM:SS format
1311
+ # - [String] end_at the end date and time for the warmup process as a UTC string in YYYY-MM-DD HH:MM:SS format
1312
+ def set_custom_dns(ip, domain)
1313
+ _params = {:ip => ip, :domain => domain}
1314
+ return @master.call 'ips/set-custom-dns', _params
1315
+ end
1316
+
1285
1317
  end
1286
1318
  class Internal
1287
1319
  attr_accessor :master
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 75
4
+ hash: 73
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 46
10
- version: 1.0.46
9
+ - 47
10
+ version: 1.0.47
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandrill Devs
@@ -104,10 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements: []
105
105
 
106
106
  rubyforge_project:
107
- rubygems_version: 1.8.24
107
+ rubygems_version: 1.8.15
108
108
  signing_key:
109
109
  specification_version: 3
110
110
  summary: A Ruby API library for the Mandrill email as a service platform.
111
111
  test_files: []
112
112
 
113
- has_rdoc: