mailslurp_client 8.2.15 → 8.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -2
  3. data/lib/mailslurp_client.rb +11 -2
  4. data/lib/mailslurp_client/api/alias_controller_api.rb +94 -80
  5. data/lib/mailslurp_client/api/domain_controller_api.rb +7 -5
  6. data/lib/mailslurp_client/api/email_controller_api.rb +72 -2
  7. data/lib/mailslurp_client/api/form_controller_api.rb +4 -7
  8. data/lib/mailslurp_client/api/inbox_controller_api.rb +87 -10
  9. data/lib/mailslurp_client/api/mail_server_controller_api.rb +123 -0
  10. data/lib/mailslurp_client/models/alias_dto.rb +276 -0
  11. data/lib/mailslurp_client/models/alias_projection.rb +276 -0
  12. data/lib/mailslurp_client/models/alias_verification_result.rb +234 -0
  13. data/lib/mailslurp_client/models/{create_owned_alias_options.rb → create_alias_options.rb} +13 -13
  14. data/lib/mailslurp_client/models/create_inbox_dto.rb +259 -0
  15. data/lib/mailslurp_client/models/dns_lookup_options.rb +252 -0
  16. data/lib/mailslurp_client/models/dns_lookup_result.rb +288 -0
  17. data/lib/mailslurp_client/models/dns_lookup_results.rb +214 -0
  18. data/lib/mailslurp_client/models/domain_dto.rb +16 -16
  19. data/lib/mailslurp_client/models/email.rb +11 -1
  20. data/lib/mailslurp_client/models/html_validation_result.rb +3 -15
  21. data/lib/mailslurp_client/models/inbox.rb +5 -5
  22. data/lib/mailslurp_client/models/ip_address_result.rb +226 -0
  23. data/lib/mailslurp_client/models/model_alias.rb +36 -22
  24. data/lib/mailslurp_client/models/page_alias.rb +1 -1
  25. data/lib/mailslurp_client/models/reply_to_email_options.rb +313 -0
  26. data/lib/mailslurp_client/models/{create_anonymous_alias_options.rb → update_alias_options.rb} +12 -12
  27. data/lib/mailslurp_client/models/update_inbox_options.rb +2 -2
  28. data/lib/mailslurp_client/version.rb +1 -1
  29. metadata +13 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dce3412082e02c7dc47e1e45a7b5c43aa425d3e3a6a66bad83fa463caff5e6e
4
- data.tar.gz: 4291bd75b307be1dfecbb99b354594e91f171c0c12078c3fcfc69b172b0e10a9
3
+ metadata.gz: 9005d0f3b6653725d8c99997bde969c67c85d182407200ab1df23b8105635c8a
4
+ data.tar.gz: c81db7a3da9ee55e22377a5c10a52f20c550bdc2ad20c70e6ce6183cca1c12f8
5
5
  SHA512:
6
- metadata.gz: 8f7bba0651ae34221c2bd7f5c0aaf021043782a51bbb48697cd5727ddda0051360ddd76ea0cc32a43ae5e5a51ed3e0b915a257e8819d17fa7b856f534aa16d81
7
- data.tar.gz: 8014e372ec46a823e907307951791be59e0716e90ef628d657c02296eb33feaa2168773071b3437df4d0acefaa7792b3bb82a12853acd16b2716a0b6bde5b68a
6
+ metadata.gz: 3910aefd959a7b28869636571e51b3a15d98073f8ff243919c3118a70a37ffbb810fd9f688ccedf47f62d5ace6be9ccc9af70d6dbeeb57ea882364676f6e8ed2
7
+ data.tar.gz: ef868c5a8e1f3fd0c6c6b87d381b13d1fff3bcfe731330cc7e7e046f44cdeb520d54cf9a1db98270da6855a6b8f5ded0304e69b702157d7fc8c0167a8f3ed36b
data/README.md CHANGED
@@ -41,7 +41,7 @@ gem install mailslurp_client
41
41
  Or in your `Gemfile`:
42
42
 
43
43
  ```ruby
44
- gem 'mailslurp_client', '~> 8.2', '>= 8.2.2'
44
+ gem 'mailslurp_client', '~> 8.3', '>= 8.3.0'
45
45
  ```
46
46
 
47
47
  And then run bundler install:
@@ -90,6 +90,35 @@ it 'can create email addresses' do
90
90
  end
91
91
  ```
92
92
 
93
+ #### More options
94
+ The `create_inbox` method has some limitations in the Ruby client. To create inboxes with more options use the alternative
95
+ `create_inbox_with_options` method. (This uses a request body instead of query parameters.)
96
+
97
+ ```ruby
98
+ it 'can an inbox with tags' do
99
+ inbox_controller = MailSlurpClient::InboxControllerApi.new
100
+ # create an inbox with tags
101
+ inbox = inbox_controller.create_inbox_with_options({
102
+ tags: ['t1','t2'],
103
+ description: "test with tags",
104
+ name: "test name"
105
+ })
106
+
107
+ # has tags
108
+ expect(inbox.id).to be_truthy
109
+ expect(inbox.description).to be_truthy
110
+ expect(inbox.name).to be_truthy
111
+ expect(inbox.tags).to include('t1')
112
+ expect(inbox.tags).to include('t2')
113
+
114
+ # can update tags
115
+ inbox_updated = inbox_controller.update_inbox(inbox.id, {
116
+ tags: ['newtag']
117
+ })
118
+ expect(inbox_updated.tags).to eq(['newtag'])
119
+ end
120
+ ```
121
+
93
122
  ### List inboxes
94
123
 
95
124
  Inboxes you create can be listed in a paginated way.
@@ -234,7 +263,7 @@ email = wait_controller.wait_for_latest_email(wait_opts)
234
263
  # find the attachments on the email object
235
264
  expect(email.attachments.size).to be(1)
236
265
 
237
- # download the attachment
266
+ # download the attachment as base64 (easier than byte arrays for ruby client)
238
267
  email_controller = MailSlurpClient::EmailControllerApi.new
239
268
  downloaded_attachment = email_controller.download_attachment_base64(email.attachments[0], email.id)
240
269
 
@@ -17,19 +17,25 @@ require 'mailslurp_client/version'
17
17
  require 'mailslurp_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'mailslurp_client/models/alias_dto'
21
+ require 'mailslurp_client/models/alias_projection'
22
+ require 'mailslurp_client/models/alias_verification_result'
20
23
  require 'mailslurp_client/models/attachment_meta_data'
21
24
  require 'mailslurp_client/models/basic_auth_options'
22
25
  require 'mailslurp_client/models/bulk_send_email_options'
23
26
  require 'mailslurp_client/models/contact_dto'
24
27
  require 'mailslurp_client/models/contact_projection'
25
28
  require 'mailslurp_client/models/content_match_options'
26
- require 'mailslurp_client/models/create_anonymous_alias_options'
29
+ require 'mailslurp_client/models/create_alias_options'
27
30
  require 'mailslurp_client/models/create_contact_options'
28
31
  require 'mailslurp_client/models/create_domain_options'
29
32
  require 'mailslurp_client/models/create_group_options'
30
- require 'mailslurp_client/models/create_owned_alias_options'
33
+ require 'mailslurp_client/models/create_inbox_dto'
31
34
  require 'mailslurp_client/models/create_template_options'
32
35
  require 'mailslurp_client/models/create_webhook_options'
36
+ require 'mailslurp_client/models/dns_lookup_options'
37
+ require 'mailslurp_client/models/dns_lookup_result'
38
+ require 'mailslurp_client/models/dns_lookup_results'
33
39
  require 'mailslurp_client/models/describe_domain_options'
34
40
  require 'mailslurp_client/models/describe_mail_server_domain_result'
35
41
  require 'mailslurp_client/models/domain_dto'
@@ -46,6 +52,7 @@ require 'mailslurp_client/models/group_contacts_dto'
46
52
  require 'mailslurp_client/models/group_dto'
47
53
  require 'mailslurp_client/models/group_projection'
48
54
  require 'mailslurp_client/models/html_validation_result'
55
+ require 'mailslurp_client/models/ip_address_result'
49
56
  require 'mailslurp_client/models/inbox'
50
57
  require 'mailslurp_client/models/inbox_projection'
51
58
  require 'mailslurp_client/models/match_option'
@@ -63,6 +70,7 @@ require 'mailslurp_client/models/page_template_projection'
63
70
  require 'mailslurp_client/models/page_webhook_projection'
64
71
  require 'mailslurp_client/models/pageable'
65
72
  require 'mailslurp_client/models/raw_email_json'
73
+ require 'mailslurp_client/models/reply_to_email_options'
66
74
  require 'mailslurp_client/models/send_email_options'
67
75
  require 'mailslurp_client/models/sent_email_dto'
68
76
  require 'mailslurp_client/models/sent_email_projection'
@@ -73,6 +81,7 @@ require 'mailslurp_client/models/template_dto'
73
81
  require 'mailslurp_client/models/template_projection'
74
82
  require 'mailslurp_client/models/template_variable'
75
83
  require 'mailslurp_client/models/unread_count'
84
+ require 'mailslurp_client/models/update_alias_options'
76
85
  require 'mailslurp_client/models/update_group_contacts'
77
86
  require 'mailslurp_client/models/update_inbox_options'
78
87
  require 'mailslurp_client/models/upload_attachment_options'
@@ -19,28 +19,28 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create an email alias
23
- # Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
24
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
22
+ # Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.
23
+ # Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
24
+ # @param create_alias_options [CreateAliasOptions] createAliasOptions
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def create_alias(create_owned_alias_options, opts = {})
28
- create_alias_with_http_info(create_owned_alias_options, opts)
29
- nil
26
+ # @return [ModelAlias]
27
+ def create_alias(create_alias_options, opts = {})
28
+ data, _status_code, _headers = create_alias_with_http_info(create_alias_options, opts)
29
+ data
30
30
  end
31
31
 
32
- # Create an email alias
33
- # Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
34
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
32
+ # Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.
33
+ # Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
34
+ # @param create_alias_options [CreateAliasOptions] createAliasOptions
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
- def create_alias_with_http_info(create_owned_alias_options, opts = {})
36
+ # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
37
+ def create_alias_with_http_info(create_alias_options, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: AliasControllerApi.create_alias ...'
40
40
  end
41
- # verify the required parameter 'create_owned_alias_options' is set
42
- if @api_client.config.client_side_validation && create_owned_alias_options.nil?
43
- fail ArgumentError, "Missing the required parameter 'create_owned_alias_options' when calling AliasControllerApi.create_alias"
41
+ # verify the required parameter 'create_alias_options' is set
42
+ if @api_client.config.client_side_validation && create_alias_options.nil?
43
+ fail ArgumentError, "Missing the required parameter 'create_alias_options' when calling AliasControllerApi.create_alias"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/aliases'
@@ -59,10 +59,10 @@ module MailSlurpClient
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(create_owned_alias_options)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(create_alias_options)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type]
65
+ return_type = opts[:return_type] || 'ModelAlias'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -83,48 +83,44 @@ module MailSlurpClient
83
83
  return data, status_code, headers
84
84
  end
85
85
 
86
- # Create an anonymous email alias
87
- # @param create_anonymous_alias_options [CreateAnonymousAliasOptions] createAnonymousAliasOptions
86
+ # Delete an email alias
87
+ # @param alias_id [String] aliasId
88
88
  # @param [Hash] opts the optional parameters
89
- # @return [ModelAlias]
90
- def create_anonymous_alias(create_anonymous_alias_options, opts = {})
91
- data, _status_code, _headers = create_anonymous_alias_with_http_info(create_anonymous_alias_options, opts)
92
- data
89
+ # @return [nil]
90
+ def delete_alias(alias_id, opts = {})
91
+ delete_alias_with_http_info(alias_id, opts)
92
+ nil
93
93
  end
94
94
 
95
- # Create an anonymous email alias
96
- # @param create_anonymous_alias_options [CreateAnonymousAliasOptions] createAnonymousAliasOptions
95
+ # Delete an email alias
96
+ # @param alias_id [String] aliasId
97
97
  # @param [Hash] opts the optional parameters
98
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
99
- def create_anonymous_alias_with_http_info(create_anonymous_alias_options, opts = {})
98
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
99
+ def delete_alias_with_http_info(alias_id, opts = {})
100
100
  if @api_client.config.debugging
101
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.create_anonymous_alias ...'
101
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.delete_alias ...'
102
102
  end
103
- # verify the required parameter 'create_anonymous_alias_options' is set
104
- if @api_client.config.client_side_validation && create_anonymous_alias_options.nil?
105
- fail ArgumentError, "Missing the required parameter 'create_anonymous_alias_options' when calling AliasControllerApi.create_anonymous_alias"
103
+ # verify the required parameter 'alias_id' is set
104
+ if @api_client.config.client_side_validation && alias_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.delete_alias"
106
106
  end
107
107
  # resource path
108
- local_var_path = '/aliases/anonymous'
108
+ local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
109
109
 
110
110
  # query parameters
111
111
  query_params = opts[:query_params] || {}
112
112
 
113
113
  # header parameters
114
114
  header_params = opts[:header_params] || {}
115
- # HTTP header 'Accept' (if needed)
116
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
- # HTTP header 'Content-Type'
118
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
115
 
120
116
  # form parameters
121
117
  form_params = opts[:form_params] || {}
122
118
 
123
119
  # http body (model)
124
- post_body = opts[:body] || @api_client.object_to_http_body(create_anonymous_alias_options)
120
+ post_body = opts[:body]
125
121
 
126
122
  # return_type
127
- return_type = opts[:return_type] || 'ModelAlias'
123
+ return_type = opts[:return_type]
128
124
 
129
125
  # auth_names
130
126
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -138,33 +134,35 @@ module MailSlurpClient
138
134
  :return_type => return_type
139
135
  )
140
136
 
141
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
137
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
138
  if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: AliasControllerApi#create_anonymous_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ @api_client.config.logger.debug "API called: AliasControllerApi#delete_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
140
  end
145
141
  return data, status_code, headers
146
142
  end
147
143
 
148
- # Delete an owned alias
144
+ # Get an email alias
145
+ # Get an email alias by ID
149
146
  # @param alias_id [String] aliasId
150
147
  # @param [Hash] opts the optional parameters
151
- # @return [nil]
152
- def delete_alias(alias_id, opts = {})
153
- delete_alias_with_http_info(alias_id, opts)
154
- nil
148
+ # @return [AliasDto]
149
+ def get_alias(alias_id, opts = {})
150
+ data, _status_code, _headers = get_alias_with_http_info(alias_id, opts)
151
+ data
155
152
  end
156
153
 
157
- # Delete an owned alias
154
+ # Get an email alias
155
+ # Get an email alias by ID
158
156
  # @param alias_id [String] aliasId
159
157
  # @param [Hash] opts the optional parameters
160
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
161
- def delete_alias_with_http_info(alias_id, opts = {})
158
+ # @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
159
+ def get_alias_with_http_info(alias_id, opts = {})
162
160
  if @api_client.config.debugging
163
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.delete_alias ...'
161
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias ...'
164
162
  end
165
163
  # verify the required parameter 'alias_id' is set
166
164
  if @api_client.config.client_side_validation && alias_id.nil?
167
- fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.delete_alias"
165
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias"
168
166
  end
169
167
  # resource path
170
168
  local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
@@ -174,6 +172,8 @@ module MailSlurpClient
174
172
 
175
173
  # header parameters
176
174
  header_params = opts[:header_params] || {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
177
 
178
178
  # form parameters
179
179
  form_params = opts[:form_params] || {}
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  post_body = opts[:body]
183
183
 
184
184
  # return_type
185
- return_type = opts[:return_type]
185
+ return_type = opts[:return_type] || 'AliasDto'
186
186
 
187
187
  # auth_names
188
188
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -196,41 +196,55 @@ module MailSlurpClient
196
196
  :return_type => return_type
197
197
  )
198
198
 
199
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
199
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
200
200
  if @api_client.config.debugging
201
- @api_client.config.logger.debug "API called: AliasControllerApi#delete_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
201
+ @api_client.config.logger.debug "API called: AliasControllerApi#get_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
202
202
  end
203
203
  return data, status_code, headers
204
204
  end
205
205
 
206
- # Get an email alias
207
- # Get an email alias by ID
206
+ # Get validation result from alias verification
207
+ # Verify an email alias email address with the verification token that was emailed to the address
208
208
  # @param alias_id [String] aliasId
209
+ # @param email_address [String] emailAddress
210
+ # @param verification_token [String] verificationToken
209
211
  # @param [Hash] opts the optional parameters
210
- # @return [ModelAlias]
211
- def get_alias(alias_id, opts = {})
212
- data, _status_code, _headers = get_alias_with_http_info(alias_id, opts)
212
+ # @return [AliasVerificationResult]
213
+ def get_alias_verification(alias_id, email_address, verification_token, opts = {})
214
+ data, _status_code, _headers = get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts)
213
215
  data
214
216
  end
215
217
 
216
- # Get an email alias
217
- # Get an email alias by ID
218
+ # Get validation result from alias verification
219
+ # Verify an email alias email address with the verification token that was emailed to the address
218
220
  # @param alias_id [String] aliasId
221
+ # @param email_address [String] emailAddress
222
+ # @param verification_token [String] verificationToken
219
223
  # @param [Hash] opts the optional parameters
220
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
221
- def get_alias_with_http_info(alias_id, opts = {})
224
+ # @return [Array<(AliasVerificationResult, Integer, Hash)>] AliasVerificationResult data, response status code and response headers
225
+ def get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts = {})
222
226
  if @api_client.config.debugging
223
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias ...'
227
+ @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias_verification ...'
224
228
  end
225
229
  # verify the required parameter 'alias_id' is set
226
230
  if @api_client.config.client_side_validation && alias_id.nil?
227
- fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias"
231
+ fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias_verification"
232
+ end
233
+ # verify the required parameter 'email_address' is set
234
+ if @api_client.config.client_side_validation && email_address.nil?
235
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling AliasControllerApi.get_alias_verification"
236
+ end
237
+ # verify the required parameter 'verification_token' is set
238
+ if @api_client.config.client_side_validation && verification_token.nil?
239
+ fail ArgumentError, "Missing the required parameter 'verification_token' when calling AliasControllerApi.get_alias_verification"
228
240
  end
229
241
  # resource path
230
- local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
242
+ local_var_path = '/aliases/{aliasId}/verification'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
231
243
 
232
244
  # query parameters
233
245
  query_params = opts[:query_params] || {}
246
+ query_params[:'emailAddress'] = email_address
247
+ query_params[:'verificationToken'] = verification_token
234
248
 
235
249
  # header parameters
236
250
  header_params = opts[:header_params] || {}
@@ -244,7 +258,7 @@ module MailSlurpClient
244
258
  post_body = opts[:body]
245
259
 
246
260
  # return_type
247
- return_type = opts[:return_type] || 'ModelAlias'
261
+ return_type = opts[:return_type] || 'AliasVerificationResult'
248
262
 
249
263
  # auth_names
250
264
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -260,12 +274,12 @@ module MailSlurpClient
260
274
 
261
275
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
262
276
  if @api_client.config.debugging
263
- @api_client.config.logger.debug "API called: AliasControllerApi#get_alias\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
+ @api_client.config.logger.debug "API called: AliasControllerApi#get_alias_verification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
278
  end
265
279
  return data, status_code, headers
266
280
  end
267
281
 
268
- # Get all email aliases
282
+ # Get all email aliases you have created
269
283
  # Get all email aliases in paginated form
270
284
  # @param [Hash] opts the optional parameters
271
285
  # @option opts [Integer] :page Optional page index in alias list pagination (default to 0)
@@ -277,7 +291,7 @@ module MailSlurpClient
277
291
  data
278
292
  end
279
293
 
280
- # Get all email aliases
294
+ # Get all email aliases you have created
281
295
  # Get all email aliases in paginated form
282
296
  # @param [Hash] opts the optional parameters
283
297
  # @option opts [Integer] :page Optional page index in alias list pagination
@@ -334,22 +348,22 @@ module MailSlurpClient
334
348
  return data, status_code, headers
335
349
  end
336
350
 
337
- # Update an owned alias
351
+ # Update an email alias
338
352
  # @param alias_id [String] aliasId
339
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
353
+ # @param update_alias_options [UpdateAliasOptions] updateAliasOptions
340
354
  # @param [Hash] opts the optional parameters
341
355
  # @return [nil]
342
- def update_alias(alias_id, create_owned_alias_options, opts = {})
343
- update_alias_with_http_info(alias_id, create_owned_alias_options, opts)
356
+ def update_alias(alias_id, update_alias_options, opts = {})
357
+ update_alias_with_http_info(alias_id, update_alias_options, opts)
344
358
  nil
345
359
  end
346
360
 
347
- # Update an owned alias
361
+ # Update an email alias
348
362
  # @param alias_id [String] aliasId
349
- # @param create_owned_alias_options [CreateOwnedAliasOptions] createOwnedAliasOptions
363
+ # @param update_alias_options [UpdateAliasOptions] updateAliasOptions
350
364
  # @param [Hash] opts the optional parameters
351
365
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
352
- def update_alias_with_http_info(alias_id, create_owned_alias_options, opts = {})
366
+ def update_alias_with_http_info(alias_id, update_alias_options, opts = {})
353
367
  if @api_client.config.debugging
354
368
  @api_client.config.logger.debug 'Calling API: AliasControllerApi.update_alias ...'
355
369
  end
@@ -357,9 +371,9 @@ module MailSlurpClient
357
371
  if @api_client.config.client_side_validation && alias_id.nil?
358
372
  fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.update_alias"
359
373
  end
360
- # verify the required parameter 'create_owned_alias_options' is set
361
- if @api_client.config.client_side_validation && create_owned_alias_options.nil?
362
- fail ArgumentError, "Missing the required parameter 'create_owned_alias_options' when calling AliasControllerApi.update_alias"
374
+ # verify the required parameter 'update_alias_options' is set
375
+ if @api_client.config.client_side_validation && update_alias_options.nil?
376
+ fail ArgumentError, "Missing the required parameter 'update_alias_options' when calling AliasControllerApi.update_alias"
363
377
  end
364
378
  # resource path
365
379
  local_var_path = '/aliases/{aliasId}'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
@@ -378,7 +392,7 @@ module MailSlurpClient
378
392
  form_params = opts[:form_params] || {}
379
393
 
380
394
  # http body (model)
381
- post_body = opts[:body] || @api_client.object_to_http_body(create_owned_alias_options)
395
+ post_body = opts[:body] || @api_client.object_to_http_body(update_alias_options)
382
396
 
383
397
  # return_type
384
398
  return_type = opts[:return_type]