Class: MailchimpTransactional::IpsApi
- Inherits:
-
Object
- Object
- MailchimpTransactional::IpsApi
- Defined in:
- lib/MailchimpTransactional/api/ips_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#cancel_warmup(body = {}) ⇒ Array<(InlineResponse20020, Fixnum, Hash)>
Cancel ip warmup Cancels the warmup process for a dedicated IP.
-
#check_custom_dns(body = {}) ⇒ Array<(InlineResponse20026, Fixnum, Hash)>
Test custom dns Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
-
#create_pool(body = {}) ⇒ Array<(InlineResponse20024, Fixnum, Hash)>
Add ip pool Creates a pool and returns it.
-
#delete(body = {}) ⇒ Array<(InlineResponse20022, Fixnum, Hash)>
Delete ip address Deletes a dedicated IP.
-
#delete_pool(body = {}) ⇒ Array<(InlineResponse20025, Fixnum, Hash)>
Delete ip pool Deletes a pool.
-
#info(body = {}) ⇒ Array<(InlineResponse20018, Fixnum, Hash)>
Get ip info Retrieves information about a single dedicated IP.
-
#initialize(api_client = ApiClient.default) ⇒ IpsApi
constructor
A new instance of IpsApi.
-
#list(body = {}) ⇒ Array<(Array<InlineResponse20017>, Fixnum, Hash)>
List ip addresses Lists your dedicated IPs.
-
#list_pools(body = {}) ⇒ Array<(Array<InlineResponse20023>, Fixnum, Hash)>
List ip pools Lists your dedicated IP pools.
-
#pool_info(body = {}) ⇒ Array<(InlineResponse20024, Fixnum, Hash)>
Get ip pool info Describes a single dedicated IP pool.
-
#provision(body = {}) ⇒ Array<(InlineResponse20019, Fixnum, Hash)>
Request additional ip Requests an additional dedicated IP for your account.
-
#set_custom_dns(body = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>
Set custom dns Configures the custom DNS name for a dedicated IP.
-
#set_pool(body = {}) ⇒ Array<(InlineResponse20021, Fixnum, Hash)>
Move ip to different pool Moves a dedicated IP to a different pool.
-
#start_warmup(body = {}) ⇒ Array<(InlineResponse20020, Fixnum, Hash)>
Start ip warmup Begins the warmup process for a dedicated IP.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#cancel_warmup(body = {}) ⇒ Array<(InlineResponse20020, Fixnum, Hash)>
Cancel ip warmup Cancels the warmup process for a dedicated IP.
28 29 30 31 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 28 def cancel_warmup(body = {}) data = @api_client.call_api(:POST, '/ips/cancel-warmup', body) data end |
#check_custom_dns(body = {}) ⇒ Array<(InlineResponse20026, Fixnum, Hash)>
Test custom dns Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
38 39 40 41 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 38 def check_custom_dns(body = {}) data = @api_client.call_api(:POST, '/ips/check-custom-dns', body) data end |
#create_pool(body = {}) ⇒ Array<(InlineResponse20024, Fixnum, Hash)>
Add ip pool Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
48 49 50 51 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 48 def create_pool(body = {}) data = @api_client.call_api(:POST, '/ips/create-pool', body) data end |
#delete(body = {}) ⇒ Array<(InlineResponse20022, Fixnum, Hash)>
Delete ip address Deletes a dedicated IP. This is permanent and cannot be undone.
58 59 60 61 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 58 def delete(body = {}) data = @api_client.call_api(:POST, '/ips/delete', body) data end |
#delete_pool(body = {}) ⇒ Array<(InlineResponse20025, Fixnum, Hash)>
Delete ip pool Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
68 69 70 71 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 68 def delete_pool(body = {}) data = @api_client.call_api(:POST, '/ips/delete-pool', body) data end |
#info(body = {}) ⇒ Array<(InlineResponse20018, Fixnum, Hash)>
Get ip info Retrieves information about a single dedicated IP.
78 79 80 81 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 78 def info(body = {}) data = @api_client.call_api(:POST, '/ips/info', body) data end |
#list(body = {}) ⇒ Array<(Array<InlineResponse20017>, Fixnum, Hash)>
List ip addresses Lists your dedicated IPs.
88 89 90 91 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 88 def list(body = {}) data = @api_client.call_api(:POST, '/ips/list', body) data end |
#list_pools(body = {}) ⇒ Array<(Array<InlineResponse20023>, Fixnum, Hash)>
List ip pools Lists your dedicated IP pools.
98 99 100 101 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 98 def list_pools(body = {}) data = @api_client.call_api(:POST, '/ips/list-pools', body) data end |
#pool_info(body = {}) ⇒ Array<(InlineResponse20024, Fixnum, Hash)>
Get ip pool info Describes a single dedicated IP pool.
108 109 110 111 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 108 def pool_info(body = {}) data = @api_client.call_api(:POST, '/ips/pool-info', body) data end |
#provision(body = {}) ⇒ Array<(InlineResponse20019, Fixnum, Hash)>
Request additional ip Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 hours.
118 119 120 121 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 118 def provision(body = {}) data = @api_client.call_api(:POST, '/ips/provision', body) data end |
#set_custom_dns(body = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>
Set custom dns Configures the custom DNS name for a dedicated IP.
128 129 130 131 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 128 def set_custom_dns(body = {}) data = @api_client.call_api(:POST, '/ips/set-custom-dns', body) data end |
#set_pool(body = {}) ⇒ Array<(InlineResponse20021, Fixnum, Hash)>
Move ip to different pool Moves a dedicated IP to a different pool.
138 139 140 141 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 138 def set_pool(body = {}) data = @api_client.call_api(:POST, '/ips/set-pool', body) data end |
#start_warmup(body = {}) ⇒ Array<(InlineResponse20020, Fixnum, Hash)>
Start ip warmup Begins the warmup process for a dedicated IP. During the warmup process, the Transactional API will gradually increase the percentage of your mail that is sent over the warming-up IP, over a period of roughly 30 days. The rest of your mail will be sent over shared IPs or other dedicated IPs in the same pool.
148 149 150 151 |
# File 'lib/MailchimpTransactional/api/ips_api.rb', line 148 def start_warmup(body = {}) data = @api_client.call_api(:POST, '/ips/start-warmup', body) data end |