imagekitio 3.0.0 → 4.0.0
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/.ignore +2 -0
- data/CHANGELOG.md +116 -0
- data/README.md +538 -679
- data/SECURITY.md +27 -0
- data/lib/imagekitio/client.rb +122 -195
- data/lib/imagekitio/errors.rb +226 -2
- data/lib/imagekitio/file_part.rb +58 -0
- data/lib/imagekitio/helpers/crypto_utils.rb +25 -0
- data/lib/imagekitio/helpers/helper.rb +689 -0
- data/lib/imagekitio/helpers/transformation_utils.rb +164 -0
- data/lib/imagekitio/helpers/uuid_utils.rb +18 -0
- data/lib/imagekitio/internal/transport/base_client.rb +567 -0
- data/lib/imagekitio/internal/transport/pooled_net_requester.rb +217 -0
- data/lib/imagekitio/internal/type/array_of.rb +168 -0
- data/lib/imagekitio/internal/type/base_model.rb +530 -0
- data/lib/imagekitio/internal/type/base_page.rb +55 -0
- data/lib/imagekitio/internal/type/boolean.rb +77 -0
- data/lib/imagekitio/internal/type/converter.rb +327 -0
- data/lib/imagekitio/internal/type/enum.rb +156 -0
- data/lib/imagekitio/internal/type/file_input.rb +111 -0
- data/lib/imagekitio/internal/type/hash_of.rb +188 -0
- data/lib/imagekitio/internal/type/request_parameters.rb +42 -0
- data/lib/imagekitio/internal/type/union.rb +250 -0
- data/lib/imagekitio/internal/type/unknown.rb +81 -0
- data/lib/imagekitio/internal/util.rb +915 -0
- data/lib/imagekitio/internal.rb +20 -0
- data/lib/imagekitio/models/accounts/origin_create_params.rb +24 -0
- data/lib/imagekitio/models/accounts/origin_delete_params.rb +16 -0
- data/lib/imagekitio/models/accounts/origin_get_params.rb +16 -0
- data/lib/imagekitio/models/accounts/origin_list_params.rb +16 -0
- data/lib/imagekitio/models/accounts/origin_list_response.rb +11 -0
- data/lib/imagekitio/models/accounts/origin_request.rb +547 -0
- data/lib/imagekitio/models/accounts/origin_response.rb +568 -0
- data/lib/imagekitio/models/accounts/origin_update_params.rb +24 -0
- data/lib/imagekitio/models/accounts/url_endpoint_create_params.rb +16 -0
- data/lib/imagekitio/models/accounts/url_endpoint_delete_params.rb +16 -0
- data/lib/imagekitio/models/accounts/url_endpoint_get_params.rb +16 -0
- data/lib/imagekitio/models/accounts/url_endpoint_list_params.rb +16 -0
- data/lib/imagekitio/models/accounts/url_endpoint_list_response.rb +11 -0
- data/lib/imagekitio/models/accounts/url_endpoint_request.rb +110 -0
- data/lib/imagekitio/models/accounts/url_endpoint_response.rb +123 -0
- data/lib/imagekitio/models/accounts/url_endpoint_update_params.rb +16 -0
- data/lib/imagekitio/models/accounts/usage_get_params.rb +37 -0
- data/lib/imagekitio/models/accounts/usage_get_response.rb +51 -0
- data/lib/imagekitio/models/asset_list_params.rb +158 -0
- data/lib/imagekitio/models/asset_list_response.rb +24 -0
- data/lib/imagekitio/models/base_overlay.rb +21 -0
- data/lib/imagekitio/models/base_webhook_event.rb +24 -0
- data/lib/imagekitio/models/beta/v2/file_upload_params.rb +510 -0
- data/lib/imagekitio/models/beta/v2/file_upload_response.rb +618 -0
- data/lib/imagekitio/models/cache/invalidation_create_params.rb +27 -0
- data/lib/imagekitio/models/cache/invalidation_create_response.rb +23 -0
- data/lib/imagekitio/models/cache/invalidation_get_params.rb +16 -0
- data/lib/imagekitio/models/cache/invalidation_get_response.rb +35 -0
- data/lib/imagekitio/models/custom_metadata_field.rb +243 -0
- data/lib/imagekitio/models/custom_metadata_field_create_params.rb +238 -0
- data/lib/imagekitio/models/custom_metadata_field_delete_params.rb +14 -0
- data/lib/imagekitio/models/custom_metadata_field_delete_response.rb +10 -0
- data/lib/imagekitio/models/custom_metadata_field_list_params.rb +36 -0
- data/lib/imagekitio/models/custom_metadata_field_list_response.rb +9 -0
- data/lib/imagekitio/models/custom_metadata_field_update_params.rb +212 -0
- data/lib/imagekitio/models/extensions.rb +136 -0
- data/lib/imagekitio/models/file.rb +497 -0
- data/lib/imagekitio/models/file_copy_params.rb +43 -0
- data/lib/imagekitio/models/file_copy_response.rb +10 -0
- data/lib/imagekitio/models/file_delete_params.rb +14 -0
- data/lib/imagekitio/models/file_get_params.rb +14 -0
- data/lib/imagekitio/models/file_move_params.rb +33 -0
- data/lib/imagekitio/models/file_move_response.rb +10 -0
- data/lib/imagekitio/models/file_rename_params.rb +61 -0
- data/lib/imagekitio/models/file_rename_response.rb +21 -0
- data/lib/imagekitio/models/file_update_params.rb +22 -0
- data/lib/imagekitio/models/file_update_response.rb +104 -0
- data/lib/imagekitio/models/file_upload_params.rb +540 -0
- data/lib/imagekitio/models/file_upload_response.rb +611 -0
- data/lib/imagekitio/models/files/bulk_add_tags_params.rb +35 -0
- data/lib/imagekitio/models/files/bulk_add_tags_response.rb +24 -0
- data/lib/imagekitio/models/files/bulk_delete_params.rb +27 -0
- data/lib/imagekitio/models/files/bulk_delete_response.rb +24 -0
- data/lib/imagekitio/models/files/bulk_remove_ai_tags_params.rb +35 -0
- data/lib/imagekitio/models/files/bulk_remove_ai_tags_response.rb +24 -0
- data/lib/imagekitio/models/files/bulk_remove_tags_params.rb +35 -0
- data/lib/imagekitio/models/files/bulk_remove_tags_response.rb +24 -0
- data/lib/imagekitio/models/files/metadata_get_from_url_params.rb +28 -0
- data/lib/imagekitio/models/files/metadata_get_params.rb +16 -0
- data/lib/imagekitio/models/files/version_delete_params.rb +22 -0
- data/lib/imagekitio/models/files/version_delete_response.rb +12 -0
- data/lib/imagekitio/models/files/version_get_params.rb +22 -0
- data/lib/imagekitio/models/files/version_list_params.rb +16 -0
- data/lib/imagekitio/models/files/version_list_response.rb +10 -0
- data/lib/imagekitio/models/files/version_restore_params.rb +22 -0
- data/lib/imagekitio/models/folder.rb +76 -0
- data/lib/imagekitio/models/folder_copy_params.rb +44 -0
- data/lib/imagekitio/models/folder_copy_response.rb +23 -0
- data/lib/imagekitio/models/folder_create_params.rb +43 -0
- data/lib/imagekitio/models/folder_create_response.rb +10 -0
- data/lib/imagekitio/models/folder_delete_params.rb +25 -0
- data/lib/imagekitio/models/folder_delete_response.rb +10 -0
- data/lib/imagekitio/models/folder_move_params.rb +34 -0
- data/lib/imagekitio/models/folder_move_response.rb +23 -0
- data/lib/imagekitio/models/folder_rename_params.rb +59 -0
- data/lib/imagekitio/models/folder_rename_response.rb +23 -0
- data/lib/imagekitio/models/folders/job_get_params.rb +16 -0
- data/lib/imagekitio/models/folders/job_get_response.rb +74 -0
- data/lib/imagekitio/models/get_image_attributes_options.rb +68 -0
- data/lib/imagekitio/models/image_overlay.rb +66 -0
- data/lib/imagekitio/models/metadata.rb +483 -0
- data/lib/imagekitio/models/overlay.rb +28 -0
- data/lib/imagekitio/models/overlay_position.rb +101 -0
- data/lib/imagekitio/models/overlay_timing.rb +97 -0
- data/lib/imagekitio/models/responsive_image_attributes.rb +48 -0
- data/lib/imagekitio/models/solid_color_overlay.rb +42 -0
- data/lib/imagekitio/models/solid_color_overlay_transformation.rb +135 -0
- data/lib/imagekitio/models/src_options.rb +96 -0
- data/lib/imagekitio/models/streaming_resolution.rb +22 -0
- data/lib/imagekitio/models/subtitle_overlay.rb +64 -0
- data/lib/imagekitio/models/subtitle_overlay_transformation.rb +113 -0
- data/lib/imagekitio/models/text_overlay.rb +65 -0
- data/lib/imagekitio/models/text_overlay_transformation.rb +267 -0
- data/lib/imagekitio/models/transformation.rb +1100 -0
- data/lib/imagekitio/models/transformation_position.rb +19 -0
- data/lib/imagekitio/models/unsafe_unwrap_webhook_event.rb +36 -0
- data/lib/imagekitio/models/unwrap_webhook_event.rb +36 -0
- data/lib/imagekitio/models/update_file_request.rb +164 -0
- data/lib/imagekitio/models/upload_post_transform_error_event.rb +180 -0
- data/lib/imagekitio/models/upload_post_transform_success_event.rb +143 -0
- data/lib/imagekitio/models/upload_pre_transform_error_event.rb +108 -0
- data/lib/imagekitio/models/upload_pre_transform_success_event.rb +690 -0
- data/lib/imagekitio/models/video_overlay.rb +64 -0
- data/lib/imagekitio/models/video_transformation_accepted_event.rb +279 -0
- data/lib/imagekitio/models/video_transformation_error_event.rb +326 -0
- data/lib/imagekitio/models/video_transformation_ready_event.rb +379 -0
- data/lib/imagekitio/models/webhook_unsafe_unwrap_params.rb +14 -0
- data/lib/imagekitio/models/webhook_unwrap_params.rb +14 -0
- data/lib/imagekitio/models.rb +160 -0
- data/lib/imagekitio/request_options.rb +77 -0
- data/lib/imagekitio/resources/accounts/origins.rb +145 -0
- data/lib/imagekitio/resources/accounts/url_endpoints.rb +151 -0
- data/lib/imagekitio/resources/accounts/usage.rb +46 -0
- data/lib/imagekitio/resources/accounts.rb +26 -0
- data/lib/imagekitio/resources/assets.rb +54 -0
- data/lib/imagekitio/resources/beta/v2/files.rb +110 -0
- data/lib/imagekitio/resources/beta/v2.rb +20 -0
- data/lib/imagekitio/resources/beta.rb +18 -0
- data/lib/imagekitio/resources/cache/invalidation.rb +66 -0
- data/lib/imagekitio/resources/cache.rb +18 -0
- data/lib/imagekitio/resources/custom_metadata_fields.rb +133 -0
- data/lib/imagekitio/resources/files/bulk.rb +131 -0
- data/lib/imagekitio/resources/files/metadata.rb +69 -0
- data/lib/imagekitio/resources/files/versions.rb +132 -0
- data/lib/imagekitio/resources/files.rb +305 -0
- data/lib/imagekitio/resources/folders/job.rb +39 -0
- data/lib/imagekitio/resources/folders.rb +166 -0
- data/lib/imagekitio/resources/webhooks.rb +30 -0
- data/lib/imagekitio/version.rb +5 -0
- data/lib/imagekitio.rb +181 -13
- data/manifest.yaml +15 -0
- data/rbi/imagekitio/client.rbi +92 -0
- data/rbi/imagekitio/errors.rbi +205 -0
- data/rbi/imagekitio/file_part.rbi +37 -0
- data/rbi/imagekitio/helpers/helper.rbi +41 -0
- data/rbi/imagekitio/internal/transport/base_client.rbi +295 -0
- data/rbi/imagekitio/internal/transport/pooled_net_requester.rbi +80 -0
- data/rbi/imagekitio/internal/type/array_of.rbi +104 -0
- data/rbi/imagekitio/internal/type/base_model.rbi +304 -0
- data/rbi/imagekitio/internal/type/base_page.rbi +42 -0
- data/rbi/imagekitio/internal/type/boolean.rbi +58 -0
- data/rbi/imagekitio/internal/type/converter.rbi +216 -0
- data/rbi/imagekitio/internal/type/enum.rbi +82 -0
- data/rbi/imagekitio/internal/type/file_input.rbi +59 -0
- data/rbi/imagekitio/internal/type/hash_of.rbi +104 -0
- data/rbi/imagekitio/internal/type/request_parameters.rbi +29 -0
- data/rbi/imagekitio/internal/type/union.rbi +128 -0
- data/rbi/imagekitio/internal/type/unknown.rbi +58 -0
- data/rbi/imagekitio/internal/util.rbi +487 -0
- data/rbi/imagekitio/internal.rbi +18 -0
- data/rbi/imagekitio/models/accounts/origin_create_params.rbi +81 -0
- data/rbi/imagekitio/models/accounts/origin_delete_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/origin_get_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/origin_list_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/origin_list_response.rbi +15 -0
- data/rbi/imagekitio/models/accounts/origin_request.rbi +775 -0
- data/rbi/imagekitio/models/accounts/origin_response.rbi +718 -0
- data/rbi/imagekitio/models/accounts/origin_update_params.rbi +81 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_create_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_delete_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_get_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_list_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_list_response.rbi +15 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_request.rbi +218 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_response.rbi +213 -0
- data/rbi/imagekitio/models/accounts/url_endpoint_update_params.rbi +34 -0
- data/rbi/imagekitio/models/accounts/usage_get_params.rbi +60 -0
- data/rbi/imagekitio/models/accounts/usage_get_response.rbi +89 -0
- data/rbi/imagekitio/models/asset_list_params.rbi +281 -0
- data/rbi/imagekitio/models/asset_list_response.rbi +28 -0
- data/rbi/imagekitio/models/base_overlay.rbi +44 -0
- data/rbi/imagekitio/models/base_webhook_event.rbi +33 -0
- data/rbi/imagekitio/models/beta/v2/file_upload_params.rbi +861 -0
- data/rbi/imagekitio/models/beta/v2/file_upload_response.rbi +1197 -0
- data/rbi/imagekitio/models/cache/invalidation_create_params.rbi +45 -0
- data/rbi/imagekitio/models/cache/invalidation_create_response.rbi +37 -0
- data/rbi/imagekitio/models/cache/invalidation_get_params.rbi +34 -0
- data/rbi/imagekitio/models/cache/invalidation_get_response.rbi +93 -0
- data/rbi/imagekitio/models/custom_metadata_field.rbi +422 -0
- data/rbi/imagekitio/models/custom_metadata_field_create_params.rbi +443 -0
- data/rbi/imagekitio/models/custom_metadata_field_delete_params.rbi +30 -0
- data/rbi/imagekitio/models/custom_metadata_field_delete_response.rbi +23 -0
- data/rbi/imagekitio/models/custom_metadata_field_list_params.rbi +66 -0
- data/rbi/imagekitio/models/custom_metadata_field_list_response.rbi +11 -0
- data/rbi/imagekitio/models/custom_metadata_field_update_params.rbi +376 -0
- data/rbi/imagekitio/models/extensions.rbi +274 -0
- data/rbi/imagekitio/models/file.rbi +789 -0
- data/rbi/imagekitio/models/file_copy_params.rbi +66 -0
- data/rbi/imagekitio/models/file_copy_response.rbi +23 -0
- data/rbi/imagekitio/models/file_delete_params.rbi +27 -0
- data/rbi/imagekitio/models/file_get_params.rbi +27 -0
- data/rbi/imagekitio/models/file_move_params.rbi +51 -0
- data/rbi/imagekitio/models/file_move_response.rbi +23 -0
- data/rbi/imagekitio/models/file_rename_params.rbi +102 -0
- data/rbi/imagekitio/models/file_rename_response.rbi +35 -0
- data/rbi/imagekitio/models/file_update_params.rbi +58 -0
- data/rbi/imagekitio/models/file_update_response.rbi +322 -0
- data/rbi/imagekitio/models/file_upload_params.rbi +897 -0
- data/rbi/imagekitio/models/file_upload_response.rbi +1176 -0
- data/rbi/imagekitio/models/files/bulk_add_tags_params.rbi +56 -0
- data/rbi/imagekitio/models/files/bulk_add_tags_response.rbi +41 -0
- data/rbi/imagekitio/models/files/bulk_delete_params.rbi +48 -0
- data/rbi/imagekitio/models/files/bulk_delete_response.rbi +41 -0
- data/rbi/imagekitio/models/files/bulk_remove_ai_tags_params.rbi +56 -0
- data/rbi/imagekitio/models/files/bulk_remove_ai_tags_response.rbi +41 -0
- data/rbi/imagekitio/models/files/bulk_remove_tags_params.rbi +56 -0
- data/rbi/imagekitio/models/files/bulk_remove_tags_response.rbi +41 -0
- data/rbi/imagekitio/models/files/metadata_get_from_url_params.rbi +47 -0
- data/rbi/imagekitio/models/files/metadata_get_params.rbi +34 -0
- data/rbi/imagekitio/models/files/version_delete_params.rbi +40 -0
- data/rbi/imagekitio/models/files/version_delete_response.rbi +25 -0
- data/rbi/imagekitio/models/files/version_get_params.rbi +40 -0
- data/rbi/imagekitio/models/files/version_list_params.rbi +34 -0
- data/rbi/imagekitio/models/files/version_list_response.rbi +13 -0
- data/rbi/imagekitio/models/files/version_restore_params.rbi +40 -0
- data/rbi/imagekitio/models/folder.rbi +121 -0
- data/rbi/imagekitio/models/folder_copy_params.rbi +68 -0
- data/rbi/imagekitio/models/folder_copy_response.rbi +33 -0
- data/rbi/imagekitio/models/folder_create_params.rbi +71 -0
- data/rbi/imagekitio/models/folder_create_response.rbi +23 -0
- data/rbi/imagekitio/models/folder_delete_params.rbi +40 -0
- data/rbi/imagekitio/models/folder_delete_response.rbi +23 -0
- data/rbi/imagekitio/models/folder_move_params.rbi +53 -0
- data/rbi/imagekitio/models/folder_move_response.rbi +33 -0
- data/rbi/imagekitio/models/folder_rename_params.rbi +98 -0
- data/rbi/imagekitio/models/folder_rename_response.rbi +33 -0
- data/rbi/imagekitio/models/folders/job_get_params.rbi +34 -0
- data/rbi/imagekitio/models/folders/job_get_response.rbi +173 -0
- data/rbi/imagekitio/models/get_image_attributes_options.rbi +121 -0
- data/rbi/imagekitio/models/image_overlay.rbi +109 -0
- data/rbi/imagekitio/models/metadata.rbi +813 -0
- data/rbi/imagekitio/models/overlay.rbi +28 -0
- data/rbi/imagekitio/models/overlay_position.rbi +148 -0
- data/rbi/imagekitio/models/overlay_timing.rbi +135 -0
- data/rbi/imagekitio/models/responsive_image_attributes.rbi +74 -0
- data/rbi/imagekitio/models/solid_color_overlay.rbi +79 -0
- data/rbi/imagekitio/models/solid_color_overlay_transformation.rbi +218 -0
- data/rbi/imagekitio/models/src_options.rbi +159 -0
- data/rbi/imagekitio/models/streaming_resolution.rbi +38 -0
- data/rbi/imagekitio/models/subtitle_overlay.rbi +114 -0
- data/rbi/imagekitio/models/subtitle_overlay_transformation.rbi +215 -0
- data/rbi/imagekitio/models/text_overlay.rbi +110 -0
- data/rbi/imagekitio/models/text_overlay_transformation.rbi +451 -0
- data/rbi/imagekitio/models/transformation.rbi +1646 -0
- data/rbi/imagekitio/models/transformation_position.rbi +28 -0
- data/rbi/imagekitio/models/unsafe_unwrap_webhook_event.rbi +33 -0
- data/rbi/imagekitio/models/unwrap_webhook_event.rbi +31 -0
- data/rbi/imagekitio/models/update_file_request.rbi +316 -0
- data/rbi/imagekitio/models/upload_post_transform_error_event.rbi +434 -0
- data/rbi/imagekitio/models/upload_post_transform_success_event.rbi +327 -0
- data/rbi/imagekitio/models/upload_pre_transform_error_event.rbi +244 -0
- data/rbi/imagekitio/models/upload_pre_transform_success_event.rbi +1300 -0
- data/rbi/imagekitio/models/video_overlay.rbi +105 -0
- data/rbi/imagekitio/models/video_transformation_accepted_event.rbi +659 -0
- data/rbi/imagekitio/models/video_transformation_error_event.rbi +772 -0
- data/rbi/imagekitio/models/video_transformation_ready_event.rbi +864 -0
- data/rbi/imagekitio/models/webhook_unsafe_unwrap_params.rbi +30 -0
- data/rbi/imagekitio/models/webhook_unwrap_params.rbi +27 -0
- data/rbi/imagekitio/models.rbi +135 -0
- data/rbi/imagekitio/request_options.rbi +59 -0
- data/rbi/imagekitio/resources/accounts/origins.rbi +91 -0
- data/rbi/imagekitio/resources/accounts/url_endpoints.rbi +129 -0
- data/rbi/imagekitio/resources/accounts/usage.rbi +36 -0
- data/rbi/imagekitio/resources/accounts.rbi +21 -0
- data/rbi/imagekitio/resources/assets.rbi +74 -0
- data/rbi/imagekitio/resources/beta/v2/files.rbi +193 -0
- data/rbi/imagekitio/resources/beta/v2.rbi +17 -0
- data/rbi/imagekitio/resources/beta.rbi +15 -0
- data/rbi/imagekitio/resources/cache/invalidation.rbi +44 -0
- data/rbi/imagekitio/resources/cache.rbi +15 -0
- data/rbi/imagekitio/resources/custom_metadata_fields.rbi +106 -0
- data/rbi/imagekitio/resources/files/bulk.rbi +88 -0
- data/rbi/imagekitio/resources/files/metadata.rbi +49 -0
- data/rbi/imagekitio/resources/files/versions.rbi +89 -0
- data/rbi/imagekitio/resources/files.rbi +364 -0
- data/rbi/imagekitio/resources/folders/job.rbi +29 -0
- data/rbi/imagekitio/resources/folders.rbi +146 -0
- data/rbi/imagekitio/resources/webhooks.rbi +50 -0
- data/rbi/imagekitio/version.rbi +5 -0
- data/sig/imagekitio/client.rbs +47 -0
- data/sig/imagekitio/errors.rbs +117 -0
- data/sig/imagekitio/file_part.rbs +21 -0
- data/sig/imagekitio/helpers/helper.rbs +24 -0
- data/sig/imagekitio/internal/transport/base_client.rbs +131 -0
- data/sig/imagekitio/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/imagekitio/internal/type/array_of.rbs +48 -0
- data/sig/imagekitio/internal/type/base_model.rbs +102 -0
- data/sig/imagekitio/internal/type/base_page.rbs +24 -0
- data/sig/imagekitio/internal/type/boolean.rbs +26 -0
- data/sig/imagekitio/internal/type/converter.rbs +79 -0
- data/sig/imagekitio/internal/type/enum.rbs +32 -0
- data/sig/imagekitio/internal/type/file_input.rbs +25 -0
- data/sig/imagekitio/internal/type/hash_of.rbs +48 -0
- data/sig/imagekitio/internal/type/request_parameters.rbs +19 -0
- data/sig/imagekitio/internal/type/union.rbs +52 -0
- data/sig/imagekitio/internal/type/unknown.rbs +26 -0
- data/sig/imagekitio/internal/util.rbs +185 -0
- data/sig/imagekitio/internal.rbs +9 -0
- data/sig/imagekitio/models/accounts/origin_create_params.rbs +30 -0
- data/sig/imagekitio/models/accounts/origin_delete_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/origin_get_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/origin_list_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/origin_list_response.rbs +10 -0
- data/sig/imagekitio/models/accounts/origin_request.rbs +468 -0
- data/sig/imagekitio/models/accounts/origin_response.rbs +418 -0
- data/sig/imagekitio/models/accounts/origin_update_params.rbs +30 -0
- data/sig/imagekitio/models/accounts/url_endpoint_create_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/url_endpoint_delete_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/url_endpoint_get_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/url_endpoint_list_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/url_endpoint_list_response.rbs +10 -0
- data/sig/imagekitio/models/accounts/url_endpoint_request.rbs +97 -0
- data/sig/imagekitio/models/accounts/url_endpoint_response.rbs +96 -0
- data/sig/imagekitio/models/accounts/url_endpoint_update_params.rbs +17 -0
- data/sig/imagekitio/models/accounts/usage_get_params.rbs +30 -0
- data/sig/imagekitio/models/accounts/usage_get_response.rbs +52 -0
- data/sig/imagekitio/models/asset_list_params.rbs +138 -0
- data/sig/imagekitio/models/asset_list_response.rbs +16 -0
- data/sig/imagekitio/models/base_overlay.rbs +31 -0
- data/sig/imagekitio/models/base_webhook_event.rbs +15 -0
- data/sig/imagekitio/models/beta/v2/file_upload_params.rbs +310 -0
- data/sig/imagekitio/models/beta/v2/file_upload_response.rbs +487 -0
- data/sig/imagekitio/models/cache/invalidation_create_params.rbs +25 -0
- data/sig/imagekitio/models/cache/invalidation_create_response.rbs +17 -0
- data/sig/imagekitio/models/cache/invalidation_get_params.rbs +17 -0
- data/sig/imagekitio/models/cache/invalidation_get_response.rbs +35 -0
- data/sig/imagekitio/models/custom_metadata_field.rbs +178 -0
- data/sig/imagekitio/models/custom_metadata_field_create_params.rbs +179 -0
- data/sig/imagekitio/models/custom_metadata_field_delete_params.rbs +15 -0
- data/sig/imagekitio/models/custom_metadata_field_delete_response.rbs +11 -0
- data/sig/imagekitio/models/custom_metadata_field_list_params.rbs +32 -0
- data/sig/imagekitio/models/custom_metadata_field_list_response.rbs +8 -0
- data/sig/imagekitio/models/custom_metadata_field_update_params.rbs +152 -0
- data/sig/imagekitio/models/extensions.rbs +132 -0
- data/sig/imagekitio/models/file.rbs +384 -0
- data/sig/imagekitio/models/file_copy_params.rbs +38 -0
- data/sig/imagekitio/models/file_copy_response.rbs +11 -0
- data/sig/imagekitio/models/file_delete_params.rbs +15 -0
- data/sig/imagekitio/models/file_get_params.rbs +14 -0
- data/sig/imagekitio/models/file_move_params.rbs +28 -0
- data/sig/imagekitio/models/file_move_response.rbs +11 -0
- data/sig/imagekitio/models/file_rename_params.rbs +34 -0
- data/sig/imagekitio/models/file_rename_response.rbs +15 -0
- data/sig/imagekitio/models/file_update_params.rbs +28 -0
- data/sig/imagekitio/models/file_update_response.rbs +120 -0
- data/sig/imagekitio/models/file_upload_params.rbs +327 -0
- data/sig/imagekitio/models/file_upload_response.rbs +483 -0
- data/sig/imagekitio/models/files/bulk_add_tags_params.rbs +30 -0
- data/sig/imagekitio/models/files/bulk_add_tags_response.rbs +20 -0
- data/sig/imagekitio/models/files/bulk_delete_params.rbs +26 -0
- data/sig/imagekitio/models/files/bulk_delete_response.rbs +20 -0
- data/sig/imagekitio/models/files/bulk_remove_ai_tags_params.rbs +30 -0
- data/sig/imagekitio/models/files/bulk_remove_ai_tags_response.rbs +20 -0
- data/sig/imagekitio/models/files/bulk_remove_tags_params.rbs +30 -0
- data/sig/imagekitio/models/files/bulk_remove_tags_response.rbs +20 -0
- data/sig/imagekitio/models/files/metadata_get_from_url_params.rbs +25 -0
- data/sig/imagekitio/models/files/metadata_get_params.rbs +17 -0
- data/sig/imagekitio/models/files/version_delete_params.rbs +25 -0
- data/sig/imagekitio/models/files/version_delete_response.rbs +13 -0
- data/sig/imagekitio/models/files/version_get_params.rbs +25 -0
- data/sig/imagekitio/models/files/version_list_params.rbs +17 -0
- data/sig/imagekitio/models/files/version_list_response.rbs +9 -0
- data/sig/imagekitio/models/files/version_restore_params.rbs +25 -0
- data/sig/imagekitio/models/folder.rbs +69 -0
- data/sig/imagekitio/models/folder_copy_params.rbs +38 -0
- data/sig/imagekitio/models/folder_copy_response.rbs +13 -0
- data/sig/imagekitio/models/folder_create_params.rbs +28 -0
- data/sig/imagekitio/models/folder_create_response.rbs +11 -0
- data/sig/imagekitio/models/folder_delete_params.rbs +23 -0
- data/sig/imagekitio/models/folder_delete_response.rbs +11 -0
- data/sig/imagekitio/models/folder_move_params.rbs +28 -0
- data/sig/imagekitio/models/folder_move_response.rbs +13 -0
- data/sig/imagekitio/models/folder_rename_params.rbs +34 -0
- data/sig/imagekitio/models/folder_rename_response.rbs +13 -0
- data/sig/imagekitio/models/folders/job_get_params.rbs +17 -0
- data/sig/imagekitio/models/folders/job_get_response.rbs +72 -0
- data/sig/imagekitio/models/get_image_attributes_options.rbs +43 -0
- data/sig/imagekitio/models/image_overlay.rbs +59 -0
- data/sig/imagekitio/models/metadata.rbs +546 -0
- data/sig/imagekitio/models/overlay.rbs +16 -0
- data/sig/imagekitio/models/overlay_position.rbs +85 -0
- data/sig/imagekitio/models/overlay_timing.rbs +66 -0
- data/sig/imagekitio/models/responsive_image_attributes.rbs +36 -0
- data/sig/imagekitio/models/solid_color_overlay.rbs +38 -0
- data/sig/imagekitio/models/solid_color_overlay_transformation.rbs +97 -0
- data/sig/imagekitio/models/src_options.rbs +64 -0
- data/sig/imagekitio/models/streaming_resolution.rbs +20 -0
- data/sig/imagekitio/models/subtitle_overlay.rbs +59 -0
- data/sig/imagekitio/models/subtitle_overlay_transformation.rbs +78 -0
- data/sig/imagekitio/models/text_overlay.rbs +59 -0
- data/sig/imagekitio/models/text_overlay_transformation.rbs +195 -0
- data/sig/imagekitio/models/transformation.rbs +763 -0
- data/sig/imagekitio/models/transformation_position.rbs +14 -0
- data/sig/imagekitio/models/unsafe_unwrap_webhook_event.rbs +18 -0
- data/sig/imagekitio/models/unwrap_webhook_event.rbs +18 -0
- data/sig/imagekitio/models/update_file_request.rbs +122 -0
- data/sig/imagekitio/models/upload_post_transform_error_event.rbs +192 -0
- data/sig/imagekitio/models/upload_post_transform_success_event.rbs +142 -0
- data/sig/imagekitio/models/upload_pre_transform_error_event.rbs +115 -0
- data/sig/imagekitio/models/upload_pre_transform_success_event.rbs +541 -0
- data/sig/imagekitio/models/video_overlay.rbs +59 -0
- data/sig/imagekitio/models/video_transformation_accepted_event.rbs +261 -0
- data/sig/imagekitio/models/video_transformation_error_event.rbs +300 -0
- data/sig/imagekitio/models/video_transformation_ready_event.rbs +359 -0
- data/sig/imagekitio/models/webhook_unsafe_unwrap_params.rbs +15 -0
- data/sig/imagekitio/models/webhook_unwrap_params.rbs +15 -0
- data/sig/imagekitio/models.rbs +119 -0
- data/sig/imagekitio/request_options.rbs +36 -0
- data/sig/imagekitio/resources/accounts/origins.rbs +34 -0
- data/sig/imagekitio/resources/accounts/url_endpoints.rbs +40 -0
- data/sig/imagekitio/resources/accounts/usage.rbs +15 -0
- data/sig/imagekitio/resources/accounts.rbs +13 -0
- data/sig/imagekitio/resources/assets.rbs +18 -0
- data/sig/imagekitio/resources/beta/v2/files.rbs +35 -0
- data/sig/imagekitio/resources/beta/v2.rbs +11 -0
- data/sig/imagekitio/resources/beta.rbs +9 -0
- data/sig/imagekitio/resources/cache/invalidation.rbs +19 -0
- data/sig/imagekitio/resources/cache.rbs +9 -0
- data/sig/imagekitio/resources/custom_metadata_fields.rbs +32 -0
- data/sig/imagekitio/resources/files/bulk.rbs +32 -0
- data/sig/imagekitio/resources/files/metadata.rbs +19 -0
- data/sig/imagekitio/resources/files/versions.rbs +32 -0
- data/sig/imagekitio/resources/files.rbs +76 -0
- data/sig/imagekitio/resources/folders/job.rbs +14 -0
- data/sig/imagekitio/resources/folders.rbs +40 -0
- data/sig/imagekitio/resources/webhooks.rbs +27 -0
- data/sig/imagekitio/version.rbs +3 -0
- metadata +470 -136
- data/Rakefile +0 -27
- data/lib/active_storage/active_storage.rb +0 -7
- data/lib/active_storage/service/ik_file.rb +0 -115
- data/lib/active_storage/service/image_kit_io_service.rb +0 -188
- data/lib/carrierwave/carrierwave.rb +0 -83
- data/lib/carrierwave/storage/ik_file.rb +0 -51
- data/lib/carrierwave/storage/imagekit_store.rb +0 -68
- data/lib/carrierwave/support/uri_filename.rb +0 -12
- data/lib/imagekitio/api_service/bulk.rb +0 -58
- data/lib/imagekitio/api_service/custom_metadata_field.rb +0 -52
- data/lib/imagekitio/api_service/file.rb +0 -221
- data/lib/imagekitio/api_service/folder.rb +0 -49
- data/lib/imagekitio/base.rb +0 -12
- data/lib/imagekitio/configurable.rb +0 -43
- data/lib/imagekitio/constant.rb +0 -36
- data/lib/imagekitio/constants/default.rb +0 -22
- data/lib/imagekitio/constants/error.rb +0 -69
- data/lib/imagekitio/constants/file.rb +0 -11
- data/lib/imagekitio/constants/supported_transformation.rb +0 -39
- data/lib/imagekitio/constants/url.rb +0 -14
- data/lib/imagekitio/railtie.rb +0 -4
- data/lib/imagekitio/request.rb +0 -98
- data/lib/imagekitio/sdk/version.rb +0 -5
- data/lib/imagekitio/url.rb +0 -216
- data/lib/imagekitio/utils/calculation.rb +0 -45
- data/lib/imagekitio/utils/formatter.rb +0 -48
- data/lib/imagekitio/utils/option_validator.rb +0 -36
- data/lib/tasks/imagekitio/imagekitio_tasks.rake +0 -4
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module V2
|
|
7
|
+
# @see Imagekitio::Resources::Beta::V2::Files#upload
|
|
8
|
+
class FileUploadResponse < Imagekitio::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute ai_tags
|
|
10
|
+
# An array of tags assigned to the uploaded file by auto tagging.
|
|
11
|
+
#
|
|
12
|
+
# @return [Array<Imagekitio::Models::Beta::V2::FileUploadResponse::AITag>, nil]
|
|
13
|
+
optional :ai_tags,
|
|
14
|
+
-> { Imagekitio::Internal::Type::ArrayOf[Imagekitio::Models::Beta::V2::FileUploadResponse::AITag] },
|
|
15
|
+
api_name: :AITags,
|
|
16
|
+
nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute audio_codec
|
|
19
|
+
# The audio codec used in the video (only for video).
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :audio_codec, String, api_name: :audioCodec
|
|
23
|
+
|
|
24
|
+
# @!attribute bit_rate
|
|
25
|
+
# The bit rate of the video in kbps (only for video).
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
optional :bit_rate, Integer, api_name: :bitRate
|
|
29
|
+
|
|
30
|
+
# @!attribute custom_coordinates
|
|
31
|
+
# Value of custom coordinates associated with the image in the format
|
|
32
|
+
# `x,y,width,height`. If `customCoordinates` are not defined, then it is `null`.
|
|
33
|
+
# Send `customCoordinates` in `responseFields` in API request to get the value of
|
|
34
|
+
# this field.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :custom_coordinates, String, api_name: :customCoordinates, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute custom_metadata
|
|
40
|
+
# A key-value data associated with the asset. Use `responseField` in API request
|
|
41
|
+
# to get `customMetadata` in the upload API response. Before setting any custom
|
|
42
|
+
# metadata on an asset, you have to create the field using custom metadata fields
|
|
43
|
+
# API. Send `customMetadata` in `responseFields` in API request to get the value
|
|
44
|
+
# of this field.
|
|
45
|
+
#
|
|
46
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
47
|
+
optional :custom_metadata,
|
|
48
|
+
Imagekitio::Internal::Type::HashOf[Imagekitio::Internal::Type::Unknown],
|
|
49
|
+
api_name: :customMetadata
|
|
50
|
+
|
|
51
|
+
# @!attribute description
|
|
52
|
+
# Optional text to describe the contents of the file. Can be set by the user or
|
|
53
|
+
# the ai-auto-description extension.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :description, String
|
|
57
|
+
|
|
58
|
+
# @!attribute duration
|
|
59
|
+
# The duration of the video in seconds (only for video).
|
|
60
|
+
#
|
|
61
|
+
# @return [Integer, nil]
|
|
62
|
+
optional :duration, Integer
|
|
63
|
+
|
|
64
|
+
# @!attribute embedded_metadata
|
|
65
|
+
# Consolidated embedded metadata associated with the file. It includes exif, iptc,
|
|
66
|
+
# and xmp data. Send `embeddedMetadata` in `responseFields` in API request to get
|
|
67
|
+
# embeddedMetadata in the upload API response.
|
|
68
|
+
#
|
|
69
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
70
|
+
optional :embedded_metadata,
|
|
71
|
+
Imagekitio::Internal::Type::HashOf[Imagekitio::Internal::Type::Unknown],
|
|
72
|
+
api_name: :embeddedMetadata
|
|
73
|
+
|
|
74
|
+
# @!attribute extension_status
|
|
75
|
+
# Extension names with their processing status at the time of completion of the
|
|
76
|
+
# request. It could have one of the following status values:
|
|
77
|
+
#
|
|
78
|
+
# `success`: The extension has been successfully applied. `failed`: The extension
|
|
79
|
+
# has failed and will not be retried. `pending`: The extension will finish
|
|
80
|
+
# processing in some time. On completion, the final status (success / failed) will
|
|
81
|
+
# be sent to the `webhookUrl` provided.
|
|
82
|
+
#
|
|
83
|
+
# If no extension was requested, then this parameter is not returned.
|
|
84
|
+
#
|
|
85
|
+
# @return [Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus, nil]
|
|
86
|
+
optional :extension_status,
|
|
87
|
+
-> { Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus },
|
|
88
|
+
api_name: :extensionStatus
|
|
89
|
+
|
|
90
|
+
# @!attribute file_id
|
|
91
|
+
# Unique fileId. Store this fileld in your database, as this will be used to
|
|
92
|
+
# perform update action on this file.
|
|
93
|
+
#
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
optional :file_id, String, api_name: :fileId
|
|
96
|
+
|
|
97
|
+
# @!attribute file_path
|
|
98
|
+
# The relative path of the file in the media library e.g.
|
|
99
|
+
# `/marketing-assets/new-banner.jpg`.
|
|
100
|
+
#
|
|
101
|
+
# @return [String, nil]
|
|
102
|
+
optional :file_path, String, api_name: :filePath
|
|
103
|
+
|
|
104
|
+
# @!attribute file_type
|
|
105
|
+
# Type of the uploaded file. Possible values are `image`, `non-image`.
|
|
106
|
+
#
|
|
107
|
+
# @return [String, nil]
|
|
108
|
+
optional :file_type, String, api_name: :fileType
|
|
109
|
+
|
|
110
|
+
# @!attribute height
|
|
111
|
+
# Height of the image in pixels (Only for images)
|
|
112
|
+
#
|
|
113
|
+
# @return [Float, nil]
|
|
114
|
+
optional :height, Float
|
|
115
|
+
|
|
116
|
+
# @!attribute is_private_file
|
|
117
|
+
# Is the file marked as private. It can be either `true` or `false`. Send
|
|
118
|
+
# `isPrivateFile` in `responseFields` in API request to get the value of this
|
|
119
|
+
# field.
|
|
120
|
+
#
|
|
121
|
+
# @return [Boolean, nil]
|
|
122
|
+
optional :is_private_file, Imagekitio::Internal::Type::Boolean, api_name: :isPrivateFile
|
|
123
|
+
|
|
124
|
+
# @!attribute is_published
|
|
125
|
+
# Is the file published or in draft state. It can be either `true` or `false`.
|
|
126
|
+
# Send `isPublished` in `responseFields` in API request to get the value of this
|
|
127
|
+
# field.
|
|
128
|
+
#
|
|
129
|
+
# @return [Boolean, nil]
|
|
130
|
+
optional :is_published, Imagekitio::Internal::Type::Boolean, api_name: :isPublished
|
|
131
|
+
|
|
132
|
+
# @!attribute metadata
|
|
133
|
+
# Legacy metadata. Send `metadata` in `responseFields` in API request to get
|
|
134
|
+
# metadata in the upload API response.
|
|
135
|
+
#
|
|
136
|
+
# @return [Imagekitio::Models::Metadata, nil]
|
|
137
|
+
optional :metadata, -> { Imagekitio::Metadata }
|
|
138
|
+
|
|
139
|
+
# @!attribute name
|
|
140
|
+
# Name of the asset.
|
|
141
|
+
#
|
|
142
|
+
# @return [String, nil]
|
|
143
|
+
optional :name, String
|
|
144
|
+
|
|
145
|
+
# @!attribute selected_fields_schema
|
|
146
|
+
# This field is included in the response only if the Path policy feature is
|
|
147
|
+
# available in the plan. It contains schema definitions for the custom metadata
|
|
148
|
+
# fields selected for the specified file path. Field selection can only be done
|
|
149
|
+
# when the Path policy feature is enabled.
|
|
150
|
+
#
|
|
151
|
+
# Keys are the names of the custom metadata fields; the value object has details
|
|
152
|
+
# about the custom metadata schema.
|
|
153
|
+
#
|
|
154
|
+
# @return [Hash{Symbol=>Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema}, nil]
|
|
155
|
+
optional :selected_fields_schema,
|
|
156
|
+
-> { Imagekitio::Internal::Type::HashOf[Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema] },
|
|
157
|
+
api_name: :selectedFieldsSchema
|
|
158
|
+
|
|
159
|
+
# @!attribute size
|
|
160
|
+
# Size of the image file in Bytes.
|
|
161
|
+
#
|
|
162
|
+
# @return [Float, nil]
|
|
163
|
+
optional :size, Float
|
|
164
|
+
|
|
165
|
+
# @!attribute tags
|
|
166
|
+
# The array of tags associated with the asset. If no tags are set, it will be
|
|
167
|
+
# `null`. Send `tags` in `responseFields` in API request to get the value of this
|
|
168
|
+
# field.
|
|
169
|
+
#
|
|
170
|
+
# @return [Array<String>, nil]
|
|
171
|
+
optional :tags, Imagekitio::Internal::Type::ArrayOf[String], nil?: true
|
|
172
|
+
|
|
173
|
+
# @!attribute thumbnail_url
|
|
174
|
+
# In the case of an image, a small thumbnail URL.
|
|
175
|
+
#
|
|
176
|
+
# @return [String, nil]
|
|
177
|
+
optional :thumbnail_url, String, api_name: :thumbnailUrl
|
|
178
|
+
|
|
179
|
+
# @!attribute url
|
|
180
|
+
# A publicly accessible URL of the file.
|
|
181
|
+
#
|
|
182
|
+
# @return [String, nil]
|
|
183
|
+
optional :url, String
|
|
184
|
+
|
|
185
|
+
# @!attribute version_info
|
|
186
|
+
# An object containing the file or file version's `id` (versionId) and `name`.
|
|
187
|
+
#
|
|
188
|
+
# @return [Imagekitio::Models::Beta::V2::FileUploadResponse::VersionInfo, nil]
|
|
189
|
+
optional :version_info,
|
|
190
|
+
-> { Imagekitio::Models::Beta::V2::FileUploadResponse::VersionInfo },
|
|
191
|
+
api_name: :versionInfo
|
|
192
|
+
|
|
193
|
+
# @!attribute video_codec
|
|
194
|
+
# The video codec used in the video (only for video).
|
|
195
|
+
#
|
|
196
|
+
# @return [String, nil]
|
|
197
|
+
optional :video_codec, String, api_name: :videoCodec
|
|
198
|
+
|
|
199
|
+
# @!attribute width
|
|
200
|
+
# Width of the image in pixels (Only for Images)
|
|
201
|
+
#
|
|
202
|
+
# @return [Float, nil]
|
|
203
|
+
optional :width, Float
|
|
204
|
+
|
|
205
|
+
# @!method initialize(ai_tags: nil, audio_codec: nil, bit_rate: nil, custom_coordinates: nil, custom_metadata: nil, description: nil, duration: nil, embedded_metadata: nil, extension_status: nil, file_id: nil, file_path: nil, file_type: nil, height: nil, is_private_file: nil, is_published: nil, metadata: nil, name: nil, selected_fields_schema: nil, size: nil, tags: nil, thumbnail_url: nil, url: nil, version_info: nil, video_codec: nil, width: nil)
|
|
206
|
+
# Some parameter documentations has been truncated, see
|
|
207
|
+
# {Imagekitio::Models::Beta::V2::FileUploadResponse} for more details.
|
|
208
|
+
#
|
|
209
|
+
# Object containing details of a successful upload.
|
|
210
|
+
#
|
|
211
|
+
# @param ai_tags [Array<Imagekitio::Models::Beta::V2::FileUploadResponse::AITag>, nil] An array of tags assigned to the uploaded file by auto tagging.
|
|
212
|
+
#
|
|
213
|
+
# @param audio_codec [String] The audio codec used in the video (only for video).
|
|
214
|
+
#
|
|
215
|
+
# @param bit_rate [Integer] The bit rate of the video in kbps (only for video).
|
|
216
|
+
#
|
|
217
|
+
# @param custom_coordinates [String, nil] Value of custom coordinates associated with the image in the format `x,y,width,h
|
|
218
|
+
#
|
|
219
|
+
# @param custom_metadata [Hash{Symbol=>Object}] A key-value data associated with the asset. Use `responseField` in API request t
|
|
220
|
+
#
|
|
221
|
+
# @param description [String] Optional text to describe the contents of the file. Can be set by the user or th
|
|
222
|
+
#
|
|
223
|
+
# @param duration [Integer] The duration of the video in seconds (only for video).
|
|
224
|
+
#
|
|
225
|
+
# @param embedded_metadata [Hash{Symbol=>Object}] Consolidated embedded metadata associated with the file. It includes exif, iptc,
|
|
226
|
+
#
|
|
227
|
+
# @param extension_status [Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus] Extension names with their processing status at the time of completion of the re
|
|
228
|
+
#
|
|
229
|
+
# @param file_id [String] Unique fileId. Store this fileld in your database, as this will be used to perfo
|
|
230
|
+
#
|
|
231
|
+
# @param file_path [String] The relative path of the file in the media library e.g. `/marketing-assets/new-b
|
|
232
|
+
#
|
|
233
|
+
# @param file_type [String] Type of the uploaded file. Possible values are `image`, `non-image`.
|
|
234
|
+
#
|
|
235
|
+
# @param height [Float] Height of the image in pixels (Only for images)
|
|
236
|
+
#
|
|
237
|
+
# @param is_private_file [Boolean] Is the file marked as private. It can be either `true` or `false`. Send `isPriva
|
|
238
|
+
#
|
|
239
|
+
# @param is_published [Boolean] Is the file published or in draft state. It can be either `true` or `false`. Sen
|
|
240
|
+
#
|
|
241
|
+
# @param metadata [Imagekitio::Models::Metadata] Legacy metadata. Send `metadata` in `responseFields` in API request to get metad
|
|
242
|
+
#
|
|
243
|
+
# @param name [String] Name of the asset.
|
|
244
|
+
#
|
|
245
|
+
# @param selected_fields_schema [Hash{Symbol=>Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema}] This field is included in the response only if the Path policy feature is availa
|
|
246
|
+
#
|
|
247
|
+
# @param size [Float] Size of the image file in Bytes.
|
|
248
|
+
#
|
|
249
|
+
# @param tags [Array<String>, nil] The array of tags associated with the asset. If no tags are set, it will be `nul
|
|
250
|
+
#
|
|
251
|
+
# @param thumbnail_url [String] In the case of an image, a small thumbnail URL.
|
|
252
|
+
#
|
|
253
|
+
# @param url [String] A publicly accessible URL of the file.
|
|
254
|
+
#
|
|
255
|
+
# @param version_info [Imagekitio::Models::Beta::V2::FileUploadResponse::VersionInfo] An object containing the file or file version's `id` (versionId) and `name`.
|
|
256
|
+
#
|
|
257
|
+
# @param video_codec [String] The video codec used in the video (only for video).
|
|
258
|
+
#
|
|
259
|
+
# @param width [Float] Width of the image in pixels (Only for Images)
|
|
260
|
+
|
|
261
|
+
class AITag < Imagekitio::Internal::Type::BaseModel
|
|
262
|
+
# @!attribute confidence
|
|
263
|
+
# Confidence score of the tag.
|
|
264
|
+
#
|
|
265
|
+
# @return [Float, nil]
|
|
266
|
+
optional :confidence, Float
|
|
267
|
+
|
|
268
|
+
# @!attribute name
|
|
269
|
+
# Name of the tag.
|
|
270
|
+
#
|
|
271
|
+
# @return [String, nil]
|
|
272
|
+
optional :name, String
|
|
273
|
+
|
|
274
|
+
# @!attribute source
|
|
275
|
+
# Array of `AITags` associated with the image. If no `AITags` are set, it will be
|
|
276
|
+
# null. These tags can be added using the `google-auto-tagging` or
|
|
277
|
+
# `aws-auto-tagging` extensions.
|
|
278
|
+
#
|
|
279
|
+
# @return [String, nil]
|
|
280
|
+
optional :source, String
|
|
281
|
+
|
|
282
|
+
# @!method initialize(confidence: nil, name: nil, source: nil)
|
|
283
|
+
# Some parameter documentations has been truncated, see
|
|
284
|
+
# {Imagekitio::Models::Beta::V2::FileUploadResponse::AITag} for more details.
|
|
285
|
+
#
|
|
286
|
+
# @param confidence [Float] Confidence score of the tag.
|
|
287
|
+
#
|
|
288
|
+
# @param name [String] Name of the tag.
|
|
289
|
+
#
|
|
290
|
+
# @param source [String] Array of `AITags` associated with the image. If no `AITags` are set, it will be
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse#extension_status
|
|
294
|
+
class ExtensionStatus < Imagekitio::Internal::Type::BaseModel
|
|
295
|
+
# @!attribute ai_auto_description
|
|
296
|
+
#
|
|
297
|
+
# @return [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AIAutoDescription, nil]
|
|
298
|
+
optional :ai_auto_description,
|
|
299
|
+
enum: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AIAutoDescription },
|
|
300
|
+
api_name: :"ai-auto-description"
|
|
301
|
+
|
|
302
|
+
# @!attribute aws_auto_tagging
|
|
303
|
+
#
|
|
304
|
+
# @return [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AwsAutoTagging, nil]
|
|
305
|
+
optional :aws_auto_tagging,
|
|
306
|
+
enum: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AwsAutoTagging },
|
|
307
|
+
api_name: :"aws-auto-tagging"
|
|
308
|
+
|
|
309
|
+
# @!attribute google_auto_tagging
|
|
310
|
+
#
|
|
311
|
+
# @return [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::GoogleAutoTagging, nil]
|
|
312
|
+
optional :google_auto_tagging,
|
|
313
|
+
enum: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::GoogleAutoTagging },
|
|
314
|
+
api_name: :"google-auto-tagging"
|
|
315
|
+
|
|
316
|
+
# @!attribute remove_bg
|
|
317
|
+
#
|
|
318
|
+
# @return [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::RemoveBg, nil]
|
|
319
|
+
optional :remove_bg,
|
|
320
|
+
enum: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::RemoveBg },
|
|
321
|
+
api_name: :"remove-bg"
|
|
322
|
+
|
|
323
|
+
# @!method initialize(ai_auto_description: nil, aws_auto_tagging: nil, google_auto_tagging: nil, remove_bg: nil)
|
|
324
|
+
# Extension names with their processing status at the time of completion of the
|
|
325
|
+
# request. It could have one of the following status values:
|
|
326
|
+
#
|
|
327
|
+
# `success`: The extension has been successfully applied. `failed`: The extension
|
|
328
|
+
# has failed and will not be retried. `pending`: The extension will finish
|
|
329
|
+
# processing in some time. On completion, the final status (success / failed) will
|
|
330
|
+
# be sent to the `webhookUrl` provided.
|
|
331
|
+
#
|
|
332
|
+
# If no extension was requested, then this parameter is not returned.
|
|
333
|
+
#
|
|
334
|
+
# @param ai_auto_description [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AIAutoDescription]
|
|
335
|
+
# @param aws_auto_tagging [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::AwsAutoTagging]
|
|
336
|
+
# @param google_auto_tagging [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::GoogleAutoTagging]
|
|
337
|
+
# @param remove_bg [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus::RemoveBg]
|
|
338
|
+
|
|
339
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus#ai_auto_description
|
|
340
|
+
module AIAutoDescription
|
|
341
|
+
extend Imagekitio::Internal::Type::Enum
|
|
342
|
+
|
|
343
|
+
SUCCESS = :success
|
|
344
|
+
PENDING = :pending
|
|
345
|
+
FAILED = :failed
|
|
346
|
+
|
|
347
|
+
# @!method self.values
|
|
348
|
+
# @return [Array<Symbol>]
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus#aws_auto_tagging
|
|
352
|
+
module AwsAutoTagging
|
|
353
|
+
extend Imagekitio::Internal::Type::Enum
|
|
354
|
+
|
|
355
|
+
SUCCESS = :success
|
|
356
|
+
PENDING = :pending
|
|
357
|
+
FAILED = :failed
|
|
358
|
+
|
|
359
|
+
# @!method self.values
|
|
360
|
+
# @return [Array<Symbol>]
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus#google_auto_tagging
|
|
364
|
+
module GoogleAutoTagging
|
|
365
|
+
extend Imagekitio::Internal::Type::Enum
|
|
366
|
+
|
|
367
|
+
SUCCESS = :success
|
|
368
|
+
PENDING = :pending
|
|
369
|
+
FAILED = :failed
|
|
370
|
+
|
|
371
|
+
# @!method self.values
|
|
372
|
+
# @return [Array<Symbol>]
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::ExtensionStatus#remove_bg
|
|
376
|
+
module RemoveBg
|
|
377
|
+
extend Imagekitio::Internal::Type::Enum
|
|
378
|
+
|
|
379
|
+
SUCCESS = :success
|
|
380
|
+
PENDING = :pending
|
|
381
|
+
FAILED = :failed
|
|
382
|
+
|
|
383
|
+
# @!method self.values
|
|
384
|
+
# @return [Array<Symbol>]
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
class SelectedFieldsSchema < Imagekitio::Internal::Type::BaseModel
|
|
389
|
+
# @!attribute type
|
|
390
|
+
# Type of the custom metadata field.
|
|
391
|
+
#
|
|
392
|
+
# @return [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::Type]
|
|
393
|
+
required :type, enum: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::Type }
|
|
394
|
+
|
|
395
|
+
# @!attribute default_value
|
|
396
|
+
# The default value for this custom metadata field. The value should match the
|
|
397
|
+
# `type` of custom metadata field.
|
|
398
|
+
#
|
|
399
|
+
# @return [String, Float, Boolean, Array<String, Float, Boolean>, nil]
|
|
400
|
+
optional :default_value,
|
|
401
|
+
union: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::DefaultValue },
|
|
402
|
+
api_name: :defaultValue
|
|
403
|
+
|
|
404
|
+
# @!attribute is_value_required
|
|
405
|
+
# Specifies if the custom metadata field is required or not.
|
|
406
|
+
#
|
|
407
|
+
# @return [Boolean, nil]
|
|
408
|
+
optional :is_value_required, Imagekitio::Internal::Type::Boolean, api_name: :isValueRequired
|
|
409
|
+
|
|
410
|
+
# @!attribute max_length
|
|
411
|
+
# Maximum length of string. Only set if `type` is set to `Text` or `Textarea`.
|
|
412
|
+
#
|
|
413
|
+
# @return [Float, nil]
|
|
414
|
+
optional :max_length, Float, api_name: :maxLength
|
|
415
|
+
|
|
416
|
+
# @!attribute max_value
|
|
417
|
+
# Maximum value of the field. Only set if field type is `Date` or `Number`. For
|
|
418
|
+
# `Date` type field, the value will be in ISO8601 string format. For `Number` type
|
|
419
|
+
# field, it will be a numeric value.
|
|
420
|
+
#
|
|
421
|
+
# @return [String, Float, nil]
|
|
422
|
+
optional :max_value,
|
|
423
|
+
union: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::MaxValue },
|
|
424
|
+
api_name: :maxValue
|
|
425
|
+
|
|
426
|
+
# @!attribute min_length
|
|
427
|
+
# Minimum length of string. Only set if `type` is set to `Text` or `Textarea`.
|
|
428
|
+
#
|
|
429
|
+
# @return [Float, nil]
|
|
430
|
+
optional :min_length, Float, api_name: :minLength
|
|
431
|
+
|
|
432
|
+
# @!attribute min_value
|
|
433
|
+
# Minimum value of the field. Only set if field type is `Date` or `Number`. For
|
|
434
|
+
# `Date` type field, the value will be in ISO8601 string format. For `Number` type
|
|
435
|
+
# field, it will be a numeric value.
|
|
436
|
+
#
|
|
437
|
+
# @return [String, Float, nil]
|
|
438
|
+
optional :min_value,
|
|
439
|
+
union: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::MinValue },
|
|
440
|
+
api_name: :minValue
|
|
441
|
+
|
|
442
|
+
# @!attribute read_only
|
|
443
|
+
# Indicates whether the custom metadata field is read only. A read only field
|
|
444
|
+
# cannot be modified after being set. This field is configurable only via the
|
|
445
|
+
# **Path policy** feature.
|
|
446
|
+
#
|
|
447
|
+
# @return [Boolean, nil]
|
|
448
|
+
optional :read_only, Imagekitio::Internal::Type::Boolean, api_name: :readOnly
|
|
449
|
+
|
|
450
|
+
# @!attribute select_options
|
|
451
|
+
# An array of allowed values when field type is `SingleSelect` or `MultiSelect`.
|
|
452
|
+
#
|
|
453
|
+
# @return [Array<String, Float, Boolean>, nil]
|
|
454
|
+
optional :select_options,
|
|
455
|
+
-> { Imagekitio::Internal::Type::ArrayOf[union: Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::SelectOption] },
|
|
456
|
+
api_name: :selectOptions
|
|
457
|
+
|
|
458
|
+
# @!attribute select_options_truncated
|
|
459
|
+
# Specifies if the selectOptions array is truncated. It is truncated when number
|
|
460
|
+
# of options are > 100.
|
|
461
|
+
#
|
|
462
|
+
# @return [Boolean, nil]
|
|
463
|
+
optional :select_options_truncated,
|
|
464
|
+
Imagekitio::Internal::Type::Boolean,
|
|
465
|
+
api_name: :selectOptionsTruncated
|
|
466
|
+
|
|
467
|
+
# @!method initialize(type:, default_value: nil, is_value_required: nil, max_length: nil, max_value: nil, min_length: nil, min_value: nil, read_only: nil, select_options: nil, select_options_truncated: nil)
|
|
468
|
+
# Some parameter documentations has been truncated, see
|
|
469
|
+
# {Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema} for
|
|
470
|
+
# more details.
|
|
471
|
+
#
|
|
472
|
+
# @param type [Symbol, Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::Type] Type of the custom metadata field.
|
|
473
|
+
#
|
|
474
|
+
# @param default_value [String, Float, Boolean, Array<String, Float, Boolean>] The default value for this custom metadata field. The value should match the `ty
|
|
475
|
+
#
|
|
476
|
+
# @param is_value_required [Boolean] Specifies if the custom metadata field is required or not.
|
|
477
|
+
#
|
|
478
|
+
# @param max_length [Float] Maximum length of string. Only set if `type` is set to `Text` or `Textarea`.
|
|
479
|
+
#
|
|
480
|
+
# @param max_value [String, Float] Maximum value of the field. Only set if field type is `Date` or `Number`. For `D
|
|
481
|
+
#
|
|
482
|
+
# @param min_length [Float] Minimum length of string. Only set if `type` is set to `Text` or `Textarea`.
|
|
483
|
+
#
|
|
484
|
+
# @param min_value [String, Float] Minimum value of the field. Only set if field type is `Date` or `Number`. For `D
|
|
485
|
+
#
|
|
486
|
+
# @param read_only [Boolean] Indicates whether the custom metadata field is read only. A read only field cann
|
|
487
|
+
#
|
|
488
|
+
# @param select_options [Array<String, Float, Boolean>] An array of allowed values when field type is `SingleSelect` or `MultiSelect`.
|
|
489
|
+
#
|
|
490
|
+
# @param select_options_truncated [Boolean] Specifies if the selectOptions array is truncated. It is truncated when number o
|
|
491
|
+
|
|
492
|
+
# Type of the custom metadata field.
|
|
493
|
+
#
|
|
494
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema#type
|
|
495
|
+
module Type
|
|
496
|
+
extend Imagekitio::Internal::Type::Enum
|
|
497
|
+
|
|
498
|
+
TEXT = :Text
|
|
499
|
+
TEXTAREA = :Textarea
|
|
500
|
+
NUMBER = :Number
|
|
501
|
+
DATE = :Date
|
|
502
|
+
BOOLEAN = :Boolean
|
|
503
|
+
SINGLE_SELECT = :SingleSelect
|
|
504
|
+
MULTI_SELECT = :MultiSelect
|
|
505
|
+
|
|
506
|
+
# @!method self.values
|
|
507
|
+
# @return [Array<Symbol>]
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# The default value for this custom metadata field. The value should match the
|
|
511
|
+
# `type` of custom metadata field.
|
|
512
|
+
#
|
|
513
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema#default_value
|
|
514
|
+
module DefaultValue
|
|
515
|
+
extend Imagekitio::Internal::Type::Union
|
|
516
|
+
|
|
517
|
+
variant String
|
|
518
|
+
|
|
519
|
+
variant Float
|
|
520
|
+
|
|
521
|
+
variant Imagekitio::Internal::Type::Boolean
|
|
522
|
+
|
|
523
|
+
# Default value should be of type array when custom metadata field type is set to `MultiSelect`.
|
|
524
|
+
variant -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::DefaultValue::MixedArray }
|
|
525
|
+
|
|
526
|
+
module Mixed
|
|
527
|
+
extend Imagekitio::Internal::Type::Union
|
|
528
|
+
|
|
529
|
+
variant String
|
|
530
|
+
|
|
531
|
+
variant Float
|
|
532
|
+
|
|
533
|
+
variant Imagekitio::Internal::Type::Boolean
|
|
534
|
+
|
|
535
|
+
# @!method self.variants
|
|
536
|
+
# @return [Array(String, Float, Boolean)]
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# @!method self.variants
|
|
540
|
+
# @return [Array(String, Float, Boolean, Array<String, Float, Boolean>)]
|
|
541
|
+
|
|
542
|
+
# @type [Imagekitio::Internal::Type::Converter]
|
|
543
|
+
MixedArray =
|
|
544
|
+
Imagekitio::Internal::Type::ArrayOf[union: -> { Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema::DefaultValue::Mixed }]
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Maximum value of the field. Only set if field type is `Date` or `Number`. For
|
|
548
|
+
# `Date` type field, the value will be in ISO8601 string format. For `Number` type
|
|
549
|
+
# field, it will be a numeric value.
|
|
550
|
+
#
|
|
551
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema#max_value
|
|
552
|
+
module MaxValue
|
|
553
|
+
extend Imagekitio::Internal::Type::Union
|
|
554
|
+
|
|
555
|
+
variant String
|
|
556
|
+
|
|
557
|
+
variant Float
|
|
558
|
+
|
|
559
|
+
# @!method self.variants
|
|
560
|
+
# @return [Array(String, Float)]
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# Minimum value of the field. Only set if field type is `Date` or `Number`. For
|
|
564
|
+
# `Date` type field, the value will be in ISO8601 string format. For `Number` type
|
|
565
|
+
# field, it will be a numeric value.
|
|
566
|
+
#
|
|
567
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse::SelectedFieldsSchema#min_value
|
|
568
|
+
module MinValue
|
|
569
|
+
extend Imagekitio::Internal::Type::Union
|
|
570
|
+
|
|
571
|
+
variant String
|
|
572
|
+
|
|
573
|
+
variant Float
|
|
574
|
+
|
|
575
|
+
# @!method self.variants
|
|
576
|
+
# @return [Array(String, Float)]
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
module SelectOption
|
|
580
|
+
extend Imagekitio::Internal::Type::Union
|
|
581
|
+
|
|
582
|
+
variant String
|
|
583
|
+
|
|
584
|
+
variant Float
|
|
585
|
+
|
|
586
|
+
variant Imagekitio::Internal::Type::Boolean
|
|
587
|
+
|
|
588
|
+
# @!method self.variants
|
|
589
|
+
# @return [Array(String, Float, Boolean)]
|
|
590
|
+
end
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
# @see Imagekitio::Models::Beta::V2::FileUploadResponse#version_info
|
|
594
|
+
class VersionInfo < Imagekitio::Internal::Type::BaseModel
|
|
595
|
+
# @!attribute id
|
|
596
|
+
# Unique identifier of the file version.
|
|
597
|
+
#
|
|
598
|
+
# @return [String, nil]
|
|
599
|
+
optional :id, String
|
|
600
|
+
|
|
601
|
+
# @!attribute name
|
|
602
|
+
# Name of the file version.
|
|
603
|
+
#
|
|
604
|
+
# @return [String, nil]
|
|
605
|
+
optional :name, String
|
|
606
|
+
|
|
607
|
+
# @!method initialize(id: nil, name: nil)
|
|
608
|
+
# An object containing the file or file version's `id` (versionId) and `name`.
|
|
609
|
+
#
|
|
610
|
+
# @param id [String] Unique identifier of the file version.
|
|
611
|
+
#
|
|
612
|
+
# @param name [String] Name of the file version.
|
|
613
|
+
end
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
end
|
|
617
|
+
end
|
|
618
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Cache
|
|
6
|
+
# @see Imagekitio::Resources::Cache::Invalidation#create
|
|
7
|
+
class InvalidationCreateParams < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute url
|
|
12
|
+
# The full URL of the file to be purged.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :url, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(url:, request_options: {})
|
|
18
|
+
# Some parameter documentations has been truncated, see
|
|
19
|
+
# {Imagekitio::Models::Cache::InvalidationCreateParams} for more details.
|
|
20
|
+
#
|
|
21
|
+
# @param url [String] The full URL of the file to be purged.
|
|
22
|
+
#
|
|
23
|
+
# @param request_options [Imagekitio::RequestOptions, Hash{Symbol=>Object}]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Cache
|
|
6
|
+
# @see Imagekitio::Resources::Cache::Invalidation#create
|
|
7
|
+
class InvalidationCreateResponse < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute request_id
|
|
9
|
+
# Unique identifier of the purge request. This can be used to check the status of
|
|
10
|
+
# the purge request.
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :request_id, String, api_name: :requestId
|
|
14
|
+
|
|
15
|
+
# @!method initialize(request_id: nil)
|
|
16
|
+
# Some parameter documentations has been truncated, see
|
|
17
|
+
# {Imagekitio::Models::Cache::InvalidationCreateResponse} for more details.
|
|
18
|
+
#
|
|
19
|
+
# @param request_id [String] Unique identifier of the purge request. This can be used to check the status of
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Imagekitio
|
|
4
|
+
module Models
|
|
5
|
+
module Cache
|
|
6
|
+
# @see Imagekitio::Resources::Cache::Invalidation#get
|
|
7
|
+
class InvalidationGetParams < Imagekitio::Internal::Type::BaseModel
|
|
8
|
+
extend Imagekitio::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Imagekitio::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [Imagekitio::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|