aspose_imaging_cloud 20.5 → 20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/lib/aspose-imaging-cloud.rb +4 -4
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +24 -16
- data/lib/aspose-imaging-cloud/api_client.rb +1 -1
- data/lib/aspose-imaging-cloud/models/available_labels_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/detected_object_list.rb +3 -3
- data/lib/aspose-imaging-cloud/models/dicom_properties.rb +4 -64
- data/lib/aspose-imaging-cloud/models/requests/{save_image_as_request.rb → convert_image_request.rb} +7 -7
- data/lib/aspose-imaging-cloud/models/requests/{create_saved_image_as_request.rb → create_converted_image_request.rb} +7 -7
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/{object_bounds_request.rb → get_available_labels_request.rb} +9 -28
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -0
- metadata +6 -6
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +0 -94
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7323690ef4d1fbbf5caa5a813aa511300874743424f16d3ae12d389066141bd7
         | 
| 4 | 
            +
              data.tar.gz: 77984c4b8d7d6d58f548ea03db997737a63dc977cc85033626cf12ea1f50d253
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 683a8ff5762180e05396eab9b4ade48dc5ce254f58ee6398bfab358c997265c97043aa873c2c33644be55c9fcfba9818fda3b898ca0a524b3556061ae35a5749
         | 
| 7 | 
            +
              data.tar.gz: 6b00cdb1e5d6baa8122b6d7ad7c56eeef5da1fa8065b5ba33308d6cfbdbcbaacf4acb3ef4d591f32450de9847df7d08cc1540744c2201f80b09c9dfd2b8f6603
         | 
    
        data/README.md
    CHANGED
    
    | @@ -31,7 +31,7 @@ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.or | |
| 31 31 |  | 
| 32 32 | 
             
            Finally add this to the Gemfile:
         | 
| 33 33 |  | 
| 34 | 
            -
                gem 'aspose-imaging-cloud', '~> 20. | 
| 34 | 
            +
                gem 'aspose-imaging-cloud', '~> 20.6'
         | 
| 35 35 |  | 
| 36 36 | 
             
            ### Install from Git
         | 
| 37 37 |  | 
| @@ -100,7 +100,7 @@ Class | Method | HTTP request | Description | |
| 100 100 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_grayscaled_image**](docs/ImagingApi.md#create_grayscaled_image) | **POST** /imaging/grayscale | Grayscales an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 101 101 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_image_features**](docs/ImagingApi.md#create_image_features) | **POST** /imaging/ai/imageSearch/{searchContextId}/features | Extract images features and add them to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 102 102 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_image_frame**](docs/ImagingApi.md#create_image_frame) | **POST** /imaging/frames/{frameId} | Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 103 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**create_image_frame_range**](docs/ImagingApi.md#create_image_frame_range) | **POST** /imaging/frames/range | Get  | 
| 103 | 
            +
            *AsposeImagingCloud::ImagingApi* | [**create_image_frame_range**](docs/ImagingApi.md#create_image_frame_range) | **POST** /imaging/frames/range | Get frames range from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 104 104 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_image_search**](docs/ImagingApi.md#create_image_search) | **POST** /imaging/ai/imageSearch/create | Create new search context.
         | 
| 105 105 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_image_tag**](docs/ImagingApi.md#create_image_tag) | **POST** /imaging/ai/imageSearch/{searchContextId}/addTag | Add tag and reference image to search context. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 106 106 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_modified_bmp**](docs/ImagingApi.md#create_modified_bmp) | **POST** /imaging/bmp | Update parameters of BMP image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| @@ -116,9 +116,8 @@ Class | Method | HTTP request | Description | |
| 116 116 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_object_bounds**](docs/ImagingApi.md#create_object_bounds) | **POST** /imaging/ai/objectdetection/bounds | Detects objects bounds. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 117 117 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_resized_image**](docs/ImagingApi.md#create_resized_image) | **POST** /imaging/resize | Resize an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 118 118 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_rotate_flipped_image**](docs/ImagingApi.md#create_rotate_flipped_image) | **POST** /imaging/rotateflip | Rotate and/or flip an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 119 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**create_saved_image_as**](docs/ImagingApi.md#create_saved_image_as) | **POST** /imaging/saveAs | Export existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.             
         | 
| 120 119 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_updated_image**](docs/ImagingApi.md#create_updated_image) | **POST** /imaging/updateImage | Perform scaling, cropping and flipping of an image in a single request. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 121 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**create_visual_object_bounds**](docs/ImagingApi.md#create_visual_object_bounds) | **POST** /imaging/ai/objectdetection/visualbounds |  | 
| 120 | 
            +
            *AsposeImagingCloud::ImagingApi* | [**create_visual_object_bounds**](docs/ImagingApi.md#create_visual_object_bounds) | **POST** /imaging/ai/objectdetection/visualbounds | Detects objects bounds and draw them on the original image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream
         | 
| 122 121 | 
             
            *AsposeImagingCloud::ImagingApi* | [**create_web_site_image_features**](docs/ImagingApi.md#create_web_site_image_features) | **POST** /imaging/ai/imageSearch/{searchContextId}/features/web | Extract images features from web page and add them to search context
         | 
| 123 122 | 
             
            *AsposeImagingCloud::ImagingApi* | [**crop_image**](docs/ImagingApi.md#crop_image) | **GET** /imaging/{name}/crop | Crop an existing image.
         | 
| 124 123 | 
             
            *AsposeImagingCloud::ImagingApi* | [**delete_file**](docs/ImagingApi.md#delete_file) | **DELETE** /imaging/storage/file/{path} | Delete file
         | 
| @@ -144,7 +143,9 @@ Class | Method | HTTP request | Description | |
| 144 143 | 
             
            *AsposeImagingCloud::ImagingApi* | [**get_image_frame_range**](docs/ImagingApi.md#get_image_frame_range) | **GET** /imaging/{name}/frames/range | Get frames range from existing image.
         | 
| 145 144 | 
             
            *AsposeImagingCloud::ImagingApi* | [**get_image_properties**](docs/ImagingApi.md#get_image_properties) | **GET** /imaging/{name}/properties | Get properties of an image.
         | 
| 146 145 | 
             
            *AsposeImagingCloud::ImagingApi* | [**get_image_search_status**](docs/ImagingApi.md#get_image_search_status) | **GET** /imaging/ai/imageSearch/{searchContextId}/status | Gets the search context status.
         | 
| 146 | 
            +
            *AsposeImagingCloud::ImagingApi* | [**get_object_bounds**](docs/ImagingApi.md#get_object_bounds) | **GET** /imaging/ai/objectdetection/{name}/bounds | Detects objects' bounds
         | 
| 147 147 | 
             
            *AsposeImagingCloud::ImagingApi* | [**get_search_image**](docs/ImagingApi.md#get_search_image) | **GET** /imaging/ai/imageSearch/{searchContextId}/image | Get image from search context
         | 
| 148 | 
            +
            *AsposeImagingCloud::ImagingApi* | [**get_visual_object_bounds**](docs/ImagingApi.md#get_visual_object_bounds) | **GET** /imaging/ai/objectdetection/{name}/visualbounds | Detects objects bounds and draw them on the original image
         | 
| 148 149 | 
             
            *AsposeImagingCloud::ImagingApi* | [**grayscale_image**](docs/ImagingApi.md#grayscale_image) | **GET** /imaging/{name}/grayscale | Grayscale an existing image.
         | 
| 149 150 | 
             
            *AsposeImagingCloud::ImagingApi* | [**modify_bmp**](docs/ImagingApi.md#modify_bmp) | **GET** /imaging/{name}/bmp | Update parameters of existing BMP image.
         | 
| 150 151 | 
             
            *AsposeImagingCloud::ImagingApi* | [**modify_emf**](docs/ImagingApi.md#modify_emf) | **GET** /imaging/{name}/emf | Process existing EMF imaging using given parameters.
         | 
| @@ -158,17 +159,14 @@ Class | Method | HTTP request | Description | |
| 158 159 | 
             
            *AsposeImagingCloud::ImagingApi* | [**modify_wmf**](docs/ImagingApi.md#modify_wmf) | **GET** /imaging/{name}/wmf | Process existing WMF image using given parameters.
         | 
| 159 160 | 
             
            *AsposeImagingCloud::ImagingApi* | [**move_file**](docs/ImagingApi.md#move_file) | **PUT** /imaging/storage/file/move/{srcPath} | Move file
         | 
| 160 161 | 
             
            *AsposeImagingCloud::ImagingApi* | [**move_folder**](docs/ImagingApi.md#move_folder) | **PUT** /imaging/storage/folder/move/{srcPath} | Move folder
         | 
| 161 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**object_bounds**](docs/ImagingApi.md#object_bounds) | **GET** /imaging/ai/objectdetection/bounds | Detect objects' bounds
         | 
| 162 162 | 
             
            *AsposeImagingCloud::ImagingApi* | [**object_exists**](docs/ImagingApi.md#object_exists) | **GET** /imaging/storage/exist/{path} | Check if file or folder exists
         | 
| 163 163 | 
             
            *AsposeImagingCloud::ImagingApi* | [**resize_image**](docs/ImagingApi.md#resize_image) | **GET** /imaging/{name}/resize | Resize an existing image.
         | 
| 164 164 | 
             
            *AsposeImagingCloud::ImagingApi* | [**rotate_flip_image**](docs/ImagingApi.md#rotate_flip_image) | **GET** /imaging/{name}/rotateflip | Rotate and/or flip an existing image.
         | 
| 165 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**save_image_as**](docs/ImagingApi.md#save_image_as) | **GET** /imaging/{name}/saveAs | Export existing image to another format.
         | 
| 166 165 | 
             
            *AsposeImagingCloud::ImagingApi* | [**storage_exists**](docs/ImagingApi.md#storage_exists) | **GET** /imaging/storage/{storageName}/exist | Check if storage exists
         | 
| 167 166 | 
             
            *AsposeImagingCloud::ImagingApi* | [**update_image**](docs/ImagingApi.md#update_image) | **GET** /imaging/{name}/updateImage | Perform scaling, cropping and flipping of an existing image in a single request.
         | 
| 168 167 | 
             
            *AsposeImagingCloud::ImagingApi* | [**update_image_features**](docs/ImagingApi.md#update_image_features) | **PUT** /imaging/ai/imageSearch/{searchContextId}/features | Update images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 169 168 | 
             
            *AsposeImagingCloud::ImagingApi* | [**update_search_image**](docs/ImagingApi.md#update_search_image) | **PUT** /imaging/ai/imageSearch/{searchContextId}/image | Update image and images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 170 169 | 
             
            *AsposeImagingCloud::ImagingApi* | [**upload_file**](docs/ImagingApi.md#upload_file) | **PUT** /imaging/storage/file/{path} | Upload file
         | 
| 171 | 
            -
            *AsposeImagingCloud::ImagingApi* | [**visual_object_bounds**](docs/ImagingApi.md#visual_object_bounds) | **GET** /imaging/ai/objectdetection/visualbounds | Detect objects bounds and draw them on the original image
         | 
| 172 170 |  | 
| 173 171 |  | 
| 174 172 | 
             
            ## Documentation for Models
         | 
    
        data/lib/aspose-imaging-cloud.rb
    CHANGED
    
    | @@ -31,6 +31,7 @@ require_relative './aspose-imaging-cloud/version' | |
| 31 31 | 
             
            require_relative './aspose-imaging-cloud/configuration'
         | 
| 32 32 |  | 
| 33 33 | 
             
            # Models
         | 
| 34 | 
            +
            require_relative './aspose-imaging-cloud/models/available_labels_list'
         | 
| 34 35 | 
             
            require_relative './aspose-imaging-cloud/models/bmp_properties'
         | 
| 35 36 | 
             
            require_relative './aspose-imaging-cloud/models/detected_object'
         | 
| 36 37 | 
             
            require_relative './aspose-imaging-cloud/models/detected_object_list'
         | 
| @@ -91,9 +92,11 @@ require_relative 'aspose-imaging-cloud/api/imaging_api' | |
| 91 92 | 
             
            require_relative './aspose-imaging-cloud/models/requests/add_search_image_request'
         | 
| 92 93 | 
             
            require_relative './aspose-imaging-cloud/models/requests/append_tiff_request'
         | 
| 93 94 | 
             
            require_relative './aspose-imaging-cloud/models/requests/compare_images_request'
         | 
| 95 | 
            +
            require_relative './aspose-imaging-cloud/models/requests/convert_image_request'
         | 
| 94 96 | 
             
            require_relative './aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request'
         | 
| 95 97 | 
             
            require_relative './aspose-imaging-cloud/models/requests/copy_file_request'
         | 
| 96 98 | 
             
            require_relative './aspose-imaging-cloud/models/requests/copy_folder_request'
         | 
| 99 | 
            +
            require_relative './aspose-imaging-cloud/models/requests/create_converted_image_request'
         | 
| 97 100 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_cropped_image_request'
         | 
| 98 101 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_deskewed_image_request'
         | 
| 99 102 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_fax_tiff_request'
         | 
| @@ -117,7 +120,6 @@ require_relative './aspose-imaging-cloud/models/requests/create_modified_wmf_req | |
| 117 120 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_object_bounds_request'
         | 
| 118 121 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_resized_image_request'
         | 
| 119 122 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request'
         | 
| 120 | 
            -
            require_relative './aspose-imaging-cloud/models/requests/create_saved_image_as_request'
         | 
| 121 123 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_updated_image_request'
         | 
| 122 124 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_visual_object_bounds_request'
         | 
| 123 125 | 
             
            require_relative './aspose-imaging-cloud/models/requests/create_web_site_image_features_request'
         | 
| @@ -136,6 +138,7 @@ require_relative './aspose-imaging-cloud/models/requests/filter_effect_image_req | |
| 136 138 | 
             
            require_relative './aspose-imaging-cloud/models/requests/find_images_by_tags_request'
         | 
| 137 139 | 
             
            require_relative './aspose-imaging-cloud/models/requests/find_image_duplicates_request'
         | 
| 138 140 | 
             
            require_relative './aspose-imaging-cloud/models/requests/find_similar_images_request'
         | 
| 141 | 
            +
            require_relative './aspose-imaging-cloud/models/requests/get_available_labels_request'
         | 
| 139 142 | 
             
            require_relative './aspose-imaging-cloud/models/requests/get_disc_usage_request'
         | 
| 140 143 | 
             
            require_relative './aspose-imaging-cloud/models/requests/get_files_list_request'
         | 
| 141 144 | 
             
            require_relative './aspose-imaging-cloud/models/requests/get_file_versions_request'
         | 
| @@ -163,15 +166,12 @@ require_relative './aspose-imaging-cloud/models/requests/modify_web_p_request' | |
| 163 166 | 
             
            require_relative './aspose-imaging-cloud/models/requests/modify_wmf_request'
         | 
| 164 167 | 
             
            require_relative './aspose-imaging-cloud/models/requests/move_file_request'
         | 
| 165 168 | 
             
            require_relative './aspose-imaging-cloud/models/requests/move_folder_request'
         | 
| 166 | 
            -
            require_relative './aspose-imaging-cloud/models/requests/object_bounds_request'
         | 
| 167 169 | 
             
            require_relative './aspose-imaging-cloud/models/requests/object_exists_request'
         | 
| 168 170 | 
             
            require_relative './aspose-imaging-cloud/models/requests/resize_image_request'
         | 
| 169 171 | 
             
            require_relative './aspose-imaging-cloud/models/requests/rotate_flip_image_request'
         | 
| 170 | 
            -
            require_relative './aspose-imaging-cloud/models/requests/save_image_as_request'
         | 
| 171 172 | 
             
            require_relative './aspose-imaging-cloud/models/requests/storage_exists_request'
         | 
| 172 173 | 
             
            require_relative './aspose-imaging-cloud/models/requests/update_image_features_request'
         | 
| 173 174 | 
             
            require_relative './aspose-imaging-cloud/models/requests/update_image_request'
         | 
| 174 175 | 
             
            require_relative './aspose-imaging-cloud/models/requests/update_search_image_request'
         | 
| 175 176 | 
             
            require_relative './aspose-imaging-cloud/models/requests/upload_file_request'
         | 
| 176 | 
            -
            require_relative './aspose-imaging-cloud/models/requests/visual_object_bounds_request'
         | 
| 177 177 |  | 
| @@ -67,6 +67,14 @@ module AsposeImagingCloud | |
| 67 67 | 
             
                  make_request(http_request, :POST, 'SearchResultsSet')
         | 
| 68 68 | 
             
                end
         | 
| 69 69 |  | 
| 70 | 
            +
                # Convert existing image to another format.
         | 
| 71 | 
            +
                # @param [convert_imageRequest] request Request object.
         | 
| 72 | 
            +
                # @return [File]
         | 
| 73 | 
            +
                def convert_image(request)
         | 
| 74 | 
            +
                  http_request = request.to_http_info(@api_client.config)
         | 
| 75 | 
            +
                  make_request(http_request, :GET, 'File')
         | 
| 76 | 
            +
                end
         | 
| 77 | 
            +
             | 
| 70 78 | 
             
                # Update parameters of existing TIFF image accordingly to fax parameters.
         | 
| 71 79 | 
             
                # @param [convert_tiff_to_faxRequest] request Request object.
         | 
| 72 80 | 
             
                # @return [File]
         | 
| @@ -93,6 +101,14 @@ module AsposeImagingCloud | |
| 93 101 | 
             
                  nil
         | 
| 94 102 | 
             
                end
         | 
| 95 103 |  | 
| 104 | 
            +
                # Convert existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.             
         | 
| 105 | 
            +
                # @param [create_converted_imageRequest] request Request object.
         | 
| 106 | 
            +
                # @return [File]
         | 
| 107 | 
            +
                def create_converted_image(request)
         | 
| 108 | 
            +
                  http_request = request.to_http_info(@api_client.config)
         | 
| 109 | 
            +
                  make_request(http_request, :POST, 'File')
         | 
| 110 | 
            +
                end
         | 
| 111 | 
            +
             | 
| 96 112 | 
             
                # Crop an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 97 113 | 
             
                # @param [create_cropped_imageRequest] request Request object.
         | 
| 98 114 | 
             
                # @return [File]
         | 
| @@ -280,14 +296,6 @@ module AsposeImagingCloud | |
| 280 296 | 
             
                  make_request(http_request, :POST, 'File')
         | 
| 281 297 | 
             
                end
         | 
| 282 298 |  | 
| 283 | 
            -
                # Export existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.             
         | 
| 284 | 
            -
                # @param [create_saved_image_asRequest] request Request object.
         | 
| 285 | 
            -
                # @return [File]
         | 
| 286 | 
            -
                def create_saved_image_as(request)
         | 
| 287 | 
            -
                  http_request = request.to_http_info(@api_client.config)
         | 
| 288 | 
            -
                  make_request(http_request, :POST, 'File')
         | 
| 289 | 
            -
                end
         | 
| 290 | 
            -
             | 
| 291 299 | 
             
                # Perform scaling, cropping and flipping of an image in a single request. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 292 300 | 
             
                # @param [create_updated_imageRequest] request Request object.
         | 
| 293 301 | 
             
                # @return [File]
         | 
| @@ -438,6 +446,14 @@ module AsposeImagingCloud | |
| 438 446 | 
             
                  make_request(http_request, :GET, 'SearchResultsSet')
         | 
| 439 447 | 
             
                end
         | 
| 440 448 |  | 
| 449 | 
            +
                # Detects objects bounds and draw them on the original image
         | 
| 450 | 
            +
                # @param [get_available_labelsRequest] request Request object.
         | 
| 451 | 
            +
                # @return [AvailableLabelsList]
         | 
| 452 | 
            +
                def get_available_labels(request)
         | 
| 453 | 
            +
                  http_request = request.to_http_info(@api_client.config)
         | 
| 454 | 
            +
                  make_request(http_request, :GET, 'AvailableLabelsList')
         | 
| 455 | 
            +
                end
         | 
| 456 | 
            +
             | 
| 441 457 | 
             
                # Get disc usage
         | 
| 442 458 | 
             
                # @param [get_disc_usageRequest] request Request object.
         | 
| 443 459 | 
             
                # @return [DiscUsage]
         | 
| @@ -664,14 +680,6 @@ module AsposeImagingCloud | |
| 664 680 | 
             
                  make_request(http_request, :GET, 'File')
         | 
| 665 681 | 
             
                end
         | 
| 666 682 |  | 
| 667 | 
            -
                # Export existing image to another format.
         | 
| 668 | 
            -
                # @param [save_image_asRequest] request Request object.
         | 
| 669 | 
            -
                # @return [File]
         | 
| 670 | 
            -
                def save_image_as(request)
         | 
| 671 | 
            -
                  http_request = request.to_http_info(@api_client.config)
         | 
| 672 | 
            -
                  make_request(http_request, :GET, 'File')
         | 
| 673 | 
            -
                end
         | 
| 674 | 
            -
             | 
| 675 683 | 
             
                # Check if storage exists
         | 
| 676 684 | 
             
                # @param [storage_existsRequest] request Request object.
         | 
| 677 685 | 
             
                # @return [StorageExist]
         | 
| @@ -0,0 +1,204 @@ | |
| 1 | 
            +
            #  ----------------------------------------------------------------------------
         | 
| 2 | 
            +
            #  <copyright company="Aspose" file="available_labels_list.rb">
         | 
| 3 | 
            +
            #    Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
         | 
| 4 | 
            +
            #  </copyright>
         | 
| 5 | 
            +
            #  <summary>
         | 
| 6 | 
            +
            #    Permission is hereby granted, free of charge, to any person obtaining a
         | 
| 7 | 
            +
            #   copy  of this software and associated documentation files (the "Software"),
         | 
| 8 | 
            +
            #   to deal  in the Software without restriction, including without limitation
         | 
| 9 | 
            +
            #   the rights  to use, copy, modify, merge, publish, distribute, sublicense,
         | 
| 10 | 
            +
            #   and/or sell  copies of the Software, and to permit persons to whom the
         | 
| 11 | 
            +
            #   Software is  furnished to do so, subject to the following conditions:
         | 
| 12 | 
            +
            #
         | 
| 13 | 
            +
            #   The above copyright notice and this permission notice shall be included in
         | 
| 14 | 
            +
            #   all  copies or substantial portions of the Software.
         | 
| 15 | 
            +
            #
         | 
| 16 | 
            +
            #   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 17 | 
            +
            #   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 18 | 
            +
            #   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 19 | 
            +
            #   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 20 | 
            +
            #   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
         | 
| 21 | 
            +
            #   FROM,  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
         | 
| 22 | 
            +
            #   DEALINGS IN THE SOFTWARE.
         | 
| 23 | 
            +
            #  </summary>
         | 
| 24 | 
            +
            #  ----------------------------------------------------------------------------
         | 
| 25 | 
            +
             | 
| 26 | 
            +
             | 
| 27 | 
            +
            require 'date'
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            module AsposeImagingCloud
         | 
| 30 | 
            +
              # AvailableLabelsList
         | 
| 31 | 
            +
              class AvailableLabelsList
         | 
| 32 | 
            +
                # detected objects
         | 
| 33 | 
            +
                attr_accessor :available_labels
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 36 | 
            +
                def self.attribute_map
         | 
| 37 | 
            +
                  {
         | 
| 38 | 
            +
                    :'available_labels' => :'availableLabels'
         | 
| 39 | 
            +
                  }
         | 
| 40 | 
            +
                end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                # Attribute type mapping.
         | 
| 43 | 
            +
                def self.swagger_types
         | 
| 44 | 
            +
                  {
         | 
| 45 | 
            +
                    :'available_labels' => :'Array<String>'
         | 
| 46 | 
            +
                  }
         | 
| 47 | 
            +
                end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                # Initializes the object
         | 
| 50 | 
            +
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 51 | 
            +
                def initialize(attributes = {})
         | 
| 52 | 
            +
                  return unless attributes.is_a?(Hash)
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                  # convert string to symbol for hash key
         | 
| 55 | 
            +
                  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                  if attributes.has_key?(:'availableLabels')
         | 
| 58 | 
            +
                    if (value = attributes[:'availableLabels']).is_a?(Array)
         | 
| 59 | 
            +
                      self.available_labels = value
         | 
| 60 | 
            +
                    end
         | 
| 61 | 
            +
                  end
         | 
| 62 | 
            +
                end
         | 
| 63 | 
            +
             | 
| 64 | 
            +
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| 65 | 
            +
                # @return Array for valid properties with the reasons
         | 
| 66 | 
            +
                def list_invalid_properties
         | 
| 67 | 
            +
                  invalid_properties = Array.new
         | 
| 68 | 
            +
                  invalid_properties
         | 
| 69 | 
            +
                end
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                # Check to see if the all the properties in the model are valid
         | 
| 72 | 
            +
                # @return true if the model is valid
         | 
| 73 | 
            +
                def valid?
         | 
| 74 | 
            +
                  true
         | 
| 75 | 
            +
                end
         | 
| 76 | 
            +
             | 
| 77 | 
            +
                # Checks equality by comparing each attribute.
         | 
| 78 | 
            +
                # @param [Object] Object to be compared
         | 
| 79 | 
            +
                def ==(o)
         | 
| 80 | 
            +
                  return true if self.equal?(o)
         | 
| 81 | 
            +
                  self.class == o.class &&
         | 
| 82 | 
            +
                      available_labels == o.available_labels
         | 
| 83 | 
            +
                end
         | 
| 84 | 
            +
             | 
| 85 | 
            +
                # @see the `==` method
         | 
| 86 | 
            +
                # @param [Object] Object to be compared
         | 
| 87 | 
            +
                def eql?(o)
         | 
| 88 | 
            +
                  self == o
         | 
| 89 | 
            +
                end
         | 
| 90 | 
            +
             | 
| 91 | 
            +
                # Calculates hash code according to all attributes.
         | 
| 92 | 
            +
                # @return [Fixnum] Hash code
         | 
| 93 | 
            +
                def hash
         | 
| 94 | 
            +
                  [available_labels].hash
         | 
| 95 | 
            +
                end
         | 
| 96 | 
            +
             | 
| 97 | 
            +
                # Builds the object from hash
         | 
| 98 | 
            +
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 99 | 
            +
                # @return [Object] Returns the model itself
         | 
| 100 | 
            +
                def build_from_hash(attributes)
         | 
| 101 | 
            +
                  return nil unless attributes.is_a?(Hash)
         | 
| 102 | 
            +
                  self.class.swagger_types.each_pair do |key, type|
         | 
| 103 | 
            +
                    attribute_key = self.class.attribute_map[key]
         | 
| 104 | 
            +
                    attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
         | 
| 105 | 
            +
                    if type =~ /\AArray<(.*)>/i
         | 
| 106 | 
            +
                      # check to ensure the input is an array given that the the attribute
         | 
| 107 | 
            +
                      # is documented as an array but the input is not
         | 
| 108 | 
            +
                      if attributes[attribute_key].is_a?(Array)
         | 
| 109 | 
            +
                        self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
         | 
| 110 | 
            +
                      end
         | 
| 111 | 
            +
                    elsif !attributes[attribute_key].nil?
         | 
| 112 | 
            +
                      self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
         | 
| 113 | 
            +
                    end # or else data not found in attributes(hash), not an issue as the data can be optional
         | 
| 114 | 
            +
                  end
         | 
| 115 | 
            +
             | 
| 116 | 
            +
                  self
         | 
| 117 | 
            +
                end
         | 
| 118 | 
            +
             | 
| 119 | 
            +
                # Deserializes the data based on type
         | 
| 120 | 
            +
                # @param string type Data type
         | 
| 121 | 
            +
                # @param string value Value to be deserialized
         | 
| 122 | 
            +
                # @return [Object] Deserialized data
         | 
| 123 | 
            +
                def _deserialize(type, value)
         | 
| 124 | 
            +
                  case type.to_sym
         | 
| 125 | 
            +
                  when :DateTime
         | 
| 126 | 
            +
                    DateTime.parse(value)
         | 
| 127 | 
            +
                  when :Date
         | 
| 128 | 
            +
                    Date.parse(value)
         | 
| 129 | 
            +
                  when :String
         | 
| 130 | 
            +
                    value.to_s
         | 
| 131 | 
            +
                  when :Integer
         | 
| 132 | 
            +
                    value.to_i
         | 
| 133 | 
            +
                  when :Float
         | 
| 134 | 
            +
                    value.to_f
         | 
| 135 | 
            +
                  when :BOOLEAN
         | 
| 136 | 
            +
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         | 
| 137 | 
            +
                      true
         | 
| 138 | 
            +
                    else
         | 
| 139 | 
            +
                      false
         | 
| 140 | 
            +
                    end
         | 
| 141 | 
            +
                  when :Object
         | 
| 142 | 
            +
                    # generic object (usually a Hash), return directly
         | 
| 143 | 
            +
                    value
         | 
| 144 | 
            +
                  when /\AArray<(?<inner_type>.+)>\z/
         | 
| 145 | 
            +
                    inner_type = Regexp.last_match[:inner_type]
         | 
| 146 | 
            +
                    value.map { |v| _deserialize(inner_type, v) }
         | 
| 147 | 
            +
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         | 
| 148 | 
            +
                    k_type = Regexp.last_match[:k_type]
         | 
| 149 | 
            +
                    v_type = Regexp.last_match[:v_type]
         | 
| 150 | 
            +
                    {}.tap do |hash|
         | 
| 151 | 
            +
                      value.each do |k, v|
         | 
| 152 | 
            +
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         | 
| 153 | 
            +
                      end
         | 
| 154 | 
            +
                    end
         | 
| 155 | 
            +
                  else # model
         | 
| 156 | 
            +
                    temp_model = AsposeImagingCloud.const_get(type).new
         | 
| 157 | 
            +
                    temp_model.build_from_hash(value)
         | 
| 158 | 
            +
                  end
         | 
| 159 | 
            +
                end
         | 
| 160 | 
            +
             | 
| 161 | 
            +
                # Returns the string representation of the object
         | 
| 162 | 
            +
                # @return [String] String presentation of the object
         | 
| 163 | 
            +
                def to_s
         | 
| 164 | 
            +
                  to_hash.to_s
         | 
| 165 | 
            +
                end
         | 
| 166 | 
            +
             | 
| 167 | 
            +
                # to_body is an alias to to_hash (backward compatibility)
         | 
| 168 | 
            +
                # @return [Hash] Returns the object in the form of hash
         | 
| 169 | 
            +
                def to_body
         | 
| 170 | 
            +
                  to_hash
         | 
| 171 | 
            +
                end
         | 
| 172 | 
            +
             | 
| 173 | 
            +
                # Returns the object in the form of hash
         | 
| 174 | 
            +
                # @return [Hash] Returns the object in the form of hash
         | 
| 175 | 
            +
                def to_hash
         | 
| 176 | 
            +
                  hash = {}
         | 
| 177 | 
            +
                  self.class.attribute_map.each_pair do |attr, param|
         | 
| 178 | 
            +
                    value = self.send(attr)
         | 
| 179 | 
            +
                    next if value.nil?
         | 
| 180 | 
            +
                    hash[param] = _to_hash(value)
         | 
| 181 | 
            +
                  end
         | 
| 182 | 
            +
                  hash
         | 
| 183 | 
            +
                end
         | 
| 184 | 
            +
             | 
| 185 | 
            +
                # Outputs non-array value in the form of hash
         | 
| 186 | 
            +
                # For object, use to_hash. Otherwise, just return the value
         | 
| 187 | 
            +
                # @param [Object] value Any valid value
         | 
| 188 | 
            +
                # @return [Hash] Returns the value in the form of hash
         | 
| 189 | 
            +
                def _to_hash(value)
         | 
| 190 | 
            +
                  if value.is_a?(Array)
         | 
| 191 | 
            +
                    value.compact.map { |v| _to_hash(v) }
         | 
| 192 | 
            +
                  elsif value.is_a?(Hash)
         | 
| 193 | 
            +
                    {}.tap do |hash|
         | 
| 194 | 
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         | 
| 195 | 
            +
                    end
         | 
| 196 | 
            +
                  elsif value.respond_to? :to_hash
         | 
| 197 | 
            +
                    value.to_hash
         | 
| 198 | 
            +
                  else
         | 
| 199 | 
            +
                    value
         | 
| 200 | 
            +
                  end
         | 
| 201 | 
            +
                end
         | 
| 202 | 
            +
             | 
| 203 | 
            +
              end
         | 
| 204 | 
            +
            end
         | 
| @@ -35,7 +35,7 @@ module AsposeImagingCloud | |
| 35 35 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 36 36 | 
             
                def self.attribute_map
         | 
| 37 37 | 
             
                  {
         | 
| 38 | 
            -
                    :'detected_objects' => :' | 
| 38 | 
            +
                    :'detected_objects' => :'detectedObjects'
         | 
| 39 39 | 
             
                  }
         | 
| 40 40 | 
             
                end
         | 
| 41 41 |  | 
| @@ -54,8 +54,8 @@ module AsposeImagingCloud | |
| 54 54 | 
             
                  # convert string to symbol for hash key
         | 
| 55 55 | 
             
                  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
         | 
| 56 56 |  | 
| 57 | 
            -
                  if attributes.has_key?(:' | 
| 58 | 
            -
                    if (value = attributes[:' | 
| 57 | 
            +
                  if attributes.has_key?(:'detectedObjects')
         | 
| 58 | 
            +
                    if (value = attributes[:'detectedObjects']).is_a?(Array)
         | 
| 59 59 | 
             
                      self.detected_objects = value
         | 
| 60 60 | 
             
                    end
         | 
| 61 61 | 
             
                  end
         | 
| @@ -59,12 +59,6 @@ module AsposeImagingCloud | |
| 59 59 | 
             
                # Gets or sets the photo interpretation.
         | 
| 60 60 | 
             
                attr_accessor :photo_interpretation
         | 
| 61 61 |  | 
| 62 | 
            -
                # Gets or sets a value indicating whether width tag found.
         | 
| 63 | 
            -
                attr_accessor :width_tag_found
         | 
| 64 | 
            -
             | 
| 65 | 
            -
                # Gets or sets a value indicating whether height tag found.
         | 
| 66 | 
            -
                attr_accessor :height_tag_found
         | 
| 67 | 
            -
             | 
| 68 62 | 
             
                # Gets or sets the width.
         | 
| 69 63 | 
             
                attr_accessor :width
         | 
| 70 64 |  | 
| @@ -89,18 +83,12 @@ module AsposeImagingCloud | |
| 89 83 | 
             
                # Gets or sets the number of frames.
         | 
| 90 84 | 
             
                attr_accessor :number_of_frames
         | 
| 91 85 |  | 
| 92 | 
            -
                # Gets or sets the length of element.
         | 
| 93 | 
            -
                attr_accessor :length_value
         | 
| 94 | 
            -
             | 
| 95 86 | 
             
                # Indicates if DICOM image has little endian byte order.
         | 
| 96 87 | 
             
                attr_accessor :is_little_endian
         | 
| 97 88 |  | 
| 98 89 | 
             
                # Gets or sets the offset.
         | 
| 99 90 | 
             
                attr_accessor :offset
         | 
| 100 91 |  | 
| 101 | 
            -
                # Gets or sets a value indicating whether \"DICOM\" data is found.
         | 
| 102 | 
            -
                attr_accessor :dicom_found
         | 
| 103 | 
            -
             | 
| 104 92 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 105 93 | 
             
                def self.attribute_map
         | 
| 106 94 | 
             
                  {
         | 
| @@ -114,8 +102,6 @@ module AsposeImagingCloud | |
| 114 102 | 
             
                    :'samples_per_pixel' => :'SamplesPerPixel',
         | 
| 115 103 | 
             
                    :'bits_allocated' => :'BitsAllocated',
         | 
| 116 104 | 
             
                    :'photo_interpretation' => :'PhotoInterpretation',
         | 
| 117 | 
            -
                    :'width_tag_found' => :'WidthTagFound',
         | 
| 118 | 
            -
                    :'height_tag_found' => :'HeightTagFound',
         | 
| 119 105 | 
             
                    :'width' => :'Width',
         | 
| 120 106 | 
             
                    :'height' => :'Height',
         | 
| 121 107 | 
             
                    :'window_centre' => :'WindowCentre',
         | 
| @@ -124,10 +110,8 @@ module AsposeImagingCloud | |
| 124 110 | 
             
                    :'rescale_intercept' => :'RescaleIntercept',
         | 
| 125 111 | 
             
                    :'rescale_slope' => :'RescaleSlope',
         | 
| 126 112 | 
             
                    :'number_of_frames' => :'NumberOfFrames',
         | 
| 127 | 
            -
                    :'length_value' => :'LengthValue',
         | 
| 128 113 | 
             
                    :'is_little_endian' => :'IsLittleEndian',
         | 
| 129 | 
            -
                    :'offset' => :'Offset' | 
| 130 | 
            -
                    :'dicom_found' => :'DicomFound'
         | 
| 114 | 
            +
                    :'offset' => :'Offset'
         | 
| 131 115 | 
             
                  }
         | 
| 132 116 | 
             
                end
         | 
| 133 117 |  | 
| @@ -144,8 +128,6 @@ module AsposeImagingCloud | |
| 144 128 | 
             
                    :'samples_per_pixel' => :'Integer',
         | 
| 145 129 | 
             
                    :'bits_allocated' => :'Integer',
         | 
| 146 130 | 
             
                    :'photo_interpretation' => :'String',
         | 
| 147 | 
            -
                    :'width_tag_found' => :'BOOLEAN',
         | 
| 148 | 
            -
                    :'height_tag_found' => :'BOOLEAN',
         | 
| 149 131 | 
             
                    :'width' => :'Integer',
         | 
| 150 132 | 
             
                    :'height' => :'Integer',
         | 
| 151 133 | 
             
                    :'window_centre' => :'Float',
         | 
| @@ -154,10 +136,8 @@ module AsposeImagingCloud | |
| 154 136 | 
             
                    :'rescale_intercept' => :'Float',
         | 
| 155 137 | 
             
                    :'rescale_slope' => :'Float',
         | 
| 156 138 | 
             
                    :'number_of_frames' => :'Integer',
         | 
| 157 | 
            -
                    :'length_value' => :'Integer',
         | 
| 158 139 | 
             
                    :'is_little_endian' => :'BOOLEAN',
         | 
| 159 | 
            -
                    :'offset' => :'Integer' | 
| 160 | 
            -
                    :'dicom_found' => :'BOOLEAN'
         | 
| 140 | 
            +
                    :'offset' => :'Integer'
         | 
| 161 141 | 
             
                  }
         | 
| 162 142 | 
             
                end
         | 
| 163 143 |  | 
| @@ -211,14 +191,6 @@ module AsposeImagingCloud | |
| 211 191 | 
             
                    self.photo_interpretation = attributes[:'PhotoInterpretation']
         | 
| 212 192 | 
             
                  end
         | 
| 213 193 |  | 
| 214 | 
            -
                  if attributes.has_key?(:'WidthTagFound')
         | 
| 215 | 
            -
                    self.width_tag_found = attributes[:'WidthTagFound']
         | 
| 216 | 
            -
                  end
         | 
| 217 | 
            -
             | 
| 218 | 
            -
                  if attributes.has_key?(:'HeightTagFound')
         | 
| 219 | 
            -
                    self.height_tag_found = attributes[:'HeightTagFound']
         | 
| 220 | 
            -
                  end
         | 
| 221 | 
            -
             | 
| 222 194 | 
             
                  if attributes.has_key?(:'Width')
         | 
| 223 195 | 
             
                    self.width = attributes[:'Width']
         | 
| 224 196 | 
             
                  end
         | 
| @@ -251,10 +223,6 @@ module AsposeImagingCloud | |
| 251 223 | 
             
                    self.number_of_frames = attributes[:'NumberOfFrames']
         | 
| 252 224 | 
             
                  end
         | 
| 253 225 |  | 
| 254 | 
            -
                  if attributes.has_key?(:'LengthValue')
         | 
| 255 | 
            -
                    self.length_value = attributes[:'LengthValue']
         | 
| 256 | 
            -
                  end
         | 
| 257 | 
            -
             | 
| 258 226 | 
             
                  if attributes.has_key?(:'IsLittleEndian')
         | 
| 259 227 | 
             
                    self.is_little_endian = attributes[:'IsLittleEndian']
         | 
| 260 228 | 
             
                  end
         | 
| @@ -262,10 +230,6 @@ module AsposeImagingCloud | |
| 262 230 | 
             
                  if attributes.has_key?(:'Offset')
         | 
| 263 231 | 
             
                    self.offset = attributes[:'Offset']
         | 
| 264 232 | 
             
                  end
         | 
| 265 | 
            -
             | 
| 266 | 
            -
                  if attributes.has_key?(:'DicomFound')
         | 
| 267 | 
            -
                    self.dicom_found = attributes[:'DicomFound']
         | 
| 268 | 
            -
                  end
         | 
| 269 233 | 
             
                end
         | 
| 270 234 |  | 
| 271 235 | 
             
                # Show invalid properties with the reasons. Usually used together with valid?
         | 
| @@ -304,14 +268,6 @@ module AsposeImagingCloud | |
| 304 268 | 
             
                    invalid_properties.push('invalid value for "bits_allocated", bits_allocated cannot be nil.')
         | 
| 305 269 | 
             
                  end
         | 
| 306 270 |  | 
| 307 | 
            -
                  if @width_tag_found.nil?
         | 
| 308 | 
            -
                    invalid_properties.push('invalid value for "width_tag_found", width_tag_found cannot be nil.')
         | 
| 309 | 
            -
                  end
         | 
| 310 | 
            -
             | 
| 311 | 
            -
                  if @height_tag_found.nil?
         | 
| 312 | 
            -
                    invalid_properties.push('invalid value for "height_tag_found", height_tag_found cannot be nil.')
         | 
| 313 | 
            -
                  end
         | 
| 314 | 
            -
             | 
| 315 271 | 
             
                  if @width.nil?
         | 
| 316 272 | 
             
                    invalid_properties.push('invalid value for "width", width cannot be nil.')
         | 
| 317 273 | 
             
                  end
         | 
| @@ -344,10 +300,6 @@ module AsposeImagingCloud | |
| 344 300 | 
             
                    invalid_properties.push('invalid value for "number_of_frames", number_of_frames cannot be nil.')
         | 
| 345 301 | 
             
                  end
         | 
| 346 302 |  | 
| 347 | 
            -
                  if @length_value.nil?
         | 
| 348 | 
            -
                    invalid_properties.push('invalid value for "length_value", length_value cannot be nil.')
         | 
| 349 | 
            -
                  end
         | 
| 350 | 
            -
             | 
| 351 303 | 
             
                  if @is_little_endian.nil?
         | 
| 352 304 | 
             
                    invalid_properties.push('invalid value for "is_little_endian", is_little_endian cannot be nil.')
         | 
| 353 305 | 
             
                  end
         | 
| @@ -356,10 +308,6 @@ module AsposeImagingCloud | |
| 356 308 | 
             
                    invalid_properties.push('invalid value for "offset", offset cannot be nil.')
         | 
| 357 309 | 
             
                  end
         | 
| 358 310 |  | 
| 359 | 
            -
                  if @dicom_found.nil?
         | 
| 360 | 
            -
                    invalid_properties.push('invalid value for "dicom_found", dicom_found cannot be nil.')
         | 
| 361 | 
            -
                  end
         | 
| 362 | 
            -
             | 
| 363 311 | 
             
                  invalid_properties
         | 
| 364 312 | 
             
                end
         | 
| 365 313 |  | 
| @@ -374,8 +322,6 @@ module AsposeImagingCloud | |
| 374 322 | 
             
                  return false if @signed_image.nil?
         | 
| 375 323 | 
             
                  return false if @samples_per_pixel.nil?
         | 
| 376 324 | 
             
                  return false if @bits_allocated.nil?
         | 
| 377 | 
            -
                  return false if @width_tag_found.nil?
         | 
| 378 | 
            -
                  return false if @height_tag_found.nil?
         | 
| 379 325 | 
             
                  return false if @width.nil?
         | 
| 380 326 | 
             
                  return false if @height.nil?
         | 
| 381 327 | 
             
                  return false if @window_centre.nil?
         | 
| @@ -384,10 +330,8 @@ module AsposeImagingCloud | |
| 384 330 | 
             
                  return false if @rescale_intercept.nil?
         | 
| 385 331 | 
             
                  return false if @rescale_slope.nil?
         | 
| 386 332 | 
             
                  return false if @number_of_frames.nil?
         | 
| 387 | 
            -
                  return false if @length_value.nil?
         | 
| 388 333 | 
             
                  return false if @is_little_endian.nil?
         | 
| 389 334 | 
             
                  return false if @offset.nil?
         | 
| 390 | 
            -
                  return false if @dicom_found.nil?
         | 
| 391 335 | 
             
                  true
         | 
| 392 336 | 
             
                end
         | 
| 393 337 |  | 
| @@ -446,8 +390,6 @@ module AsposeImagingCloud | |
| 446 390 | 
             
                      samples_per_pixel == o.samples_per_pixel &&
         | 
| 447 391 | 
             
                      bits_allocated == o.bits_allocated &&
         | 
| 448 392 | 
             
                      photo_interpretation == o.photo_interpretation &&
         | 
| 449 | 
            -
                      width_tag_found == o.width_tag_found &&
         | 
| 450 | 
            -
                      height_tag_found == o.height_tag_found &&
         | 
| 451 393 | 
             
                      width == o.width &&
         | 
| 452 394 | 
             
                      height == o.height &&
         | 
| 453 395 | 
             
                      window_centre == o.window_centre &&
         | 
| @@ -456,10 +398,8 @@ module AsposeImagingCloud | |
| 456 398 | 
             
                      rescale_intercept == o.rescale_intercept &&
         | 
| 457 399 | 
             
                      rescale_slope == o.rescale_slope &&
         | 
| 458 400 | 
             
                      number_of_frames == o.number_of_frames &&
         | 
| 459 | 
            -
                      length_value == o.length_value &&
         | 
| 460 401 | 
             
                      is_little_endian == o.is_little_endian &&
         | 
| 461 | 
            -
                      offset == o.offset | 
| 462 | 
            -
                      dicom_found == o.dicom_found
         | 
| 402 | 
            +
                      offset == o.offset
         | 
| 463 403 | 
             
                end
         | 
| 464 404 |  | 
| 465 405 | 
             
                # @see the `==` method
         | 
| @@ -471,7 +411,7 @@ module AsposeImagingCloud | |
| 471 411 | 
             
                # Calculates hash code according to all attributes.
         | 
| 472 412 | 
             
                # @return [Fixnum] Hash code
         | 
| 473 413 | 
             
                def hash
         | 
| 474 | 
            -
                  [planar_configuration, reds, greens, blues, dicom_header_info_by_bytes, signed_image, dicom_info, samples_per_pixel, bits_allocated, photo_interpretation,  | 
| 414 | 
            +
                  [planar_configuration, reds, greens, blues, dicom_header_info_by_bytes, signed_image, dicom_info, samples_per_pixel, bits_allocated, photo_interpretation, width, height, window_centre, window_width, pixel_representation, rescale_intercept, rescale_slope, number_of_frames, is_little_endian, offset].hash
         | 
| 475 415 | 
             
                end
         | 
| 476 416 |  | 
| 477 417 | 
             
                # Builds the object from hash
         | 
    
        data/lib/aspose-imaging-cloud/models/requests/{save_image_as_request.rb → convert_image_request.rb}
    RENAMED
    
    | @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            #  ----------------------------------------------------------------------------
         | 
| 2 | 
            -
            #  <copyright company="Aspose" file=" | 
| 2 | 
            +
            #  <copyright company="Aspose" file="convert_image_request.rb">
         | 
| 3 3 | 
             
            #    Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
         | 
| 4 4 | 
             
            #  </copyright>
         | 
| 5 5 | 
             
            #  <summary>
         | 
| @@ -28,10 +28,10 @@ require_relative './imaging_request' | |
| 28 28 | 
             
            require_relative './http_request'
         | 
| 29 29 |  | 
| 30 30 | 
             
            module AsposeImagingCloud
         | 
| 31 | 
            -
              # Request model for  | 
| 32 | 
            -
              class  | 
| 31 | 
            +
              # Request model for convert_image operation.
         | 
| 32 | 
            +
              class ConvertImageRequest < ImagingRequest
         | 
| 33 33 |  | 
| 34 | 
            -
                #  | 
| 34 | 
            +
                # Convert existing image to another format.
         | 
| 35 35 | 
             
                # @param [String] name Filename of image.
         | 
| 36 36 | 
             
                # @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
         | 
| 37 37 | 
             
                # @param [String] folder Folder with image to process.
         | 
| @@ -46,16 +46,16 @@ module AsposeImagingCloud | |
| 46 46 | 
             
                def to_http_info(config)
         | 
| 47 47 | 
             
                  # verify the required parameter 'name' is set
         | 
| 48 48 | 
             
                  if config.client_side_validation && @name.nil?
         | 
| 49 | 
            -
                    raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi. | 
| 49 | 
            +
                    raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.convert_image"
         | 
| 50 50 | 
             
                  end
         | 
| 51 51 |  | 
| 52 52 | 
             
                  # verify the required parameter 'format' is set
         | 
| 53 53 | 
             
                  if config.client_side_validation && @format.nil?
         | 
| 54 | 
            -
                    raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi. | 
| 54 | 
            +
                    raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.convert_image"
         | 
| 55 55 | 
             
                  end
         | 
| 56 56 |  | 
| 57 57 | 
             
                  # resource path
         | 
| 58 | 
            -
                  local_var_path = '/imaging/{name}/ | 
| 58 | 
            +
                  local_var_path = '/imaging/{name}/convert'.sub('{' + 'name' + '}', @name.to_s)
         | 
| 59 59 |  | 
| 60 60 | 
             
                  # query parameters
         | 
| 61 61 | 
             
                  query_params = {}
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            #  ----------------------------------------------------------------------------
         | 
| 2 | 
            -
            #  <copyright company="Aspose" file=" | 
| 2 | 
            +
            #  <copyright company="Aspose" file="create_converted_image_request.rb">
         | 
| 3 3 | 
             
            #    Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
         | 
| 4 4 | 
             
            #  </copyright>
         | 
| 5 5 | 
             
            #  <summary>
         | 
| @@ -28,10 +28,10 @@ require_relative './imaging_request' | |
| 28 28 | 
             
            require_relative './http_request'
         | 
| 29 29 |  | 
| 30 30 | 
             
            module AsposeImagingCloud
         | 
| 31 | 
            -
              # Request model for  | 
| 32 | 
            -
              class  | 
| 31 | 
            +
              # Request model for create_converted_image operation.
         | 
| 32 | 
            +
              class CreateConvertedImageRequest < ImagingRequest
         | 
| 33 33 |  | 
| 34 | 
            -
                #  | 
| 34 | 
            +
                # Convert existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.             
         | 
| 35 35 | 
             
                # @param [File] image_data Input image
         | 
| 36 36 | 
             
                # @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
         | 
| 37 37 | 
             
                # @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
         | 
| @@ -46,16 +46,16 @@ module AsposeImagingCloud | |
| 46 46 | 
             
                def to_http_info(config)
         | 
| 47 47 | 
             
                  # verify the required parameter 'image_data' is set
         | 
| 48 48 | 
             
                  if config.client_side_validation && @image_data.nil?
         | 
| 49 | 
            -
                    raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi. | 
| 49 | 
            +
                    raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_converted_image"
         | 
| 50 50 | 
             
                  end
         | 
| 51 51 |  | 
| 52 52 | 
             
                  # verify the required parameter 'format' is set
         | 
| 53 53 | 
             
                  if config.client_side_validation && @format.nil?
         | 
| 54 | 
            -
                    raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi. | 
| 54 | 
            +
                    raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.create_converted_image"
         | 
| 55 55 | 
             
                  end
         | 
| 56 56 |  | 
| 57 57 | 
             
                  # resource path
         | 
| 58 | 
            -
                  local_var_path = '/imaging/ | 
| 58 | 
            +
                  local_var_path = '/imaging/convert'
         | 
| 59 59 |  | 
| 60 60 | 
             
                  # query parameters
         | 
| 61 61 | 
             
                  query_params = {}
         | 
| @@ -31,7 +31,7 @@ module AsposeImagingCloud | |
| 31 31 | 
             
              # Request model for create_image_frame_range operation.
         | 
| 32 32 | 
             
              class CreateImageFrameRangeRequest < ImagingRequest
         | 
| 33 33 |  | 
| 34 | 
            -
                # Get  | 
| 34 | 
            +
                # Get frames range from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
         | 
| 35 35 | 
             
                # @param [File] image_data Input image
         | 
| 36 36 | 
             
                # @param [Integer] start_frame_id Index of the first frame in range.
         | 
| 37 37 | 
             
                # @param [Integer] end_frame_id Index of the last frame in range.
         | 
| @@ -37,14 +37,18 @@ module AsposeImagingCloud | |
| 37 37 | 
             
                # @param [Integer] threshold Object detection probability threshold in percents
         | 
| 38 38 | 
             
                # @param [BOOLEAN] include_label Draw detected objects labels
         | 
| 39 39 | 
             
                # @param [BOOLEAN] include_score Draw detected objects scores
         | 
| 40 | 
            +
                # @param [String] allowed_labels Comma-separated list of allowed labels
         | 
| 41 | 
            +
                # @param [String] blocked_labels Comma-separated list of blocked labels
         | 
| 40 42 | 
             
                # @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
         | 
| 41 43 | 
             
                # @param [String] storage Your Aspose Cloud Storage name.
         | 
| 42 | 
            -
                def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, out_path = nil, storage = nil)
         | 
| 44 | 
            +
                def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, out_path = nil, storage = nil)
         | 
| 43 45 | 
             
                  @image_data = image_data
         | 
| 44 46 | 
             
                  @method = method
         | 
| 45 47 | 
             
                  @threshold = threshold
         | 
| 46 48 | 
             
                  @include_label = include_label
         | 
| 47 49 | 
             
                  @include_score = include_score
         | 
| 50 | 
            +
                  @allowed_labels = allowed_labels
         | 
| 51 | 
            +
                  @blocked_labels = blocked_labels
         | 
| 48 52 | 
             
                  @out_path = out_path
         | 
| 49 53 | 
             
                  @storage = storage
         | 
| 50 54 | 
             
                end
         | 
| @@ -64,6 +68,8 @@ module AsposeImagingCloud | |
| 64 68 | 
             
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 65 69 | 
             
                  query_params[:includeLabel] = @include_label unless @include_label.nil?
         | 
| 66 70 | 
             
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 71 | 
            +
                  query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
         | 
| 72 | 
            +
                  query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
         | 
| 67 73 | 
             
                  query_params[:outPath] = @out_path unless @out_path.nil?
         | 
| 68 74 | 
             
                  query_params[:storage] = @storage unless @storage.nil?
         | 
| 69 75 |  | 
| @@ -37,15 +37,19 @@ module AsposeImagingCloud | |
| 37 37 | 
             
                # @param [Integer] threshold Object detection probability threshold in percents
         | 
| 38 38 | 
             
                # @param [BOOLEAN] include_label Draw detected objects classes
         | 
| 39 39 | 
             
                # @param [BOOLEAN] include_score Draw detected objects scores
         | 
| 40 | 
            +
                # @param [String] allowed_labels Comma-separated list of allowed labels
         | 
| 41 | 
            +
                # @param [String] blocked_labels Comma-separated list of blocked labels
         | 
| 40 42 | 
             
                # @param [String] color Bounds, labels, and scores text color
         | 
| 41 43 | 
             
                # @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
         | 
| 42 44 | 
             
                # @param [String] storage Your Aspose Cloud Storage name.
         | 
| 43 | 
            -
                def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, color = nil, out_path = nil, storage = nil)
         | 
| 45 | 
            +
                def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, color = nil, out_path = nil, storage = nil)
         | 
| 44 46 | 
             
                  @image_data = image_data
         | 
| 45 47 | 
             
                  @method = method
         | 
| 46 48 | 
             
                  @threshold = threshold
         | 
| 47 49 | 
             
                  @include_label = include_label
         | 
| 48 50 | 
             
                  @include_score = include_score
         | 
| 51 | 
            +
                  @allowed_labels = allowed_labels
         | 
| 52 | 
            +
                  @blocked_labels = blocked_labels
         | 
| 49 53 | 
             
                  @color = color
         | 
| 50 54 | 
             
                  @out_path = out_path
         | 
| 51 55 | 
             
                  @storage = storage
         | 
| @@ -66,6 +70,8 @@ module AsposeImagingCloud | |
| 66 70 | 
             
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 67 71 | 
             
                  query_params[:includeLabel] = @include_label unless @include_label.nil?
         | 
| 68 72 | 
             
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 73 | 
            +
                  query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
         | 
| 74 | 
            +
                  query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
         | 
| 69 75 | 
             
                  query_params[:color] = @color unless @color.nil?
         | 
| 70 76 | 
             
                  query_params[:outPath] = @out_path unless @out_path.nil?
         | 
| 71 77 | 
             
                  query_params[:storage] = @storage unless @storage.nil?
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            #  ----------------------------------------------------------------------------
         | 
| 2 | 
            -
            #  <copyright company="Aspose" file=" | 
| 2 | 
            +
            #  <copyright company="Aspose" file="get_available_labels_request.rb">
         | 
| 3 3 | 
             
            #    Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
         | 
| 4 4 | 
             
            #  </copyright>
         | 
| 5 5 | 
             
            #  <summary>
         | 
| @@ -28,45 +28,26 @@ require_relative './imaging_request' | |
| 28 28 | 
             
            require_relative './http_request'
         | 
| 29 29 |  | 
| 30 30 | 
             
            module AsposeImagingCloud
         | 
| 31 | 
            -
              # Request model for  | 
| 32 | 
            -
              class  | 
| 31 | 
            +
              # Request model for get_available_labels operation.
         | 
| 32 | 
            +
              class GetAvailableLabelsRequest < ImagingRequest
         | 
| 33 33 |  | 
| 34 | 
            -
                #  | 
| 35 | 
            -
                # @param [String] name Image file name.
         | 
| 34 | 
            +
                # Detects objects bounds and draw them on the original image
         | 
| 36 35 | 
             
                # @param [String] method Object detection method
         | 
| 37 | 
            -
                 | 
| 38 | 
            -
                # @param [BOOLEAN] include_class Return detected objects classes
         | 
| 39 | 
            -
                # @param [BOOLEAN] include_score Return detected objects score
         | 
| 40 | 
            -
                # @param [String] folder Folder
         | 
| 41 | 
            -
                # @param [String] storage Storage
         | 
| 42 | 
            -
                def initialize(name, method = nil, threshold = nil, include_class = nil, include_score = nil, folder = nil, storage = nil)
         | 
| 43 | 
            -
                  @name = name
         | 
| 36 | 
            +
                def initialize(method)
         | 
| 44 37 | 
             
                  @method = method
         | 
| 45 | 
            -
                  @threshold = threshold
         | 
| 46 | 
            -
                  @include_class = include_class
         | 
| 47 | 
            -
                  @include_score = include_score
         | 
| 48 | 
            -
                  @folder = folder
         | 
| 49 | 
            -
                  @storage = storage
         | 
| 50 38 | 
             
                end
         | 
| 51 39 |  | 
| 52 40 | 
             
                def to_http_info(config)
         | 
| 53 | 
            -
                  # verify the required parameter ' | 
| 54 | 
            -
                  if config.client_side_validation && @ | 
| 55 | 
            -
                    raise ArgumentError, "Missing the required parameter ' | 
| 41 | 
            +
                  # verify the required parameter 'method' is set
         | 
| 42 | 
            +
                  if config.client_side_validation && @method.nil?
         | 
| 43 | 
            +
                    raise ArgumentError, "Missing the required parameter 'method' when calling ImagingApi.get_available_labels"
         | 
| 56 44 | 
             
                  end
         | 
| 57 45 |  | 
| 58 46 | 
             
                  # resource path
         | 
| 59 | 
            -
                  local_var_path = '/imaging/ai/objectdetection/ | 
| 47 | 
            +
                  local_var_path = '/imaging/ai/objectdetection/availablelabels/{method}'.sub('{' + 'method' + '}', @method.to_s)
         | 
| 60 48 |  | 
| 61 49 | 
             
                  # query parameters
         | 
| 62 50 | 
             
                  query_params = {}
         | 
| 63 | 
            -
                  query_params[:name] = @name
         | 
| 64 | 
            -
                  query_params[:method] = @method unless @method.nil?
         | 
| 65 | 
            -
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 66 | 
            -
                  query_params[:includeClass] = @include_class unless @include_class.nil?
         | 
| 67 | 
            -
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 68 | 
            -
                  query_params[:folder] = @folder unless @folder.nil?
         | 
| 69 | 
            -
                  query_params[:storage] = @storage unless @storage.nil?
         | 
| 70 51 |  | 
| 71 52 | 
             
                  # form parameters
         | 
| 72 53 | 
             
                  form_params = {}
         | 
| @@ -37,14 +37,18 @@ module AsposeImagingCloud | |
| 37 37 | 
             
                # @param [Integer] threshold Object detection probability threshold in percents
         | 
| 38 38 | 
             
                # @param [BOOLEAN] include_label Return detected objects labels
         | 
| 39 39 | 
             
                # @param [BOOLEAN] include_score Return detected objects score
         | 
| 40 | 
            +
                # @param [String] allowed_labels Comma-separated list of allowed labels
         | 
| 41 | 
            +
                # @param [String] blocked_labels Comma-separated list of blocked labels
         | 
| 40 42 | 
             
                # @param [String] folder Folder
         | 
| 41 43 | 
             
                # @param [String] storage Storage
         | 
| 42 | 
            -
                def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, folder = nil, storage = nil)
         | 
| 44 | 
            +
                def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, folder = nil, storage = nil)
         | 
| 43 45 | 
             
                  @name = name
         | 
| 44 46 | 
             
                  @method = method
         | 
| 45 47 | 
             
                  @threshold = threshold
         | 
| 46 48 | 
             
                  @include_label = include_label
         | 
| 47 49 | 
             
                  @include_score = include_score
         | 
| 50 | 
            +
                  @allowed_labels = allowed_labels
         | 
| 51 | 
            +
                  @blocked_labels = blocked_labels
         | 
| 48 52 | 
             
                  @folder = folder
         | 
| 49 53 | 
             
                  @storage = storage
         | 
| 50 54 | 
             
                end
         | 
| @@ -64,6 +68,8 @@ module AsposeImagingCloud | |
| 64 68 | 
             
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 65 69 | 
             
                  query_params[:includeLabel] = @include_label unless @include_label.nil?
         | 
| 66 70 | 
             
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 71 | 
            +
                  query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
         | 
| 72 | 
            +
                  query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
         | 
| 67 73 | 
             
                  query_params[:folder] = @folder unless @folder.nil?
         | 
| 68 74 | 
             
                  query_params[:storage] = @storage unless @storage.nil?
         | 
| 69 75 |  | 
| @@ -37,15 +37,19 @@ module AsposeImagingCloud | |
| 37 37 | 
             
                # @param [Integer] threshold Object detection probability threshold in percents
         | 
| 38 38 | 
             
                # @param [BOOLEAN] include_label Draw detected objects labels
         | 
| 39 39 | 
             
                # @param [BOOLEAN] include_score Draw detected objects scores
         | 
| 40 | 
            +
                # @param [String] allowed_labels Comma-separated list of allowed labels
         | 
| 41 | 
            +
                # @param [String] blocked_labels Comma-separated list of blocked labels
         | 
| 40 42 | 
             
                # @param [String] color Bounds, labels, and scores text color
         | 
| 41 43 | 
             
                # @param [String] folder The folder.
         | 
| 42 44 | 
             
                # @param [String] storage The storage.
         | 
| 43 | 
            -
                def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, color = nil, folder = nil, storage = nil)
         | 
| 45 | 
            +
                def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, color = nil, folder = nil, storage = nil)
         | 
| 44 46 | 
             
                  @name = name
         | 
| 45 47 | 
             
                  @method = method
         | 
| 46 48 | 
             
                  @threshold = threshold
         | 
| 47 49 | 
             
                  @include_label = include_label
         | 
| 48 50 | 
             
                  @include_score = include_score
         | 
| 51 | 
            +
                  @allowed_labels = allowed_labels
         | 
| 52 | 
            +
                  @blocked_labels = blocked_labels
         | 
| 49 53 | 
             
                  @color = color
         | 
| 50 54 | 
             
                  @folder = folder
         | 
| 51 55 | 
             
                  @storage = storage
         | 
| @@ -66,6 +70,8 @@ module AsposeImagingCloud | |
| 66 70 | 
             
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 67 71 | 
             
                  query_params[:includeLabel] = @include_label unless @include_label.nil?
         | 
| 68 72 | 
             
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 73 | 
            +
                  query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
         | 
| 74 | 
            +
                  query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
         | 
| 69 75 | 
             
                  query_params[:color] = @color unless @color.nil?
         | 
| 70 76 | 
             
                  query_params[:folder] = @folder unless @folder.nil?
         | 
| 71 77 | 
             
                  query_params[:storage] = @storage unless @storage.nil?
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aspose_imaging_cloud
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: '20. | 
| 4 | 
            +
              version: '20.6'
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Sergei Zubov
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-06-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies: []
         | 
| 13 13 | 
             
            description: |2
         | 
| 14 14 |  | 
| @@ -33,6 +33,7 @@ files: | |
| 33 33 | 
             
            - lib/aspose-imaging-cloud/api_client.rb
         | 
| 34 34 | 
             
            - lib/aspose-imaging-cloud/api_error.rb
         | 
| 35 35 | 
             
            - lib/aspose-imaging-cloud/configuration.rb
         | 
| 36 | 
            +
            - lib/aspose-imaging-cloud/models/available_labels_list.rb
         | 
| 36 37 | 
             
            - lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb
         | 
| 37 38 | 
             
            - lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb
         | 
| 38 39 | 
             
            - lib/aspose-imaging-cloud/models/bmp_properties.rb
         | 
| @@ -75,9 +76,11 @@ files: | |
| 75 76 | 
             
            - lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb
         | 
| 76 77 | 
             
            - lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb
         | 
| 77 78 | 
             
            - lib/aspose-imaging-cloud/models/requests/compare_images_request.rb
         | 
| 79 | 
            +
            - lib/aspose-imaging-cloud/models/requests/convert_image_request.rb
         | 
| 78 80 | 
             
            - lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb
         | 
| 79 81 | 
             
            - lib/aspose-imaging-cloud/models/requests/copy_file_request.rb
         | 
| 80 82 | 
             
            - lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb
         | 
| 83 | 
            +
            - lib/aspose-imaging-cloud/models/requests/create_converted_image_request.rb
         | 
| 81 84 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb
         | 
| 82 85 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb
         | 
| 83 86 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb
         | 
| @@ -101,7 +104,6 @@ files: | |
| 101 104 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb
         | 
| 102 105 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb
         | 
| 103 106 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb
         | 
| 104 | 
            -
            - lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb
         | 
| 105 107 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb
         | 
| 106 108 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb
         | 
| 107 109 | 
             
            - lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb
         | 
| @@ -120,6 +122,7 @@ files: | |
| 120 122 | 
             
            - lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb
         | 
| 121 123 | 
             
            - lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb
         | 
| 122 124 | 
             
            - lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb
         | 
| 125 | 
            +
            - lib/aspose-imaging-cloud/models/requests/get_available_labels_request.rb
         | 
| 123 126 | 
             
            - lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb
         | 
| 124 127 | 
             
            - lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb
         | 
| 125 128 | 
             
            - lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb
         | 
| @@ -147,17 +150,14 @@ files: | |
| 147 150 | 
             
            - lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb
         | 
| 148 151 | 
             
            - lib/aspose-imaging-cloud/models/requests/move_file_request.rb
         | 
| 149 152 | 
             
            - lib/aspose-imaging-cloud/models/requests/move_folder_request.rb
         | 
| 150 | 
            -
            - lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb
         | 
| 151 153 | 
             
            - lib/aspose-imaging-cloud/models/requests/object_exists_request.rb
         | 
| 152 154 | 
             
            - lib/aspose-imaging-cloud/models/requests/resize_image_request.rb
         | 
| 153 155 | 
             
            - lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb
         | 
| 154 | 
            -
            - lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb
         | 
| 155 156 | 
             
            - lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb
         | 
| 156 157 | 
             
            - lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb
         | 
| 157 158 | 
             
            - lib/aspose-imaging-cloud/models/requests/update_image_request.rb
         | 
| 158 159 | 
             
            - lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb
         | 
| 159 160 | 
             
            - lib/aspose-imaging-cloud/models/requests/upload_file_request.rb
         | 
| 160 | 
            -
            - lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb
         | 
| 161 161 | 
             
            - lib/aspose-imaging-cloud/models/search_context_status.rb
         | 
| 162 162 | 
             
            - lib/aspose-imaging-cloud/models/search_result.rb
         | 
| 163 163 | 
             
            - lib/aspose-imaging-cloud/models/search_results_set.rb
         | 
| @@ -1,94 +0,0 @@ | |
| 1 | 
            -
            #  ----------------------------------------------------------------------------
         | 
| 2 | 
            -
            #  <copyright company="Aspose" file="visual_object_bounds_request.rb">
         | 
| 3 | 
            -
            #    Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
         | 
| 4 | 
            -
            #  </copyright>
         | 
| 5 | 
            -
            #  <summary>
         | 
| 6 | 
            -
            #    Permission is hereby granted, free of charge, to any person obtaining a
         | 
| 7 | 
            -
            #   copy  of this software and associated documentation files (the "Software"),
         | 
| 8 | 
            -
            #   to deal  in the Software without restriction, including without limitation
         | 
| 9 | 
            -
            #   the rights  to use, copy, modify, merge, publish, distribute, sublicense,
         | 
| 10 | 
            -
            #   and/or sell  copies of the Software, and to permit persons to whom the
         | 
| 11 | 
            -
            #   Software is  furnished to do so, subject to the following conditions:
         | 
| 12 | 
            -
            #
         | 
| 13 | 
            -
            #   The above copyright notice and this permission notice shall be included in
         | 
| 14 | 
            -
            #   all  copies or substantial portions of the Software.
         | 
| 15 | 
            -
            #
         | 
| 16 | 
            -
            #   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 17 | 
            -
            #   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 18 | 
            -
            #   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 19 | 
            -
            #   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 20 | 
            -
            #   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
         | 
| 21 | 
            -
            #   FROM,  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
         | 
| 22 | 
            -
            #   DEALINGS IN THE SOFTWARE.
         | 
| 23 | 
            -
            #  </summary>
         | 
| 24 | 
            -
            #  ----------------------------------------------------------------------------
         | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 | 
            -
            require_relative './imaging_request'
         | 
| 28 | 
            -
            require_relative './http_request'
         | 
| 29 | 
            -
             | 
| 30 | 
            -
            module AsposeImagingCloud
         | 
| 31 | 
            -
              # Request model for visual_object_bounds operation.
         | 
| 32 | 
            -
              class VisualObjectBoundsRequest < ImagingRequest
         | 
| 33 | 
            -
             | 
| 34 | 
            -
                # Detect objects bounds and draw them on the original image
         | 
| 35 | 
            -
                # @param [String] name The image features detector.
         | 
| 36 | 
            -
                # @param [String] method Object detection method
         | 
| 37 | 
            -
                # @param [Integer] threshold Object detection probability threshold in percents
         | 
| 38 | 
            -
                # @param [BOOLEAN] include_class Draw detected objects classes
         | 
| 39 | 
            -
                # @param [BOOLEAN] include_score Draw detected objects scores
         | 
| 40 | 
            -
                # @param [String] folder The folder.
         | 
| 41 | 
            -
                # @param [String] storage The storage.
         | 
| 42 | 
            -
                def initialize(name, method = nil, threshold = nil, include_class = nil, include_score = nil, folder = nil, storage = nil)
         | 
| 43 | 
            -
                  @name = name
         | 
| 44 | 
            -
                  @method = method
         | 
| 45 | 
            -
                  @threshold = threshold
         | 
| 46 | 
            -
                  @include_class = include_class
         | 
| 47 | 
            -
                  @include_score = include_score
         | 
| 48 | 
            -
                  @folder = folder
         | 
| 49 | 
            -
                  @storage = storage
         | 
| 50 | 
            -
                end
         | 
| 51 | 
            -
             | 
| 52 | 
            -
                def to_http_info(config)
         | 
| 53 | 
            -
                  # verify the required parameter 'name' is set
         | 
| 54 | 
            -
                  if config.client_side_validation && @name.nil?
         | 
| 55 | 
            -
                    raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.visual_object_bounds"
         | 
| 56 | 
            -
                  end
         | 
| 57 | 
            -
             | 
| 58 | 
            -
                  # resource path
         | 
| 59 | 
            -
                  local_var_path = '/imaging/ai/objectdetection/visualbounds'
         | 
| 60 | 
            -
             | 
| 61 | 
            -
                  # query parameters
         | 
| 62 | 
            -
                  query_params = {}
         | 
| 63 | 
            -
                  query_params[:name] = @name
         | 
| 64 | 
            -
                  query_params[:method] = @method unless @method.nil?
         | 
| 65 | 
            -
                  query_params[:threshold] = @threshold unless @threshold.nil?
         | 
| 66 | 
            -
                  query_params[:includeClass] = @include_class unless @include_class.nil?
         | 
| 67 | 
            -
                  query_params[:includeScore] = @include_score unless @include_score.nil?
         | 
| 68 | 
            -
                  query_params[:folder] = @folder unless @folder.nil?
         | 
| 69 | 
            -
                  query_params[:storage] = @storage unless @storage.nil?
         | 
| 70 | 
            -
             | 
| 71 | 
            -
                  # form parameters
         | 
| 72 | 
            -
                  form_params = {}
         | 
| 73 | 
            -
             | 
| 74 | 
            -
                  # http body (model)
         | 
| 75 | 
            -
                  post_body = nil
         | 
| 76 | 
            -
                  auth_names = ['JWT']
         | 
| 77 | 
            -
             | 
| 78 | 
            -
                  # header parameters
         | 
| 79 | 
            -
                  header_params = {}
         | 
| 80 | 
            -
                  # HTTP header 'Accept' (if needed)
         | 
| 81 | 
            -
                  header_params['Accept'] = select_header_accept(['application/json'])
         | 
| 82 | 
            -
                  # HTTP header 'Content-Type'
         | 
| 83 | 
            -
                  header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
         | 
| 84 | 
            -
             | 
| 85 | 
            -
                  AsposeImagingCloud::HttpRequest.new(local_var_path,
         | 
| 86 | 
            -
                                                  header_params,
         | 
| 87 | 
            -
                                                  query_params,
         | 
| 88 | 
            -
                                                  form_params,
         | 
| 89 | 
            -
                                                  post_body,
         | 
| 90 | 
            -
                                                  auth_names)
         | 
| 91 | 
            -
                end
         | 
| 92 | 
            -
              end
         | 
| 93 | 
            -
            end
         | 
| 94 | 
            -
             |