view release on metacpan or search on metacpan
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
}
#
# update_animation_effect
#
# Modify an animation effect for a slide.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $effect_index The position of the effect to be modified. (required)
# @param Effect $effect Animation effect DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'effect_index' => {
data_type => 'int',
description => 'The position of the effect to be modified.',
required => '1',
},
'effect' => {
data_type => 'Effect',
description => 'Animation effect DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_animation_effect' } = {
summary => 'Modify an animation effect for a slide.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_animation_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_animation_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_animation_effect");
}
# verify the required parameter 'effect_index' is set
unless (exists $args{'effect_index'} && defined $args{'effect_index'}) {
croak("Missing the required parameter 'effect_index' when calling update_animation_effect");
}
# verify the required parameter 'effect' is set
unless (exists $args{'effect'} && defined $args{'effect'} && $args{'effect'}) {
croak("Missing the required parameter 'effect' when calling update_animation_effect");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/animation/mainSequence/{effectIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $sequence_index The position of the interactive sequence. (required)
# @param int $effect_index The position of the effect to be modified. (required)
# @param Effect $effect Animation effect DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'sequence_index' => {
data_type => 'int',
description => 'The position of the interactive sequence.',
required => '1',
},
'effect_index' => {
data_type => 'int',
description => 'The position of the effect to be modified.',
required => '1',
},
'effect' => {
data_type => 'Effect',
description => 'Animation effect DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_animation_interactive_sequence_effect' } = {
summary => 'Modify an animation effect for a slide interactive sequence.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_animation_interactive_sequence_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_animation_interactive_sequence_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_animation_interactive_sequence_effect");
}
# verify the required parameter 'sequence_index' is set
unless (exists $args{'sequence_index'} && defined $args{'sequence_index'}) {
croak("Missing the required parameter 'sequence_index' when calling update_animation_interactive_sequence_effect");
}
# verify the required parameter 'effect_index' is set
unless (exists $args{'effect_index'} && defined $args{'effect_index'}) {
croak("Missing the required parameter 'effect_index' when calling update_animation_interactive_sequence_effect");
}
# verify the required parameter 'effect' is set
unless (exists $args{'effect'} && defined $args{'effect'} && $args{'effect'}) {
croak("Missing the required parameter 'effect' when calling update_animation_interactive_sequence_effect");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/animation/interactiveSequences/{sequenceIndex}/{effectIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $shape_index Shape index. (required)
# @param int $category_index Category index. (required)
# @param ChartCategory $category Category DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'category_index' => {
data_type => 'int',
description => 'Category index.',
required => '1',
},
'category' => {
data_type => 'ChartCategory',
description => 'Category DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_chart_category' } = {
summary => 'Update a chart category.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_category {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_category");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_category");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_chart_category");
}
# verify the required parameter 'category_index' is set
unless (exists $args{'category_index'} && defined $args{'category_index'}) {
croak("Missing the required parameter 'category_index' when calling update_chart_category");
}
# verify the required parameter 'category' is set
unless (exists $args{'category'} && defined $args{'category'} && $args{'category'}) {
croak("Missing the required parameter 'category' when calling update_chart_category");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/categories/{categoryIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
# @param DataPoint $data_point Data point DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'series_index' => {
data_type => 'int',
description => 'Series index.',
required => '1',
},
'point_index' => {
data_type => 'int',
description => 'Data point index.',
required => '1',
},
'data_point' => {
data_type => 'DataPoint',
description => 'Data point DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_chart_data_point' } = {
summary => 'Update a data point in a chart series.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_data_point {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_data_point");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_data_point");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_chart_data_point");
}
# verify the required parameter 'series_index' is set
unless (exists $args{'series_index'} && defined $args{'series_index'}) {
croak("Missing the required parameter 'series_index' when calling update_chart_data_point");
}
# verify the required parameter 'point_index' is set
unless (exists $args{'point_index'} && defined $args{'point_index'}) {
croak("Missing the required parameter 'point_index' when calling update_chart_data_point");
}
# verify the required parameter 'data_point' is set
unless (exists $args{'data_point'} && defined $args{'data_point'} && $args{'data_point'}) {
croak("Missing the required parameter 'data_point' when calling update_chart_data_point");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/series/{seriesIndex}/dataPoints/{pointIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $shape_index Shape index (must be a chart). (required)
# @param int $series_index Series index. (required)
# @param Series $series Series DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index (must be a chart).',
required => '1',
},
'series_index' => {
data_type => 'int',
description => 'Series index.',
required => '1',
},
'series' => {
data_type => 'Series',
description => 'Series DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_chart_series' } = {
summary => 'Update a series in a chart.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_series {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_series");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_series");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_chart_series");
}
# verify the required parameter 'series_index' is set
unless (exists $args{'series_index'} && defined $args{'series_index'}) {
croak("Missing the required parameter 'series_index' when calling update_chart_series");
}
# verify the required parameter 'series' is set
unless (exists $args{'series'} && defined $args{'series'} && $args{'series'}) {
croak("Missing the required parameter 'series' when calling update_chart_series");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/series/{seriesIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('Chart', $response);
return $_response_object;
}
#
# update_layout_slide
#
# Update a layoutSlide.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param LayoutSlide $slide_dto Slide update data. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'slide_dto' => {
data_type => 'LayoutSlide',
description => 'Slide update data.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_layout_slide' } = {
summary => 'Update a layoutSlide.',
params => $params,
returns => 'LayoutSlide',
};
}
# @return LayoutSlide
#
sub update_layout_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_layout_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_layout_slide");
}
# verify the required parameter 'slide_dto' is set
unless (exists $args{'slide_dto'} && defined $args{'slide_dto'} && $args{'slide_dto'}) {
croak("Missing the required parameter 'slide_dto' when calling update_layout_slide");
}
# parse inputs
my $_resource_path = '/slides/{name}/layoutSlides/{slideIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
if ( exists $args{'slide_index'}) {
my $_base_variable = "{" . "slideIndex" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'slide_index'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('LayoutSlide', $response);
return $_response_object;
}
#
# update_notes_slide
#
# Update notes slide properties.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param NotesSlide $dto A NotesSlide object with notes slide data. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'dto' => {
data_type => 'NotesSlide',
description => 'A NotesSlide object with notes slide data.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_notes_slide' } = {
summary => 'Update notes slide properties.',
params => $params,
returns => 'NotesSlide',
};
}
# @return NotesSlide
#
sub update_notes_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_notes_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_notes_slide");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_notes_slide");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/notesSlide';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
if ( exists $args{'slide_index'}) {
my $_base_variable = "{" . "slideIndex" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'slide_index'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
# @param string $sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2). (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'dto' => {
data_type => 'Paragraph',
description => 'Paragraph DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_paragraph' } = {
summary => 'Update paragraph properties.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_paragraph");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_paragraph");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_paragraph");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_paragraph");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# query params
if (exists $args{'sub_shape'} && defined $args{'sub_shape'}) {
$query_params->{'subShape'} = $self->{api_client}->to_query_value($args{'sub_shape'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'portion_index' => {
data_type => 'int',
description => 'Portion index.',
required => '1',
},
'dto' => {
data_type => 'Portion',
description => 'Portion DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_portion' } = {
summary => 'Update portion properties.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_portion");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_portion");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_portion");
}
# verify the required parameter 'portion_index' is set
unless (exists $args{'portion_index'} && defined $args{'portion_index'}) {
croak("Missing the required parameter 'portion_index' when calling update_portion");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_portion");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# query params
if (exists $args{'sub_shape'} && defined $args{'sub_shape'}) {
$query_params->{'subShape'} = $self->{api_client}->to_query_value($args{'sub_shape'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('Portion', $response);
return $_response_object;
}
#
# update_section
#
# Update section name.
#
# @param string $name Document name. (required)
# @param int $section_index The position of the section to be updated. (required)
# @param string $section_name Section name. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'section_index' => {
data_type => 'int',
description => 'The position of the section to be updated.',
required => '1',
},
'section_name' => {
data_type => 'string',
description => 'Section name.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_section' } = {
summary => 'Update section name.',
params => $params,
returns => 'Sections',
};
}
# @return Sections
#
sub update_section {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_section");
}
# verify the required parameter 'section_index' is set
unless (exists $args{'section_index'} && defined $args{'section_index'}) {
croak("Missing the required parameter 'section_index' when calling update_section");
}
# verify the required parameter 'section_name' is set
unless (exists $args{'section_name'} && defined $args{'section_name'} && $args{'section_name'}) {
croak("Missing the required parameter 'section_name' when calling update_section");
}
# parse inputs
my $_resource_path = '/slides/{name}/sections/{sectionIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'section_name'} && defined $args{'section_name'}) {
$query_params->{'sectionName'} = $self->{api_client}->to_query_value($args{'section_name'});
}
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $shape_index Shape index. (required)
# @param ShapeBase $dto Shape DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
# @param string $sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2). (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'dto' => {
data_type => 'ShapeBase',
description => 'Shape DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_shape' } = {
summary => 'Update shape properties.',
params => $params,
returns => 'ShapeBase',
};
}
# @return ShapeBase
#
sub update_shape {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_shape");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_shape");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_shape");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_shape");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# query params
if (exists $args{'sub_shape'} && defined $args{'sub_shape'}) {
$query_params->{'subShape'} = $self->{api_client}->to_query_value($args{'sub_shape'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('ShapeBase', $response);
return $_response_object;
}
#
# update_slide
#
# Update a slide.
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param Slide $slide_dto Slide update data. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'slide_dto' => {
data_type => 'Slide',
description => 'Slide update data.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_slide' } = {
summary => 'Update a slide.',
params => $params,
returns => 'Slide',
};
}
# @return Slide
#
sub update_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_slide");
}
# verify the required parameter 'slide_dto' is set
unless (exists $args{'slide_dto'} && defined $args{'slide_dto'} && $args{'slide_dto'}) {
croak("Missing the required parameter 'slide_dto' when calling update_slide");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
if ( exists $args{'slide_index'}) {
my $_base_variable = "{" . "slideIndex" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'slide_index'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Parent slide index. (required)
# @param string $slide_type Slide type (master, layout or notes). (required)
# @param int $effect_index The position of the effect to be modified. (required)
# @param Effect $effect Animation effect DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Parent slide index.',
required => '1',
},
'slide_type' => {
data_type => 'string',
description => 'Slide type (master, layout or notes).',
required => '1',
},
'effect_index' => {
data_type => 'int',
description => 'The position of the effect to be modified.',
required => '1',
},
'effect' => {
data_type => 'Effect',
description => 'Animation effect DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_animation_effect' } = {
summary => 'Modify an animation effect for a special slide (master, layout, notes).',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_special_slide_animation_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_animation_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_animation_effect");
}
# verify the required parameter 'slide_type' is set
unless (exists $args{'slide_type'} && defined $args{'slide_type'} && $args{'slide_type'}) {
croak("Missing the required parameter 'slide_type' when calling update_special_slide_animation_effect");
}
# verify enum value
if (!grep(/^$args{'slide_type'}$/i, ( 'MasterSlide', 'LayoutSlide', 'NotesSlide' ))) {
croak("Invalid value for 'slide_type': " . $args{'slide_type'});
}
# verify the required parameter 'effect_index' is set
unless (exists $args{'effect_index'} && defined $args{'effect_index'}) {
croak("Missing the required parameter 'effect_index' when calling update_special_slide_animation_effect");
}
# verify the required parameter 'effect' is set
unless (exists $args{'effect'} && defined $args{'effect'} && $args{'effect'}) {
croak("Missing the required parameter 'effect' when calling update_special_slide_animation_effect");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/{slideType}/animation/mainSequence/{effectIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
# @param Effect $effect Animation effect DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Parent slide index.',
required => '1',
},
'slide_type' => {
data_type => 'string',
description => 'Slide type (master, layout or notes).',
required => '1',
},
'sequence_index' => {
data_type => 'int',
description => 'The position of the interactive sequence.',
required => '1',
},
'effect_index' => {
data_type => 'int',
description => 'The position of the effect to be modified.',
required => '1',
},
'effect' => {
data_type => 'Effect',
description => 'Animation effect DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_animation_interactive_sequence_effect' } = {
summary => 'Modify an animation effect for a special slide (master, layout, notes) interactive sequence.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_special_slide_animation_interactive_sequence_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify the required parameter 'slide_type' is set
unless (exists $args{'slide_type'} && defined $args{'slide_type'} && $args{'slide_type'}) {
croak("Missing the required parameter 'slide_type' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify enum value
if (!grep(/^$args{'slide_type'}$/i, ( 'MasterSlide', 'LayoutSlide', 'NotesSlide' ))) {
croak("Invalid value for 'slide_type': " . $args{'slide_type'});
}
# verify the required parameter 'sequence_index' is set
unless (exists $args{'sequence_index'} && defined $args{'sequence_index'}) {
croak("Missing the required parameter 'sequence_index' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify the required parameter 'effect_index' is set
unless (exists $args{'effect_index'} && defined $args{'effect_index'}) {
croak("Missing the required parameter 'effect_index' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify the required parameter 'effect' is set
unless (exists $args{'effect'} && defined $args{'effect'} && $args{'effect'}) {
croak("Missing the required parameter 'effect' when calling update_special_slide_animation_interactive_sequence_effect");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/{slideType}/animation/interactiveSequences/{sequenceIndex}/{effectIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Parent slide index.',
required => '1',
},
'slide_type' => {
data_type => 'string',
description => 'Slide type (master, layout or notes).',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'dto' => {
data_type => 'Paragraph',
description => 'Paragraph DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_paragraph' } = {
summary => 'Update paragraph properties.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_special_slide_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_paragraph");
}
# verify the required parameter 'slide_type' is set
unless (exists $args{'slide_type'} && defined $args{'slide_type'} && $args{'slide_type'}) {
croak("Missing the required parameter 'slide_type' when calling update_special_slide_paragraph");
}
# verify enum value
if (!grep(/^$args{'slide_type'}$/i, ( 'MasterSlide', 'LayoutSlide', 'NotesSlide' ))) {
croak("Invalid value for 'slide_type': " . $args{'slide_type'});
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_special_slide_paragraph");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_special_slide_paragraph");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_special_slide_paragraph");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
'slide_index' => {
data_type => 'int',
description => 'Parent slide index.',
required => '1',
},
'slide_type' => {
data_type => 'string',
description => 'Slide type (master, layout or notes).',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'portion_index' => {
data_type => 'int',
description => 'Portion index.',
required => '1',
},
'dto' => {
data_type => 'Portion',
description => 'Portion DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_portion' } = {
summary => 'Update portion properties.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_special_slide_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_portion");
}
# verify the required parameter 'slide_type' is set
unless (exists $args{'slide_type'} && defined $args{'slide_type'} && $args{'slide_type'}) {
croak("Missing the required parameter 'slide_type' when calling update_special_slide_portion");
}
# verify enum value
if (!grep(/^$args{'slide_type'}$/i, ( 'MasterSlide', 'LayoutSlide', 'NotesSlide' ))) {
croak("Invalid value for 'slide_type': " . $args{'slide_type'});
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_special_slide_portion");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_special_slide_portion");
}
# verify the required parameter 'portion_index' is set
unless (exists $args{'portion_index'} && defined $args{'portion_index'}) {
croak("Missing the required parameter 'portion_index' when calling update_special_slide_portion");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_special_slide_portion");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
# @param string $sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2). (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Parent slide index.',
required => '1',
},
'slide_type' => {
data_type => 'string',
description => 'Slide type (master, layout or notes).',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'dto' => {
data_type => 'ShapeBase',
description => 'Shape DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
'sub_shape' => {
data_type => 'string',
description => 'Sub-shape path (e.g. \"3\", \"3/shapes/2).',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_shape' } = {
summary => 'Update shape properties.',
params => $params,
returns => 'ShapeBase',
};
}
# @return ShapeBase
#
sub update_special_slide_shape {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_shape");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_shape");
}
# verify the required parameter 'slide_type' is set
unless (exists $args{'slide_type'} && defined $args{'slide_type'} && $args{'slide_type'}) {
croak("Missing the required parameter 'slide_type' when calling update_special_slide_shape");
}
# verify enum value
if (!grep(/^$args{'slide_type'}$/i, ( 'MasterSlide', 'LayoutSlide', 'NotesSlide' ))) {
croak("Invalid value for 'slide_type': " . $args{'slide_type'});
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_special_slide_shape");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_special_slide_shape");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# query params
if (exists $args{'sub_shape'} && defined $args{'sub_shape'}) {
$query_params->{'subShape'} = $self->{api_client}->to_query_value($args{'sub_shape'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
# @param TableCell $dto Table cell data. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'row_index' => {
data_type => 'int',
description => 'Row index.',
required => '1',
},
'cell_index' => {
data_type => 'int',
description => 'Table cell index.',
required => '1',
},
'dto' => {
data_type => 'TableCell',
description => 'Table cell data.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell' } = {
summary => 'Update the table cell.',
params => $params,
returns => 'TableCell',
};
}
# @return TableCell
#
sub update_table_cell {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_table_cell");
}
# verify the required parameter 'row_index' is set
unless (exists $args{'row_index'} && defined $args{'row_index'}) {
croak("Missing the required parameter 'row_index' when calling update_table_cell");
}
# verify the required parameter 'cell_index' is set
unless (exists $args{'cell_index'} && defined $args{'cell_index'}) {
croak("Missing the required parameter 'cell_index' when calling update_table_cell");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_table_cell");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'row_index' => {
data_type => 'int',
description => 'Row index.',
required => '1',
},
'cell_index' => {
data_type => 'int',
description => 'Table cell index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'dto' => {
data_type => 'Paragraph',
description => 'Paragraph DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell_paragraph' } = {
summary => 'Updates table cell paragraph.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_table_cell_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell_paragraph");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_table_cell_paragraph");
}
# verify the required parameter 'row_index' is set
unless (exists $args{'row_index'} && defined $args{'row_index'}) {
croak("Missing the required parameter 'row_index' when calling update_table_cell_paragraph");
}
# verify the required parameter 'cell_index' is set
unless (exists $args{'cell_index'} && defined $args{'cell_index'}) {
croak("Missing the required parameter 'cell_index' when calling update_table_cell_paragraph");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_table_cell_paragraph");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_table_cell_paragraph");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'row_index' => {
data_type => 'int',
description => 'Row index.',
required => '1',
},
'cell_index' => {
data_type => 'int',
description => 'Table cell index.',
required => '1',
},
'paragraph_index' => {
data_type => 'int',
description => 'Paragraph index.',
required => '1',
},
'portion_index' => {
data_type => 'int',
description => 'Portion index.',
required => '1',
},
'dto' => {
data_type => 'Portion',
description => 'Portion DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell_portion' } = {
summary => 'Updates table cell portion.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_table_cell_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell_portion");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_table_cell_portion");
}
# verify the required parameter 'row_index' is set
unless (exists $args{'row_index'} && defined $args{'row_index'}) {
croak("Missing the required parameter 'row_index' when calling update_table_cell_portion");
}
# verify the required parameter 'cell_index' is set
unless (exists $args{'cell_index'} && defined $args{'cell_index'}) {
croak("Missing the required parameter 'cell_index' when calling update_table_cell_portion");
}
# verify the required parameter 'paragraph_index' is set
unless (exists $args{'paragraph_index'} && defined $args{'paragraph_index'}) {
croak("Missing the required parameter 'paragraph_index' when calling update_table_cell_portion");
}
# verify the required parameter 'portion_index' is set
unless (exists $args{'portion_index'} && defined $args{'portion_index'}) {
croak("Missing the required parameter 'portion_index' when calling update_table_cell_portion");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_table_cell_portion");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
#
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $shape_index Shape index. (required)
# @param int $row_index Row index. (required)
# @param TableRow $dto Table cell data. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'slide_index' => {
data_type => 'int',
description => 'Slide index.',
required => '1',
},
'shape_index' => {
data_type => 'int',
description => 'Shape index.',
required => '1',
},
'row_index' => {
data_type => 'int',
description => 'Row index.',
required => '1',
},
'dto' => {
data_type => 'TableRow',
description => 'Table cell data.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_table_row' } = {
summary => 'Update the table row.',
params => $params,
returns => 'TableRow',
};
}
# @return TableRow
#
sub update_table_row {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_row");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_row");
}
# verify the required parameter 'shape_index' is set
unless (exists $args{'shape_index'} && defined $args{'shape_index'}) {
croak("Missing the required parameter 'shape_index' when calling update_table_row");
}
# verify the required parameter 'row_index' is set
unless (exists $args{'row_index'} && defined $args{'row_index'}) {
croak("Missing the required parameter 'row_index' when calling update_table_row");
}
# verify the required parameter 'dto' is set
unless (exists $args{'dto'} && defined $args{'dto'} && $args{'dto'}) {
croak("Missing the required parameter 'dto' when calling update_table_row");
}
# parse inputs
my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
$header_params, $_body_data, $files);
if (!$response) {
return;
}
my $_response_object = $self->{api_client}->deserialize('TableRow', $response);
return $_response_object;
}
#
# update_vba_module
#
# Update VBA module.
#
# @param string $name Document name. (required)
# @param int $module_index The index of the macros module to remove. (required)
# @param VbaModule $module_dto VBA module DTO. (required)
# @param string $password Document password. (optional)
# @param string $folder Document folder. (optional)
# @param string $storage Document storage. (optional)
{
my $params = {
'name' => {
data_type => 'string',
description => 'Document name.',
required => '1',
},
'module_index' => {
data_type => 'int',
description => 'The index of the macros module to remove.',
required => '1',
},
'module_dto' => {
data_type => 'VbaModule',
description => 'VBA module DTO.',
required => '1',
},
'password' => {
data_type => 'string',
description => 'Document password.',
required => '0',
},
'folder' => {
data_type => 'string',
description => 'Document folder.',
required => '0',
},
'storage' => {
data_type => 'string',
description => 'Document storage.',
required => '0',
},
};
__PACKAGE__->method_documentation->{ 'update_vba_module' } = {
summary => 'Update VBA module.',
params => $params,
returns => 'VbaModule',
};
}
# @return VbaModule
#
sub update_vba_module {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_vba_module");
}
# verify the required parameter 'module_index' is set
unless (exists $args{'module_index'} && defined $args{'module_index'}) {
croak("Missing the required parameter 'module_index' when calling update_vba_module");
}
# verify the required parameter 'module_dto' is set
unless (exists $args{'module_dto'} && defined $args{'module_dto'} && $args{'module_dto'}) {
croak("Missing the required parameter 'module_dto' when calling update_vba_module");
}
# parse inputs
my $_resource_path = '/slides/{name}/vbaProject/modules/{moduleIndex}';
my $_method = 'PUT';
my $query_params = {};
my $header_params = {};
my $form_params = {};
# 'Accept' and 'Content-Type' header
my $_header_accept = $self->{api_client}->select_header_accept('application/json');
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if (exists $args{'folder'} && defined $args{'folder'}) {
$query_params->{'folder'} = $self->{api_client}->to_query_value($args{'folder'});
}
# query params
if (exists $args{'storage'} && defined $args{'storage'}) {
$query_params->{'storage'} = $self->{api_client}->to_query_value($args{'storage'});
}
# header params
if ( exists $args{'password'}) {
$header_params->{':password'} = $self->{api_client}->to_header_value($args{'password'});
}
# path params
if ( exists $args{'name'}) {
my $_base_variable = "{" . "name" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'name'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}
# path params
if ( exists $args{'module_index'}) {
my $_base_variable = "{" . "moduleIndex" . "}";
my $_base_value = $self->{api_client}->to_path_value($args{'module_index'});
$_resource_path =~ s/$_base_variable/$_base_value/g;
}