Object/SmartArtShape.pm untested

filter: Statementstmt 0.0% 0 / 86 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 / 110 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::SmartArtShape;
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::GeometryShape;
43 use AsposeSlidesCloud::Object::Hyperlink;
44 use AsposeSlidesCloud::Object::LineFormat;
45 use AsposeSlidesCloud::Object::ResourceUri;
46 use AsposeSlidesCloud::Object::ThreeDFormat;
47  
48 use base ("Class::Accessor", "Class::Data::Inheritable");
49  
50  
51 #
52 #Represents SmartArt 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 $self->{ type } = 'SmartArtShape';
79 return $self;
80 }
81  
82 # used by JSON for serialization
83 sub TO_JSON {
84 my $self = shift;
85 my $_data = {};
86 foreach my $_key (keys %{$self->attribute_map}) {
87 if (defined $self->{$_key}) {
88 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
89 }
90 }
91 return $_data;
92 }
93  
94  
95 __PACKAGE__->class_documentation({description => 'Represents SmartArt resource.',
96 class => 'SmartArtShape',
97 required => [], # TODO
98 } );
99  
100 __PACKAGE__->method_documentation({
101 'self_uri' => {
102 datatype => 'ResourceUri',
103 base_name => 'SelfUri',
104 description => 'Gets or sets the link to this resource.',
105 format => '',
106 read_only => '',
107 },
108 'alternate_links' => {
109 datatype => 'ARRAY[ResourceUri]',
110 base_name => 'AlternateLinks',
111 description => 'List of alternate links.',
112 format => '',
113 read_only => '',
114 },
115 'name' => {
116 datatype => 'string',
117 base_name => 'Name',
118 description => 'Gets or sets the name.',
119 format => '',
120 read_only => '',
121 },
122 'width' => {
123 datatype => 'double',
124 base_name => 'Width',
125 description => 'Gets or sets the width.',
126 format => '',
127 read_only => '',
128 },
129 'height' => {
130 datatype => 'double',
131 base_name => 'Height',
132 description => 'Gets or sets the height.',
133 format => '',
134 read_only => '',
135 },
136 'alternative_text' => {
137 datatype => 'string',
138 base_name => 'AlternativeText',
139 description => 'Gets or sets the alternative text.',
140 format => '',
141 read_only => '',
142 },
143 'alternative_text_title' => {
144 datatype => 'string',
145 base_name => 'AlternativeTextTitle',
146 description => 'The title of alternative text associated with the shape.',
147 format => '',
148 read_only => '',
149 },
150 'hidden' => {
151 datatype => 'boolean',
152 base_name => 'Hidden',
153 description => 'Gets or sets a value indicating whether this ShapeBase is hidden.',
154 format => '',
155 read_only => '',
156 },
157 'is_decorative' => {
158 datatype => 'boolean',
159 base_name => 'IsDecorative',
160 description => 'Gets or sets 'Mark as decorative' option.',
161 format => '',
162 read_only => '',
163 },
164 'x' => {
165 datatype => 'double',
166 base_name => 'X',
167 description => 'Gets or sets the X',
168 format => '',
169 read_only => '',
170 },
171 'y' => {
172 datatype => 'double',
173 base_name => 'Y',
174 description => 'Gets or sets the Y.',
175 format => '',
176 read_only => '',
177 },
178 'z_order_position' => {
179 datatype => 'int',
180 base_name => 'ZOrderPosition',
181 description => 'Gets z-order position of shape',
182 format => '',
183 read_only => '',
184 },
185 'fill_format' => {
186 datatype => 'FillFormat',
187 base_name => 'FillFormat',
188 description => 'Gets or sets the fill format.',
189 format => '',
190 read_only => '',
191 },
192 'effect_format' => {
193 datatype => 'EffectFormat',
194 base_name => 'EffectFormat',
195 description => 'Gets or sets the effect format.',
196 format => '',
197 read_only => '',
198 },
199 'three_d_format' => {
200 datatype => 'ThreeDFormat',
201 base_name => 'ThreeDFormat',
202 description => 'Gets or sets the 3D format',
203 format => '',
204 read_only => '',
205 },
206 'line_format' => {
207 datatype => 'LineFormat',
208 base_name => 'LineFormat',
209 description => 'Gets or sets the line format.',
210 format => '',
211 read_only => '',
212 },
213 'hyperlink_click' => {
214 datatype => 'Hyperlink',
215 base_name => 'HyperlinkClick',
216 description => 'Hyperlink defined for mouse click.',
217 format => '',
218 read_only => '',
219 },
220 'hyperlink_mouse_over' => {
221 datatype => 'Hyperlink',
222 base_name => 'HyperlinkMouseOver',
223 description => 'Hyperlink defined for mouse over.',
224 format => '',
225 read_only => '',
226 },
227 'type' => {
228 datatype => 'string',
229 base_name => 'Type',
230 description => 'Shape type.',
231 format => '',
232 read_only => '',
233 },
234 'shape_type' => {
235 datatype => 'string',
236 base_name => 'ShapeType',
237 description => 'Combined shape type.',
238 format => '',
239 read_only => '',
240 },
241 });
242  
243 __PACKAGE__->swagger_types( {
244 'self_uri' => 'ResourceUri',
245 'alternate_links' => 'ARRAY[ResourceUri]',
246 'name' => 'string',
247 'width' => 'double',
248 'height' => 'double',
249 'alternative_text' => 'string',
250 'alternative_text_title' => 'string',
251 'hidden' => 'boolean',
252 'is_decorative' => 'boolean',
253 'x' => 'double',
254 'y' => 'double',
255 'z_order_position' => 'int',
256 'fill_format' => 'FillFormat',
257 'effect_format' => 'EffectFormat',
258 'three_d_format' => 'ThreeDFormat',
259 'line_format' => 'LineFormat',
260 'hyperlink_click' => 'Hyperlink',
261 'hyperlink_mouse_over' => 'Hyperlink',
262 'type' => 'string',
263 'shape_type' => 'string'
264 } );
265  
266 __PACKAGE__->attribute_map( {
267 'self_uri' => 'SelfUri',
268 'alternate_links' => 'AlternateLinks',
269 'name' => 'Name',
270 'width' => 'Width',
271 'height' => 'Height',
272 'alternative_text' => 'AlternativeText',
273 'alternative_text_title' => 'AlternativeTextTitle',
274 'hidden' => 'Hidden',
275 'is_decorative' => 'IsDecorative',
276 'x' => 'X',
277 'y' => 'Y',
278 'z_order_position' => 'ZOrderPosition',
279 'fill_format' => 'FillFormat',
280 'effect_format' => 'EffectFormat',
281 'three_d_format' => 'ThreeDFormat',
282 'line_format' => 'LineFormat',
283 'hyperlink_click' => 'HyperlinkClick',
284 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
285 'type' => 'Type',
286 'shape_type' => 'ShapeType'
287 } );
288  
289 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
290  
291  
292 1;