MailchimpTransactional 1.0.8 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +4 -4
- data/README.md +9 -9
- data/lib/MailchimpTransactional.rb +60 -76
- data/lib/MailchimpTransactional/api/exports_api.rb +14 -97
- data/lib/MailchimpTransactional/api/inbound_api.rb +22 -169
- data/lib/MailchimpTransactional/api/ips_api.rb +30 -241
- data/lib/MailchimpTransactional/api/messages_api.rb +26 -205
- data/lib/MailchimpTransactional/api/metadata_api.rb +12 -79
- data/lib/MailchimpTransactional/api/rejects_api.rb +10 -61
- data/lib/MailchimpTransactional/api/senders_api.rb +18 -133
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +18 -133
- data/lib/MailchimpTransactional/api/tags_api.rb +14 -97
- data/lib/MailchimpTransactional/api/templates_api.rb +20 -151
- data/lib/MailchimpTransactional/api/urls_api.rb +16 -115
- data/lib/MailchimpTransactional/api/users_api.rb +12 -79
- data/lib/MailchimpTransactional/api/webhooks_api.rb +14 -97
- data/lib/MailchimpTransactional/api/whitelists_api.rb +10 -61
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +2 -2
- data/lib/MailchimpTransactional/configuration.rb +2 -2
- data/lib/MailchimpTransactional/version.rb +3 -3
- metadata +7 -12
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.14
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class InboundApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Add inbound domain
|
26
|
-
# Add an inbound domain to your account.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse2006]
|
30
|
-
def add_domain(body = {}, opts = {})
|
31
|
-
data = add_domain_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add inbound domain
|
36
24
|
# Add an inbound domain to your account.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/inbound/add-domain'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Add mailbox route
|
52
|
-
# Add a new mailbox route to an inbound domain.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20010]
|
56
|
-
def add_route(body = {}, opts = {})
|
57
|
-
data = add_route_with_http_info(body, opts)
|
28
|
+
def add_domain(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/inbound/add-domain', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/inbound/add-route'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Check domain settings
|
78
|
-
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse2007]
|
82
|
-
def check_domain(body = {}, opts = {})
|
83
|
-
data = check_domain_with_http_info(body, opts)
|
38
|
+
def add_route(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/inbound/add-route', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/inbound/check-domain'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Delete inbound domain
|
104
|
-
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse2008]
|
108
|
-
def delete_domain(body = {}, opts = {})
|
109
|
-
data = delete_domain_with_http_info(body, opts)
|
48
|
+
def check_domain(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/inbound/check-domain', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/inbound/delete-domain'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Delete mailbox route
|
130
|
-
# Delete an existing inbound mailbox route.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20012]
|
134
|
-
def delete_route(body = {}, opts = {})
|
135
|
-
data = delete_route_with_http_info(body, opts)
|
58
|
+
def delete_domain(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/inbound/delete-domain', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/inbound/delete-route'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# List inbound domains
|
156
|
-
# List the domains that have been configured for inbound delivery.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<InlineResponse2005>]
|
160
|
-
def domains(body = {}, opts = {})
|
161
|
-
data = domains_with_http_info(body, opts)
|
68
|
+
def delete_route(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/inbound/delete-route', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(Array<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/inbound/domains'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# List mailbox routes
|
182
|
-
# List the mailbox routes defined for an inbound domain.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<InlineResponse2009>]
|
186
|
-
def routes(body = {}, opts = {})
|
187
|
-
data = routes_with_http_info(body, opts)
|
78
|
+
def domains(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/inbound/domains', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,24 +85,8 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(Array<InlineResponse2009>, Fixnum, Hash)>] Array<InlineResponse2009> data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
body[:key] = @api_key
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/inbound/routes'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
206
|
-
end
|
207
|
-
# Send mime document
|
208
|
-
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP.
|
209
|
-
# @param body
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<InlineResponse20013>]
|
212
|
-
def send_raw(body = {}, opts = {})
|
213
|
-
data = send_raw_with_http_info(body, opts)
|
88
|
+
def routes(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/inbound/routes', body)
|
214
90
|
data
|
215
91
|
end
|
216
92
|
|
@@ -219,24 +95,8 @@ module MailchimpTransactional
|
|
219
95
|
# @param body
|
220
96
|
# @param [Hash] opts the optional parameters
|
221
97
|
# @return [Array<(Array<InlineResponse20013>, Fixnum, Hash)>] Array<InlineResponse20013> data, response status code and response headers
|
222
|
-
def
|
223
|
-
|
224
|
-
body[:key] = @api_key
|
225
|
-
|
226
|
-
# resource path
|
227
|
-
local_var_path = '/inbound/send-raw'
|
228
|
-
|
229
|
-
# http body (model)
|
230
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
-
return data
|
232
|
-
end
|
233
|
-
# Update mailbox route
|
234
|
-
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
235
|
-
# @param body
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [InlineResponse20011]
|
238
|
-
def update_route(body = {}, opts = {})
|
239
|
-
data = update_route_with_http_info(body, opts)
|
98
|
+
def send_raw(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/inbound/send-raw', body)
|
240
100
|
data
|
241
101
|
end
|
242
102
|
|
@@ -245,16 +105,9 @@ module MailchimpTransactional
|
|
245
105
|
# @param body
|
246
106
|
# @param [Hash] opts the optional parameters
|
247
107
|
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
248
|
-
def
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
# resource path
|
253
|
-
local_var_path = '/inbound/update-route'
|
254
|
-
|
255
|
-
# http body (model)
|
256
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
-
return data
|
108
|
+
def update_route(body = {})
|
109
|
+
data = @api_client.call_api(:POST, '/inbound/update-route', body)
|
110
|
+
data
|
258
111
|
end
|
259
112
|
end
|
260
113
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.14
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class IpsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Cancel ip warmup
|
26
|
-
# Cancels the warmup process for a dedicated IP.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20017]
|
30
|
-
def cancel_warmup(body = {}, opts = {})
|
31
|
-
data = cancel_warmup_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Cancel ip warmup
|
36
24
|
# Cancels the warmup process for a dedicated IP.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/ips/cancel-warmup'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Test custom dns
|
52
|
-
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20023]
|
56
|
-
def check_custom_dns(body = {}, opts = {})
|
57
|
-
data = check_custom_dns_with_http_info(body, opts)
|
28
|
+
def cancel_warmup(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/ips/cancel-warmup', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/ips/check-custom-dns'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Add ip pool
|
78
|
-
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20021]
|
82
|
-
def create_pool(body = {}, opts = {})
|
83
|
-
data = create_pool_with_http_info(body, opts)
|
38
|
+
def check_custom_dns(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/ips/check-custom-dns', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/ips/create-pool'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Delete ip address
|
104
|
-
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse20019]
|
108
|
-
def delete(body = {}, opts = {})
|
109
|
-
data = delete_with_http_info(body, opts)
|
48
|
+
def create_pool(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/ips/create-pool', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/ips/delete'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Delete ip pool
|
130
|
-
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20022]
|
134
|
-
def delete_pool(body = {}, opts = {})
|
135
|
-
data = delete_pool_with_http_info(body, opts)
|
58
|
+
def delete(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/ips/delete', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/ips/delete-pool'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# Get ip info
|
156
|
-
# Retrieves information about a single dedicated IP.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [InlineResponse20015]
|
160
|
-
def info(body = {}, opts = {})
|
161
|
-
data = info_with_http_info(body, opts)
|
68
|
+
def delete_pool(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/ips/delete-pool', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/ips/info'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# List ip addresses
|
182
|
-
# Lists your dedicated IPs.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<InlineResponse20014>]
|
186
|
-
def list(body = {}, opts = {})
|
187
|
-
data = list_with_http_info(body, opts)
|
78
|
+
def info(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/ips/info', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,24 +85,8 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(Array<InlineResponse20014>, Fixnum, Hash)>] Array<InlineResponse20014> data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
body[:key] = @api_key
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/ips/list'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
206
|
-
end
|
207
|
-
# List ip pools
|
208
|
-
# Lists your dedicated IP pools.
|
209
|
-
# @param body
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<InlineResponse20020>]
|
212
|
-
def list_pools(body = {}, opts = {})
|
213
|
-
data = list_pools_with_http_info(body, opts)
|
88
|
+
def list(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/ips/list', body)
|
214
90
|
data
|
215
91
|
end
|
216
92
|
|
@@ -219,24 +95,8 @@ module MailchimpTransactional
|
|
219
95
|
# @param body
|
220
96
|
# @param [Hash] opts the optional parameters
|
221
97
|
# @return [Array<(Array<InlineResponse20020>, Fixnum, Hash)>] Array<InlineResponse20020> data, response status code and response headers
|
222
|
-
def
|
223
|
-
|
224
|
-
body[:key] = @api_key
|
225
|
-
|
226
|
-
# resource path
|
227
|
-
local_var_path = '/ips/list-pools'
|
228
|
-
|
229
|
-
# http body (model)
|
230
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
-
return data
|
232
|
-
end
|
233
|
-
# Get ip pool info
|
234
|
-
# Describes a single dedicated IP pool.
|
235
|
-
# @param body
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [InlineResponse20021]
|
238
|
-
def pool_info(body = {}, opts = {})
|
239
|
-
data = pool_info_with_http_info(body, opts)
|
98
|
+
def list_pools(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/ips/list-pools', body)
|
240
100
|
data
|
241
101
|
end
|
242
102
|
|
@@ -245,24 +105,8 @@ module MailchimpTransactional
|
|
245
105
|
# @param body
|
246
106
|
# @param [Hash] opts the optional parameters
|
247
107
|
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
248
|
-
def
|
249
|
-
|
250
|
-
body[:key] = @api_key
|
251
|
-
|
252
|
-
# resource path
|
253
|
-
local_var_path = '/ips/pool-info'
|
254
|
-
|
255
|
-
# http body (model)
|
256
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
-
return data
|
258
|
-
end
|
259
|
-
# Request additional ip
|
260
|
-
# 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.
|
261
|
-
# @param body
|
262
|
-
# @param [Hash] opts the optional parameters
|
263
|
-
# @return [InlineResponse20016]
|
264
|
-
def provision(body = {}, opts = {})
|
265
|
-
data = provision_with_http_info(body, opts)
|
108
|
+
def pool_info(body = {})
|
109
|
+
data = @api_client.call_api(:POST, '/ips/pool-info', body)
|
266
110
|
data
|
267
111
|
end
|
268
112
|
|
@@ -271,24 +115,8 @@ module MailchimpTransactional
|
|
271
115
|
# @param body
|
272
116
|
# @param [Hash] opts the optional parameters
|
273
117
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
274
|
-
def
|
275
|
-
|
276
|
-
body[:key] = @api_key
|
277
|
-
|
278
|
-
# resource path
|
279
|
-
local_var_path = '/ips/provision'
|
280
|
-
|
281
|
-
# http body (model)
|
282
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
283
|
-
return data
|
284
|
-
end
|
285
|
-
# Set custom dns
|
286
|
-
# Configures the custom DNS name for a dedicated IP.
|
287
|
-
# @param body
|
288
|
-
# @param [Hash] opts the optional parameters
|
289
|
-
# @return [InlineResponse20024]
|
290
|
-
def set_custom_dns(body = {}, opts = {})
|
291
|
-
data = set_custom_dns_with_http_info(body, opts)
|
118
|
+
def provision(body = {})
|
119
|
+
data = @api_client.call_api(:POST, '/ips/provision', body)
|
292
120
|
data
|
293
121
|
end
|
294
122
|
|
@@ -297,24 +125,8 @@ module MailchimpTransactional
|
|
297
125
|
# @param body
|
298
126
|
# @param [Hash] opts the optional parameters
|
299
127
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
300
|
-
def
|
301
|
-
|
302
|
-
body[:key] = @api_key
|
303
|
-
|
304
|
-
# resource path
|
305
|
-
local_var_path = '/ips/set-custom-dns'
|
306
|
-
|
307
|
-
# http body (model)
|
308
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
309
|
-
return data
|
310
|
-
end
|
311
|
-
# Move ip to different pool
|
312
|
-
# Moves a dedicated IP to a different pool.
|
313
|
-
# @param body
|
314
|
-
# @param [Hash] opts the optional parameters
|
315
|
-
# @return [InlineResponse20018]
|
316
|
-
def set_pool(body = {}, opts = {})
|
317
|
-
data = set_pool_with_http_info(body, opts)
|
128
|
+
def set_custom_dns(body = {})
|
129
|
+
data = @api_client.call_api(:POST, '/ips/set-custom-dns', body)
|
318
130
|
data
|
319
131
|
end
|
320
132
|
|
@@ -323,24 +135,8 @@ module MailchimpTransactional
|
|
323
135
|
# @param body
|
324
136
|
# @param [Hash] opts the optional parameters
|
325
137
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
326
|
-
def
|
327
|
-
|
328
|
-
body[:key] = @api_key
|
329
|
-
|
330
|
-
# resource path
|
331
|
-
local_var_path = '/ips/set-pool'
|
332
|
-
|
333
|
-
# http body (model)
|
334
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
335
|
-
return data
|
336
|
-
end
|
337
|
-
# Start ip warmup
|
338
|
-
# 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.
|
339
|
-
# @param body
|
340
|
-
# @param [Hash] opts the optional parameters
|
341
|
-
# @return [InlineResponse20017]
|
342
|
-
def start_warmup(body = {}, opts = {})
|
343
|
-
data = start_warmup_with_http_info(body, opts)
|
138
|
+
def set_pool(body = {})
|
139
|
+
data = @api_client.call_api(:POST, '/ips/set-pool', body)
|
344
140
|
data
|
345
141
|
end
|
346
142
|
|
@@ -349,16 +145,9 @@ module MailchimpTransactional
|
|
349
145
|
# @param body
|
350
146
|
# @param [Hash] opts the optional parameters
|
351
147
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
352
|
-
def
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
# resource path
|
357
|
-
local_var_path = '/ips/start-warmup'
|
358
|
-
|
359
|
-
# http body (model)
|
360
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
361
|
-
return data
|
148
|
+
def start_warmup(body = {})
|
149
|
+
data = @api_client.call_api(:POST, '/ips/start-warmup', body)
|
150
|
+
data
|
362
151
|
end
|
363
152
|
end
|
364
153
|
end
|