AsposeSlidesCloud-SlidesApi

 view release on metacpan or  search on metacpan

lib/AsposeSlidesCloud/Object/Chart.pm  view on Meta::CPAN

    	format => '',
    	read_only => '',
    		},
    'floor' => {
    	datatype => 'ChartWall',
    	base_name => 'Floor',
    	description => 'Gets or sets the floor.',
    	format => '',
    	read_only => '',
    		},
    'legend' => {
    	datatype => 'Legend',
    	base_name => 'Legend',
    	description => 'Gets or sets the legend.',
    	format => '',
    	read_only => '',
    		},
    'axes' => {
    	datatype => 'Axes',
    	base_name => 'Axes',
    	description => 'Gets or sets the axes.',
    	format => '',
    	read_only => '',
    		},

lib/AsposeSlidesCloud/Object/Chart.pm  view on Meta::CPAN

    'chart_type' => 'string',
    'show_data_labels_over_maximum' => 'boolean',
    'series' => 'ARRAY[Series]',
    'categories' => 'ARRAY[ChartCategory]',
    'data_source_for_categories' => 'DataSource',
    'has_title' => 'boolean',
    'title' => 'ChartTitle',
    'back_wall' => 'ChartWall',
    'side_wall' => 'ChartWall',
    'floor' => 'ChartWall',
    'legend' => 'Legend',
    'axes' => 'Axes',
    'plot_area' => 'PlotArea',
    'has_rounded_corners' => 'boolean',
    'series_groups' => 'ARRAY[ChartSeriesGroup]'
} );

__PACKAGE__->attribute_map( {
    'self_uri' => 'SelfUri',
    'alternate_links' => 'AlternateLinks',
    'name' => 'Name',

lib/AsposeSlidesCloud/Object/Chart.pm  view on Meta::CPAN

    'chart_type' => 'ChartType',
    'show_data_labels_over_maximum' => 'ShowDataLabelsOverMaximum',
    'series' => 'Series',
    'categories' => 'Categories',
    'data_source_for_categories' => 'DataSourceForCategories',
    'has_title' => 'HasTitle',
    'title' => 'Title',
    'back_wall' => 'BackWall',
    'side_wall' => 'SideWall',
    'floor' => 'Floor',
    'legend' => 'Legend',
    'axes' => 'Axes',
    'plot_area' => 'PlotArea',
    'has_rounded_corners' => 'HasRoundedCorners',
    'series_groups' => 'SeriesGroups'
} );

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


1;

lib/AsposeSlidesCloud/Object/ChartTitle.pm  view on Meta::CPAN

    'height' => {
    	datatype => 'double',
    	base_name => 'Height',
    	description => 'Height',
    	format => '',
    	read_only => '',
    		},
    'overlay' => {
    	datatype => 'boolean',
    	base_name => 'Overlay',
    	description => 'true if other elements are allowed to overlay the legend',
    	format => '',
    	read_only => '',
    		},
    'fill_format' => {
    	datatype => 'FillFormat',
    	base_name => 'FillFormat',
    	description => 'Get or sets the fill format.',
    	format => '',
    	read_only => '',
    		},

lib/AsposeSlidesCloud/Object/Legend.pm  view on Meta::CPAN

use DateTime;

use AsposeSlidesCloud::Object::EffectFormat;
use AsposeSlidesCloud::Object::FillFormat;
use AsposeSlidesCloud::Object::LineFormat;

use base ("Class::Accessor", "Class::Data::Inheritable");


#
#Represents a chart legend
#
# 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/Legend.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 => 'Represents a chart legend',
                                  class => 'Legend',
                                  required => [], # TODO
}                                 );

__PACKAGE__->method_documentation({
    'position' => {
    	datatype => 'string',
    	base_name => 'Position',
    	description => 'position',
    	format => '',

lib/AsposeSlidesCloud/Object/Legend.pm  view on Meta::CPAN

    'height' => {
    	datatype => 'double',
    	base_name => 'Height',
    	description => 'Height',
    	format => '',
    	read_only => '',
    		},
    'overlay' => {
    	datatype => 'boolean',
    	base_name => 'Overlay',
    	description => 'true if other elements are allowed to overlay the legend',
    	format => '',
    	read_only => '',
    		},
    'fill_format' => {
    	datatype => 'FillFormat',
    	base_name => 'FillFormat',
    	description => 'Get or sets the fill format.',
    	format => '',
    	read_only => '',
    		},

lib/AsposeSlidesCloud/Object/Legend.pm  view on Meta::CPAN

    	format => '',
    	read_only => '',
    		},
    'line_format' => {
    	datatype => 'LineFormat',
    	base_name => 'LineFormat',
    	description => 'Get or sets the line format.',
    	format => '',
    	read_only => '',
    		},
    'has_legend' => {
    	datatype => 'boolean',
    	base_name => 'HasLegend',
    	description => 'Get or sets value determines the visibility of legend',
    	format => '',
    	read_only => '',
    		},
});

__PACKAGE__->swagger_types( {
    'position' => 'string',
    'x' => 'double',
    'y' => 'double',
    'width' => 'double',
    'height' => 'double',
    'overlay' => 'boolean',
    'fill_format' => 'FillFormat',
    'effect_format' => 'EffectFormat',
    'line_format' => 'LineFormat',
    'has_legend' => 'boolean'
} );

__PACKAGE__->attribute_map( {
    'position' => 'Position',
    'x' => 'X',
    'y' => 'Y',
    'width' => 'Width',
    'height' => 'Height',
    'overlay' => 'Overlay',
    'fill_format' => 'FillFormat',
    'effect_format' => 'EffectFormat',
    'line_format' => 'LineFormat',
    'has_legend' => 'HasLegend'
} );

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


1;

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('Axis', $response);
    return $_response_object;
}

#
# set_chart_legend
#
# Set chart axis.
# 
# @param string $name Document name. (required)
# @param int $slide_index Slide index. (required)
# @param int $shape_index Shape index. (required)
# @param Legend $legend Chart legend 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',
    },
    'legend' => {
        data_type => 'Legend',
        description => 'Chart legend 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->{ 'set_chart_legend' } = { 
    	summary => 'Set chart axis.',
        params => $params,
        returns => 'Legend',
        };
}
# @return Legend
#
sub set_chart_legend {
    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 set_chart_legend");
    }

    # 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 set_chart_legend");
    }

    # 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 set_chart_legend");
    }

    # verify the required parameter 'legend' is set
    unless (exists $args{'legend'} && defined $args{'legend'} && $args{'legend'}) {
      croak("Missing the required parameter 'legend' when calling set_chart_legend");
    }

    # parse inputs
    my $_resource_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/legend';

    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;

lib/AsposeSlidesCloud/SlidesApi.pm  view on Meta::CPAN

    # path params
    if ( exists $args{'shape_index'}) {
        my $_base_variable = "{" . "shapeIndex" . "}";
        my $_base_value = $self->{api_client}->to_path_value($args{'shape_index'});
        $_resource_path =~ s/$_base_variable/$_base_value/g;
    }

    my $_body_data;
    my $files = [];
    # body params
    if ( exists $args{'legend'} && $args{'legend'}) {
        $_body_data = $args{'legend'};
    }

    # make the API Call
    my $response = $self->{api_client}->call_api($_resource_path, $_method,
                                           $query_params, $form_params,
                                           $header_params, $_body_data, $files);
    if (!$response) {
        return;
    }
    my $_response_object = $self->{api_client}->deserialize('Legend', $response);



( run in 1.129 second using v1.01-cache-2.11-cpan-49f99fa48dc )