MailchimpTransactional 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/MailchimpTransactional.gemspec +45 -0
- data/README.md +174 -0
- data/lib/MailchimpTransactional.rb +123 -0
- data/lib/MailchimpTransactional/api/exports_api.rb +176 -0
- data/lib/MailchimpTransactional/api/inbound_api.rb +296 -0
- data/lib/MailchimpTransactional/api/ips_api.rb +416 -0
- data/lib/MailchimpTransactional/api/messages_api.rb +356 -0
- data/lib/MailchimpTransactional/api/metadata_api.rb +146 -0
- data/lib/MailchimpTransactional/api/rejects_api.rb +116 -0
- data/lib/MailchimpTransactional/api/senders_api.rb +236 -0
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +236 -0
- data/lib/MailchimpTransactional/api/tags_api.rb +176 -0
- data/lib/MailchimpTransactional/api/templates_api.rb +266 -0
- data/lib/MailchimpTransactional/api/urls_api.rb +206 -0
- data/lib/MailchimpTransactional/api/users_api.rb +146 -0
- data/lib/MailchimpTransactional/api/webhooks_api.rb +176 -0
- data/lib/MailchimpTransactional/api/whitelists_api.rb +116 -0
- data/lib/MailchimpTransactional/api_client.rb +94 -0
- data/lib/MailchimpTransactional/api_error.rb +38 -0
- data/lib/MailchimpTransactional/configuration.rb +202 -0
- data/lib/MailchimpTransactional/version.rb +15 -0
- metadata +245 -0
@@ -0,0 +1,296 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.4
|
7
|
+
Contact: apihelp@mandrill.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class InboundApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
+
@api_key = api_key
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# /inbound/add-domain
|
26
|
+
# Add a new template
|
27
|
+
# @param body
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [InlineResponse2006]
|
30
|
+
def add_domain(body = {}, opts = {})
|
31
|
+
data, _status_code, _headers = add_domain_with_http_info(body, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# /inbound/add-domain
|
36
|
+
# Add a new template
|
37
|
+
# @param body
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
40
|
+
def add_domain_with_http_info(body, opts = {})
|
41
|
+
# add api key to request body
|
42
|
+
body[:key] = @api_key
|
43
|
+
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/inbound/add-domain'
|
46
|
+
|
47
|
+
# http body (model)
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:body => body,
|
51
|
+
:auth_names => auth_names,
|
52
|
+
:return_type => 'InlineResponse2006')
|
53
|
+
return data, status_code, headers
|
54
|
+
end
|
55
|
+
# /inbound/add-route
|
56
|
+
# Add a new mailbox route to an inbound domain
|
57
|
+
# @param body
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [InlineResponse20010]
|
60
|
+
def add_route(body = {}, opts = {})
|
61
|
+
data, _status_code, _headers = add_route_with_http_info(body, opts)
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
65
|
+
# /inbound/add-route
|
66
|
+
# Add a new mailbox route to an inbound domain
|
67
|
+
# @param body
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
70
|
+
def add_route_with_http_info(body, opts = {})
|
71
|
+
# add api key to request body
|
72
|
+
body[:key] = @api_key
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/inbound/add-route'
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:body => body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'InlineResponse20010')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# /inbound/check-domain
|
86
|
+
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call
|
87
|
+
# @param body
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [InlineResponse2007]
|
90
|
+
def check_domain(body = {}, opts = {})
|
91
|
+
data, _status_code, _headers = check_domain_with_http_info(body, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# /inbound/check-domain
|
96
|
+
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call
|
97
|
+
# @param body
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
100
|
+
def check_domain_with_http_info(body, opts = {})
|
101
|
+
# add api key to request body
|
102
|
+
body[:key] = @api_key
|
103
|
+
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/inbound/check-domain'
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
auth_names = []
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
+
:body => body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => 'InlineResponse2007')
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
# /inbound/delete-domain
|
116
|
+
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
117
|
+
# @param body
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [InlineResponse2008]
|
120
|
+
def delete_domain(body = {}, opts = {})
|
121
|
+
data, _status_code, _headers = delete_domain_with_http_info(body, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# /inbound/delete-domain
|
126
|
+
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
127
|
+
# @param body
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
130
|
+
def delete_domain_with_http_info(body, opts = {})
|
131
|
+
# add api key to request body
|
132
|
+
body[:key] = @api_key
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/inbound/delete-domain'
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
auth_names = []
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:body => body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'InlineResponse2008')
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
# /inbound/delete-route
|
146
|
+
# Delete an existing inbound mailbox route
|
147
|
+
# @param body
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [InlineResponse20012]
|
150
|
+
def delete_route(body = {}, opts = {})
|
151
|
+
data, _status_code, _headers = delete_route_with_http_info(body, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# /inbound/delete-route
|
156
|
+
# Delete an existing inbound mailbox route
|
157
|
+
# @param body
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
160
|
+
def delete_route_with_http_info(body, opts = {})
|
161
|
+
# add api key to request body
|
162
|
+
body[:key] = @api_key
|
163
|
+
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/inbound/delete-route'
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
+
:body => body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'InlineResponse20012')
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
# /inbound/domains
|
176
|
+
# Add an inbound domain to your account
|
177
|
+
# @param body
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [Array<InlineResponse2005>]
|
180
|
+
def domains(body = {}, opts = {})
|
181
|
+
data, _status_code, _headers = domains_with_http_info(body, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# /inbound/domains
|
186
|
+
# Add an inbound domain to your account
|
187
|
+
# @param body
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(Array<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
|
190
|
+
def domains_with_http_info(body, opts = {})
|
191
|
+
# add api key to request body
|
192
|
+
body[:key] = @api_key
|
193
|
+
|
194
|
+
# resource path
|
195
|
+
local_var_path = '/inbound/domains'
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
auth_names = []
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
+
:body => body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'Array<InlineResponse2005>')
|
203
|
+
return data, status_code, headers
|
204
|
+
end
|
205
|
+
# /inbound/routes
|
206
|
+
# List the mailbox routes defined for an inbound domain
|
207
|
+
# @param body
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [Array<InlineResponse2009>]
|
210
|
+
def routes(body = {}, opts = {})
|
211
|
+
data, _status_code, _headers = routes_with_http_info(body, opts)
|
212
|
+
data
|
213
|
+
end
|
214
|
+
|
215
|
+
# /inbound/routes
|
216
|
+
# List the mailbox routes defined for an inbound domain
|
217
|
+
# @param body
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [Array<(Array<InlineResponse2009>, Fixnum, Hash)>] Array<InlineResponse2009> data, response status code and response headers
|
220
|
+
def routes_with_http_info(body, opts = {})
|
221
|
+
# add api key to request body
|
222
|
+
body[:key] = @api_key
|
223
|
+
|
224
|
+
# resource path
|
225
|
+
local_var_path = '/inbound/routes'
|
226
|
+
|
227
|
+
# http body (model)
|
228
|
+
auth_names = []
|
229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
230
|
+
:body => body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => 'Array<InlineResponse2009>')
|
233
|
+
return data, status_code, headers
|
234
|
+
end
|
235
|
+
# /inbound/send-raw
|
236
|
+
# 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
|
237
|
+
# @param body
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [Array<InlineResponse20013>]
|
240
|
+
def send_raw(body = {}, opts = {})
|
241
|
+
data, _status_code, _headers = send_raw_with_http_info(body, opts)
|
242
|
+
data
|
243
|
+
end
|
244
|
+
|
245
|
+
# /inbound/send-raw
|
246
|
+
# 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
|
247
|
+
# @param body
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Array<(Array<InlineResponse20013>, Fixnum, Hash)>] Array<InlineResponse20013> data, response status code and response headers
|
250
|
+
def send_raw_with_http_info(body, opts = {})
|
251
|
+
# add api key to request body
|
252
|
+
body[:key] = @api_key
|
253
|
+
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/inbound/send-raw'
|
256
|
+
|
257
|
+
# http body (model)
|
258
|
+
auth_names = []
|
259
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
260
|
+
:body => body,
|
261
|
+
:auth_names => auth_names,
|
262
|
+
:return_type => 'Array<InlineResponse20013>')
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
# /inbound/update-route
|
266
|
+
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
267
|
+
# @param body
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [InlineResponse20011]
|
270
|
+
def update_route(body = {}, opts = {})
|
271
|
+
data, _status_code, _headers = update_route_with_http_info(body, opts)
|
272
|
+
data
|
273
|
+
end
|
274
|
+
|
275
|
+
# /inbound/update-route
|
276
|
+
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
277
|
+
# @param body
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
280
|
+
def update_route_with_http_info(body, opts = {})
|
281
|
+
# add api key to request body
|
282
|
+
body[:key] = @api_key
|
283
|
+
|
284
|
+
# resource path
|
285
|
+
local_var_path = '/inbound/update-route'
|
286
|
+
|
287
|
+
# http body (model)
|
288
|
+
auth_names = []
|
289
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
290
|
+
:body => body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => 'InlineResponse20011')
|
293
|
+
return data, status_code, headers
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
@@ -0,0 +1,416 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.4
|
7
|
+
Contact: apihelp@mandrill.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class IpsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
+
@api_key = api_key
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# /ips/cancel-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, _status_code, _headers = cancel_warmup_with_http_info(body, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# /ips/cancel-warmup
|
36
|
+
# Cancels the warmup process for a dedicated IP.
|
37
|
+
# @param body
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
40
|
+
def cancel_warmup_with_http_info(body, opts = {})
|
41
|
+
# add api key to request body
|
42
|
+
body[:key] = @api_key
|
43
|
+
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/ips/cancel-warmup'
|
46
|
+
|
47
|
+
# http body (model)
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:body => body,
|
51
|
+
:auth_names => auth_names,
|
52
|
+
:return_type => 'InlineResponse20017')
|
53
|
+
return data, status_code, headers
|
54
|
+
end
|
55
|
+
# /ips/check-custom-dns
|
56
|
+
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
57
|
+
# @param body
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [InlineResponse20023]
|
60
|
+
def check_custom_dns(body = {}, opts = {})
|
61
|
+
data, _status_code, _headers = check_custom_dns_with_http_info(body, opts)
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
65
|
+
# /ips/check-custom-dns
|
66
|
+
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
67
|
+
# @param body
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
70
|
+
def check_custom_dns_with_http_info(body, opts = {})
|
71
|
+
# add api key to request body
|
72
|
+
body[:key] = @api_key
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/ips/check-custom-dns'
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:body => body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'InlineResponse20023')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# /ips/create-pool
|
86
|
+
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
87
|
+
# @param body
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [InlineResponse20021]
|
90
|
+
def create_pool(body = {}, opts = {})
|
91
|
+
data, _status_code, _headers = create_pool_with_http_info(body, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# /ips/create-pool
|
96
|
+
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
97
|
+
# @param body
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
100
|
+
def create_pool_with_http_info(body, opts = {})
|
101
|
+
# add api key to request body
|
102
|
+
body[:key] = @api_key
|
103
|
+
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/ips/create-pool'
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
auth_names = []
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
+
:body => body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => 'InlineResponse20021')
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
# /ips/delete
|
116
|
+
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
117
|
+
# @param body
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [InlineResponse20019]
|
120
|
+
def delete(body = {}, opts = {})
|
121
|
+
data, _status_code, _headers = delete_with_http_info(body, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# /ips/delete
|
126
|
+
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
127
|
+
# @param body
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
130
|
+
def delete_with_http_info(body, opts = {})
|
131
|
+
# add api key to request body
|
132
|
+
body[:key] = @api_key
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/ips/delete'
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
auth_names = []
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:body => body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'InlineResponse20019')
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
# /ips/delete-pool
|
146
|
+
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
147
|
+
# @param body
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [InlineResponse20022]
|
150
|
+
def delete_pool(body = {}, opts = {})
|
151
|
+
data, _status_code, _headers = delete_pool_with_http_info(body, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# /ips/delete-pool
|
156
|
+
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
157
|
+
# @param body
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
160
|
+
def delete_pool_with_http_info(body, opts = {})
|
161
|
+
# add api key to request body
|
162
|
+
body[:key] = @api_key
|
163
|
+
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/ips/delete-pool'
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
+
:body => body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'InlineResponse20022')
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
# /ips/info
|
176
|
+
# Retrieves information about a single dedicated ip.
|
177
|
+
# @param body
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [InlineResponse20015]
|
180
|
+
def info(body = {}, opts = {})
|
181
|
+
data, _status_code, _headers = info_with_http_info(body, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# /ips/info
|
186
|
+
# Retrieves information about a single dedicated ip.
|
187
|
+
# @param body
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
190
|
+
def info_with_http_info(body, opts = {})
|
191
|
+
# add api key to request body
|
192
|
+
body[:key] = @api_key
|
193
|
+
|
194
|
+
# resource path
|
195
|
+
local_var_path = '/ips/info'
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
auth_names = []
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
+
:body => body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'InlineResponse20015')
|
203
|
+
return data, status_code, headers
|
204
|
+
end
|
205
|
+
# /ips/list
|
206
|
+
# Lists your dedicated IPs.
|
207
|
+
# @param body
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [Array<InlineResponse20014>]
|
210
|
+
def list(body = {}, opts = {})
|
211
|
+
data, _status_code, _headers = list_with_http_info(body, opts)
|
212
|
+
data
|
213
|
+
end
|
214
|
+
|
215
|
+
# /ips/list
|
216
|
+
# Lists your dedicated IPs.
|
217
|
+
# @param body
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [Array<(Array<InlineResponse20014>, Fixnum, Hash)>] Array<InlineResponse20014> data, response status code and response headers
|
220
|
+
def list_with_http_info(body, opts = {})
|
221
|
+
# add api key to request body
|
222
|
+
body[:key] = @api_key
|
223
|
+
|
224
|
+
# resource path
|
225
|
+
local_var_path = '/ips/list'
|
226
|
+
|
227
|
+
# http body (model)
|
228
|
+
auth_names = []
|
229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
230
|
+
:body => body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => 'Array<InlineResponse20014>')
|
233
|
+
return data, status_code, headers
|
234
|
+
end
|
235
|
+
# /ips/list-pools
|
236
|
+
# Lists your dedicated IP pools.
|
237
|
+
# @param body
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [Array<InlineResponse20020>]
|
240
|
+
def list_pools(body = {}, opts = {})
|
241
|
+
data, _status_code, _headers = list_pools_with_http_info(body, opts)
|
242
|
+
data
|
243
|
+
end
|
244
|
+
|
245
|
+
# /ips/list-pools
|
246
|
+
# Lists your dedicated IP pools.
|
247
|
+
# @param body
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Array<(Array<InlineResponse20020>, Fixnum, Hash)>] Array<InlineResponse20020> data, response status code and response headers
|
250
|
+
def list_pools_with_http_info(body, opts = {})
|
251
|
+
# add api key to request body
|
252
|
+
body[:key] = @api_key
|
253
|
+
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/ips/list-pools'
|
256
|
+
|
257
|
+
# http body (model)
|
258
|
+
auth_names = []
|
259
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
260
|
+
:body => body,
|
261
|
+
:auth_names => auth_names,
|
262
|
+
:return_type => 'Array<InlineResponse20020>')
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
# /ips/pool-info
|
266
|
+
# Describes a single dedicated IP pool.
|
267
|
+
# @param body
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [InlineResponse20021]
|
270
|
+
def pool_info(body = {}, opts = {})
|
271
|
+
data, _status_code, _headers = pool_info_with_http_info(body, opts)
|
272
|
+
data
|
273
|
+
end
|
274
|
+
|
275
|
+
# /ips/pool-info
|
276
|
+
# Describes a single dedicated IP pool.
|
277
|
+
# @param body
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
280
|
+
def pool_info_with_http_info(body, opts = {})
|
281
|
+
# add api key to request body
|
282
|
+
body[:key] = @api_key
|
283
|
+
|
284
|
+
# resource path
|
285
|
+
local_var_path = '/ips/pool-info'
|
286
|
+
|
287
|
+
# http body (model)
|
288
|
+
auth_names = []
|
289
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
290
|
+
:body => body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => 'InlineResponse20021')
|
293
|
+
return data, status_code, headers
|
294
|
+
end
|
295
|
+
# /ips/provision
|
296
|
+
# 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.
|
297
|
+
# @param body
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [InlineResponse20016]
|
300
|
+
def provision(body = {}, opts = {})
|
301
|
+
data, _status_code, _headers = provision_with_http_info(body, opts)
|
302
|
+
data
|
303
|
+
end
|
304
|
+
|
305
|
+
# /ips/provision
|
306
|
+
# 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.
|
307
|
+
# @param body
|
308
|
+
# @param [Hash] opts the optional parameters
|
309
|
+
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
310
|
+
def provision_with_http_info(body, opts = {})
|
311
|
+
# add api key to request body
|
312
|
+
body[:key] = @api_key
|
313
|
+
|
314
|
+
# resource path
|
315
|
+
local_var_path = '/ips/provision'
|
316
|
+
|
317
|
+
# http body (model)
|
318
|
+
auth_names = []
|
319
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
320
|
+
:body => body,
|
321
|
+
:auth_names => auth_names,
|
322
|
+
:return_type => 'InlineResponse20016')
|
323
|
+
return data, status_code, headers
|
324
|
+
end
|
325
|
+
# /ips/set-custom-dns
|
326
|
+
# Configures the custom DNS name for a dedicated IP.
|
327
|
+
# @param body
|
328
|
+
# @param [Hash] opts the optional parameters
|
329
|
+
# @return [InlineResponse20024]
|
330
|
+
def set_custom_dns(body = {}, opts = {})
|
331
|
+
data, _status_code, _headers = set_custom_dns_with_http_info(body, opts)
|
332
|
+
data
|
333
|
+
end
|
334
|
+
|
335
|
+
# /ips/set-custom-dns
|
336
|
+
# Configures the custom DNS name for a dedicated IP.
|
337
|
+
# @param body
|
338
|
+
# @param [Hash] opts the optional parameters
|
339
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
340
|
+
def set_custom_dns_with_http_info(body, opts = {})
|
341
|
+
# add api key to request body
|
342
|
+
body[:key] = @api_key
|
343
|
+
|
344
|
+
# resource path
|
345
|
+
local_var_path = '/ips/set-custom-dns'
|
346
|
+
|
347
|
+
# http body (model)
|
348
|
+
auth_names = []
|
349
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
350
|
+
:body => body,
|
351
|
+
:auth_names => auth_names,
|
352
|
+
:return_type => 'InlineResponse20024')
|
353
|
+
return data, status_code, headers
|
354
|
+
end
|
355
|
+
# /ips/set-pool
|
356
|
+
# Moves a dedicated IP to a different pool.
|
357
|
+
# @param body
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @return [InlineResponse20018]
|
360
|
+
def set_pool(body = {}, opts = {})
|
361
|
+
data, _status_code, _headers = set_pool_with_http_info(body, opts)
|
362
|
+
data
|
363
|
+
end
|
364
|
+
|
365
|
+
# /ips/set-pool
|
366
|
+
# Moves a dedicated IP to a different pool.
|
367
|
+
# @param body
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
370
|
+
def set_pool_with_http_info(body, opts = {})
|
371
|
+
# add api key to request body
|
372
|
+
body[:key] = @api_key
|
373
|
+
|
374
|
+
# resource path
|
375
|
+
local_var_path = '/ips/set-pool'
|
376
|
+
|
377
|
+
# http body (model)
|
378
|
+
auth_names = []
|
379
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
380
|
+
:body => body,
|
381
|
+
:auth_names => auth_names,
|
382
|
+
:return_type => 'InlineResponse20018')
|
383
|
+
return data, status_code, headers
|
384
|
+
end
|
385
|
+
# /ips/start-warmup
|
386
|
+
# Begins the warmup process for a dedicated IP. During the warmup process, Mandrill 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.
|
387
|
+
# @param body
|
388
|
+
# @param [Hash] opts the optional parameters
|
389
|
+
# @return [InlineResponse20017]
|
390
|
+
def start_warmup(body = {}, opts = {})
|
391
|
+
data, _status_code, _headers = start_warmup_with_http_info(body, opts)
|
392
|
+
data
|
393
|
+
end
|
394
|
+
|
395
|
+
# /ips/start-warmup
|
396
|
+
# Begins the warmup process for a dedicated IP. During the warmup process, Mandrill 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.
|
397
|
+
# @param body
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
400
|
+
def start_warmup_with_http_info(body, opts = {})
|
401
|
+
# add api key to request body
|
402
|
+
body[:key] = @api_key
|
403
|
+
|
404
|
+
# resource path
|
405
|
+
local_var_path = '/ips/start-warmup'
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
auth_names = []
|
409
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
410
|
+
:body => body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => 'InlineResponse20017')
|
413
|
+
return data, status_code, headers
|
414
|
+
end
|
415
|
+
end
|
416
|
+
end
|