aspose_imaging_cloud 19.12 → 20.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -12
- data/lib/aspose-imaging-cloud.rb +75 -59
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +93 -5
- data/lib/aspose-imaging-cloud/api_client.rb +2 -2
- data/lib/aspose-imaging-cloud/api_error.rb +2 -2
- data/lib/aspose-imaging-cloud/configuration.rb +1 -1
- data/lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bmp_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/convolution_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/detected_object.rb +228 -0
- data/lib/aspose-imaging-cloud/models/detected_object_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/dicom_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/disc_usage.rb +1 -1
- data/lib/aspose-imaging-cloud/models/djvu_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/dng_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error_details.rb +1 -1
- data/lib/aspose-imaging-cloud/models/exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_version.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_versions.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_list.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_upload_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/filter_properties_base.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gauss_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gaussian_blur_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gif_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_features.rb +1 -1
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jfif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg2000_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/median_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/motion_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/object_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_metadata.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_page.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/png_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/psd_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/rectangle.rb +247 -0
- data/lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/compare_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_grayscaled_image_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +121 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/crop_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/delete_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/deskew_image_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/download_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/extract_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/filter_effect_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_range_request.rb +120 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +95 -0
- data/lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/http_request.rb +2 -1
- data/lib/aspose-imaging-cloud/models/requests/imaging_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/object_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/resize_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -2
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +94 -0
- data/lib/aspose-imaging-cloud/models/search_context_status.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_results_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/sharpen_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/small_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_file.rb +1 -1
- data/lib/aspose-imaging-cloud/models/svg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_frame.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_options.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/web_p_properties.rb +1 -1
- metadata +23 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="dicom_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="disc_usage.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="djvu_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="dng_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="error.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="error_details.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="exif_data.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="file_version.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="file_versions.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="files_list.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="files_upload_result.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="filter_properties_base.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="gauss_wiener_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="gaussian_blur_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="gif_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="image_duplicates.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="image_duplicates_set.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="image_features.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="imaging_response.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="jfif_data.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="jpeg2000_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="jpeg_exif_data.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="jpeg_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="median_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="motion_wiener_filter_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="object_exist.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="odg_metadata.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="odg_page.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="odg_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="png_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="psd_properties.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -0,0 +1,247 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="rectangle.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
|
+
class Rectangle
|
31
|
+
attr_accessor :x
|
32
|
+
|
33
|
+
attr_accessor :y
|
34
|
+
|
35
|
+
attr_accessor :width
|
36
|
+
|
37
|
+
attr_accessor :height
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'x' => :'X',
|
43
|
+
:'y' => :'Y',
|
44
|
+
:'width' => :'Width',
|
45
|
+
:'height' => :'Height'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'x' => :'Float',
|
53
|
+
:'y' => :'Float',
|
54
|
+
:'width' => :'Float',
|
55
|
+
:'height' => :'Float'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'X')
|
68
|
+
self.x = attributes[:'X']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'Y')
|
72
|
+
self.y = attributes[:'Y']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'Width')
|
76
|
+
self.width = attributes[:'Width']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'Height')
|
80
|
+
self.height = attributes[:'Height']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @x.nil?
|
89
|
+
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @y.nil?
|
93
|
+
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @width.nil?
|
97
|
+
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @height.nil?
|
101
|
+
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
return false if @x.nil?
|
111
|
+
return false if @y.nil?
|
112
|
+
return false if @width.nil?
|
113
|
+
return false if @height.nil?
|
114
|
+
true
|
115
|
+
end
|
116
|
+
|
117
|
+
# Checks equality by comparing each attribute.
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def ==(o)
|
120
|
+
return true if self.equal?(o)
|
121
|
+
self.class == o.class &&
|
122
|
+
x == o.x &&
|
123
|
+
y == o.y &&
|
124
|
+
width == o.width &&
|
125
|
+
height == o.height
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(o)
|
131
|
+
self == o
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Fixnum] Hash code
|
136
|
+
def hash
|
137
|
+
[x, y, width, height].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def build_from_hash(attributes)
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
145
|
+
self.class.swagger_types.each_pair do |key, type|
|
146
|
+
attribute_key = self.class.attribute_map[key]
|
147
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
148
|
+
if type =~ /\AArray<(.*)>/i
|
149
|
+
# check to ensure the input is an array given that the the attribute
|
150
|
+
# is documented as an array but the input is not
|
151
|
+
if attributes[attribute_key].is_a?(Array)
|
152
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
153
|
+
end
|
154
|
+
elsif !attributes[attribute_key].nil?
|
155
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
156
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
157
|
+
end
|
158
|
+
|
159
|
+
self
|
160
|
+
end
|
161
|
+
|
162
|
+
# Deserializes the data based on type
|
163
|
+
# @param string type Data type
|
164
|
+
# @param string value Value to be deserialized
|
165
|
+
# @return [Object] Deserialized data
|
166
|
+
def _deserialize(type, value)
|
167
|
+
case type.to_sym
|
168
|
+
when :DateTime
|
169
|
+
DateTime.parse(value)
|
170
|
+
when :Date
|
171
|
+
Date.parse(value)
|
172
|
+
when :String
|
173
|
+
value.to_s
|
174
|
+
when :Integer
|
175
|
+
value.to_i
|
176
|
+
when :Float
|
177
|
+
value.to_f
|
178
|
+
when :BOOLEAN
|
179
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
180
|
+
true
|
181
|
+
else
|
182
|
+
false
|
183
|
+
end
|
184
|
+
when :Object
|
185
|
+
# generic object (usually a Hash), return directly
|
186
|
+
value
|
187
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
188
|
+
inner_type = Regexp.last_match[:inner_type]
|
189
|
+
value.map { |v| _deserialize(inner_type, v) }
|
190
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
191
|
+
k_type = Regexp.last_match[:k_type]
|
192
|
+
v_type = Regexp.last_match[:v_type]
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each do |k, v|
|
195
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
else # model
|
199
|
+
temp_model = AsposeImagingCloud.const_get(type).new
|
200
|
+
temp_model.build_from_hash(value)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the string representation of the object
|
205
|
+
# @return [String] String presentation of the object
|
206
|
+
def to_s
|
207
|
+
to_hash.to_s
|
208
|
+
end
|
209
|
+
|
210
|
+
# to_body is an alias to to_hash (backward compatibility)
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_body
|
213
|
+
to_hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the object in the form of hash
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_hash
|
219
|
+
hash = {}
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
221
|
+
value = self.send(attr)
|
222
|
+
next if value.nil?
|
223
|
+
hash[param] = _to_hash(value)
|
224
|
+
end
|
225
|
+
hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Outputs non-array value in the form of hash
|
229
|
+
# For object, use to_hash. Otherwise, just return the value
|
230
|
+
# @param [Object] value Any valid value
|
231
|
+
# @return [Hash] Returns the value in the form of hash
|
232
|
+
def _to_hash(value)
|
233
|
+
if value.is_a?(Array)
|
234
|
+
value.compact.map { |v| _to_hash(v) }
|
235
|
+
elsif value.is_a?(Hash)
|
236
|
+
{}.tap do |hash|
|
237
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
238
|
+
end
|
239
|
+
elsif value.respond_to? :to_hash
|
240
|
+
value.to_hash
|
241
|
+
else
|
242
|
+
value
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
247
|
+
end
|