perl.object.mustache Maven / Gradle / Ivy
The newest version!
{{>partial_license}}
#
# NOTE: This class is auto generated by the swagger code generator program.
# Do not edit the class manually.
# Ref: https://github.com/swagger-api/swagger-codegen
#
{{#models}}
{{#model}}
package {{moduleName}}::Object::{{classname}};
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::Parse;
use DateTime;
use base ("Class::Accessor", "Class::Data::Inheritable");
#
#{{description}}
#
# NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
# REF: https://github.com/swagger-api/swagger-codegen
#
{{>BaseObject}}
__PACKAGE__->class_documentation({description => '{{description}}',
class => '{{classname}}',
required => [], # TODO
} );
__PACKAGE__->method_documentation({
{{#vars}}
'{{name}}' => {
datatype => '{{datatype}}',
base_name => '{{baseName}}',
description => '{{description}}',
format => '{{format}}',
read_only => '{{readOnly}}',
},
{{/vars}}
});
__PACKAGE__->swagger_types( {
{{#vars}}'{{name}}' => '{{{datatype}}}'{{#hasMore}},
{{/hasMore}}{{/vars}}
} );
__PACKAGE__->attribute_map( {
{{#vars}}'{{name}}' => '{{baseName}}'{{#hasMore}},
{{/hasMore}}{{/vars}}
} );
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
1;
{{/model}}
{{/models}}