| 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::PresentationToMerge; | ||
| 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 | |||
| 41 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 42 | |||
| 43 | |||
| 44 | # | ||
| 45 | #Represents presentation to merge | ||
| 46 | # | ||
| 47 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 48 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 49 | # | ||
| 50 | |||
| 51 | # | ||
| 52 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 53 | # Do not edit the class manually. | ||
| 54 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 55 | # | ||
| 56 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 57 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 58 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 59 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 60 | |||
| 61 | # new object | ||
| 62 | sub new { | ||
| 63 | my ($class, %args) = @_; | ||
| 64 | |||
| 65 | my $self = bless {}, $class; | ||
| 66 | |||
| 67 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 68 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 69 | $self->$attribute( $args{ $args_key } ); | ||
| 70 | } | ||
| 71 | return $self; | ||
| 72 | } | ||
| 73 | |||
| 74 | # used by JSON for serialization | ||
| 75 | sub TO_JSON { | ||
| 76 | my $self = shift; | ||
| 77 | my $_data = {}; | ||
| 78 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 79 | if (defined $self->{$_key}) { | ||
| 80 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 81 | } | ||
| 82 | } | ||
| 83 | return $_data; | ||
| 84 | } | ||
| 85 | |||
| 86 | |||
| 87 | __PACKAGE__->class_documentation({description => 'Represents presentation to merge', | ||
| 88 | class => 'PresentationToMerge', | ||
| 89 | required => [], # TODO | ||
| 90 | } ); | ||
| 91 | |||
| 92 | __PACKAGE__->method_documentation({ | ||
| 93 | 'path' => { | ||
| 94 | datatype => 'string', | ||
| 95 | base_name => 'Path', | ||
| 96 | description => 'Get or sets the presentation path', | ||
| 97 | format => '', | ||
| 98 | read_only => '', | ||
| 99 | }, | ||
| 100 | 'password' => { | ||
| 101 | datatype => 'string', | ||
| 102 | base_name => 'Password', | ||
| 103 | description => 'Get or sets the presentation password', | ||
| 104 | format => '', | ||
| 105 | read_only => '', | ||
| 106 | }, | ||
| 107 | 'slides' => { | ||
| 108 | datatype => 'ARRAY[int]', | ||
| 109 | base_name => 'Slides', | ||
| 110 | description => 'Get or sets the indexes of slides to merge', | ||
| 111 | format => '', | ||
| 112 | read_only => '', | ||
| 113 | }, | ||
| 114 | 'source' => { | ||
| 115 | datatype => 'string', | ||
| 116 | base_name => 'Source', | ||
| 117 | description => 'Merge (request or storage). ', | ||
| 118 | format => '', | ||
| 119 | read_only => '', | ||
| 120 | }, | ||
| 121 | }); | ||
| 122 | |||
| 123 | __PACKAGE__->swagger_types( { | ||
| 124 | 'path' => 'string', | ||
| 125 | 'password' => 'string', | ||
| 126 | 'slides' => 'ARRAY[int]', | ||
| 127 | 'source' => 'string' | ||
| 128 | } ); | ||
| 129 | |||
| 130 | __PACKAGE__->attribute_map( { | ||
| 131 | 'path' => 'Path', | ||
| 132 | 'password' => 'Password', | ||
| 133 | 'slides' => 'Slides', | ||
| 134 | 'source' => 'Source' | ||
| 135 | } ); | ||
| 136 | |||
| 137 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 138 | |||
| 139 | |||
| 140 | 1; |