Object/Paragraph.pm untested

filter: Statementstmt 0.0% 0 / 79 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 18 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 101 CC 2 SCAR 8.8
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::Paragraph;
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::FillFormat;
41 use AsposeSlidesCloud::Object::Portion;
42 use AsposeSlidesCloud::Object::PortionFormat;
43 use AsposeSlidesCloud::Object::ResourceBase;
44 use AsposeSlidesCloud::Object::ResourceUri;
45  
46 use base ("Class::Accessor", "Class::Data::Inheritable");
47  
48  
49 #
50 #Represents paragraph resource
51 #
52 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
53 # REF: https://github.com/swagger-api/swagger-codegen
54 #
55  
56 #
57 # NOTE: This class is auto generated by the swagger code generator program.
58 # Do not edit the class manually.
59 # Ref: https://github.com/swagger-api/swagger-codegen
60 #
61 __PACKAGE__->mk_classdata('attribute_map' => {});
62 __PACKAGE__->mk_classdata('swagger_types' => {});
63 __PACKAGE__->mk_classdata('method_documentation' => {});
64 __PACKAGE__->mk_classdata('class_documentation' => {});
65  
66 # new object
67 sub new {
68 my ($class, %args) = @_;
69  
70 my $self = bless {}, $class;
71
72 foreach my $attribute (keys %{$class->attribute_map}) {
73 my $args_key = $class->attribute_map->{$attribute};
74 $self->$attribute( $args{ $args_key } );
75 }
76 return $self;
77 }
78  
79 # used by JSON for serialization
80 sub TO_JSON {
81 my $self = shift;
82 my $_data = {};
83 foreach my $_key (keys %{$self->attribute_map}) {
84 if (defined $self->{$_key}) {
85 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
86 }
87 }
88 return $_data;
89 }
90  
91  
92 __PACKAGE__->class_documentation({description => 'Represents paragraph resource',
93 class => 'Paragraph',
94 required => [], # TODO
95 } );
96  
97 __PACKAGE__->method_documentation({
98 'self_uri' => {
99 datatype => 'ResourceUri',
100 base_name => 'SelfUri',
101 description => 'Gets or sets the link to this resource.',
102 format => '',
103 read_only => '',
104 },
105 'alternate_links' => {
106 datatype => 'ARRAY[ResourceUri]',
107 base_name => 'AlternateLinks',
108 description => 'List of alternate links.',
109 format => '',
110 read_only => '',
111 },
112 'margin_left' => {
113 datatype => 'double',
114 base_name => 'MarginLeft',
115 description => 'Left margin.',
116 format => '',
117 read_only => '',
118 },
119 'margin_right' => {
120 datatype => 'double',
121 base_name => 'MarginRight',
122 description => 'Right margin.',
123 format => '',
124 read_only => '',
125 },
126 'space_before' => {
127 datatype => 'double',
128 base_name => 'SpaceBefore',
129 description => 'Left spacing.',
130 format => '',
131 read_only => '',
132 },
133 'space_after' => {
134 datatype => 'double',
135 base_name => 'SpaceAfter',
136 description => 'Right spacing.',
137 format => '',
138 read_only => '',
139 },
140 'space_within' => {
141 datatype => 'double',
142 base_name => 'SpaceWithin',
143 description => 'Spacing between lines.',
144 format => '',
145 read_only => '',
146 },
147 'indent' => {
148 datatype => 'double',
149 base_name => 'Indent',
150 description => 'First line indent.',
151 format => '',
152 read_only => '',
153 },
154 'alignment' => {
155 datatype => 'string',
156 base_name => 'Alignment',
157 description => 'Text alignment.',
158 format => '',
159 read_only => '',
160 },
161 'font_alignment' => {
162 datatype => 'string',
163 base_name => 'FontAlignment',
164 description => 'Font alignment.',
165 format => '',
166 read_only => '',
167 },
168 'default_tab_size' => {
169 datatype => 'double',
170 base_name => 'DefaultTabSize',
171 description => 'Default tabulation size.',
172 format => '',
173 read_only => '',
174 },
175 'depth' => {
176 datatype => 'int',
177 base_name => 'Depth',
178 description => 'Depth.',
179 format => '',
180 read_only => '',
181 },
182 'hanging_punctuation' => {
183 datatype => 'string',
184 base_name => 'HangingPunctuation',
185 description => 'True if hanging punctuation is used with the paragraph.',
186 format => '',
187 read_only => '',
188 },
189 'east_asian_line_break' => {
190 datatype => 'string',
191 base_name => 'EastAsianLineBreak',
192 description => 'True if East Asian line break is used with the paragraph.',
193 format => '',
194 read_only => '',
195 },
196 'latin_line_break' => {
197 datatype => 'string',
198 base_name => 'LatinLineBreak',
199 description => 'True if Latin line break is used with the paragraph.',
200 format => '',
201 read_only => '',
202 },
203 'right_to_left' => {
204 datatype => 'string',
205 base_name => 'RightToLeft',
206 description => 'True if right to left direction is used with the paragraph.',
207 format => '',
208 read_only => '',
209 },
210 'portion_list' => {
211 datatype => 'ARRAY[Portion]',
212 base_name => 'PortionList',
213 description => 'List of portion links.',
214 format => '',
215 read_only => '',
216 },
217 'default_portion_format' => {
218 datatype => 'PortionFormat',
219 base_name => 'DefaultPortionFormat',
220 description => 'Default portion format.',
221 format => '',
222 read_only => '',
223 },
224 'bullet_char' => {
225 datatype => 'string',
226 base_name => 'BulletChar',
227 description => 'Bullet char.',
228 format => '',
229 read_only => '',
230 },
231 'bullet_height' => {
232 datatype => 'double',
233 base_name => 'BulletHeight',
234 description => 'Bullet height.',
235 format => '',
236 read_only => '',
237 },
238 'bullet_type' => {
239 datatype => 'string',
240 base_name => 'BulletType',
241 description => 'Bullet type.',
242 format => '',
243 read_only => '',
244 },
245 'numbered_bullet_start_with' => {
246 datatype => 'int',
247 base_name => 'NumberedBulletStartWith',
248 description => 'Starting number for a numbered bullet.',
249 format => '',
250 read_only => '',
251 },
252 'numbered_bullet_style' => {
253 datatype => 'string',
254 base_name => 'NumberedBulletStyle',
255 description => 'Numbered bullet style.',
256 format => '',
257 read_only => '',
258 },
259 'bullet_fill_format' => {
260 datatype => 'FillFormat',
261 base_name => 'BulletFillFormat',
262 description => 'Bullet fill format.',
263 format => '',
264 read_only => '',
265 },
266 });
267  
268 __PACKAGE__->swagger_types( {
269 'self_uri' => 'ResourceUri',
270 'alternate_links' => 'ARRAY[ResourceUri]',
271 'margin_left' => 'double',
272 'margin_right' => 'double',
273 'space_before' => 'double',
274 'space_after' => 'double',
275 'space_within' => 'double',
276 'indent' => 'double',
277 'alignment' => 'string',
278 'font_alignment' => 'string',
279 'default_tab_size' => 'double',
280 'depth' => 'int',
281 'hanging_punctuation' => 'string',
282 'east_asian_line_break' => 'string',
283 'latin_line_break' => 'string',
284 'right_to_left' => 'string',
285 'portion_list' => 'ARRAY[Portion]',
286 'default_portion_format' => 'PortionFormat',
287 'bullet_char' => 'string',
288 'bullet_height' => 'double',
289 'bullet_type' => 'string',
290 'numbered_bullet_start_with' => 'int',
291 'numbered_bullet_style' => 'string',
292 'bullet_fill_format' => 'FillFormat'
293 } );
294  
295 __PACKAGE__->attribute_map( {
296 'self_uri' => 'SelfUri',
297 'alternate_links' => 'AlternateLinks',
298 'margin_left' => 'MarginLeft',
299 'margin_right' => 'MarginRight',
300 'space_before' => 'SpaceBefore',
301 'space_after' => 'SpaceAfter',
302 'space_within' => 'SpaceWithin',
303 'indent' => 'Indent',
304 'alignment' => 'Alignment',
305 'font_alignment' => 'FontAlignment',
306 'default_tab_size' => 'DefaultTabSize',
307 'depth' => 'Depth',
308 'hanging_punctuation' => 'HangingPunctuation',
309 'east_asian_line_break' => 'EastAsianLineBreak',
310 'latin_line_break' => 'LatinLineBreak',
311 'right_to_left' => 'RightToLeft',
312 'portion_list' => 'PortionList',
313 'default_portion_format' => 'DefaultPortionFormat',
314 'bullet_char' => 'BulletChar',
315 'bullet_height' => 'BulletHeight',
316 'bullet_type' => 'BulletType',
317 'numbered_bullet_start_with' => 'NumberedBulletStartWith',
318 'numbered_bullet_style' => 'NumberedBulletStyle',
319 'bullet_fill_format' => 'BulletFillFormat'
320 } );
321  
322 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
323  
324  
325 1;