Class: MailSlurpClient::InboxRulesetControllerApi
- Inherits:
-
Object
- Object
- MailSlurpClient::InboxRulesetControllerApi
- Defined in:
- lib/mailslurp_client/api/inbox_ruleset_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_new_inbox_ruleset(create_inbox_ruleset_options, opts = {}) ⇒ InboxRulesetDto
Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving.
-
#create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts = {}) ⇒ Array<(InboxRulesetDto, Integer, Hash)>
Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving.
-
#delete_inbox_ruleset(id, opts = {}) ⇒ nil
Delete an inbox ruleset Delete inbox ruleset.
-
#delete_inbox_ruleset_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an inbox ruleset Delete inbox ruleset.
-
#delete_inbox_rulesets(opts = {}) ⇒ nil
Delete inbox rulesets Delete inbox rulesets.
-
#delete_inbox_rulesets_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete inbox rulesets Delete inbox rulesets.
-
#get_inbox_ruleset(id, opts = {}) ⇒ InboxRulesetDto
Get an inbox ruleset Get inbox ruleset.
-
#get_inbox_ruleset_with_http_info(id, opts = {}) ⇒ Array<(InboxRulesetDto, Integer, Hash)>
Get an inbox ruleset Get inbox ruleset.
-
#get_inbox_rulesets(opts = {}) ⇒ PageInboxRulesetDto
List inbox rulesets List all rulesets attached to an inbox.
-
#get_inbox_rulesets_with_http_info(opts = {}) ⇒ Array<(PageInboxRulesetDto, Integer, Hash)>
List inbox rulesets List all rulesets attached to an inbox.
-
#initialize(api_client = ApiClient.default) ⇒ InboxRulesetControllerApi
constructor
A new instance of InboxRulesetControllerApi.
-
#test_inbox_ruleset(id, inbox_ruleset_test_options, opts = {}) ⇒ InboxRulesetTestResult
Test an inbox ruleset Test an inbox ruleset.
-
#test_inbox_ruleset_receiving(test_inbox_ruleset_receiving_options, opts = {}) ⇒ TestInboxRulesetReceivingResult
Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets.
-
#test_inbox_ruleset_receiving_with_http_info(test_inbox_ruleset_receiving_options, opts = {}) ⇒ Array<(TestInboxRulesetReceivingResult, Integer, Hash)>
Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets.
-
#test_inbox_ruleset_sending(test_inbox_ruleset_sending_options, opts = {}) ⇒ TestInboxRulesetSendingResult
Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets.
-
#test_inbox_ruleset_sending_with_http_info(test_inbox_ruleset_sending_options, opts = {}) ⇒ Array<(TestInboxRulesetSendingResult, Integer, Hash)>
Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets.
-
#test_inbox_ruleset_with_http_info(id, inbox_ruleset_test_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test an inbox ruleset Test an inbox ruleset.
-
#test_inbox_rulesets_for_inbox(inbox_id, inbox_ruleset_test_options, opts = {}) ⇒ InboxRulesetTestResult
Test inbox rulesets for inbox Test inbox rulesets for inbox.
-
#test_inbox_rulesets_for_inbox_with_http_info(inbox_id, inbox_ruleset_test_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test inbox rulesets for inbox Test inbox rulesets for inbox.
-
#test_new_inbox_ruleset(test_new_inbox_ruleset_options, opts = {}) ⇒ InboxRulesetTestResult
Test new inbox ruleset Test new inbox ruleset.
-
#test_new_inbox_ruleset_with_http_info(test_new_inbox_ruleset_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test new inbox ruleset Test new inbox ruleset.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ InboxRulesetControllerApi
Returns a new instance of InboxRulesetControllerApi.
19 20 21 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_new_inbox_ruleset(create_inbox_ruleset_options, opts = {}) ⇒ InboxRulesetDto
Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
28 29 30 31 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 28 def create_new_inbox_ruleset(, opts = {}) data, _status_code, _headers = create_new_inbox_ruleset_with_http_info(, opts) data end |
#create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts = {}) ⇒ Array<(InboxRulesetDto, Integer, Hash)>
Create an inbox ruleset Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 39 def create_new_inbox_ruleset_with_http_info(, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.create_new_inbox_ruleset ...' end # verify the required parameter 'create_inbox_ruleset_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'create_inbox_ruleset_options' when calling InboxRulesetControllerApi.create_new_inbox_ruleset" end # resource path local_var_path = '/rulesets' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'InboxRulesetDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#create_new_inbox_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_inbox_ruleset(id, opts = {}) ⇒ nil
Delete an inbox ruleset Delete inbox ruleset
94 95 96 97 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 94 def delete_inbox_ruleset(id, opts = {}) delete_inbox_ruleset_with_http_info(id, opts) nil end |
#delete_inbox_ruleset_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an inbox ruleset Delete inbox ruleset
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 104 def delete_inbox_ruleset_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.delete_inbox_ruleset ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling InboxRulesetControllerApi.delete_inbox_ruleset" end # resource path local_var_path = '/rulesets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#delete_inbox_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_inbox_rulesets(opts = {}) ⇒ nil
Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter.
154 155 156 157 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 154 def delete_inbox_rulesets(opts = {}) delete_inbox_rulesets_with_http_info(opts) nil end |
#delete_inbox_rulesets_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete inbox rulesets Delete inbox rulesets. Accepts optional inboxId filter.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 164 def delete_inbox_rulesets_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.delete_inbox_rulesets ...' end # resource path local_var_path = '/rulesets' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#delete_inbox_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_inbox_ruleset(id, opts = {}) ⇒ InboxRulesetDto
Get an inbox ruleset Get inbox ruleset
211 212 213 214 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 211 def get_inbox_ruleset(id, opts = {}) data, _status_code, _headers = get_inbox_ruleset_with_http_info(id, opts) data end |
#get_inbox_ruleset_with_http_info(id, opts = {}) ⇒ Array<(InboxRulesetDto, Integer, Hash)>
Get an inbox ruleset Get inbox ruleset
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 221 def get_inbox_ruleset_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.get_inbox_ruleset ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling InboxRulesetControllerApi.get_inbox_ruleset" end # resource path local_var_path = '/rulesets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'InboxRulesetDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#get_inbox_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_inbox_rulesets(opts = {}) ⇒ PageInboxRulesetDto
List inbox rulesets List all rulesets attached to an inbox
279 280 281 282 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 279 def get_inbox_rulesets(opts = {}) data, _status_code, _headers = get_inbox_rulesets_with_http_info(opts) data end |
#get_inbox_rulesets_with_http_info(opts = {}) ⇒ Array<(PageInboxRulesetDto, Integer, Hash)>
List inbox rulesets List all rulesets attached to an inbox
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 295 def get_inbox_rulesets_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.get_inbox_rulesets ...' end allowable_values = ["ASC", "DESC"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/rulesets' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PageInboxRulesetDto' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#get_inbox_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_inbox_ruleset(id, inbox_ruleset_test_options, opts = {}) ⇒ InboxRulesetTestResult
Test an inbox ruleset Test an inbox ruleset
355 356 357 358 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 355 def test_inbox_ruleset(id, , opts = {}) data, _status_code, _headers = test_inbox_ruleset_with_http_info(id, , opts) data end |
#test_inbox_ruleset_receiving(test_inbox_ruleset_receiving_options, opts = {}) ⇒ TestInboxRulesetReceivingResult
Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets
424 425 426 427 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 424 def test_inbox_ruleset_receiving(, opts = {}) data, _status_code, _headers = test_inbox_ruleset_receiving_with_http_info(, opts) data end |
#test_inbox_ruleset_receiving_with_http_info(test_inbox_ruleset_receiving_options, opts = {}) ⇒ Array<(TestInboxRulesetReceivingResult, Integer, Hash)>
Test receiving with inbox rulesets Test whether inbound emails from an email address would be blocked or allowed by inbox rulesets
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 434 def test_inbox_ruleset_receiving_with_http_info(, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.test_inbox_ruleset_receiving ...' end # verify the required parameter 'test_inbox_ruleset_receiving_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'test_inbox_ruleset_receiving_options' when calling InboxRulesetControllerApi.test_inbox_ruleset_receiving" end # resource path local_var_path = '/rulesets/test-receiving' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'TestInboxRulesetReceivingResult' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#test_inbox_ruleset_receiving\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_inbox_ruleset_sending(test_inbox_ruleset_sending_options, opts = {}) ⇒ TestInboxRulesetSendingResult
Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets
488 489 490 491 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 488 def test_inbox_ruleset_sending(, opts = {}) data, _status_code, _headers = test_inbox_ruleset_sending_with_http_info(, opts) data end |
#test_inbox_ruleset_sending_with_http_info(test_inbox_ruleset_sending_options, opts = {}) ⇒ Array<(TestInboxRulesetSendingResult, Integer, Hash)>
Test sending with inbox rulesets Test whether outbound emails to an email address would be blocked or allowed by inbox rulesets
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 498 def test_inbox_ruleset_sending_with_http_info(, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.test_inbox_ruleset_sending ...' end # verify the required parameter 'test_inbox_ruleset_sending_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'test_inbox_ruleset_sending_options' when calling InboxRulesetControllerApi.test_inbox_ruleset_sending" end # resource path local_var_path = '/rulesets/test-sending' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'TestInboxRulesetSendingResult' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#test_inbox_ruleset_sending\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_inbox_ruleset_with_http_info(id, inbox_ruleset_test_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test an inbox ruleset Test an inbox ruleset
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 366 def test_inbox_ruleset_with_http_info(id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.test_inbox_ruleset ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling InboxRulesetControllerApi.test_inbox_ruleset" end # verify the required parameter 'inbox_ruleset_test_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'inbox_ruleset_test_options' when calling InboxRulesetControllerApi.test_inbox_ruleset" end # resource path local_var_path = '/rulesets/{id}/test'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'InboxRulesetTestResult' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#test_inbox_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_inbox_rulesets_for_inbox(inbox_id, inbox_ruleset_test_options, opts = {}) ⇒ InboxRulesetTestResult
Test inbox rulesets for inbox Test inbox rulesets for inbox
553 554 555 556 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 553 def test_inbox_rulesets_for_inbox(inbox_id, , opts = {}) data, _status_code, _headers = test_inbox_rulesets_for_inbox_with_http_info(inbox_id, , opts) data end |
#test_inbox_rulesets_for_inbox_with_http_info(inbox_id, inbox_ruleset_test_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test inbox rulesets for inbox Test inbox rulesets for inbox
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 564 def test_inbox_rulesets_for_inbox_with_http_info(inbox_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.test_inbox_rulesets_for_inbox ...' end # verify the required parameter 'inbox_id' is set if @api_client.config.client_side_validation && inbox_id.nil? fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxRulesetControllerApi.test_inbox_rulesets_for_inbox" end # verify the required parameter 'inbox_ruleset_test_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'inbox_ruleset_test_options' when calling InboxRulesetControllerApi.test_inbox_rulesets_for_inbox" end # resource path local_var_path = '/rulesets' # query parameters query_params = opts[:query_params] || {} query_params[:'inboxId'] = inbox_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'InboxRulesetTestResult' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#test_inbox_rulesets_for_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_new_inbox_ruleset(test_new_inbox_ruleset_options, opts = {}) ⇒ InboxRulesetTestResult
Test new inbox ruleset Test new inbox ruleset
623 624 625 626 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 623 def test_new_inbox_ruleset(, opts = {}) data, _status_code, _headers = test_new_inbox_ruleset_with_http_info(, opts) data end |
#test_new_inbox_ruleset_with_http_info(test_new_inbox_ruleset_options, opts = {}) ⇒ Array<(InboxRulesetTestResult, Integer, Hash)>
Test new inbox ruleset Test new inbox ruleset
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/mailslurp_client/api/inbox_ruleset_controller_api.rb', line 633 def test_new_inbox_ruleset_with_http_info(, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.test_new_inbox_ruleset ...' end # verify the required parameter 'test_new_inbox_ruleset_options' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'test_new_inbox_ruleset_options' when calling InboxRulesetControllerApi.test_new_inbox_ruleset" end # resource path local_var_path = '/rulesets' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body() # return_type return_type = opts[:return_type] || 'InboxRulesetTestResult' # auth_names auth_names = opts[:auth_names] || ['API_KEY'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InboxRulesetControllerApi#test_new_inbox_ruleset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |