MailchimpTransactional 1.0.6 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
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.6
6
+ OpenAPI spec version: 1.0.13
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,281 +16,98 @@ module MailchimpTransactional
16
16
  class InboundApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
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
- # /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
22
 
35
- # /inbound/add-domain
36
- # Add a new template
23
+ # Add inbound domain
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 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)
28
+ def add_domain(body = {})
29
+ data = @api_client.call_api(:POST, '/inbound/add-domain', body)
62
30
  data
63
31
  end
64
32
 
65
- # /inbound/add-route
66
- # Add a new mailbox route to an inbound domain
33
+ # Add mailbox route
34
+ # Add a new mailbox route to an inbound domain.
67
35
  # @param body
68
36
  # @param [Hash] opts the optional parameters
69
37
  # @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)
38
+ def add_route(body = {})
39
+ data = @api_client.call_api(:POST, '/inbound/add-route', body)
92
40
  data
93
41
  end
94
42
 
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
43
+ # Check domain settings
44
+ # Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
97
45
  # @param body
98
46
  # @param [Hash] opts the optional parameters
99
47
  # @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)
48
+ def check_domain(body = {})
49
+ data = @api_client.call_api(:POST, '/inbound/check-domain', body)
122
50
  data
123
51
  end
124
52
 
125
- # /inbound/delete-domain
53
+ # Delete inbound domain
126
54
  # Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
127
55
  # @param body
128
56
  # @param [Hash] opts the optional parameters
129
57
  # @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)
58
+ def delete_domain(body = {})
59
+ data = @api_client.call_api(:POST, '/inbound/delete-domain', body)
152
60
  data
153
61
  end
154
62
 
155
- # /inbound/delete-route
156
- # Delete an existing inbound mailbox route
63
+ # Delete mailbox route
64
+ # Delete an existing inbound mailbox route.
157
65
  # @param body
158
66
  # @param [Hash] opts the optional parameters
159
67
  # @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)
68
+ def delete_route(body = {})
69
+ data = @api_client.call_api(:POST, '/inbound/delete-route', body)
182
70
  data
183
71
  end
184
72
 
185
- # /inbound/domains
186
- # Add an inbound domain to your account
73
+ # List inbound domains
74
+ # List the domains that have been configured for inbound delivery.
187
75
  # @param body
188
76
  # @param [Hash] opts the optional parameters
189
77
  # @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)
78
+ def domains(body = {})
79
+ data = @api_client.call_api(:POST, '/inbound/domains', body)
212
80
  data
213
81
  end
214
82
 
215
- # /inbound/routes
216
- # List the mailbox routes defined for an inbound domain
83
+ # List mailbox routes
84
+ # List the mailbox routes defined for an inbound domain.
217
85
  # @param body
218
86
  # @param [Hash] opts the optional parameters
219
87
  # @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)
88
+ def routes(body = {})
89
+ data = @api_client.call_api(:POST, '/inbound/routes', body)
242
90
  data
243
91
  end
244
92
 
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
93
+ # Send mime document
94
+ # 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
95
  # @param body
248
96
  # @param [Hash] opts the optional parameters
249
97
  # @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)
98
+ def send_raw(body = {})
99
+ data = @api_client.call_api(:POST, '/inbound/send-raw', body)
272
100
  data
273
101
  end
274
102
 
275
- # /inbound/update-route
103
+ # Update mailbox route
276
104
  # Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
277
105
  # @param body
278
106
  # @param [Hash] opts the optional parameters
279
107
  # @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
108
+ def update_route(body = {})
109
+ data = @api_client.call_api(:POST, '/inbound/update-route', body)
110
+ data
294
111
  end
295
112
  end
296
113
  end
@@ -3,7 +3,7 @@
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.6
6
+ OpenAPI spec version: 1.0.13
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,401 +16,138 @@ module MailchimpTransactional
16
16
  class IpsApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
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
- # /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
22
 
35
- # /ips/cancel-warmup
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 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)
28
+ def cancel_warmup(body = {})
29
+ data = @api_client.call_api(:POST, '/ips/cancel-warmup', body)
62
30
  data
63
31
  end
64
32
 
65
- # /ips/check-custom-dns
33
+ # Test custom dns
66
34
  # Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
67
35
  # @param body
68
36
  # @param [Hash] opts the optional parameters
69
37
  # @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)
38
+ def check_custom_dns(body = {})
39
+ data = @api_client.call_api(:POST, '/ips/check-custom-dns', body)
92
40
  data
93
41
  end
94
42
 
95
- # /ips/create-pool
43
+ # Add ip pool
96
44
  # Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
97
45
  # @param body
98
46
  # @param [Hash] opts the optional parameters
99
47
  # @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)
48
+ def create_pool(body = {})
49
+ data = @api_client.call_api(:POST, '/ips/create-pool', body)
122
50
  data
123
51
  end
124
52
 
125
- # /ips/delete
53
+ # Delete ip address
126
54
  # Deletes a dedicated IP. This is permanent and cannot be undone.
127
55
  # @param body
128
56
  # @param [Hash] opts the optional parameters
129
57
  # @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)
58
+ def delete(body = {})
59
+ data = @api_client.call_api(:POST, '/ips/delete', body)
152
60
  data
153
61
  end
154
62
 
155
- # /ips/delete-pool
63
+ # Delete ip pool
156
64
  # Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
157
65
  # @param body
158
66
  # @param [Hash] opts the optional parameters
159
67
  # @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)
68
+ def delete_pool(body = {})
69
+ data = @api_client.call_api(:POST, '/ips/delete-pool', body)
182
70
  data
183
71
  end
184
72
 
185
- # /ips/info
186
- # Retrieves information about a single dedicated ip.
73
+ # Get ip info
74
+ # Retrieves information about a single dedicated IP.
187
75
  # @param body
188
76
  # @param [Hash] opts the optional parameters
189
77
  # @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)
78
+ def info(body = {})
79
+ data = @api_client.call_api(:POST, '/ips/info', body)
212
80
  data
213
81
  end
214
82
 
215
- # /ips/list
83
+ # List ip addresses
216
84
  # Lists your dedicated IPs.
217
85
  # @param body
218
86
  # @param [Hash] opts the optional parameters
219
87
  # @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)
88
+ def list(body = {})
89
+ data = @api_client.call_api(:POST, '/ips/list', body)
242
90
  data
243
91
  end
244
92
 
245
- # /ips/list-pools
93
+ # List ip pools
246
94
  # Lists your dedicated IP pools.
247
95
  # @param body
248
96
  # @param [Hash] opts the optional parameters
249
97
  # @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)
98
+ def list_pools(body = {})
99
+ data = @api_client.call_api(:POST, '/ips/list-pools', body)
272
100
  data
273
101
  end
274
102
 
275
- # /ips/pool-info
103
+ # Get ip pool info
276
104
  # Describes a single dedicated IP pool.
277
105
  # @param body
278
106
  # @param [Hash] opts the optional parameters
279
107
  # @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)
108
+ def pool_info(body = {})
109
+ data = @api_client.call_api(:POST, '/ips/pool-info', body)
302
110
  data
303
111
  end
304
112
 
305
- # /ips/provision
113
+ # Request additional ip
306
114
  # 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
115
  # @param body
308
116
  # @param [Hash] opts the optional parameters
309
117
  # @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)
118
+ def provision(body = {})
119
+ data = @api_client.call_api(:POST, '/ips/provision', body)
332
120
  data
333
121
  end
334
122
 
335
- # /ips/set-custom-dns
123
+ # Set custom dns
336
124
  # Configures the custom DNS name for a dedicated IP.
337
125
  # @param body
338
126
  # @param [Hash] opts the optional parameters
339
127
  # @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)
128
+ def set_custom_dns(body = {})
129
+ data = @api_client.call_api(:POST, '/ips/set-custom-dns', body)
362
130
  data
363
131
  end
364
132
 
365
- # /ips/set-pool
133
+ # Move ip to different pool
366
134
  # Moves a dedicated IP to a different pool.
367
135
  # @param body
368
136
  # @param [Hash] opts the optional parameters
369
137
  # @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)
138
+ def set_pool(body = {})
139
+ data = @api_client.call_api(:POST, '/ips/set-pool', body)
392
140
  data
393
141
  end
394
142
 
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.
143
+ # Start ip warmup
144
+ # 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.
397
145
  # @param body
398
146
  # @param [Hash] opts the optional parameters
399
147
  # @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
148
+ def start_warmup(body = {})
149
+ data = @api_client.call_api(:POST, '/ips/start-warmup', body)
150
+ data
414
151
  end
415
152
  end
416
153
  end