All Downloads are FREE. Search and download functionalities are using the official Maven repository.

perl.object.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show 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;

{{#imports}}
use {{moduleName}}::Object::{{.}};
{{/imports}}

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}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy