require
5.6.0;
use
base (
"Class::Accessor"
,
"Class::Data::Inheritable"
);
__PACKAGE__->mk_classdata(
'attribute_map'
=> {});
__PACKAGE__->mk_classdata(
'method_documentation'
=> {});
__PACKAGE__->mk_classdata(
'class_documentation'
=> {});
sub
new {
my
(
$class
,
%args
) =
@_
;
my
$self
=
bless
{},
$class
;
foreach
my
$attribute
(
keys
%{
$class
->attribute_map}) {
my
$args_key
=
$class
->attribute_map->{
$attribute
};
$self
->
$attribute
(
$args
{
$args_key
} );
}
return
$self
;
}
{
my
$params
= {
'client'
=>{
data_type
=>
'ApiClient'
,
description
=>
'API Client.'
,
required
=>
'0'
,
}
};
__PACKAGE__->method_documentation->{
'post_data_deduplication'
} = {
summary
=>
'Data deduplication of spreadsheet files is mainly used to eliminate duplicate data in tables and ranges.'
,
params
=>
$params
,
returns
=>
'FileInfo'
,
};
}
sub
run_http_request {
my
(
$self
,
%args
) =
@_
;
my
$client
=
$args
{
'client'
};
my
$_resource_path
=
'/cells/datadeduplication'
;
my
$_method
=
'POST'
;
my
$query_params
= {};
my
$header_params
= {};
my
$form_params
= {};
my
$_header_accept
=
$client
->select_header_accept(
'application/json'
);
if
(
$_header_accept
) {
$header_params
->{
'Accept'
} =
$_header_accept
;
}
$header_params
->{
'Content-Type'
} =
$client
->select_header_content_type(
'application/json'
);
my
$_body_data
;
if
(
defined
$self
->data_deduplication_request) {
$_body_data
= JSON->new->convert_blessed->encode(
$self
->data_deduplication_request);
}
my
$auth_settings
= [
qw()
];
my
$response
=
$client
->call_api(
$_resource_path
,
$_method
,
$query_params
,
$form_params
,
$header_params
,
$_body_data
,
$auth_settings
);
return
$response
;
}
__PACKAGE__->method_documentation({
'data_deduplication_request'
=> {
datatype
=>
'DataDeduplicationRequest'
,
base_name
=>
'dataDeduplicationRequest'
,
description
=>
''
,
format
=>
''
,
read_only
=>
''
,
},
});
__PACKAGE__->attribute_map( {
'data_deduplication_request'
=>
'dataDeduplicationRequest'
} );
__PACKAGE__->mk_accessors(
keys
%{__PACKAGE__->attribute_map});
1;