view release on metacpan or search on metacpan
lib/AsposeSlidesCloud/Object/FilesUploadResult.pm view on Meta::CPAN
use Log::Any qw($log);
use Date::Parse;
use DateTime;
use AsposeSlidesCloud::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
#
#
# 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
#
lib/AsposeSlidesCloud/Object/FilesUploadResult.pm view on Meta::CPAN
my $_data = {};
foreach my $_key (keys %{$self->attribute_map}) {
if (defined $self->{$_key}) {
$_data->{$self->attribute_map->{$_key}} = $self->{$_key};
}
}
return $_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/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param string $worksheet_name The name of the worksheet that contains the chart. (required)
# @param File $document Excel workbook data. (optional)
# @param string $chart_name The name of the chart. Required if chartIndex is not specified. (optional)
# @param int $chart_index The zero-based index of the chart in the worksheet. Takes precedence over chartName. (optional)
# @param double $x X coordinate of the chart (EMU). (optional, default to 0.0)
# @param double $y Y coordinate of the chart (EMU). (optional, default to 0.0)
# @param boolean $embed_all_workbook If true, the entire workbook is embedded; if false, only chart data. (optional, default to true)
# @param string $workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data. (optional)
# @param string $workbook_storage Storage name for workbookPath. (optional)
# @param string $password Document password. (optional)
# @param string $folder Presentation folder. (optional)
# @param string $storage Presentation storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
description => 'Y coordinate of the chart (EMU).',
required => '0',
},
'embed_all_workbook' => {
data_type => 'boolean',
description => 'If true, the entire workbook is embedded; if false, only chart data.',
required => '0',
},
'workbook_path' => {
data_type => 'string',
description => 'Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.',
required => '0',
},
'workbook_storage' => {
data_type => 'string',
description => 'Storage name for workbookPath.',
required => '0',
},
'password' => {
data_type => 'string',
description => 'Document password.',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# Imports a table from an Excel workbook and adds it to the slide.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param string $worksheet_name The name of the worksheet that contains the table. (required)
# @param string $cell_range The cell range that defines the table (e.g. \"A1:D10\"). (required)
# @param File $document Excel workbook data. (optional)
# @param double $x X coordinate of the table (EMU). (optional, default to 0.0)
# @param double $y Y coordinate of the table (EMU). (optional, default to 0.0)
# @param string $workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data. (optional)
# @param string $workbook_storage Storage name for workbookPath. (optional)
# @param string $password Document password. (optional)
# @param string $folder Presentation folder. (optional)
# @param string $storage Presentation storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
description => 'X coordinate of the table (EMU).',
required => '0',
},
'y' => {
data_type => 'double',
description => 'Y coordinate of the table (EMU).',
required => '0',
},
'workbook_path' => {
data_type => 'string',
description => 'Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.',
required => '0',
},
'workbook_storage' => {
data_type => 'string',
description => 'Storage name for workbookPath.',
required => '0',
},
'password' => {
data_type => 'string',
description => 'Document password.',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
my $_response_object = $self->{api_client}->deserialize('Document', $response);
return $_response_object;
}
#
# pipeline
#
# Performs slides pipeline.
#
# @param Pipeline $pipeline A Pipeline object. (required)
# @param ARRAY[string] $files Files to upload with the pipeline (optional)
{
my $params = {
'pipeline' => {
data_type => 'Pipeline',
description => 'A Pipeline object.',
required => '1',
},
'files' => {
data_type => 'ARRAY[string]',
description => 'Files to upload with the pipeline',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'pipeline' } = {
summary => 'Performs slides pipeline.',
params => $params,
returns => 'File',
};
}
# @return File
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
}
#
# save_slide
#
# Save a slide to a specified format.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param string $format Output file format. (required)
# @param string $out_path Path to upload the output file to. (required)
# @param ExportOptions $options Export options. (optional)
# @param int $width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0. (optional, default to 0)
# @param int $height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0. (optional, default to 0)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
# @param string $fonts_folder Storage folder containing custom fonts to be used with the document. (optional)
{
my $params = {
'name' => {
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
description => 'Slide index.',
required => '1',
},
'format' => {
data_type => 'string',
description => 'Output file format.',
required => '1',
},
'out_path' => {
data_type => 'string',
description => 'Path to upload the output file to.',
required => '1',
},
'options' => {
data_type => 'ExportOptions',
description => 'Export options.',
required => '0',
},
'width' => {
data_type => 'int',
description => 'The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# Splitting presentations. Create one image per slide.
#
# @param string $name Document name. (required)
# @param ExportOptions $options Export options. (optional)
# @param string $format Export format. Default value is jpeg. (optional, default to 0)
# @param int $width The width of created images. (optional)
# @param int $height The height of created images. (optional)
# @param int $from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation. (optional)
# @param int $to The last slide number for splitting, if is not specified splitting ends at the last slide of the document. (optional)
# @param string $dest_folder Folder on storage where images are going to be uploaded. If not specified then images are uploaded to same folder as presentation. (optional)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
# @param string $fonts_folder Custom fonts folder. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
description => 'The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation.',
required => '0',
},
'to' => {
data_type => 'int',
description => 'The last slide number for splitting, if is not specified splitting ends at the last slide of the document.',
required => '0',
},
'dest_folder' => {
data_type => 'string',
description => 'Folder on storage where images are going to be uploaded. If not specified then images are uploaded to same folder as presentation.',
required => '0',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
return $_response_object;
}
#
# split_and_save_online
#
# Splits PowerPoint presentation slides from the specified range into separate files and exports them in the specified file format. If the range is not provided all slides will be processed.
#
# @param File $document Document data. (required)
# @param string $format ExportFormat (required)
# @param string $dest_folder Folder on storage where images are going to be uploaded. If not specified then images are uploaded to the root folder. (optional, default to )
# @param int $width Slide width. (optional)
# @param int $height Slide height. (optional)
# @param int $from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation. (optional)
# @param int $to The last slide number for splitting, if is not specified splitting ends at the last slide of the document. (optional)
# @param string $password Document password. (optional)
# @param string $storage Document storage. (optional)
# @param string $fonts_folder Custom fonts folder. (optional)
# @param ExportOptions $options Export options. (optional)
{
my $params = {
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
description => 'Document data.',
required => '1',
},
'format' => {
data_type => 'string',
description => 'ExportFormat',
required => '1',
},
'dest_folder' => {
data_type => 'string',
description => 'Folder on storage where images are going to be uploaded. If not specified then images are uploaded to the root folder.',
required => '0',
},
'width' => {
data_type => 'int',
description => 'Slide width.',
required => '0',
},
'height' => {
data_type => 'int',
description => 'Slide height.',
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$query_params, $form_params,
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('VbaModule', $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',
},
'file' => {
data_type => 'File',
description => 'File to upload',
required => '1',
},
'storage_name' => {
data_type => 'string',
description => 'Storage name',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'upload_file' } = {
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'} && defined $args{'path'} && $args{'path'}) {
croak("Missing the required parameter 'path' when calling upload_file");
}
# verify the required parameter 'file' is set
unless (exists $args{'file'} && defined $args{'file'} && $args{'file'}) {
croak("Missing the required parameter 'file' when calling upload_file");
}
# parse inputs
my $_resource_path = '/slides/storage/file/{path}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
lib/AsposeSlidesCloud/SlidesAsyncApi.pm view on Meta::CPAN
$query_params, $form_params,
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('string', $response);
return $_response_object;
}
#
# start_upload_and_split
#
#
#
# @param File $document Document data. (required)
# @param string $format (required)
# @param string $dest_folder (optional, default to )
# @param int $width (optional)
# @param int $height (optional)
# @param int $from (optional)
# @param int $to (optional)
lib/AsposeSlidesCloud/SlidesAsyncApi.pm view on Meta::CPAN
data_type => 'string',
description => '',
required => '0',
},
'options' => {
data_type => 'ExportOptions',
description => '',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'start_upload_and_split' } = {
summary => '',
params => $params,
returns => 'string',
};
}
# @return string
#
sub start_upload_and_split {
my ($self, %args) = @_;
# verify the required parameter 'document' is set
unless (exists $args{'document'} && defined $args{'document'} && $args{'document'}) {
croak("Missing the required parameter 'document' when calling start_upload_and_split");
}
# verify the required parameter 'format' is set
unless (exists $args{'format'} && defined $args{'format'} && $args{'format'}) {
croak("Missing the required parameter 'format' when calling start_upload_and_split");
}
# verify enum value
if (!grep(/^$args{'format'}$/i, ( 'Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml', 'Emf' ))) {
croak("Invalid value for 'format': " . $args{'format'});
}
# parse inputs
my $_resource_path = '/slides/async/split/{format}';
lib/AsposeSlidesCloud/SlidesAsyncApi.pm view on Meta::CPAN
$query_params, $form_params,
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('string', $response);
return $_response_object;
}
#
# upload
#
#
#
# @param string $path (required)
# @param File $file File to upload (required)
# @param string $storage_name (optional)
{
my $params = {
'path' => {
data_type => 'string',
description => '',
required => '1',
},
'file' => {
data_type => 'File',
description => 'File to upload',
required => '1',
},
'storage_name' => {
data_type => 'string',
description => '',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'upload' } = {
summary => '',
params => $params,
returns => 'FilesUploadResult',
};
}
# @return FilesUploadResult
#
sub upload {
my ($self, %args) = @_;
# verify the required parameter 'path' is set
unless (exists $args{'path'} && defined $args{'path'} && $args{'path'}) {
croak("Missing the required parameter 'path' when calling upload");
}
# verify the required parameter 'file' is set
unless (exists $args{'file'} && defined $args{'file'} && $args{'file'}) {
croak("Missing the required parameter 'file' when calling upload");
}
# parse inputs
my $_resource_path = '/slides/async/storage/file/{path}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};