Object/Chart.pm untested

filter: Statementstmt 0.0% 0 / 113 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 29 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 146 CC 2 SCAR 8.2
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.3
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::Chart;
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::Axes;
41 use AsposeSlidesCloud::Object::ChartCategory;
42 use AsposeSlidesCloud::Object::ChartSeriesGroup;
43 use AsposeSlidesCloud::Object::ChartTitle;
44 use AsposeSlidesCloud::Object::ChartWall;
45 use AsposeSlidesCloud::Object::DataSource;
46 use AsposeSlidesCloud::Object::EffectFormat;
47 use AsposeSlidesCloud::Object::FillFormat;
48 use AsposeSlidesCloud::Object::Hyperlink;
49 use AsposeSlidesCloud::Object::Legend;
50 use AsposeSlidesCloud::Object::LineFormat;
51 use AsposeSlidesCloud::Object::PlotArea;
52 use AsposeSlidesCloud::Object::ResourceUri;
53 use AsposeSlidesCloud::Object::Series;
54 use AsposeSlidesCloud::Object::ShapeBase;
55 use AsposeSlidesCloud::Object::ThreeDFormat;
56  
57 use base ("Class::Accessor", "Class::Data::Inheritable");
58  
59  
60 #
61 #Represents chart resource
62 #
63 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
64 # REF: https://github.com/swagger-api/swagger-codegen
65 #
66  
67 #
68 # NOTE: This class is auto generated by the swagger code generator program.
69 # Do not edit the class manually.
70 # Ref: https://github.com/swagger-api/swagger-codegen
71 #
72 __PACKAGE__->mk_classdata('attribute_map' => {});
73 __PACKAGE__->mk_classdata('swagger_types' => {});
74 __PACKAGE__->mk_classdata('method_documentation' => {});
75 __PACKAGE__->mk_classdata('class_documentation' => {});
76  
77 # new object
78 sub new {
79 my ($class, %args) = @_;
80  
81 my $self = bless {}, $class;
82
83 foreach my $attribute (keys %{$class->attribute_map}) {
84 my $args_key = $class->attribute_map->{$attribute};
85 $self->$attribute( $args{ $args_key } );
86 }
87 $self->{ type } = 'Chart';
88 return $self;
89 }
90  
91 # used by JSON for serialization
92 sub TO_JSON {
93 my $self = shift;
94 my $_data = {};
95 foreach my $_key (keys %{$self->attribute_map}) {
96 if (defined $self->{$_key}) {
97 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
98 }
99 }
100 return $_data;
101 }
102  
103  
104 __PACKAGE__->class_documentation({description => 'Represents chart resource',
105 class => 'Chart',
106 required => [], # TODO
107 } );
108  
109 __PACKAGE__->method_documentation({
110 'self_uri' => {
111 datatype => 'ResourceUri',
112 base_name => 'SelfUri',
113 description => 'Gets or sets the link to this resource.',
114 format => '',
115 read_only => '',
116 },
117 'alternate_links' => {
118 datatype => 'ARRAY[ResourceUri]',
119 base_name => 'AlternateLinks',
120 description => 'List of alternate links.',
121 format => '',
122 read_only => '',
123 },
124 'name' => {
125 datatype => 'string',
126 base_name => 'Name',
127 description => 'Gets or sets the name.',
128 format => '',
129 read_only => '',
130 },
131 'width' => {
132 datatype => 'double',
133 base_name => 'Width',
134 description => 'Gets or sets the width.',
135 format => '',
136 read_only => '',
137 },
138 'height' => {
139 datatype => 'double',
140 base_name => 'Height',
141 description => 'Gets or sets the height.',
142 format => '',
143 read_only => '',
144 },
145 'alternative_text' => {
146 datatype => 'string',
147 base_name => 'AlternativeText',
148 description => 'Gets or sets the alternative text.',
149 format => '',
150 read_only => '',
151 },
152 'alternative_text_title' => {
153 datatype => 'string',
154 base_name => 'AlternativeTextTitle',
155 description => 'The title of alternative text associated with the shape.',
156 format => '',
157 read_only => '',
158 },
159 'hidden' => {
160 datatype => 'boolean',
161 base_name => 'Hidden',
162 description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
163 format => '',
164 read_only => '',
165 },
166 'is_decorative' => {
167 datatype => 'boolean',
168 base_name => 'IsDecorative',
169 description => 'Gets or sets 'Mark as decorative' option.',
170 format => '',
171 read_only => '',
172 },
173 'x' => {
174 datatype => 'double',
175 base_name => 'X',
176 description => 'Gets or sets the X',
177 format => '',
178 read_only => '',
179 },
180 'y' => {
181 datatype => 'double',
182 base_name => 'Y',
183 description => 'Gets or sets the Y.',
184 format => '',
185 read_only => '',
186 },
187 'z_order_position' => {
188 datatype => 'int',
189 base_name => 'ZOrderPosition',
190 description => 'Gets z-order position of shape',
191 format => '',
192 read_only => '',
193 },
194 'fill_format' => {
195 datatype => 'FillFormat',
196 base_name => 'FillFormat',
197 description => 'Gets or sets the fill format.',
198 format => '',
199 read_only => '',
200 },
201 'effect_format' => {
202 datatype => 'EffectFormat',
203 base_name => 'EffectFormat',
204 description => 'Gets or sets the effect format.',
205 format => '',
206 read_only => '',
207 },
208 'three_d_format' => {
209 datatype => 'ThreeDFormat',
210 base_name => 'ThreeDFormat',
211 description => 'Gets or sets the 3D format',
212 format => '',
213 read_only => '',
214 },
215 'line_format' => {
216 datatype => 'LineFormat',
217 base_name => 'LineFormat',
218 description => 'Gets or sets the line format.',
219 format => '',
220 read_only => '',
221 },
222 'hyperlink_click' => {
223 datatype => 'Hyperlink',
224 base_name => 'HyperlinkClick',
225 description => 'Hyperlink defined for mouse click.',
226 format => '',
227 read_only => '',
228 },
229 'hyperlink_mouse_over' => {
230 datatype => 'Hyperlink',
231 base_name => 'HyperlinkMouseOver',
232 description => 'Hyperlink defined for mouse over.',
233 format => '',
234 read_only => '',
235 },
236 'type' => {
237 datatype => 'string',
238 base_name => 'Type',
239 description => 'Shape type.',
240 format => '',
241 read_only => '',
242 },
243 'chart_type' => {
244 datatype => 'string',
245 base_name => 'ChartType',
246 description => 'Gets or sets the type of the chart.',
247 format => '',
248 read_only => '',
249 },
250 'show_data_labels_over_maximum' => {
251 datatype => 'boolean',
252 base_name => 'ShowDataLabelsOverMaximum',
253 description => 'True if data labels over the maximum of the chart shall be shown.',
254 format => '',
255 read_only => '',
256 },
257 'series' => {
258 datatype => 'ARRAY[Series]',
259 base_name => 'Series',
260 description => 'Gets or sets the series of chart data values.',
261 format => '',
262 read_only => '',
263 },
264 'categories' => {
265 datatype => 'ARRAY[ChartCategory]',
266 base_name => 'Categories',
267 description => 'Gets or sets the categories for chart data',
268 format => '',
269 read_only => '',
270 },
271 'data_source_for_categories' => {
272 datatype => 'DataSource',
273 base_name => 'DataSourceForCategories',
274 description => 'Data source type for categories.',
275 format => '',
276 read_only => '',
277 },
278 'has_title' => {
279 datatype => 'boolean',
280 base_name => 'HasTitle',
281 description => 'True if the chart has a title.',
282 format => '',
283 read_only => '',
284 },
285 'title' => {
286 datatype => 'ChartTitle',
287 base_name => 'Title',
288 description => 'Gets or sets the title.',
289 format => '',
290 read_only => '',
291 },
292 'back_wall' => {
293 datatype => 'ChartWall',
294 base_name => 'BackWall',
295 description => 'Gets or sets the back wall.',
296 format => '',
297 read_only => '',
298 },
299 'side_wall' => {
300 datatype => 'ChartWall',
301 base_name => 'SideWall',
302 description => 'Gets or sets the side wall.',
303 format => '',
304 read_only => '',
305 },
306 'floor' => {
307 datatype => 'ChartWall',
308 base_name => 'Floor',
309 description => 'Gets or sets the floor.',
310 format => '',
311 read_only => '',
312 },
313 'legend' => {
314 datatype => 'Legend',
315 base_name => 'Legend',
316 description => 'Gets or sets the legend.',
317 format => '',
318 read_only => '',
319 },
320 'axes' => {
321 datatype => 'Axes',
322 base_name => 'Axes',
323 description => 'Gets or sets the axes.',
324 format => '',
325 read_only => '',
326 },
327 'plot_area' => {
328 datatype => 'PlotArea',
329 base_name => 'PlotArea',
330 description => 'Gets or sets the plot area.',
331 format => '',
332 read_only => '',
333 },
334 'has_rounded_corners' => {
335 datatype => 'boolean',
336 base_name => 'HasRoundedCorners',
337 description => 'Specifies the chart area shall have rounded corners.',
338 format => '',
339 read_only => '',
340 },
341 'series_groups' => {
342 datatype => 'ARRAY[ChartSeriesGroup]',
343 base_name => 'SeriesGroups',
344 description => 'Gets groups of series. ',
345 format => '',
346 read_only => '',
347 },
348 });
349  
350 __PACKAGE__->swagger_types( {
351 'self_uri' => 'ResourceUri',
352 'alternate_links' => 'ARRAY[ResourceUri]',
353 'name' => 'string',
354 'width' => 'double',
355 'height' => 'double',
356 'alternative_text' => 'string',
357 'alternative_text_title' => 'string',
358 'hidden' => 'boolean',
359 'is_decorative' => 'boolean',
360 'x' => 'double',
361 'y' => 'double',
362 'z_order_position' => 'int',
363 'fill_format' => 'FillFormat',
364 'effect_format' => 'EffectFormat',
365 'three_d_format' => 'ThreeDFormat',
366 'line_format' => 'LineFormat',
367 'hyperlink_click' => 'Hyperlink',
368 'hyperlink_mouse_over' => 'Hyperlink',
369 'type' => 'string',
370 'chart_type' => 'string',
371 'show_data_labels_over_maximum' => 'boolean',
372 'series' => 'ARRAY[Series]',
373 'categories' => 'ARRAY[ChartCategory]',
374 'data_source_for_categories' => 'DataSource',
375 'has_title' => 'boolean',
376 'title' => 'ChartTitle',
377 'back_wall' => 'ChartWall',
378 'side_wall' => 'ChartWall',
379 'floor' => 'ChartWall',
380 'legend' => 'Legend',
381 'axes' => 'Axes',
382 'plot_area' => 'PlotArea',
383 'has_rounded_corners' => 'boolean',
384 'series_groups' => 'ARRAY[ChartSeriesGroup]'
385 } );
386  
387 __PACKAGE__->attribute_map( {
388 'self_uri' => 'SelfUri',
389 'alternate_links' => 'AlternateLinks',
390 'name' => 'Name',
391 'width' => 'Width',
392 'height' => 'Height',
393 'alternative_text' => 'AlternativeText',
394 'alternative_text_title' => 'AlternativeTextTitle',
395 'hidden' => 'Hidden',
396 'is_decorative' => 'IsDecorative',
397 'x' => 'X',
398 'y' => 'Y',
399 'z_order_position' => 'ZOrderPosition',
400 'fill_format' => 'FillFormat',
401 'effect_format' => 'EffectFormat',
402 'three_d_format' => 'ThreeDFormat',
403 'line_format' => 'LineFormat',
404 'hyperlink_click' => 'HyperlinkClick',
405 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
406 'type' => 'Type',
407 'chart_type' => 'ChartType',
408 'show_data_labels_over_maximum' => 'ShowDataLabelsOverMaximum',
409 'series' => 'Series',
410 'categories' => 'Categories',
411 'data_source_for_categories' => 'DataSourceForCategories',
412 'has_title' => 'HasTitle',
413 'title' => 'Title',
414 'back_wall' => 'BackWall',
415 'side_wall' => 'SideWall',
416 'floor' => 'Floor',
417 'legend' => 'Legend',
418 'axes' => 'Axes',
419 'plot_area' => 'PlotArea',
420 'has_rounded_corners' => 'HasRoundedCorners',
421 'series_groups' => 'SeriesGroups'
422 } );
423  
424 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
425  
426  
427 1;