Object/Portion.pm untested

filter: Statementstmt 0.0% 0 / 85 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 20 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 109 CC 2 SCAR 8.7
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
1 =begin comment
2  
3 Copyright (c) 2019 Aspose Pty Ltd
4  
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11  
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
14  
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 SOFTWARE.
22  
23 =end comment
24  
25 =cut
26  
27 package AsposeSlidesCloud::Object::Portion;
28  
29 require 5.6.0;
30 use strict;
31 use warnings;
32 use utf8;
33 use JSON qw(decode_json);
34 use Data::Dumper;
35 use Module::Runtime qw(use_module);
36 use Log::Any qw($log);
37 use Date::Parse;
38 use DateTime;
39  
40 use AsposeSlidesCloud::Object::EffectFormat;
41 use AsposeSlidesCloud::Object::FillFormat;
42 use AsposeSlidesCloud::Object::Hyperlink;
43 use AsposeSlidesCloud::Object::LineFormat;
44 use AsposeSlidesCloud::Object::MathParagraph;
45 use AsposeSlidesCloud::Object::ResourceBase;
46 use AsposeSlidesCloud::Object::ResourceUri;
47  
48 use base ("Class::Accessor", "Class::Data::Inheritable");
49  
50  
51 #
52 #Represents portion resource
53 #
54 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
55 # REF: https://github.com/swagger-api/swagger-codegen
56 #
57  
58 #
59 # NOTE: This class is auto generated by the swagger code generator program.
60 # Do not edit the class manually.
61 # Ref: https://github.com/swagger-api/swagger-codegen
62 #
63 __PACKAGE__->mk_classdata('attribute_map' => {});
64 __PACKAGE__->mk_classdata('swagger_types' => {});
65 __PACKAGE__->mk_classdata('method_documentation' => {});
66 __PACKAGE__->mk_classdata('class_documentation' => {});
67  
68 # new object
69 sub new {
70 my ($class, %args) = @_;
71  
72 my $self = bless {}, $class;
73
74 foreach my $attribute (keys %{$class->attribute_map}) {
75 my $args_key = $class->attribute_map->{$attribute};
76 $self->$attribute( $args{ $args_key } );
77 }
78 return $self;
79 }
80  
81 # used by JSON for serialization
82 sub TO_JSON {
83 my $self = shift;
84 my $_data = {};
85 foreach my $_key (keys %{$self->attribute_map}) {
86 if (defined $self->{$_key}) {
87 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
88 }
89 }
90 return $_data;
91 }
92  
93  
94 __PACKAGE__->class_documentation({description => 'Represents portion resource',
95 class => 'Portion',
96 required => [], # TODO
97 } );
98  
99 __PACKAGE__->method_documentation({
100 'self_uri' => {
101 datatype => 'ResourceUri',
102 base_name => 'SelfUri',
103 description => 'Gets or sets the link to this resource.',
104 format => '',
105 read_only => '',
106 },
107 'alternate_links' => {
108 datatype => 'ARRAY[ResourceUri]',
109 base_name => 'AlternateLinks',
110 description => 'List of alternate links.',
111 format => '',
112 read_only => '',
113 },
114 'text' => {
115 datatype => 'string',
116 base_name => 'Text',
117 description => 'Text.',
118 format => '',
119 read_only => '',
120 },
121 'math_paragraph' => {
122 datatype => 'MathParagraph',
123 base_name => 'MathParagraph',
124 description => 'Math paragraph.',
125 format => '',
126 read_only => '',
127 },
128 'font_bold' => {
129 datatype => 'string',
130 base_name => 'FontBold',
131 description => 'True for bold font.',
132 format => '',
133 read_only => '',
134 },
135 'font_italic' => {
136 datatype => 'string',
137 base_name => 'FontItalic',
138 description => 'True for italic font.',
139 format => '',
140 read_only => '',
141 },
142 'font_underline' => {
143 datatype => 'string',
144 base_name => 'FontUnderline',
145 description => 'Text underline type.',
146 format => '',
147 read_only => '',
148 },
149 'strikethrough_type' => {
150 datatype => 'string',
151 base_name => 'StrikethroughType',
152 description => 'Text strikethrough type.',
153 format => '',
154 read_only => '',
155 },
156 'text_cap_type' => {
157 datatype => 'string',
158 base_name => 'TextCapType',
159 description => 'Text capitalization type.',
160 format => '',
161 read_only => '',
162 },
163 'escapement' => {
164 datatype => 'double',
165 base_name => 'Escapement',
166 description => 'Superscript or subscript of the text.',
167 format => '',
168 read_only => '',
169 },
170 'spacing' => {
171 datatype => 'double',
172 base_name => 'Spacing',
173 description => 'Intercharacter spacing increment.',
174 format => '',
175 read_only => '',
176 },
177 'font_color' => {
178 datatype => 'string',
179 base_name => 'FontColor',
180 description => 'Font color.',
181 format => '',
182 read_only => '',
183 },
184 'highlight_color' => {
185 datatype => 'string',
186 base_name => 'HighlightColor',
187 description => 'Highlight color.',
188 format => '',
189 read_only => '',
190 },
191 'font_height' => {
192 datatype => 'double',
193 base_name => 'FontHeight',
194 description => 'Font height.',
195 format => '',
196 read_only => '',
197 },
198 'normalise_height' => {
199 datatype => 'string',
200 base_name => 'NormaliseHeight',
201 description => 'True to normalize the text.',
202 format => '',
203 read_only => '',
204 },
205 'proof_disabled' => {
206 datatype => 'string',
207 base_name => 'ProofDisabled',
208 description => 'True if the text proof should be disabled.',
209 format => '',
210 read_only => '',
211 },
212 'smart_tag_clean' => {
213 datatype => 'boolean',
214 base_name => 'SmartTagClean',
215 description => 'True if smart tag should be cleaned.',
216 format => '',
217 read_only => '',
218 },
219 'kerning_minimal_size' => {
220 datatype => 'double',
221 base_name => 'KerningMinimalSize',
222 description => 'Minimal font size for kerning.',
223 format => '',
224 read_only => '',
225 },
226 'kumimoji' => {
227 datatype => 'string',
228 base_name => 'Kumimoji',
229 description => 'True if numbers should ignore East-Asian specific vertical text layout.',
230 format => '',
231 read_only => '',
232 },
233 'spell_check' => {
234 datatype => 'boolean',
235 base_name => 'SpellCheck',
236 description => 'true to enable spell checking for the portion.',
237 format => '',
238 read_only => '',
239 },
240 'language_id' => {
241 datatype => 'string',
242 base_name => 'LanguageId',
243 description => 'Proving language ID.',
244 format => '',
245 read_only => '',
246 },
247 'alternative_language_id' => {
248 datatype => 'string',
249 base_name => 'AlternativeLanguageId',
250 description => 'Alternative proving language ID.',
251 format => '',
252 read_only => '',
253 },
254 'is_hard_underline_fill' => {
255 datatype => 'string',
256 base_name => 'IsHardUnderlineFill',
257 description => 'True if underline style has own FillFormat properties.',
258 format => '',
259 read_only => '',
260 },
261 'is_hard_underline_line' => {
262 datatype => 'string',
263 base_name => 'IsHardUnderlineLine',
264 description => 'True if underline style has own LineFormat properties.',
265 format => '',
266 read_only => '',
267 },
268 'fill_format' => {
269 datatype => 'FillFormat',
270 base_name => 'FillFormat',
271 description => 'Fill format.',
272 format => '',
273 read_only => '',
274 },
275 'effect_format' => {
276 datatype => 'EffectFormat',
277 base_name => 'EffectFormat',
278 description => 'Effect format.',
279 format => '',
280 read_only => '',
281 },
282 'line_format' => {
283 datatype => 'LineFormat',
284 base_name => 'LineFormat',
285 description => 'Line format.',
286 format => '',
287 read_only => '',
288 },
289 'underline_fill_format' => {
290 datatype => 'FillFormat',
291 base_name => 'UnderlineFillFormat',
292 description => 'Underline fill format.',
293 format => '',
294 read_only => '',
295 },
296 'underline_line_format' => {
297 datatype => 'LineFormat',
298 base_name => 'UnderlineLineFormat',
299 description => 'Underline line format.',
300 format => '',
301 read_only => '',
302 },
303 'hyperlink_click' => {
304 datatype => 'Hyperlink',
305 base_name => 'HyperlinkClick',
306 description => 'Hyperlink defined for mouse click.',
307 format => '',
308 read_only => '',
309 },
310 'hyperlink_mouse_over' => {
311 datatype => 'Hyperlink',
312 base_name => 'HyperlinkMouseOver',
313 description => 'Hyperlink defined for mouse over.',
314 format => '',
315 read_only => '',
316 },
317 'latin_font' => {
318 datatype => 'string',
319 base_name => 'LatinFont',
320 description => 'Returns or sets the Latin font info.',
321 format => '',
322 read_only => '',
323 },
324 'east_asian_font' => {
325 datatype => 'string',
326 base_name => 'EastAsianFont',
327 description => 'Returns or sets the East Asian font info.',
328 format => '',
329 read_only => '',
330 },
331 'complex_script_font' => {
332 datatype => 'string',
333 base_name => 'ComplexScriptFont',
334 description => 'Returns or sets the complex script font info.',
335 format => '',
336 read_only => '',
337 },
338 });
339  
340 __PACKAGE__->swagger_types( {
341 'self_uri' => 'ResourceUri',
342 'alternate_links' => 'ARRAY[ResourceUri]',
343 'text' => 'string',
344 'math_paragraph' => 'MathParagraph',
345 'font_bold' => 'string',
346 'font_italic' => 'string',
347 'font_underline' => 'string',
348 'strikethrough_type' => 'string',
349 'text_cap_type' => 'string',
350 'escapement' => 'double',
351 'spacing' => 'double',
352 'font_color' => 'string',
353 'highlight_color' => 'string',
354 'font_height' => 'double',
355 'normalise_height' => 'string',
356 'proof_disabled' => 'string',
357 'smart_tag_clean' => 'boolean',
358 'kerning_minimal_size' => 'double',
359 'kumimoji' => 'string',
360 'spell_check' => 'boolean',
361 'language_id' => 'string',
362 'alternative_language_id' => 'string',
363 'is_hard_underline_fill' => 'string',
364 'is_hard_underline_line' => 'string',
365 'fill_format' => 'FillFormat',
366 'effect_format' => 'EffectFormat',
367 'line_format' => 'LineFormat',
368 'underline_fill_format' => 'FillFormat',
369 'underline_line_format' => 'LineFormat',
370 'hyperlink_click' => 'Hyperlink',
371 'hyperlink_mouse_over' => 'Hyperlink',
372 'latin_font' => 'string',
373 'east_asian_font' => 'string',
374 'complex_script_font' => 'string'
375 } );
376  
377 __PACKAGE__->attribute_map( {
378 'self_uri' => 'SelfUri',
379 'alternate_links' => 'AlternateLinks',
380 'text' => 'Text',
381 'math_paragraph' => 'MathParagraph',
382 'font_bold' => 'FontBold',
383 'font_italic' => 'FontItalic',
384 'font_underline' => 'FontUnderline',
385 'strikethrough_type' => 'StrikethroughType',
386 'text_cap_type' => 'TextCapType',
387 'escapement' => 'Escapement',
388 'spacing' => 'Spacing',
389 'font_color' => 'FontColor',
390 'highlight_color' => 'HighlightColor',
391 'font_height' => 'FontHeight',
392 'normalise_height' => 'NormaliseHeight',
393 'proof_disabled' => 'ProofDisabled',
394 'smart_tag_clean' => 'SmartTagClean',
395 'kerning_minimal_size' => 'KerningMinimalSize',
396 'kumimoji' => 'Kumimoji',
397 'spell_check' => 'SpellCheck',
398 'language_id' => 'LanguageId',
399 'alternative_language_id' => 'AlternativeLanguageId',
400 'is_hard_underline_fill' => 'IsHardUnderlineFill',
401 'is_hard_underline_line' => 'IsHardUnderlineLine',
402 'fill_format' => 'FillFormat',
403 'effect_format' => 'EffectFormat',
404 'line_format' => 'LineFormat',
405 'underline_fill_format' => 'UnderlineFillFormat',
406 'underline_line_format' => 'UnderlineLineFormat',
407 'hyperlink_click' => 'HyperlinkClick',
408 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
409 'latin_font' => 'LatinFont',
410 'east_asian_font' => 'EastAsianFont',
411 'complex_script_font' => 'ComplexScriptFont'
412 } );
413  
414 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
415  
416  
417 1;