Request/SearchBrokenLinksInRemoteRangeRequest.pm untested

filter: Statementstmt 0.0% 0 / 94 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 126 CC 9 SCAR 36.4
CC
9
Cov
0%
run_http_request
90.0
new
2.0
BEGIN
2.0
CRAP 38.0
1 =begin comment
2
3 Copyright (c) 2026 Aspose.Cells Cloud
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10
11 The above copyright notice and this permission notice shall be included in all
12 copies or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 SOFTWARE.
21
22 =end comment
23
24 =cut
25
26 package AsposeCellsCloud::Request::SearchBrokenLinksInRemoteRangeRequest;
27
28 require 5.6.0;
29 use strict;
30 use warnings;
31 use utf8;
32 use JSON ;
33 use Data::Dumper;
34 use Module::Runtime qw(use_module);
35 use Log::Any qw($log);
36 use Date::Parse;
37 use DateTime;
38 use File::Basename;
39
40 use base ("Class::Accessor", "Class::Data::Inheritable");
41
42 __PACKAGE__->mk_classdata('attribute_map' => {});
43 __PACKAGE__->mk_classdata('method_documentation' => {});
44 __PACKAGE__->mk_classdata('class_documentation' => {});
45
46
47 # new object
48 sub new {
49 my ($class, %args) = @_;
50
51 my $self = bless {}, $class;
52
53 foreach my $attribute (keys %{$class->attribute_map}) {
54 my $args_key = $class->attribute_map->{$attribute};
55 $self->$attribute( $args{ $args_key } );
56 }
57
58 return $self;
59 }
60
61
62 # Run Operation Request
63 # SearchBrokenLinksInRemoteRangeRequest.name : The name of the workbook file to be search. ,
64 # SearchBrokenLinksInRemoteRangeRequest.worksheet : Specify the worksheet for the lookup. ,
65 # SearchBrokenLinksInRemoteRangeRequest.cellArea : Specify the cell area for the lookup ,
66 # SearchBrokenLinksInRemoteRangeRequest.folder : The folder path where the workbook is stored. ,
67 # SearchBrokenLinksInRemoteRangeRequest.storageName : (Optional) The name of the storage if using custom cloud storage. Use default storage if omitted. ,
68 # SearchBrokenLinksInRemoteRangeRequest.region : The spreadsheet region setting. ,
69 # SearchBrokenLinksInRemoteRangeRequest.password : The password for opening spreadsheet file.
70
71 {
72 my $params = {
73 'client' =>{
74 data_type => 'ApiClient',
75 description => 'API Client.',
76 required => '0',
77 }
78 };
79 __PACKAGE__->method_documentation->{ 'search_broken_links_in_remote_range' } = {
80 summary => 'Search broken links in the range of remoted spreadsheet.',
81 params => $params,
82 returns => 'BrokenLinksResponse',
83 };
84 }
85
86 sub run_http_request {
87 my ($self, %args) = @_;
88
89 my $client = $args{'client'};
90
91 # parse inputs
92 my $_resource_path = 'v4.0/cells/{name}/worksheets/{worksheet}/ranges/{cellArea}/search/broken-links';
93
94 my $_method = 'PUT';
95 my $query_params = {};
96 my $header_params = {};
97 my $form_params = {};
98
99
100 my $_header_accept = $client->select_header_accept('application/json');
101 if ($_header_accept) {
102 $header_params->{'Accept'} = $_header_accept;
103 }
104 $header_params->{'Content-Type'} = $client->select_header_content_type('application/json');
105 if(defined $self->name){
106 my $_base_variable = "{" . "name" . "}";
107 my $_base_value = $client->to_path_value($self->name);
108 $_resource_path =~ s/$_base_variable/$_base_value/g;
109 }
110
111 if(defined $self->worksheet){
112 my $_base_variable = "{" . "worksheet" . "}";
113 my $_base_value = $client->to_path_value($self->worksheet);
114 $_resource_path =~ s/$_base_variable/$_base_value/g;
115 }
116
117 if(defined $self->cell_area){
118 my $_base_variable = "{" . "cellArea" . "}";
119 my $_base_value = $client->to_path_value($self->cell_area);
120 $_resource_path =~ s/$_base_variable/$_base_value/g;
121 }
122 if(defined $self->folder){
123 $query_params->{'folder'} = $client->to_query_value($self->folder);
124 }
125
126 if(defined $self->storage_name){
127 $query_params->{'storageName'} = $client->to_query_value($self->storage_name);
128 }
129
130 if(defined $self->region){
131 $query_params->{'region'} = $client->to_query_value($self->region);
132 }
133
134 if(defined $self->password){
135 $query_params->{'password'} = $client->to_query_value($self->password);
136 }
137 my $_body_data;
138
139
140
141 # authentication setting, if any
142 my $auth_settings = [qw()];
143
144 # make the API Call
145 my $response = $client->call_api($_resource_path, $_method, $query_params, $form_params, $header_params, $_body_data, $auth_settings);
146 return $response;
147 }
148
149
150 __PACKAGE__->method_documentation({
151 'name' => {
152 datatype => 'string',
153 base_name => 'name',
154 description => 'The name of the workbook file to be search.',
155 format => '',
156 read_only => '',
157 },
158 'worksheet' => {
159 datatype => 'string',
160 base_name => 'worksheet',
161 description => 'Specify the worksheet for the lookup.',
162 format => '',
163 read_only => '',
164 },
165 'cell_area' => {
166 datatype => 'string',
167 base_name => 'cellArea',
168 description => 'Specify the cell area for the lookup',
169 format => '',
170 read_only => '',
171 },
172 'folder' => {
173 datatype => 'string',
174 base_name => 'folder',
175 description => 'The folder path where the workbook is stored.',
176 format => '',
177 read_only => '',
178 },
179 'storage_name' => {
180 datatype => 'string',
181 base_name => 'storageName',
182 description => '(Optional) The name of the storage if using custom cloud storage. Use default storage if omitted.',
183 format => '',
184 read_only => '',
185 },
186 'region' => {
187 datatype => 'string',
188 base_name => 'region',
189 description => 'The spreadsheet region setting.',
190 format => '',
191 read_only => '',
192 },
193 'password' => {
194 datatype => 'string',
195 base_name => 'password',
196 description => 'The password for opening spreadsheet file.',
197 format => '',
198 read_only => '',
199 },
200 });
201
202
203 __PACKAGE__->attribute_map( {
204 'name' => 'name',
205 'worksheet' => 'worksheet',
206 'cell_area' => 'cellArea',
207 'folder' => 'folder',
208 'storage_name' => 'storageName',
209 'region' => 'region',
210 'password' => 'password'
211 } );
212
213 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
214
215
216 1;