aspose_slides_cloud 20.12.0 → 21.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +58 -30
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pdf +0 -0
- data/TestData/test.pptx +0 -0
- data/TestData/watermark.png +0 -0
- data/lib/aspose_slides_cloud.rb +3 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +9318 -5091
- data/lib/aspose_slides_cloud/api_client.rb +19 -16
- data/lib/aspose_slides_cloud/models/chart.rb +2 -2
- data/lib/aspose_slides_cloud/models/line_format.rb +23 -1
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +46 -2
- data/lib/aspose_slides_cloud/models/protection_properties.rb +267 -0
- data/lib/aspose_slides_cloud/models/series.rb +2 -2
- data/lib/aspose_slides_cloud/models/{scale_type.rb → shapes_alignment_type.rb} +11 -6
- data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
- data/lib/aspose_slides_cloud/type_registry.rb +5 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25514 -21227
- data/spec/extra/extra_spec.rb +64 -97
- data/spec/spec_utils.rb +21 -22
- data/testRules.json +230 -158
- metadata +9 -5
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +0 -4146
- data/lib/aspose_slides_cloud/models/size_type.rb +0 -55
@@ -1,55 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
12
|
-
copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
SOFTWARE.
|
21
|
-
=end
|
22
|
-
|
23
|
-
require 'date'
|
24
|
-
|
25
|
-
module AsposeSlidesCloud
|
26
|
-
class SizeType
|
27
|
-
|
28
|
-
ON_SCREEN = "OnScreen".freeze
|
29
|
-
LETTER_PAPER = "LetterPaper".freeze
|
30
|
-
A4_PAPER = "A4Paper".freeze
|
31
|
-
SLIDE35MM = "Slide35mm".freeze
|
32
|
-
OVERHEAD = "Overhead".freeze
|
33
|
-
BANNER = "Banner".freeze
|
34
|
-
CUSTOM = "Custom".freeze
|
35
|
-
LEDGER = "Ledger".freeze
|
36
|
-
A3_PAPER = "A3Paper".freeze
|
37
|
-
B4_ISO_PAPER = "B4IsoPaper".freeze
|
38
|
-
B5_ISO_PAPER = "B5IsoPaper".freeze
|
39
|
-
B4_JIS_PAPER = "B4JisPaper".freeze
|
40
|
-
B5_JIS_PAPER = "B5JisPaper".freeze
|
41
|
-
HAGAKI_CARD = "HagakiCard".freeze
|
42
|
-
ON_SCREEN16X9 = "OnScreen16x9".freeze
|
43
|
-
ON_SCREEN16X10 = "OnScreen16x10".freeze
|
44
|
-
WIDESCREEN = "Widescreen".freeze
|
45
|
-
|
46
|
-
# Builds the enum from string
|
47
|
-
# @param [String] The enum value in the form of the string
|
48
|
-
# @return [String] The enum value
|
49
|
-
def build_from_hash(value)
|
50
|
-
constantValues = SizeType.constants.select { |c| SizeType::const_get(c) == value }
|
51
|
-
raise "Invalid ENUM value #{value} for class #SizeType" if constantValues.empty?
|
52
|
-
value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|