AsposeDiagramCloud-DiagramApi
view release on metacpan or search on metacpan
lib/AsposeDiagramCloud/DiagramApi.pm view on Meta::CPAN
}
#
# diagram_name_convert_put
#
# Converts document from the request's content to the specified format.
#
# @param string $name Download document name. (required)
# @param string $file File to upload (required)
# @param string $source_filename Source document name. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Download document name.',
required => '1',
},
'file' => {
data_type => 'string',
description => 'File to upload',
required => '1',
},
'source_filename' => {
data_type => 'string',
description => 'Source document name.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'diagram_name_convert_put' } = {
summary => 'Converts document from the request's content to the specified format.',
lib/AsposeDiagramCloud/Object/FilesUploadResult.pm view on Meta::CPAN
use Log::Any qw($log);
use Date::Parse;
use DateTime;
use AsposeDiagramCloud::Object::Error;
use base ("Class::Accessor", "Class::Data::Inheritable");
#
#File upload result
#
# 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
#
=begin comment
Aspose.Diagram Cloud API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
lib/AsposeDiagramCloud/Object/FilesUploadResult.pm view on Meta::CPAN
} elsif ( grep( /^$type$/, ('int', 'double', 'string', 'boolean'))) {
return $data;
} else { # hash(model)
my $_instance = eval "AsposeDiagramCloud::Object::$type->new()";
return $_instance->from_hash($data);
}
}
__PACKAGE__->class_documentation({description => 'File upload result',
class => 'FilesUploadResult',
required => [], # TODO
} );
__PACKAGE__->method_documentation({
'uploaded' => {
datatype => 'ARRAY[string]',
base_name => 'Uploaded',
description => 'List of uploaded file names',
format => '',
read_only => '',
},
'errors' => {
datatype => 'ARRAY[Error]',
base_name => 'Errors',
description => 'List of errors.',
format => '',
read_only => '',
},
});
__PACKAGE__->swagger_types( {
'uploaded' => 'ARRAY[string]',
'errors' => 'ARRAY[Error]'
} );
__PACKAGE__->attribute_map( {
'uploaded' => 'Uploaded',
'errors' => 'Errors'
} );
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
1;
lib/AsposeDiagramCloud/StorageApi.pm view on Meta::CPAN
}
my $_response_object = $self->{api_client}->deserialize('string', $response);
return $_response_object;
}
#
# diagram_storage_file_path_put
#
# Upload file
#
# @param string $path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter ...
# @param string $file File to upload (required)
# @param string $storage_name Storage name (optional)
{
my $params = {
'path' => {
data_type => 'string',
description => 'Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter ...
required => '1',
},
'file' => {
data_type => 'string',
description => 'File to upload',
required => '1',
},
'storage_name' => {
data_type => 'string',
description => 'Storage name',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'diagram_storage_file_path_put' } = {
summary => 'Upload file',
lib/AsposeDiagramCloud/StorageApi.pm view on Meta::CPAN
return;
}
my $_response_object = $self->{api_client}->deserialize('FileVersions', $response);
return $_response_object;
}
#
# Upload file
#
# Upload file
#
# @param string $path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter ...
# @param File $file File to upload (required)
# @param string $storage_name Storage name (optional)
{
my $params = {
'path' => {
data_type => 'string',
description => 'Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter ...
required => '1',
},
'localfileName' => {
data_type => 'string',
description => 'localfileName name.',
required => '0',
},
'body' => {
data_type => 'string',
description => 'file.',
lib/AsposeDiagramCloud/StorageApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'diagram_storage_file_path_put' } = {
summary => 'Upload file',
params => $params,
returns => 'FilesUploadResult',
};
}
# @return FilesUploadResult
#
sub upload_file {
my ($self, %args) = @_;
# verify the required parameter 'path' is set
unless (exists $args{'path'}) {
croak("Missing the required parameter 'path' when calling diagram_storage_file_path_put");
}
# parse inputs
my $_resource_path = '/diagram/storage/file/{path}';
( run in 0.806 second using v1.01-cache-2.11-cpan-b16cb0d3907 )