ElasticEmail 4.0.11 → 4.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a579af43327bba161d78355869f905865a8734be32fdeca142e918faf7fee346
4
- data.tar.gz: c11d317b8d4cfff7253a28e8a77441766e323af98a78ab2744569a6f7682548a
3
+ metadata.gz: cdbda054427188f07760c2f3eb6e7e27892471e66338755b302ee8dbd2056e20
4
+ data.tar.gz: c21695fc7bf759627ba2b5e89145a1bebff7078f365f8b7dc2ab685a0b7c0c89
5
5
  SHA512:
6
- metadata.gz: fa45cae0270fd62f943254ea6621d0cf3c9a8542ea232c1349b2d1a7fc41778ebae11ce5acef6d3810e716afda70f70a7ff4c8d0d6d9bcb7e6e141f98d1fae12
7
- data.tar.gz: b05ac0e0f71d82a1191807819c06e0d8a8c648c97a7f95f5840377d0cd8c4e1a199b9286ede41234dc858d6b6cca1966126527a35746937a8002ed702458d437
6
+ metadata.gz: 2eb8cac315b968d1147e4defb925bd374ac893950b866cb2d054be050dd8ef9dd2512a71fc5ca5f7515b764bea9e8c61b0672df29061a6beaf1d174fd201bedc
7
+ data.tar.gz: 40389b8a3b8d520edd41686ad54cf9ec8279bbfffad13886162f0fc5a869461c3ddda6e18791ae532c95b1418b509293650716c71f78e28cfe7d77d238a8b3fd
data/README.md CHANGED
@@ -15,7 +15,7 @@ Downloadable library clients can be found in our Github repository <a target=\"_
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: 4.0.0
18
- - Package version: 4.0.11
18
+ - Package version: 4.0.12
19
19
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
20
20
 
21
21
  ## Installation
@@ -31,16 +31,16 @@ gem build ElasticEmail.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./ElasticEmail-4.0.11.gem
34
+ gem install ./ElasticEmail-4.0.12.gem
35
35
  ```
36
36
 
37
- (for development, run `gem install --dev ./ElasticEmail-4.0.11.gem` to install the development dependencies)
37
+ (for development, run `gem install --dev ./ElasticEmail-4.0.12.gem` to install the development dependencies)
38
38
 
39
39
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
40
40
 
41
41
  Finally add this to the Gemfile:
42
42
 
43
- gem 'ElasticEmail', '~> 4.0.11'
43
+ gem 'ElasticEmail', '~> 4.0.12'
44
44
 
45
45
  ### Install from Git
46
46
 
@@ -183,8 +183,9 @@ Class | Method | HTTP request | Description
183
183
  *ElasticEmail::VerificationsApi* | [**verifications_files_by_id_delete**](docs/VerificationsApi.md#verifications_files_by_id_delete) | **DELETE** /verifications/files/{id} | Delete File Verification Result
184
184
  *ElasticEmail::VerificationsApi* | [**verifications_files_by_id_result_download_get**](docs/VerificationsApi.md#verifications_files_by_id_result_download_get) | **GET** /verifications/files/{id}/result/download | Download File Verification Result
185
185
  *ElasticEmail::VerificationsApi* | [**verifications_files_by_id_result_get**](docs/VerificationsApi.md#verifications_files_by_id_result_get) | **GET** /verifications/files/{id}/result | Get Detailed File Verification Result
186
- *ElasticEmail::VerificationsApi* | [**verifications_files_post**](docs/VerificationsApi.md#verifications_files_post) | **POST** /verifications/files | Verify From File
187
- *ElasticEmail::VerificationsApi* | [**verifications_files_result_get**](docs/VerificationsApi.md#verifications_files_result_get) | **GET** /verifications/files/result | Get Simple Files Verification Results
186
+ *ElasticEmail::VerificationsApi* | [**verifications_files_by_id_verification_post**](docs/VerificationsApi.md#verifications_files_by_id_verification_post) | **POST** /verifications/files/{id}/verification | Start verification
187
+ *ElasticEmail::VerificationsApi* | [**verifications_files_post**](docs/VerificationsApi.md#verifications_files_post) | **POST** /verifications/files | Upload File with Emails
188
+ *ElasticEmail::VerificationsApi* | [**verifications_files_result_get**](docs/VerificationsApi.md#verifications_files_result_get) | **GET** /verifications/files/result | Get Files Verification Results
188
189
  *ElasticEmail::VerificationsApi* | [**verifications_get**](docs/VerificationsApi.md#verifications_get) | **GET** /verifications | Get Emails Verification Results
189
190
 
190
191
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.11
1
+ 4.0.12
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **binary_content** | **String** | | [optional] |
8
- | **name** | **String** | Filename | [optional] |
9
- | **content_type** | **String** | | [optional] |
7
+ | **binary_content** | **String** | File&#39;s content as byte array (or a Base64 string) | [optional] |
8
+ | **name** | **String** | Display name of the file | [optional] |
9
+ | **content_type** | **String** | MIME content type | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -15,7 +15,7 @@ require 'ElasticEmail'
15
15
 
16
16
  instance = ElasticEmail::MessageAttachment.new(
17
17
  binary_content: null,
18
- name: attachment.txt,
18
+ name: null,
19
19
  content_type: null
20
20
  )
21
21
  ```
@@ -10,8 +10,9 @@ All URIs are relative to *https://api.elasticemail.com/v4*
10
10
  | [**verifications_files_by_id_delete**](VerificationsApi.md#verifications_files_by_id_delete) | **DELETE** /verifications/files/{id} | Delete File Verification Result |
11
11
  | [**verifications_files_by_id_result_download_get**](VerificationsApi.md#verifications_files_by_id_result_download_get) | **GET** /verifications/files/{id}/result/download | Download File Verification Result |
12
12
  | [**verifications_files_by_id_result_get**](VerificationsApi.md#verifications_files_by_id_result_get) | **GET** /verifications/files/{id}/result | Get Detailed File Verification Result |
13
- | [**verifications_files_post**](VerificationsApi.md#verifications_files_post) | **POST** /verifications/files | Verify From File |
14
- | [**verifications_files_result_get**](VerificationsApi.md#verifications_files_result_get) | **GET** /verifications/files/result | Get Simple Files Verification Results |
13
+ | [**verifications_files_by_id_verification_post**](VerificationsApi.md#verifications_files_by_id_verification_post) | **POST** /verifications/files/{id}/verification | Start verification |
14
+ | [**verifications_files_post**](VerificationsApi.md#verifications_files_post) | **POST** /verifications/files | Upload File with Emails |
15
+ | [**verifications_files_result_get**](VerificationsApi.md#verifications_files_result_get) | **GET** /verifications/files/result | Get Files Verification Results |
15
16
  | [**verifications_get**](VerificationsApi.md#verifications_get) | **GET** /verifications | Get Emails Verification Results |
16
17
 
17
18
 
@@ -445,13 +446,83 @@ end
445
446
  - **Accept**: application/json
446
447
 
447
448
 
449
+ ## verifications_files_by_id_verification_post
450
+
451
+ > verifications_files_by_id_verification_post(id)
452
+
453
+ Start verification
454
+
455
+ Start a verification of the previously uploaded file with emails. Required Access Level: VerifyEmails
456
+
457
+ ### Examples
458
+
459
+ ```ruby
460
+ require 'time'
461
+ require 'ElasticEmail'
462
+ # setup authorization
463
+ ElasticEmail.configure do |config|
464
+ # Configure API key authorization: apikey
465
+ config.api_key['apikey'] = 'YOUR API KEY'
466
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
467
+ # config.api_key_prefix['apikey'] = 'Bearer'
468
+ end
469
+
470
+ api_instance = ElasticEmail::VerificationsApi.new
471
+ id = 'id_example' # String | File ID to start verification
472
+
473
+ begin
474
+ # Start verification
475
+ api_instance.verifications_files_by_id_verification_post(id)
476
+ rescue ElasticEmail::ApiError => e
477
+ puts "Error when calling VerificationsApi->verifications_files_by_id_verification_post: #{e}"
478
+ end
479
+ ```
480
+
481
+ #### Using the verifications_files_by_id_verification_post_with_http_info variant
482
+
483
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
484
+
485
+ > <Array(nil, Integer, Hash)> verifications_files_by_id_verification_post_with_http_info(id)
486
+
487
+ ```ruby
488
+ begin
489
+ # Start verification
490
+ data, status_code, headers = api_instance.verifications_files_by_id_verification_post_with_http_info(id)
491
+ p status_code # => 2xx
492
+ p headers # => { ... }
493
+ p data # => nil
494
+ rescue ElasticEmail::ApiError => e
495
+ puts "Error when calling VerificationsApi->verifications_files_by_id_verification_post_with_http_info: #{e}"
496
+ end
497
+ ```
498
+
499
+ ### Parameters
500
+
501
+ | Name | Type | Description | Notes |
502
+ | ---- | ---- | ----------- | ----- |
503
+ | **id** | **String** | File ID to start verification | |
504
+
505
+ ### Return type
506
+
507
+ nil (empty response body)
508
+
509
+ ### Authorization
510
+
511
+ [apikey](../README.md#apikey)
512
+
513
+ ### HTTP request headers
514
+
515
+ - **Content-Type**: Not defined
516
+ - **Accept**: Not defined
517
+
518
+
448
519
  ## verifications_files_post
449
520
 
450
521
  > <VerificationFileResult> verifications_files_post(opts)
451
522
 
452
- Verify From File
523
+ Upload File with Emails
453
524
 
454
- Uploads a CSV file with list of emails to verify. An 'email' column is required. Required Access Level: VerifyEmails
525
+ Uploads a CSV file with list of emails that can then be triggered for verification. An 'email' column is required. Required Access Level: VerifyEmails
455
526
 
456
527
  ### Examples
457
528
 
@@ -472,7 +543,7 @@ opts = {
472
543
  }
473
544
 
474
545
  begin
475
- # Verify From File
546
+ # Upload File with Emails
476
547
  result = api_instance.verifications_files_post(opts)
477
548
  p result
478
549
  rescue ElasticEmail::ApiError => e
@@ -488,7 +559,7 @@ This returns an Array which contains the response data, status code and headers.
488
559
 
489
560
  ```ruby
490
561
  begin
491
- # Verify From File
562
+ # Upload File with Emails
492
563
  data, status_code, headers = api_instance.verifications_files_post_with_http_info(opts)
493
564
  p status_code # => 2xx
494
565
  p headers # => { ... }
@@ -522,7 +593,7 @@ end
522
593
 
523
594
  > <Array<VerificationFileResult>> verifications_files_result_get
524
595
 
525
- Get Simple Files Verification Results
596
+ Get Files Verification Results
526
597
 
527
598
  Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
528
599
 
@@ -542,7 +613,7 @@ end
542
613
  api_instance = ElasticEmail::VerificationsApi.new
543
614
 
544
615
  begin
545
- # Get Simple Files Verification Results
616
+ # Get Files Verification Results
546
617
  result = api_instance.verifications_files_result_get
547
618
  p result
548
619
  rescue ElasticEmail::ApiError => e
@@ -558,7 +629,7 @@ This returns an Array which contains the response data, status code and headers.
558
629
 
559
630
  ```ruby
560
631
  begin
561
- # Get Simple Files Verification Results
632
+ # Get Files Verification Results
562
633
  data, status_code, headers = api_instance.verifications_files_result_get_with_http_info
563
634
  p status_code # => 2xx
564
635
  p headers # => { ... }
@@ -399,8 +399,69 @@ module ElasticEmail
399
399
  return data, status_code, headers
400
400
  end
401
401
 
402
- # Verify From File
403
- # Uploads a CSV file with list of emails to verify. An 'email' column is required. Required Access Level: VerifyEmails
402
+ # Start verification
403
+ # Start a verification of the previously uploaded file with emails. Required Access Level: VerifyEmails
404
+ # @param id [String] File ID to start verification
405
+ # @param [Hash] opts the optional parameters
406
+ # @return [nil]
407
+ def verifications_files_by_id_verification_post(id, opts = {})
408
+ verifications_files_by_id_verification_post_with_http_info(id, opts)
409
+ nil
410
+ end
411
+
412
+ # Start verification
413
+ # Start a verification of the previously uploaded file with emails. Required Access Level: VerifyEmails
414
+ # @param id [String] File ID to start verification
415
+ # @param [Hash] opts the optional parameters
416
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
417
+ def verifications_files_by_id_verification_post_with_http_info(id, opts = {})
418
+ if @api_client.config.debugging
419
+ @api_client.config.logger.debug 'Calling API: VerificationsApi.verifications_files_by_id_verification_post ...'
420
+ end
421
+ # verify the required parameter 'id' is set
422
+ if @api_client.config.client_side_validation && id.nil?
423
+ fail ArgumentError, "Missing the required parameter 'id' when calling VerificationsApi.verifications_files_by_id_verification_post"
424
+ end
425
+ # resource path
426
+ local_var_path = '/verifications/files/{id}/verification'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
427
+
428
+ # query parameters
429
+ query_params = opts[:query_params] || {}
430
+
431
+ # header parameters
432
+ header_params = opts[:header_params] || {}
433
+
434
+ # form parameters
435
+ form_params = opts[:form_params] || {}
436
+
437
+ # http body (model)
438
+ post_body = opts[:debug_body]
439
+
440
+ # return_type
441
+ return_type = opts[:debug_return_type]
442
+
443
+ # auth_names
444
+ auth_names = opts[:debug_auth_names] || ['apikey']
445
+
446
+ new_options = opts.merge(
447
+ :operation => :"VerificationsApi.verifications_files_by_id_verification_post",
448
+ :header_params => header_params,
449
+ :query_params => query_params,
450
+ :form_params => form_params,
451
+ :body => post_body,
452
+ :auth_names => auth_names,
453
+ :return_type => return_type
454
+ )
455
+
456
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: VerificationsApi#verifications_files_by_id_verification_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
462
+
463
+ # Upload File with Emails
464
+ # Uploads a CSV file with list of emails that can then be triggered for verification. An 'email' column is required. Required Access Level: VerifyEmails
404
465
  # @param [Hash] opts the optional parameters
405
466
  # @option opts [File] :file
406
467
  # @return [VerificationFileResult]
@@ -409,8 +470,8 @@ module ElasticEmail
409
470
  data
410
471
  end
411
472
 
412
- # Verify From File
413
- # Uploads a CSV file with list of emails to verify. An &#39;email&#39; column is required. Required Access Level: VerifyEmails
473
+ # Upload File with Emails
474
+ # Uploads a CSV file with list of emails that can then be triggered for verification. An &#39;email&#39; column is required. Required Access Level: VerifyEmails
414
475
  # @param [Hash] opts the optional parameters
415
476
  # @option opts [File] :file
416
477
  # @return [Array<(VerificationFileResult, Integer, Hash)>] VerificationFileResult data, response status code and response headers
@@ -461,7 +522,7 @@ module ElasticEmail
461
522
  return data, status_code, headers
462
523
  end
463
524
 
464
- # Get Simple Files Verification Results
525
+ # Get Files Verification Results
465
526
  # Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
466
527
  # @param [Hash] opts the optional parameters
467
528
  # @return [Array<VerificationFileResult>]
@@ -470,7 +531,7 @@ module ElasticEmail
470
531
  data
471
532
  end
472
533
 
473
- # Get Simple Files Verification Results
534
+ # Get Files Verification Results
474
535
  # Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
475
536
  # @param [Hash] opts the optional parameters
476
537
  # @return [Array<(Array<VerificationFileResult>, Integer, Hash)>] Array<VerificationFileResult> data, response status code and response headers
@@ -15,11 +15,13 @@ require 'time'
15
15
 
16
16
  module ElasticEmail
17
17
  class MessageAttachment
18
+ # File's content as byte array (or a Base64 string)
18
19
  attr_accessor :binary_content
19
20
 
20
- # Filename
21
+ # Display name of the file
21
22
  attr_accessor :name
22
23
 
24
+ # MIME content type
23
25
  attr_accessor :content_type
24
26
 
25
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module ElasticEmail
14
- VERSION = '4.0.11'
14
+ VERSION = '4.0.12'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ElasticEmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.11
4
+ version: 4.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - ElasticEmail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus