cloudmersive-virus-scan-api-client 2.0.7 → 2.0.8

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: 3fdcb9abb84157588a2d7ac8fa456d7c5044aefec34b4019313e115714ec0556
4
- data.tar.gz: 341629a0efaf466be326a2e95e39d6117b96a5f92e7524723cc667028f9ab182
3
+ metadata.gz: 1b762571ff934d137c5751166fbb12cb0dd7f264ce0fddd1f76def26bf1711a2
4
+ data.tar.gz: 5e8b4b4ad1ba81166557d7f84cf20b2cfe0544917b751d9f4f42b306a2a684fa
5
5
  SHA512:
6
- metadata.gz: 9f85f82827d3b6b9114060c760ad402bed18fcee9789906ba7fb6538d6cd532be0a100024c14a0fef03a58c67285642a3d710923d3336744631270985385dd86
7
- data.tar.gz: 559a7cf44416d36b05d563bcd99884ac90656311262c3c9c4c79b7771e74c2d0c9ee5e2a1e50e935a83c5f6edf2cf01b3ea9330270c6bb329588292e2b0d2b56
6
+ metadata.gz: 3cec4d55a6dcd9c41fc6a709da6ded1e528e990bed765539fbd60cd492fd061f523655f4856dfa6e49fe24da9673bafca713995d83ee32588b4f5c4905a0ca00
7
+ data.tar.gz: b802d30f3e9c32cd3ed65c50112b8688c25bc28b513fc33e7f2f2a77a65f1cf000d9ad9e3178dd8e83a869e9a9b3551a710db354ce9b4532ae2e7abddf21e732
data/README.md CHANGED
@@ -7,7 +7,7 @@ The Cloudmersive Virus Scan API lets you scan files and content for viruses and
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.0.7
10
+ - Package version: 2.0.8
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-virus-scan-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-virus-scan-api-client-2.0.7.gem
26
+ gem install ./cloudmersive-virus-scan-api-client-2.0.8.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-2.0.7.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-virus-scan-api-client-2.0.8.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-virus-scan-api-client', '~> 2.0.7'
34
+ gem 'cloudmersive-virus-scan-api-client', '~> 2.0.8'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -466,7 +466,8 @@ site_id = 'site_id_example' # String | Site ID (GUID) of the SharePoint site you
466
466
  file_path = 'file_path_example' # String | Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
467
467
 
468
468
  opts = {
469
- tenant_id: 'tenant_id_example' # String | Optional; Tenant ID of your Azure Active Directory
469
+ tenant_id: 'tenant_id_example', # String | Optional; Tenant ID of your Azure Active Directory
470
+ item_id: 'item_id_example' # String | SharePoint itemID, such as a DriveItem Id
470
471
  }
471
472
 
472
473
  begin
@@ -488,6 +489,7 @@ Name | Type | Description | Notes
488
489
  **site_id** | **String**| Site ID (GUID) of the SharePoint site you wish to retrieve the file from |
489
490
  **file_path** | **String**| Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf' |
490
491
  **tenant_id** | **String**| Optional; Tenant ID of your Azure Active Directory | [optional]
492
+ **item_id** | **String**| SharePoint itemID, such as a DriveItem Id | [optional]
491
493
 
492
494
  ### Return type
493
495
 
@@ -505,7 +507,7 @@ Name | Type | Description | Notes
505
507
 
506
508
 
507
509
  # **scan_cloud_storage_scan_share_point_online_file_advanced**
508
- > CloudStorageAdvancedVirusScanResult scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts)
510
+ > CloudStorageAdvancedVirusScanResult scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, opts)
509
511
 
510
512
  Advanced Virus Scan a file in a SharePoint Online Site Drive
511
513
 
@@ -533,10 +535,10 @@ sharepoint_domain_name = 'sharepoint_domain_name_example' # String | SharePoint
533
535
 
534
536
  site_id = 'site_id_example' # String | Site ID (GUID) of the SharePoint site you wish to retrieve the file from
535
537
 
536
- file_path = 'file_path_example' # String | Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
537
-
538
538
  opts = {
539
539
  tenant_id: 'tenant_id_example', # String | Optional; Tenant ID of your Azure Active Directory
540
+ file_path: 'file_path_example', # String | Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
541
+ item_id: 'item_id_example', # String | SharePoint itemID, such as a DriveItem Id
540
542
  allow_executables: true, # BOOLEAN | Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
541
543
  allow_invalid_files: true, # BOOLEAN | Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended).
542
544
  allow_scripts: true, # BOOLEAN | Set to false to block script files, such as a PHP files, Python scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended).
@@ -548,7 +550,7 @@ opts = {
548
550
 
549
551
  begin
550
552
  #Advanced Virus Scan a file in a SharePoint Online Site Drive
551
- result = api_instance.scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts)
553
+ result = api_instance.scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, opts)
552
554
  p result
553
555
  rescue CloudmersiveVirusScanApiClient::ApiError => e
554
556
  puts "Exception when calling ScanCloudStorageApi->scan_cloud_storage_scan_share_point_online_file_advanced: #{e}"
@@ -563,8 +565,9 @@ Name | Type | Description | Notes
563
565
  **client_secret** | **String**| Client Secret access credentials; see description above for instructions on how to get the Client Secret from the Azure Active Directory portal |
564
566
  **sharepoint_domain_name** | **String**| SharePoint Online domain name, such as mydomain.sharepoint.com |
565
567
  **site_id** | **String**| Site ID (GUID) of the SharePoint site you wish to retrieve the file from |
566
- **file_path** | **String**| Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf' |
567
568
  **tenant_id** | **String**| Optional; Tenant ID of your Azure Active Directory | [optional]
569
+ **file_path** | **String**| Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf' | [optional]
570
+ **item_id** | **String**| SharePoint itemID, such as a DriveItem Id | [optional]
568
571
  **allow_executables** | **BOOLEAN**| Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended). | [optional]
569
572
  **allow_invalid_files** | **BOOLEAN**| Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended). | [optional]
570
573
  **allow_scripts** | **BOOLEAN**| Set to false to block script files, such as a PHP files, Python scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended). | [optional]
@@ -533,6 +533,7 @@ module CloudmersiveVirusScanApiClient
533
533
  # @param file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
534
534
  # @param [Hash] opts the optional parameters
535
535
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
536
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
536
537
  # @return [CloudStorageVirusScanResult]
537
538
  def scan_cloud_storage_scan_share_point_online_file(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts = {})
538
539
  data, _status_code, _headers = scan_cloud_storage_scan_share_point_online_file_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts)
@@ -548,6 +549,7 @@ module CloudmersiveVirusScanApiClient
548
549
  # @param file_path Path to the file within the drive, such as 'hello.pdf' or '/folder/subfolder/world.pdf'
549
550
  # @param [Hash] opts the optional parameters
550
551
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
552
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
551
553
  # @return [Array<(CloudStorageVirusScanResult, Fixnum, Hash)>] CloudStorageVirusScanResult data, response status code and response headers
552
554
  def scan_cloud_storage_scan_share_point_online_file_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts = {})
553
555
  if @api_client.config.debugging
@@ -591,6 +593,7 @@ module CloudmersiveVirusScanApiClient
591
593
  header_params[:'siteID'] = site_id
592
594
  header_params[:'filePath'] = file_path
593
595
  header_params[:'tenantID'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil?
596
+ header_params[:'itemID'] = opts[:'item_id'] if !opts[:'item_id'].nil?
594
597
 
595
598
  # form parameters
596
599
  form_params = {}
@@ -616,9 +619,10 @@ module CloudmersiveVirusScanApiClient
616
619
  # @param client_secret Client Secret access credentials; see description above for instructions on how to get the Client Secret from the Azure Active Directory portal
617
620
  # @param sharepoint_domain_name SharePoint Online domain name, such as mydomain.sharepoint.com
618
621
  # @param site_id Site ID (GUID) of the SharePoint site you wish to retrieve the file from
619
- # @param file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
620
622
  # @param [Hash] opts the optional parameters
621
623
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
624
+ # @option opts [String] :file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
625
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
622
626
  # @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
623
627
  # @option opts [BOOLEAN] :allow_invalid_files Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended).
624
628
  # @option opts [BOOLEAN] :allow_scripts Set to false to block script files, such as a PHP files, Python scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended).
@@ -627,8 +631,8 @@ module CloudmersiveVirusScanApiClient
627
631
  # @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
628
632
  # @option opts [String] :restrict_file_types Specify a restricted set of file formats to allow as clean as a comma-separated list of file formats, such as .pdf,.docx,.png would allow only PDF, PNG and Word document files. All files must pass content verification against this list of file formats, if they do not, then the result will be returned as CleanResult&#x3D;false. Set restrictFileTypes parameter to null or empty string to disable; default is disabled.
629
633
  # @return [CloudStorageAdvancedVirusScanResult]
630
- def scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts = {})
631
- data, _status_code, _headers = scan_cloud_storage_scan_share_point_online_file_advanced_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts)
634
+ def scan_cloud_storage_scan_share_point_online_file_advanced(client_id, client_secret, sharepoint_domain_name, site_id, opts = {})
635
+ data, _status_code, _headers = scan_cloud_storage_scan_share_point_online_file_advanced_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, opts)
632
636
  data
633
637
  end
634
638
 
@@ -638,9 +642,10 @@ module CloudmersiveVirusScanApiClient
638
642
  # @param client_secret Client Secret access credentials; see description above for instructions on how to get the Client Secret from the Azure Active Directory portal
639
643
  # @param sharepoint_domain_name SharePoint Online domain name, such as mydomain.sharepoint.com
640
644
  # @param site_id Site ID (GUID) of the SharePoint site you wish to retrieve the file from
641
- # @param file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
642
645
  # @param [Hash] opts the optional parameters
643
646
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
647
+ # @option opts [String] :file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
648
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
644
649
  # @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
645
650
  # @option opts [BOOLEAN] :allow_invalid_files Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended).
646
651
  # @option opts [BOOLEAN] :allow_scripts Set to false to block script files, such as a PHP files, Python scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended).
@@ -649,7 +654,7 @@ module CloudmersiveVirusScanApiClient
649
654
  # @option opts [BOOLEAN] :allow_xml_external_entities Set to false to block XML External Entities and other threats embedded in XML files, and other files that contain embedded content threats. Set to true to allow these file types. Default is false (recommended).
650
655
  # @option opts [String] :restrict_file_types Specify a restricted set of file formats to allow as clean as a comma-separated list of file formats, such as .pdf,.docx,.png would allow only PDF, PNG and Word document files. All files must pass content verification against this list of file formats, if they do not, then the result will be returned as CleanResult&#x3D;false. Set restrictFileTypes parameter to null or empty string to disable; default is disabled.
651
656
  # @return [Array<(CloudStorageAdvancedVirusScanResult, Fixnum, Hash)>] CloudStorageAdvancedVirusScanResult data, response status code and response headers
652
- def scan_cloud_storage_scan_share_point_online_file_advanced_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, file_path, opts = {})
657
+ def scan_cloud_storage_scan_share_point_online_file_advanced_with_http_info(client_id, client_secret, sharepoint_domain_name, site_id, opts = {})
653
658
  if @api_client.config.debugging
654
659
  @api_client.config.logger.debug 'Calling API: ScanCloudStorageApi.scan_cloud_storage_scan_share_point_online_file_advanced ...'
655
660
  end
@@ -669,10 +674,6 @@ module CloudmersiveVirusScanApiClient
669
674
  if @api_client.config.client_side_validation && site_id.nil?
670
675
  fail ArgumentError, "Missing the required parameter 'site_id' when calling ScanCloudStorageApi.scan_cloud_storage_scan_share_point_online_file_advanced"
671
676
  end
672
- # verify the required parameter 'file_path' is set
673
- if @api_client.config.client_side_validation && file_path.nil?
674
- fail ArgumentError, "Missing the required parameter 'file_path' when calling ScanCloudStorageApi.scan_cloud_storage_scan_share_point_online_file_advanced"
675
- end
676
677
  # resource path
677
678
  local_var_path = '/virus/scan/cloud-storage/sharepoint-online/site/advanced'
678
679
 
@@ -689,8 +690,9 @@ module CloudmersiveVirusScanApiClient
689
690
  header_params[:'clientSecret'] = client_secret
690
691
  header_params[:'sharepointDomainName'] = sharepoint_domain_name
691
692
  header_params[:'siteID'] = site_id
692
- header_params[:'filePath'] = file_path
693
693
  header_params[:'tenantID'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil?
694
+ header_params[:'filePath'] = opts[:'file_path'] if !opts[:'file_path'].nil?
695
+ header_params[:'itemID'] = opts[:'item_id'] if !opts[:'item_id'].nil?
694
696
  header_params[:'allowExecutables'] = opts[:'allow_executables'] if !opts[:'allow_executables'].nil?
695
697
  header_params[:'allowInvalidFiles'] = opts[:'allow_invalid_files'] if !opts[:'allow_invalid_files'].nil?
696
698
  header_params[:'allowScripts'] = opts[:'allow_scripts'] if !opts[:'allow_scripts'].nil?
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.14
11
11
  =end
12
12
 
13
13
  module CloudmersiveVirusScanApiClient
14
- VERSION = '2.0.7'
14
+ VERSION = '2.0.8'
15
15
  end
@@ -151,6 +151,7 @@ describe 'ScanCloudStorageApi' do
151
151
  # @param file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
152
152
  # @param [Hash] opts the optional parameters
153
153
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
154
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
154
155
  # @return [CloudStorageVirusScanResult]
155
156
  describe 'scan_cloud_storage_scan_share_point_online_file test' do
156
157
  it 'should work' do
@@ -165,9 +166,10 @@ describe 'ScanCloudStorageApi' do
165
166
  # @param client_secret Client Secret access credentials; see description above for instructions on how to get the Client Secret from the Azure Active Directory portal
166
167
  # @param sharepoint_domain_name SharePoint Online domain name, such as mydomain.sharepoint.com
167
168
  # @param site_id Site ID (GUID) of the SharePoint site you wish to retrieve the file from
168
- # @param file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @option opts [String] :tenant_id Optional; Tenant ID of your Azure Active Directory
171
+ # @option opts [String] :file_path Path to the file within the drive, such as &#39;hello.pdf&#39; or &#39;/folder/subfolder/world.pdf&#39;
172
+ # @option opts [String] :item_id SharePoint itemID, such as a DriveItem Id
171
173
  # @option opts [BOOLEAN] :allow_executables Set to false to block executable files (program code) from being allowed in the input file. Default is false (recommended).
172
174
  # @option opts [BOOLEAN] :allow_invalid_files Set to false to block invalid files, such as a PDF file that is not really a valid PDF file, or a Word Document that is not a valid Word Document. Default is false (recommended).
173
175
  # @option opts [BOOLEAN] :allow_scripts Set to false to block script files, such as a PHP files, Python scripts, and other malicious content or security threats that can be embedded in the file. Set to true to allow these file types. Default is false (recommended).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-virus-scan-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus