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->{
'move_folder'
} = {
summary
=>
''
,
params
=>
$params
,
returns
=>
''
,
};
}
sub
run_http_request {
my
(
$self
,
%args
) =
@_
;
my
$client
=
$args
{
'client'
};
my
$_resource_path
=
'/cells/storage/folder/move/{srcPath}'
;
my
$_method
=
'PUT'
;
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'
);
if
(
defined
$self
->src_path){
my
$_base_variable
=
"{"
.
"srcPath"
.
"}"
;
my
$_base_value
=
$client
->to_path_value(
$self
->src_path);
$_resource_path
=~ s/
$_base_variable
/
$_base_value
/g;
}
if
(
defined
$self
->dest_path){
$query_params
->{
'destPath'
} =
$client
->to_query_value(
$self
->dest_path);
}
if
(
defined
$self
->src_storage_name){
$query_params
->{
'srcStorageName'
} =
$client
->to_query_value(
$self
->src_storage_name);
}
if
(
defined
$self
->dest_storage_name){
$query_params
->{
'destStorageName'
} =
$client
->to_query_value(
$self
->dest_storage_name);
}
my
$_body_data
;
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({
'src_path'
=> {
datatype
=>
'string'
,
base_name
=>
'srcPath'
,
description
=>
''
,
format
=>
''
,
read_only
=>
''
,
},
'dest_path'
=> {
datatype
=>
'string'
,
base_name
=>
'destPath'
,
description
=>
''
,
format
=>
''
,
read_only
=>
''
,
},
'src_storage_name'
=> {
datatype
=>
'string'
,
base_name
=>
'srcStorageName'
,
description
=>
''
,
format
=>
''
,
read_only
=>
''
,
},
'dest_storage_name'
=> {
datatype
=>
'string'
,
base_name
=>
'destStorageName'
,
description
=>
''
,
format
=>
''
,
read_only
=>
''
,
},
});
__PACKAGE__->attribute_map( {
'src_path'
=>
'srcPath'
,
'dest_path'
=>
'destPath'
,
'src_storage_name'
=>
'srcStorageName'
,
'dest_storage_name'
=>
'destStorageName'
} );
__PACKAGE__->mk_accessors(
keys
%{__PACKAGE__->attribute_map});
1;