Object/PictureFill.pm untested

filter: Statementstmt 0.0% 0 / 74 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 16 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 94 CC 2 SCAR 9.0
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.5
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::PictureFill;
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::ImageTransformEffect;
42 use AsposeSlidesCloud::Object::ResourceUri;
43  
44 use base ("Class::Accessor", "Class::Data::Inheritable");
45  
46  
47 #
48 #Picture fill.
49 #
50 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
51 # REF: https://github.com/swagger-api/swagger-codegen
52 #
53  
54 #
55 # NOTE: This class is auto generated by the swagger code generator program.
56 # Do not edit the class manually.
57 # Ref: https://github.com/swagger-api/swagger-codegen
58 #
59 __PACKAGE__->mk_classdata('attribute_map' => {});
60 __PACKAGE__->mk_classdata('swagger_types' => {});
61 __PACKAGE__->mk_classdata('method_documentation' => {});
62 __PACKAGE__->mk_classdata('class_documentation' => {});
63  
64 # new object
65 sub new {
66 my ($class, %args) = @_;
67  
68 my $self = bless {}, $class;
69
70 foreach my $attribute (keys %{$class->attribute_map}) {
71 my $args_key = $class->attribute_map->{$attribute};
72 $self->$attribute( $args{ $args_key } );
73 }
74 $self->{ type } = 'Picture';
75 return $self;
76 }
77  
78 # used by JSON for serialization
79 sub TO_JSON {
80 my $self = shift;
81 my $_data = {};
82 foreach my $_key (keys %{$self->attribute_map}) {
83 if (defined $self->{$_key}) {
84 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
85 }
86 }
87 return $_data;
88 }
89  
90  
91 __PACKAGE__->class_documentation({description => 'Picture fill.',
92 class => 'PictureFill',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'type' => {
98 datatype => 'string',
99 base_name => 'Type',
100 description => 'Fill type.',
101 format => '',
102 read_only => '',
103 },
104 'crop_bottom' => {
105 datatype => 'double',
106 base_name => 'CropBottom',
107 description => 'Percentage of image height that is cropped from the bottom.',
108 format => '',
109 read_only => '',
110 },
111 'crop_left' => {
112 datatype => 'double',
113 base_name => 'CropLeft',
114 description => 'Percentage of image height that is cropped from the left.',
115 format => '',
116 read_only => '',
117 },
118 'crop_right' => {
119 datatype => 'double',
120 base_name => 'CropRight',
121 description => 'Percentage of image height that is cropped from the right.',
122 format => '',
123 read_only => '',
124 },
125 'crop_top' => {
126 datatype => 'double',
127 base_name => 'CropTop',
128 description => 'Percentage of image height that is cropped from the top.',
129 format => '',
130 read_only => '',
131 },
132 'dpi' => {
133 datatype => 'int',
134 base_name => 'Dpi',
135 description => 'Picture resolution.',
136 format => '',
137 read_only => '',
138 },
139 'tile_offset_x' => {
140 datatype => 'double',
141 base_name => 'TileOffsetX',
142 description => 'The horizontal offset of the texture from the shape's origin in points. A positive value moves the texture to the right, while a negative value moves it to the left.',
143 format => '',
144 read_only => '',
145 },
146 'tile_offset_y' => {
147 datatype => 'double',
148 base_name => 'TileOffsetY',
149 description => 'The vertical offset of the texture from the shape's origin in points. A positive value moves the texture down, while a negative value moves it up.',
150 format => '',
151 read_only => '',
152 },
153 'tile_scale_x' => {
154 datatype => 'double',
155 base_name => 'TileScaleX',
156 description => 'The horizontal scale for the texture fill as a percentage.',
157 format => '',
158 read_only => '',
159 },
160 'tile_scale_y' => {
161 datatype => 'double',
162 base_name => 'TileScaleY',
163 description => 'The vertical scale for the texture fill as a percentage.',
164 format => '',
165 read_only => '',
166 },
167 'tile_alignment' => {
168 datatype => 'string',
169 base_name => 'TileAlignment',
170 description => 'The way texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape.',
171 format => '',
172 read_only => '',
173 },
174 'tile_flip' => {
175 datatype => 'string',
176 base_name => 'TileFlip',
177 description => 'Flips the texture tile around its horizontal, vertical or both axis.',
178 format => '',
179 read_only => '',
180 },
181 'image' => {
182 datatype => 'ResourceUri',
183 base_name => 'Image',
184 description => 'Internal image link.',
185 format => '',
186 read_only => '',
187 },
188 'base64_data' => {
189 datatype => 'string',
190 base_name => 'Base64Data',
191 description => 'Base 64 image data.',
192 format => '',
193 read_only => '',
194 },
195 'svg_data' => {
196 datatype => 'string',
197 base_name => 'SvgData',
198 description => 'SVG image data.',
199 format => '',
200 read_only => '',
201 },
202 'delete_picture_cropped_areas' => {
203 datatype => 'boolean',
204 base_name => 'DeletePictureCroppedAreas',
205 description => 'true to delete picture cropped areas on save.',
206 format => '',
207 read_only => '',
208 },
209 'resolution' => {
210 datatype => 'double',
211 base_name => 'Resolution',
212 description => 'true to compress the picture image with the specified resolution (in dpi) on save.',
213 format => '',
214 read_only => '',
215 },
216 'picture_fill_mode' => {
217 datatype => 'string',
218 base_name => 'PictureFillMode',
219 description => 'Fill mode.',
220 format => '',
221 read_only => '',
222 },
223 'image_transform_list' => {
224 datatype => 'ARRAY[ImageTransformEffect]',
225 base_name => 'ImageTransformList',
226 description => 'Image transform effects.',
227 format => '',
228 read_only => '',
229 },
230 });
231  
232 __PACKAGE__->swagger_types( {
233 'type' => 'string',
234 'crop_bottom' => 'double',
235 'crop_left' => 'double',
236 'crop_right' => 'double',
237 'crop_top' => 'double',
238 'dpi' => 'int',
239 'tile_offset_x' => 'double',
240 'tile_offset_y' => 'double',
241 'tile_scale_x' => 'double',
242 'tile_scale_y' => 'double',
243 'tile_alignment' => 'string',
244 'tile_flip' => 'string',
245 'image' => 'ResourceUri',
246 'base64_data' => 'string',
247 'svg_data' => 'string',
248 'delete_picture_cropped_areas' => 'boolean',
249 'resolution' => 'double',
250 'picture_fill_mode' => 'string',
251 'image_transform_list' => 'ARRAY[ImageTransformEffect]'
252 } );
253  
254 __PACKAGE__->attribute_map( {
255 'type' => 'Type',
256 'crop_bottom' => 'CropBottom',
257 'crop_left' => 'CropLeft',
258 'crop_right' => 'CropRight',
259 'crop_top' => 'CropTop',
260 'dpi' => 'Dpi',
261 'tile_offset_x' => 'TileOffsetX',
262 'tile_offset_y' => 'TileOffsetY',
263 'tile_scale_x' => 'TileScaleX',
264 'tile_scale_y' => 'TileScaleY',
265 'tile_alignment' => 'TileAlignment',
266 'tile_flip' => 'TileFlip',
267 'image' => 'Image',
268 'base64_data' => 'Base64Data',
269 'svg_data' => 'SvgData',
270 'delete_picture_cropped_areas' => 'DeletePictureCroppedAreas',
271 'resolution' => 'Resolution',
272 'picture_fill_mode' => 'PictureFillMode',
273 'image_transform_list' => 'ImageTransformList'
274 } );
275  
276 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
277  
278  
279 1;