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: 7.8.0
Show newest version
{{>partial_license}}
#
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# Do not edit the class manually.
# Ref: https://openapi-generator.tech
#
{{#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"{{#allParents}}, "{{moduleName}}::Object::{{{.}}}"{{/allParents}});

#
#{{description}}
#
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually.
# REF: https://openapi-generator.tech
#

{{>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__->openapi_types( {
    {{#vars}}'{{name}}' => '{{{dataType}}}'{{^-last}},
    {{/-last}}{{/vars}}
} );

__PACKAGE__->attribute_map( {
    {{#vars}}'{{name}}' => '{{baseName}}'{{^-last}},
    {{/-last}}{{/vars}}
} );

__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});


1;
{{/model}}
{{/models}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy