slidize_cloud 24.9.0 → 24.10.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/README.md +118 -0
  4. data/Rakefile +10 -0
  5. data/TestData/macros.pptm +0 -0
  6. data/TestData/master.pptx +0 -0
  7. data/TestData/protected.pptx +0 -0
  8. data/TestData/test.pptx +0 -0
  9. data/TestData/watermark.png +0 -0
  10. data/git_push.sh +57 -0
  11. data/lib/slidize_cloud/api/slidize_api.rb +829 -0
  12. data/lib/slidize_cloud/api_client.rb +451 -0
  13. data/lib/slidize_cloud/api_error.rb +75 -0
  14. data/lib/slidize_cloud/configuration.rb +389 -0
  15. data/lib/slidize_cloud/models/convert_request.rb +238 -0
  16. data/lib/slidize_cloud/models/convert_to_video_request.rb +245 -0
  17. data/lib/slidize_cloud/models/export_format.rb +83 -0
  18. data/lib/slidize_cloud/models/image_watermark_options.rb +247 -0
  19. data/lib/slidize_cloud/models/image_watermark_request.rb +256 -0
  20. data/lib/slidize_cloud/models/merge_options.rb +246 -0
  21. data/lib/slidize_cloud/models/merge_request.rb +247 -0
  22. data/lib/slidize_cloud/models/protect_request.rb +245 -0
  23. data/lib/slidize_cloud/models/protection_options.rb +256 -0
  24. data/lib/slidize_cloud/models/replace_text_options.rb +256 -0
  25. data/lib/slidize_cloud/models/replace_text_request.rb +247 -0
  26. data/lib/slidize_cloud/models/split_options.rb +237 -0
  27. data/lib/slidize_cloud/models/split_request.rb +245 -0
  28. data/lib/slidize_cloud/models/text_watermark_options.rb +277 -0
  29. data/lib/slidize_cloud/models/text_watermark_request.rb +247 -0
  30. data/lib/slidize_cloud/models/unprotect_request.rb +236 -0
  31. data/lib/slidize_cloud/models/video_options.rb +287 -0
  32. data/lib/slidize_cloud/models/video_resolution_type.rb +59 -0
  33. data/lib/slidize_cloud/models/video_transition_type.rb +63 -0
  34. data/lib/slidize_cloud/version.rb +32 -0
  35. data/lib/slidize_cloud.rb +76 -0
  36. data/slidize_cloud.gemspec +56 -0
  37. data/spec/api_client_spec.rb +240 -0
  38. data/spec/configuration_spec.rb +99 -0
  39. data/spec/spec_helper.rb +128 -0
  40. metadata +44 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eb4e8f510aba30252599051267f298f29470cd85c4c85dee33c882b4c16f113
4
- data.tar.gz: d1f13666f31e2510555cfaf4cea0be9dbf28087a4d19525c7674677988148a9a
3
+ metadata.gz: 8e26223d05a31da413f20e539230c5cee1f3431ff063b70ae3e98030b6aa4beb
4
+ data.tar.gz: 68163616e03cc1fbf440e1cc48b339f8fef7937ffd8e5012183e2ada3c7fabd4
5
5
  SHA512:
6
- metadata.gz: f00b6d4dd80be9feb60585719bdd579f1883e3be8f0298c98a2293837c3991dc60481f0788f11b82367d0d7d80fdaedd9f2f982bfaa931f1f4a211a11ef95d0c
7
- data.tar.gz: ff6bdbfa0b038554384c6515bacd2d9d3e9bcbdfd5db237407d28e4072f08c289d95ef07793dfc133f6735d3e5700756cb2da88a1fa9d14dab85d1bef5111e47
6
+ metadata.gz: 99eb3e683dde68c25590a3e5329e9e3495edecac4e809c6dc10867fe2016243ea375dd3ef15de9bc77c5a502598eae9f1a820a385823ee44f86b758527e60336
7
+ data.tar.gz: 8df80a7fce8c42700eee625cc13cd078c3fb7dce57612f7a32c52ee4210716b2fa9a7134ea063ade726e050e82465f0e7487a03fe693319ffb165f5113574ebb
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # slidize_cloud
2
+
3
+ SlidizeCloud - the Ruby gem for the Slidize.Cloud Web API References
4
+
5
+ Slidize.Cloud Web API for managing PowerPoint presentations.
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v1.0
10
+ - Package version: 24.10.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build slidize_cloud.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./slidize_cloud-24.10.0.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./slidize_cloud-24.10.0.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'slidize_cloud', '~> 24.10.0'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'slidize_cloud', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'slidize_cloud'
58
+
59
+ api_instance = SlidizeCloud::SlidizeApi.new
60
+ format = SlidizeCloud::ExportFormat::ODP # ExportFormat | Output file format.
61
+ documents = [File.new('/path/to/some/file')] # Array<File> |
62
+
63
+ begin
64
+ #Converts files provided in the request body into target format and returns conversion result.
65
+ result = api_instance.convert(format, documents)
66
+ p result
67
+ rescue SlidizeCloud::ApiError => e
68
+ puts "Exception when calling SlidizeApi->convert: #{e}"
69
+ end
70
+
71
+ ```
72
+
73
+ ## Documentation for API Endpoints
74
+
75
+ All URIs are relative to *https://api.slidize.cloud/v1.0/slides*
76
+
77
+ Class | Method | HTTP request | Description
78
+ ------------ | ------------- | ------------- | -------------
79
+ *SlidizeCloud::SlidizeApi* | [**convert**](docs/SlidizeApi.md#convert) | **POST** /convert/{format} | Converts files provided in the request body into target format and returns conversion result.
80
+ *SlidizeCloud::SlidizeApi* | [**convert_to_video**](docs/SlidizeApi.md#convert_to_video) | **POST** /video | Converts file provided in the request body into video.
81
+ *SlidizeCloud::SlidizeApi* | [**image_watermark**](docs/SlidizeApi.md#image_watermark) | **POST** /watermark/image | Adds image watermarks and return result.
82
+ *SlidizeCloud::SlidizeApi* | [**merge**](docs/SlidizeApi.md#merge) | **POST** /merge/{format} | Merges files provided in the request and saves the merge result into target format.
83
+ *SlidizeCloud::SlidizeApi* | [**protect**](docs/SlidizeApi.md#protect) | **POST** /lock | Protects presentation with specified password and returns result.
84
+ *SlidizeCloud::SlidizeApi* | [**remove_annotations**](docs/SlidizeApi.md#remove_annotations) | **POST** /removeAnnotations | Remove annotations from presentation
85
+ *SlidizeCloud::SlidizeApi* | [**remove_macros**](docs/SlidizeApi.md#remove_macros) | **POST** /removeMacros | Remove macros from presentation
86
+ *SlidizeCloud::SlidizeApi* | [**replace_text**](docs/SlidizeApi.md#replace_text) | **POST** /replaceText | Replace text in presentation.
87
+ *SlidizeCloud::SlidizeApi* | [**split**](docs/SlidizeApi.md#split) | **POST** /split/{format} | Splits presentation according to the specified slides range and saves result into target format.
88
+ *SlidizeCloud::SlidizeApi* | [**text_watermark**](docs/SlidizeApi.md#text_watermark) | **POST** /watermark/text | Adds text watermarks and return result.
89
+ *SlidizeCloud::SlidizeApi* | [**unprotect**](docs/SlidizeApi.md#unprotect) | **POST** /unlock | Removes password from the presentation and returns result.
90
+
91
+
92
+ ## Documentation for Models
93
+
94
+ - [SlidizeCloud::ConvertRequest](docs/ConvertRequest.md)
95
+ - [SlidizeCloud::ConvertToVideoRequest](docs/ConvertToVideoRequest.md)
96
+ - [SlidizeCloud::ExportFormat](docs/ExportFormat.md)
97
+ - [SlidizeCloud::ImageWatermarkOptions](docs/ImageWatermarkOptions.md)
98
+ - [SlidizeCloud::ImageWatermarkRequest](docs/ImageWatermarkRequest.md)
99
+ - [SlidizeCloud::MergeOptions](docs/MergeOptions.md)
100
+ - [SlidizeCloud::MergeRequest](docs/MergeRequest.md)
101
+ - [SlidizeCloud::ProtectRequest](docs/ProtectRequest.md)
102
+ - [SlidizeCloud::ProtectionOptions](docs/ProtectionOptions.md)
103
+ - [SlidizeCloud::ReplaceTextOptions](docs/ReplaceTextOptions.md)
104
+ - [SlidizeCloud::ReplaceTextRequest](docs/ReplaceTextRequest.md)
105
+ - [SlidizeCloud::SplitOptions](docs/SplitOptions.md)
106
+ - [SlidizeCloud::SplitRequest](docs/SplitRequest.md)
107
+ - [SlidizeCloud::TextWatermarkOptions](docs/TextWatermarkOptions.md)
108
+ - [SlidizeCloud::TextWatermarkRequest](docs/TextWatermarkRequest.md)
109
+ - [SlidizeCloud::UnprotectRequest](docs/UnprotectRequest.md)
110
+ - [SlidizeCloud::VideoOptions](docs/VideoOptions.md)
111
+ - [SlidizeCloud::VideoResolutionType](docs/VideoResolutionType.md)
112
+ - [SlidizeCloud::VideoTransitionType](docs/VideoTransitionType.md)
113
+
114
+
115
+ ## Documentation for Authorization
116
+
117
+ Endpoints do not require authorization.
118
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
data/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'