| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package AsposeTasksCloud::TasksApi; | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | require 5.6.0; | 
| 4 | 1 |  |  | 1 |  | 98167 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 24 |  | 
| 5 | 1 |  |  | 1 |  | 3 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 20 |  | 
| 6 | 1 |  |  | 1 |  | 3 | use utf8; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 4 |  | 
| 7 | 1 |  |  | 1 |  | 13 | use Exporter; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 29 |  | 
| 8 | 1 |  |  | 1 |  | 3 | use Carp qw( croak ); | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 34 |  | 
| 9 | 1 |  |  | 1 |  | 3 | use Log::Any qw($log); | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 4 |  | 
| 10 | 1 |  |  | 1 |  | 180 | use File::Slurp; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 53 |  | 
| 11 |  |  |  |  |  |  |  | 
| 12 | 1 |  |  | 1 |  | 332 | use AsposeTasksCloud::ApiClient; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 22 |  | 
| 13 | 1 |  |  | 1 |  | 4 | use AsposeTasksCloud::Configuration; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 19768 |  | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | my $VERSION = '1.00'; | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | sub new { | 
| 18 | 0 |  |  | 0 | 0 |  | my $class   = shift; | 
| 19 | 0 | 0 |  |  |  |  | my $default_api_client = $AsposeTasksCloud::Configuration::api_client ? $AsposeTasksCloud::Configuration::api_client  : | 
| 20 |  |  |  |  |  |  | AsposeTasksCloud::ApiClient->new; | 
| 21 | 0 |  |  |  |  |  | my (%self) = ( | 
| 22 |  |  |  |  |  |  | 'api_client' => $default_api_client, | 
| 23 |  |  |  |  |  |  | @_ | 
| 24 |  |  |  |  |  |  | ); | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | #my $self = { | 
| 27 |  |  |  |  |  |  | #    #api_client => $options->{api_client} | 
| 28 |  |  |  |  |  |  | #    api_client => $default_api_client | 
| 29 |  |  |  |  |  |  | #}; | 
| 30 |  |  |  |  |  |  |  | 
| 31 | 0 |  |  |  |  |  | bless \%self, $class; | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | # | 
| 36 |  |  |  |  |  |  | # GetTaskDocument | 
| 37 |  |  |  |  |  |  | # | 
| 38 |  |  |  |  |  |  | # Represents a project document. | 
| 39 |  |  |  |  |  |  | # | 
| 40 |  |  |  |  |  |  | # @param String $name  (required) | 
| 41 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 42 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 43 |  |  |  |  |  |  | # @return DocumentResponse | 
| 44 |  |  |  |  |  |  | # | 
| 45 |  |  |  |  |  |  | sub GetTaskDocument { | 
| 46 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 50 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 51 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetTaskDocument"); | 
| 52 |  |  |  |  |  |  | } | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | # parse inputs | 
| 56 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 57 |  |  |  |  |  |  |  | 
| 58 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 59 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 60 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 61 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 62 |  |  |  |  |  |  |  | 
| 63 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 64 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 65 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 66 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 69 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 70 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 71 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 72 |  |  |  |  |  |  | } | 
| 73 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | # query params | 
| 76 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 77 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 78 |  |  |  |  |  |  | }else{ | 
| 79 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 80 |  |  |  |  |  |  | }# query params | 
| 81 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 82 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 83 |  |  |  |  |  |  | }else{ | 
| 84 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 85 |  |  |  |  |  |  | }# query params | 
| 86 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 87 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 88 |  |  |  |  |  |  | }else{ | 
| 89 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 90 |  |  |  |  |  |  | } | 
| 91 |  |  |  |  |  |  |  | 
| 92 |  |  |  |  |  |  |  | 
| 93 | 0 |  |  |  |  |  | my $_body_data; | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | # authentication setting, if any | 
| 99 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | # make the API Call | 
| 102 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 103 |  |  |  |  |  |  | $query_params, $form_params, | 
| 104 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 105 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 106 | 0 |  |  |  |  |  | return; | 
| 107 |  |  |  |  |  |  | } | 
| 108 |  |  |  |  |  |  |  | 
| 109 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 110 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 111 |  |  |  |  |  |  | } | 
| 112 |  |  |  |  |  |  |  | 
| 113 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); | 
| 114 | 0 |  |  |  |  |  | return $_response_object; | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | } | 
| 117 |  |  |  |  |  |  | # | 
| 118 |  |  |  |  |  |  | # GetTaskDocumentWithFormat | 
| 119 |  |  |  |  |  |  | # | 
| 120 |  |  |  |  |  |  | # Represents a project document with format | 
| 121 |  |  |  |  |  |  | # | 
| 122 |  |  |  |  |  |  | # @param String $name  (required) | 
| 123 |  |  |  |  |  |  | # @param String $format  (required) | 
| 124 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 125 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 126 |  |  |  |  |  |  | # @return ResponseMessage | 
| 127 |  |  |  |  |  |  | # | 
| 128 |  |  |  |  |  |  | sub GetTaskDocumentWithFormat { | 
| 129 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  |  | 
| 132 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 133 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 134 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetTaskDocumentWithFormat"); | 
| 135 |  |  |  |  |  |  | } | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | # verify the required parameter 'format' is set | 
| 138 | 0 | 0 |  |  |  |  | unless (exists $args{'format'}) { | 
| 139 | 0 |  |  |  |  |  | croak("Missing the required parameter 'format' when calling GetTaskDocumentWithFormat"); | 
| 140 |  |  |  |  |  |  | } | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  |  | 
| 143 |  |  |  |  |  |  | # parse inputs | 
| 144 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/?appSid={appSid}&toFormat={toFormat}&storage={storage}&folder={folder}'; | 
| 145 |  |  |  |  |  |  |  | 
| 146 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 147 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 148 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 149 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 150 |  |  |  |  |  |  |  | 
| 151 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 152 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 153 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 154 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 157 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | 
| 158 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 159 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 160 |  |  |  |  |  |  | } | 
| 161 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | # query params | 
| 164 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 165 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 166 |  |  |  |  |  |  | }else{ | 
| 167 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 168 |  |  |  |  |  |  | }# query params | 
| 169 | 0 | 0 |  |  |  |  | if ( exists $args{'format'}) { | 
| 170 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | 
| 171 |  |  |  |  |  |  | }else{ | 
| 172 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]format.*?(?=&|\?|$)//g; | 
| 173 |  |  |  |  |  |  | }# query params | 
| 174 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 175 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 176 |  |  |  |  |  |  | }else{ | 
| 177 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 178 |  |  |  |  |  |  | }# query params | 
| 179 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 180 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 181 |  |  |  |  |  |  | }else{ | 
| 182 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 183 |  |  |  |  |  |  | } | 
| 184 |  |  |  |  |  |  |  | 
| 185 |  |  |  |  |  |  |  | 
| 186 | 0 |  |  |  |  |  | my $_body_data; | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  |  | 
| 190 |  |  |  |  |  |  |  | 
| 191 |  |  |  |  |  |  | # authentication setting, if any | 
| 192 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 193 |  |  |  |  |  |  |  | 
| 194 |  |  |  |  |  |  | # make the API Call | 
| 195 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 196 |  |  |  |  |  |  | $query_params, $form_params, | 
| 197 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 198 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 199 | 0 |  |  |  |  |  | return; | 
| 200 |  |  |  |  |  |  | } | 
| 201 |  |  |  |  |  |  |  | 
| 202 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 203 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 204 |  |  |  |  |  |  | } | 
| 205 |  |  |  |  |  |  |  | 
| 206 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | 
| 207 | 0 |  |  |  |  |  | return $_response_object; | 
| 208 |  |  |  |  |  |  |  | 
| 209 |  |  |  |  |  |  | } | 
| 210 |  |  |  |  |  |  | # | 
| 211 |  |  |  |  |  |  | # GetProjectAssignments | 
| 212 |  |  |  |  |  |  | # | 
| 213 |  |  |  |  |  |  | # Read project assignment items. | 
| 214 |  |  |  |  |  |  | # | 
| 215 |  |  |  |  |  |  | # @param String $name  (required) | 
| 216 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 217 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 218 |  |  |  |  |  |  | # @return AssignmentItemsResponse | 
| 219 |  |  |  |  |  |  | # | 
| 220 |  |  |  |  |  |  | sub GetProjectAssignments { | 
| 221 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 222 |  |  |  |  |  |  |  | 
| 223 |  |  |  |  |  |  |  | 
| 224 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 225 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 226 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectAssignments"); | 
| 227 |  |  |  |  |  |  | } | 
| 228 |  |  |  |  |  |  |  | 
| 229 |  |  |  |  |  |  |  | 
| 230 |  |  |  |  |  |  | # parse inputs | 
| 231 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/assignments/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 232 |  |  |  |  |  |  |  | 
| 233 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 234 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 235 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 236 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 237 |  |  |  |  |  |  |  | 
| 238 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 239 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 240 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 241 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 242 |  |  |  |  |  |  |  | 
| 243 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 244 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 245 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 246 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 247 |  |  |  |  |  |  | } | 
| 248 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 249 |  |  |  |  |  |  |  | 
| 250 |  |  |  |  |  |  | # query params | 
| 251 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 252 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 253 |  |  |  |  |  |  | }else{ | 
| 254 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 255 |  |  |  |  |  |  | }# query params | 
| 256 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 257 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 258 |  |  |  |  |  |  | }else{ | 
| 259 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 260 |  |  |  |  |  |  | }# query params | 
| 261 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 262 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 263 |  |  |  |  |  |  | }else{ | 
| 264 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 265 |  |  |  |  |  |  | } | 
| 266 |  |  |  |  |  |  |  | 
| 267 |  |  |  |  |  |  |  | 
| 268 | 0 |  |  |  |  |  | my $_body_data; | 
| 269 |  |  |  |  |  |  |  | 
| 270 |  |  |  |  |  |  |  | 
| 271 |  |  |  |  |  |  |  | 
| 272 |  |  |  |  |  |  |  | 
| 273 |  |  |  |  |  |  | # authentication setting, if any | 
| 274 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 275 |  |  |  |  |  |  |  | 
| 276 |  |  |  |  |  |  | # make the API Call | 
| 277 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 278 |  |  |  |  |  |  | $query_params, $form_params, | 
| 279 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 280 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 281 | 0 |  |  |  |  |  | return; | 
| 282 |  |  |  |  |  |  | } | 
| 283 |  |  |  |  |  |  |  | 
| 284 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 285 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 286 |  |  |  |  |  |  | } | 
| 287 |  |  |  |  |  |  |  | 
| 288 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentItemsResponse', $response->header('content-type')); | 
| 289 | 0 |  |  |  |  |  | return $_response_object; | 
| 290 |  |  |  |  |  |  |  | 
| 291 |  |  |  |  |  |  | } | 
| 292 |  |  |  |  |  |  | # | 
| 293 |  |  |  |  |  |  | # PostProjectAssignment | 
| 294 |  |  |  |  |  |  | # | 
| 295 |  |  |  |  |  |  | # Adds a new assignment to a project and returns assignment item in a response. | 
| 296 |  |  |  |  |  |  | # | 
| 297 |  |  |  |  |  |  | # @param String $name  (required) | 
| 298 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 299 |  |  |  |  |  |  | # @param String $resourceUid  (required) | 
| 300 |  |  |  |  |  |  | # @param String $units  (optional) | 
| 301 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 302 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 303 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 304 |  |  |  |  |  |  | # @return AssignmentItemResponse | 
| 305 |  |  |  |  |  |  | # | 
| 306 |  |  |  |  |  |  | sub PostProjectAssignment { | 
| 307 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 308 |  |  |  |  |  |  |  | 
| 309 |  |  |  |  |  |  |  | 
| 310 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 311 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 312 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostProjectAssignment"); | 
| 313 |  |  |  |  |  |  | } | 
| 314 |  |  |  |  |  |  |  | 
| 315 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 316 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 317 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling PostProjectAssignment"); | 
| 318 |  |  |  |  |  |  | } | 
| 319 |  |  |  |  |  |  |  | 
| 320 |  |  |  |  |  |  | # verify the required parameter 'resourceUid' is set | 
| 321 | 0 | 0 |  |  |  |  | unless (exists $args{'resourceUid'}) { | 
| 322 | 0 |  |  |  |  |  | croak("Missing the required parameter 'resourceUid' when calling PostProjectAssignment"); | 
| 323 |  |  |  |  |  |  | } | 
| 324 |  |  |  |  |  |  |  | 
| 325 |  |  |  |  |  |  |  | 
| 326 |  |  |  |  |  |  | # parse inputs | 
| 327 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/assignments/?appSid={appSid}&taskUid={taskUid}&resourceUid={resourceUid}&units={units}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 328 |  |  |  |  |  |  |  | 
| 329 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 330 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 331 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 332 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 333 |  |  |  |  |  |  |  | 
| 334 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 335 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 336 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 337 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 338 |  |  |  |  |  |  |  | 
| 339 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 340 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 341 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 342 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 343 |  |  |  |  |  |  | } | 
| 344 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 345 |  |  |  |  |  |  |  | 
| 346 |  |  |  |  |  |  | # query params | 
| 347 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 348 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 349 |  |  |  |  |  |  | }else{ | 
| 350 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 351 |  |  |  |  |  |  | }# query params | 
| 352 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 353 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 354 |  |  |  |  |  |  | }else{ | 
| 355 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 356 |  |  |  |  |  |  | }# query params | 
| 357 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceUid'}) { | 
| 358 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceUid}\E/$args{'resourceUid'}/g; | 
| 359 |  |  |  |  |  |  | }else{ | 
| 360 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceUid.*?(?=&|\?|$)//g; | 
| 361 |  |  |  |  |  |  | }# query params | 
| 362 | 0 | 0 |  |  |  |  | if ( exists $args{'units'}) { | 
| 363 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{units}\E/$args{'units'}/g; | 
| 364 |  |  |  |  |  |  | }else{ | 
| 365 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]units.*?(?=&|\?|$)//g; | 
| 366 |  |  |  |  |  |  | }# query params | 
| 367 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 368 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 369 |  |  |  |  |  |  | }else{ | 
| 370 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 371 |  |  |  |  |  |  | }# query params | 
| 372 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 373 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 374 |  |  |  |  |  |  | }else{ | 
| 375 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 376 |  |  |  |  |  |  | }# query params | 
| 377 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 378 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 379 |  |  |  |  |  |  | }else{ | 
| 380 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 381 |  |  |  |  |  |  | } | 
| 382 |  |  |  |  |  |  |  | 
| 383 |  |  |  |  |  |  |  | 
| 384 | 0 |  |  |  |  |  | my $_body_data; | 
| 385 |  |  |  |  |  |  |  | 
| 386 |  |  |  |  |  |  |  | 
| 387 |  |  |  |  |  |  |  | 
| 388 |  |  |  |  |  |  |  | 
| 389 |  |  |  |  |  |  | # authentication setting, if any | 
| 390 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 391 |  |  |  |  |  |  |  | 
| 392 |  |  |  |  |  |  | # make the API Call | 
| 393 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 394 |  |  |  |  |  |  | $query_params, $form_params, | 
| 395 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 396 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 397 | 0 |  |  |  |  |  | return; | 
| 398 |  |  |  |  |  |  | } | 
| 399 |  |  |  |  |  |  |  | 
| 400 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 401 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 402 |  |  |  |  |  |  | } | 
| 403 |  |  |  |  |  |  |  | 
| 404 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentItemResponse', $response->header('content-type')); | 
| 405 | 0 |  |  |  |  |  | return $_response_object; | 
| 406 |  |  |  |  |  |  |  | 
| 407 |  |  |  |  |  |  | } | 
| 408 |  |  |  |  |  |  | # | 
| 409 |  |  |  |  |  |  | # PutProjectAssignment | 
| 410 |  |  |  |  |  |  | # | 
| 411 |  |  |  |  |  |  | # Updates ResourcesAssignments with spectial Uid | 
| 412 |  |  |  |  |  |  | # | 
| 413 |  |  |  |  |  |  | # @param String $name  (required) | 
| 414 |  |  |  |  |  |  | # @param String $assignmentUid  (required) | 
| 415 |  |  |  |  |  |  | # @param String $mode  (optional) | 
| 416 |  |  |  |  |  |  | # @param Boolean $recalculate  (optional) | 
| 417 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 418 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 419 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 420 |  |  |  |  |  |  | # @param ResourceAssignment $body  (required) | 
| 421 |  |  |  |  |  |  | # @return AssignmentResponse | 
| 422 |  |  |  |  |  |  | # | 
| 423 |  |  |  |  |  |  | sub PutProjectAssignment { | 
| 424 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 425 |  |  |  |  |  |  |  | 
| 426 |  |  |  |  |  |  |  | 
| 427 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 428 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 429 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutProjectAssignment"); | 
| 430 |  |  |  |  |  |  | } | 
| 431 |  |  |  |  |  |  |  | 
| 432 |  |  |  |  |  |  | # verify the required parameter 'assignmentUid' is set | 
| 433 | 0 | 0 |  |  |  |  | unless (exists $args{'assignmentUid'}) { | 
| 434 | 0 |  |  |  |  |  | croak("Missing the required parameter 'assignmentUid' when calling PutProjectAssignment"); | 
| 435 |  |  |  |  |  |  | } | 
| 436 |  |  |  |  |  |  |  | 
| 437 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 438 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 439 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutProjectAssignment"); | 
| 440 |  |  |  |  |  |  | } | 
| 441 |  |  |  |  |  |  |  | 
| 442 |  |  |  |  |  |  |  | 
| 443 |  |  |  |  |  |  | # parse inputs | 
| 444 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/assignments/{assignmentUid}/?appSid={appSid}&mode={mode}&recalculate={recalculate}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 445 |  |  |  |  |  |  |  | 
| 446 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 447 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 448 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 449 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 450 |  |  |  |  |  |  |  | 
| 451 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 452 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 453 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 454 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 455 |  |  |  |  |  |  |  | 
| 456 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 457 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 458 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 459 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 460 |  |  |  |  |  |  | } | 
| 461 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 462 |  |  |  |  |  |  |  | 
| 463 |  |  |  |  |  |  | # query params | 
| 464 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 465 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 466 |  |  |  |  |  |  | }else{ | 
| 467 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 468 |  |  |  |  |  |  | }# query params | 
| 469 | 0 | 0 |  |  |  |  | if ( exists $args{'assignmentUid'}) { | 
| 470 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{assignmentUid}\E/$args{'assignmentUid'}/g; | 
| 471 |  |  |  |  |  |  | }else{ | 
| 472 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]assignmentUid.*?(?=&|\?|$)//g; | 
| 473 |  |  |  |  |  |  | }# query params | 
| 474 | 0 | 0 |  |  |  |  | if ( exists $args{'mode'}) { | 
| 475 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{mode}\E/$args{'mode'}/g; | 
| 476 |  |  |  |  |  |  | }else{ | 
| 477 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]mode.*?(?=&|\?|$)//g; | 
| 478 |  |  |  |  |  |  | }# query params | 
| 479 | 0 | 0 |  |  |  |  | if ( exists $args{'recalculate'}) { | 
| 480 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{recalculate}\E/$args{'recalculate'}/g; | 
| 481 |  |  |  |  |  |  | }else{ | 
| 482 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]recalculate.*?(?=&|\?|$)//g; | 
| 483 |  |  |  |  |  |  | }# query params | 
| 484 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 485 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 486 |  |  |  |  |  |  | }else{ | 
| 487 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 488 |  |  |  |  |  |  | }# query params | 
| 489 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 490 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 491 |  |  |  |  |  |  | }else{ | 
| 492 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 493 |  |  |  |  |  |  | }# query params | 
| 494 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 495 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 496 |  |  |  |  |  |  | }else{ | 
| 497 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 498 |  |  |  |  |  |  | } | 
| 499 |  |  |  |  |  |  |  | 
| 500 |  |  |  |  |  |  |  | 
| 501 | 0 |  |  |  |  |  | my $_body_data; | 
| 502 |  |  |  |  |  |  |  | 
| 503 |  |  |  |  |  |  |  | 
| 504 |  |  |  |  |  |  | # body params | 
| 505 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 506 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 507 |  |  |  |  |  |  | } | 
| 508 |  |  |  |  |  |  |  | 
| 509 |  |  |  |  |  |  | # authentication setting, if any | 
| 510 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 511 |  |  |  |  |  |  |  | 
| 512 |  |  |  |  |  |  | # make the API Call | 
| 513 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 514 |  |  |  |  |  |  | $query_params, $form_params, | 
| 515 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 516 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 517 | 0 |  |  |  |  |  | return; | 
| 518 |  |  |  |  |  |  | } | 
| 519 |  |  |  |  |  |  |  | 
| 520 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 521 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 522 |  |  |  |  |  |  | } | 
| 523 |  |  |  |  |  |  |  | 
| 524 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentResponse', $response->header('content-type')); | 
| 525 | 0 |  |  |  |  |  | return $_response_object; | 
| 526 |  |  |  |  |  |  |  | 
| 527 |  |  |  |  |  |  | } | 
| 528 |  |  |  |  |  |  | # | 
| 529 |  |  |  |  |  |  | # GetProjectAssignment | 
| 530 |  |  |  |  |  |  | # | 
| 531 |  |  |  |  |  |  | # Read project assignment. | 
| 532 |  |  |  |  |  |  | # | 
| 533 |  |  |  |  |  |  | # @param String $name  (required) | 
| 534 |  |  |  |  |  |  | # @param String $assignmentUid  (required) | 
| 535 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 536 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 537 |  |  |  |  |  |  | # @return AssignmentResponse | 
| 538 |  |  |  |  |  |  | # | 
| 539 |  |  |  |  |  |  | sub GetProjectAssignment { | 
| 540 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 541 |  |  |  |  |  |  |  | 
| 542 |  |  |  |  |  |  |  | 
| 543 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 544 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 545 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectAssignment"); | 
| 546 |  |  |  |  |  |  | } | 
| 547 |  |  |  |  |  |  |  | 
| 548 |  |  |  |  |  |  | # verify the required parameter 'assignmentUid' is set | 
| 549 | 0 | 0 |  |  |  |  | unless (exists $args{'assignmentUid'}) { | 
| 550 | 0 |  |  |  |  |  | croak("Missing the required parameter 'assignmentUid' when calling GetProjectAssignment"); | 
| 551 |  |  |  |  |  |  | } | 
| 552 |  |  |  |  |  |  |  | 
| 553 |  |  |  |  |  |  |  | 
| 554 |  |  |  |  |  |  | # parse inputs | 
| 555 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/assignments/{assignmentUid}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 556 |  |  |  |  |  |  |  | 
| 557 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 558 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 559 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 560 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 561 |  |  |  |  |  |  |  | 
| 562 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 563 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 564 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 565 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 566 |  |  |  |  |  |  |  | 
| 567 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 568 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 569 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 570 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 571 |  |  |  |  |  |  | } | 
| 572 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 573 |  |  |  |  |  |  |  | 
| 574 |  |  |  |  |  |  | # query params | 
| 575 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 576 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 577 |  |  |  |  |  |  | }else{ | 
| 578 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 579 |  |  |  |  |  |  | }# query params | 
| 580 | 0 | 0 |  |  |  |  | if ( exists $args{'assignmentUid'}) { | 
| 581 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{assignmentUid}\E/$args{'assignmentUid'}/g; | 
| 582 |  |  |  |  |  |  | }else{ | 
| 583 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]assignmentUid.*?(?=&|\?|$)//g; | 
| 584 |  |  |  |  |  |  | }# query params | 
| 585 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 586 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 587 |  |  |  |  |  |  | }else{ | 
| 588 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 589 |  |  |  |  |  |  | }# query params | 
| 590 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 591 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 592 |  |  |  |  |  |  | }else{ | 
| 593 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 594 |  |  |  |  |  |  | } | 
| 595 |  |  |  |  |  |  |  | 
| 596 |  |  |  |  |  |  |  | 
| 597 | 0 |  |  |  |  |  | my $_body_data; | 
| 598 |  |  |  |  |  |  |  | 
| 599 |  |  |  |  |  |  |  | 
| 600 |  |  |  |  |  |  |  | 
| 601 |  |  |  |  |  |  |  | 
| 602 |  |  |  |  |  |  | # authentication setting, if any | 
| 603 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 604 |  |  |  |  |  |  |  | 
| 605 |  |  |  |  |  |  | # make the API Call | 
| 606 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 607 |  |  |  |  |  |  | $query_params, $form_params, | 
| 608 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 609 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 610 | 0 |  |  |  |  |  | return; | 
| 611 |  |  |  |  |  |  | } | 
| 612 |  |  |  |  |  |  |  | 
| 613 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 614 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 615 |  |  |  |  |  |  | } | 
| 616 |  |  |  |  |  |  |  | 
| 617 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentResponse', $response->header('content-type')); | 
| 618 | 0 |  |  |  |  |  | return $_response_object; | 
| 619 |  |  |  |  |  |  |  | 
| 620 |  |  |  |  |  |  | } | 
| 621 |  |  |  |  |  |  | # | 
| 622 |  |  |  |  |  |  | # DeleteProjectAssignment | 
| 623 |  |  |  |  |  |  | # | 
| 624 |  |  |  |  |  |  | # Deletes a project assignment with all references to it. | 
| 625 |  |  |  |  |  |  | # | 
| 626 |  |  |  |  |  |  | # @param String $name  (required) | 
| 627 |  |  |  |  |  |  | # @param String $assignmentUid  (required) | 
| 628 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 629 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 630 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 631 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 632 |  |  |  |  |  |  | # | 
| 633 |  |  |  |  |  |  | sub DeleteProjectAssignment { | 
| 634 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 635 |  |  |  |  |  |  |  | 
| 636 |  |  |  |  |  |  |  | 
| 637 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 638 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 639 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteProjectAssignment"); | 
| 640 |  |  |  |  |  |  | } | 
| 641 |  |  |  |  |  |  |  | 
| 642 |  |  |  |  |  |  | # verify the required parameter 'assignmentUid' is set | 
| 643 | 0 | 0 |  |  |  |  | unless (exists $args{'assignmentUid'}) { | 
| 644 | 0 |  |  |  |  |  | croak("Missing the required parameter 'assignmentUid' when calling DeleteProjectAssignment"); | 
| 645 |  |  |  |  |  |  | } | 
| 646 |  |  |  |  |  |  |  | 
| 647 |  |  |  |  |  |  |  | 
| 648 |  |  |  |  |  |  | # parse inputs | 
| 649 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/assignments/{assignmentUid}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 650 |  |  |  |  |  |  |  | 
| 651 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 652 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 653 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 654 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 655 |  |  |  |  |  |  |  | 
| 656 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 657 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 658 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 659 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 660 |  |  |  |  |  |  |  | 
| 661 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 662 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 663 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 664 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 665 |  |  |  |  |  |  | } | 
| 666 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 667 |  |  |  |  |  |  |  | 
| 668 |  |  |  |  |  |  | # query params | 
| 669 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 670 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 671 |  |  |  |  |  |  | }else{ | 
| 672 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 673 |  |  |  |  |  |  | }# query params | 
| 674 | 0 | 0 |  |  |  |  | if ( exists $args{'assignmentUid'}) { | 
| 675 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{assignmentUid}\E/$args{'assignmentUid'}/g; | 
| 676 |  |  |  |  |  |  | }else{ | 
| 677 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]assignmentUid.*?(?=&|\?|$)//g; | 
| 678 |  |  |  |  |  |  | }# query params | 
| 679 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 680 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 681 |  |  |  |  |  |  | }else{ | 
| 682 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 683 |  |  |  |  |  |  | }# query params | 
| 684 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 685 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 686 |  |  |  |  |  |  | }else{ | 
| 687 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 688 |  |  |  |  |  |  | }# query params | 
| 689 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 690 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 691 |  |  |  |  |  |  | }else{ | 
| 692 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 693 |  |  |  |  |  |  | } | 
| 694 |  |  |  |  |  |  |  | 
| 695 |  |  |  |  |  |  |  | 
| 696 | 0 |  |  |  |  |  | my $_body_data; | 
| 697 |  |  |  |  |  |  |  | 
| 698 |  |  |  |  |  |  |  | 
| 699 |  |  |  |  |  |  |  | 
| 700 |  |  |  |  |  |  |  | 
| 701 |  |  |  |  |  |  | # authentication setting, if any | 
| 702 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 703 |  |  |  |  |  |  |  | 
| 704 |  |  |  |  |  |  | # make the API Call | 
| 705 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 706 |  |  |  |  |  |  | $query_params, $form_params, | 
| 707 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 708 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 709 | 0 |  |  |  |  |  | return; | 
| 710 |  |  |  |  |  |  | } | 
| 711 |  |  |  |  |  |  |  | 
| 712 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 713 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 714 |  |  |  |  |  |  | } | 
| 715 |  |  |  |  |  |  |  | 
| 716 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 717 | 0 |  |  |  |  |  | return $_response_object; | 
| 718 |  |  |  |  |  |  |  | 
| 719 |  |  |  |  |  |  | } | 
| 720 |  |  |  |  |  |  | # | 
| 721 |  |  |  |  |  |  | # PostProjectCalendar | 
| 722 |  |  |  |  |  |  | # | 
| 723 |  |  |  |  |  |  | # Adds a new calendar to project file. | 
| 724 |  |  |  |  |  |  | # | 
| 725 |  |  |  |  |  |  | # @param String $name  (required) | 
| 726 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 727 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 728 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 729 |  |  |  |  |  |  | # @param Calendar $body  (required) | 
| 730 |  |  |  |  |  |  | # @return CalendarItemResponse | 
| 731 |  |  |  |  |  |  | # | 
| 732 |  |  |  |  |  |  | sub PostProjectCalendar { | 
| 733 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 734 |  |  |  |  |  |  |  | 
| 735 |  |  |  |  |  |  |  | 
| 736 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 737 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 738 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostProjectCalendar"); | 
| 739 |  |  |  |  |  |  | } | 
| 740 |  |  |  |  |  |  |  | 
| 741 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 742 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 743 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PostProjectCalendar"); | 
| 744 |  |  |  |  |  |  | } | 
| 745 |  |  |  |  |  |  |  | 
| 746 |  |  |  |  |  |  |  | 
| 747 |  |  |  |  |  |  | # parse inputs | 
| 748 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 749 |  |  |  |  |  |  |  | 
| 750 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 751 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 752 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 753 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 754 |  |  |  |  |  |  |  | 
| 755 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 756 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 757 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 758 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 759 |  |  |  |  |  |  |  | 
| 760 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 761 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 762 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 763 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 764 |  |  |  |  |  |  | } | 
| 765 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 766 |  |  |  |  |  |  |  | 
| 767 |  |  |  |  |  |  | # query params | 
| 768 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 769 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 770 |  |  |  |  |  |  | }else{ | 
| 771 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 772 |  |  |  |  |  |  | }# query params | 
| 773 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 774 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 775 |  |  |  |  |  |  | }else{ | 
| 776 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 777 |  |  |  |  |  |  | }# query params | 
| 778 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 779 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 780 |  |  |  |  |  |  | }else{ | 
| 781 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 782 |  |  |  |  |  |  | }# query params | 
| 783 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 784 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 785 |  |  |  |  |  |  | }else{ | 
| 786 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 787 |  |  |  |  |  |  | } | 
| 788 |  |  |  |  |  |  |  | 
| 789 |  |  |  |  |  |  |  | 
| 790 | 0 |  |  |  |  |  | my $_body_data; | 
| 791 |  |  |  |  |  |  |  | 
| 792 |  |  |  |  |  |  |  | 
| 793 |  |  |  |  |  |  | # body params | 
| 794 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 795 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 796 |  |  |  |  |  |  | } | 
| 797 |  |  |  |  |  |  |  | 
| 798 |  |  |  |  |  |  | # authentication setting, if any | 
| 799 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 800 |  |  |  |  |  |  |  | 
| 801 |  |  |  |  |  |  | # make the API Call | 
| 802 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 803 |  |  |  |  |  |  | $query_params, $form_params, | 
| 804 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 805 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 806 | 0 |  |  |  |  |  | return; | 
| 807 |  |  |  |  |  |  | } | 
| 808 |  |  |  |  |  |  |  | 
| 809 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 810 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 811 |  |  |  |  |  |  | } | 
| 812 |  |  |  |  |  |  |  | 
| 813 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CalendarItemResponse', $response->header('content-type')); | 
| 814 | 0 |  |  |  |  |  | return $_response_object; | 
| 815 |  |  |  |  |  |  |  | 
| 816 |  |  |  |  |  |  | } | 
| 817 |  |  |  |  |  |  | # | 
| 818 |  |  |  |  |  |  | # GetProjectCalendars | 
| 819 |  |  |  |  |  |  | # | 
| 820 |  |  |  |  |  |  | # Read project calendar items. | 
| 821 |  |  |  |  |  |  | # | 
| 822 |  |  |  |  |  |  | # @param String $name  (required) | 
| 823 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 824 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 825 |  |  |  |  |  |  | # @return CalendarItemsResponse | 
| 826 |  |  |  |  |  |  | # | 
| 827 |  |  |  |  |  |  | sub GetProjectCalendars { | 
| 828 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 829 |  |  |  |  |  |  |  | 
| 830 |  |  |  |  |  |  |  | 
| 831 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 832 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 833 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectCalendars"); | 
| 834 |  |  |  |  |  |  | } | 
| 835 |  |  |  |  |  |  |  | 
| 836 |  |  |  |  |  |  |  | 
| 837 |  |  |  |  |  |  | # parse inputs | 
| 838 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 839 |  |  |  |  |  |  |  | 
| 840 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 841 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 842 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 843 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 844 |  |  |  |  |  |  |  | 
| 845 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 846 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 847 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 848 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 849 |  |  |  |  |  |  |  | 
| 850 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 851 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 852 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 853 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 854 |  |  |  |  |  |  | } | 
| 855 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 856 |  |  |  |  |  |  |  | 
| 857 |  |  |  |  |  |  | # query params | 
| 858 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 859 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 860 |  |  |  |  |  |  | }else{ | 
| 861 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 862 |  |  |  |  |  |  | }# query params | 
| 863 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 864 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 865 |  |  |  |  |  |  | }else{ | 
| 866 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 867 |  |  |  |  |  |  | }# query params | 
| 868 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 869 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 870 |  |  |  |  |  |  | }else{ | 
| 871 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 872 |  |  |  |  |  |  | } | 
| 873 |  |  |  |  |  |  |  | 
| 874 |  |  |  |  |  |  |  | 
| 875 | 0 |  |  |  |  |  | my $_body_data; | 
| 876 |  |  |  |  |  |  |  | 
| 877 |  |  |  |  |  |  |  | 
| 878 |  |  |  |  |  |  |  | 
| 879 |  |  |  |  |  |  |  | 
| 880 |  |  |  |  |  |  | # authentication setting, if any | 
| 881 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 882 |  |  |  |  |  |  |  | 
| 883 |  |  |  |  |  |  | # make the API Call | 
| 884 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 885 |  |  |  |  |  |  | $query_params, $form_params, | 
| 886 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 887 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 888 | 0 |  |  |  |  |  | return; | 
| 889 |  |  |  |  |  |  | } | 
| 890 |  |  |  |  |  |  |  | 
| 891 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 892 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 893 |  |  |  |  |  |  | } | 
| 894 |  |  |  |  |  |  |  | 
| 895 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CalendarItemsResponse', $response->header('content-type')); | 
| 896 | 0 |  |  |  |  |  | return $_response_object; | 
| 897 |  |  |  |  |  |  |  | 
| 898 |  |  |  |  |  |  | } | 
| 899 |  |  |  |  |  |  | # | 
| 900 |  |  |  |  |  |  | # GetProjectCalendar | 
| 901 |  |  |  |  |  |  | # | 
| 902 |  |  |  |  |  |  | # Represents a project calendar. | 
| 903 |  |  |  |  |  |  | # | 
| 904 |  |  |  |  |  |  | # @param String $name  (required) | 
| 905 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 906 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 907 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 908 |  |  |  |  |  |  | # @return CalendarResponse | 
| 909 |  |  |  |  |  |  | # | 
| 910 |  |  |  |  |  |  | sub GetProjectCalendar { | 
| 911 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 912 |  |  |  |  |  |  |  | 
| 913 |  |  |  |  |  |  |  | 
| 914 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 915 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 916 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectCalendar"); | 
| 917 |  |  |  |  |  |  | } | 
| 918 |  |  |  |  |  |  |  | 
| 919 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 920 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 921 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling GetProjectCalendar"); | 
| 922 |  |  |  |  |  |  | } | 
| 923 |  |  |  |  |  |  |  | 
| 924 |  |  |  |  |  |  |  | 
| 925 |  |  |  |  |  |  | # parse inputs | 
| 926 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 927 |  |  |  |  |  |  |  | 
| 928 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 929 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 930 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 931 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 932 |  |  |  |  |  |  |  | 
| 933 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 934 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 935 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 936 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 937 |  |  |  |  |  |  |  | 
| 938 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 939 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 940 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 941 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 942 |  |  |  |  |  |  | } | 
| 943 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 944 |  |  |  |  |  |  |  | 
| 945 |  |  |  |  |  |  | # query params | 
| 946 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 947 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 948 |  |  |  |  |  |  | }else{ | 
| 949 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 950 |  |  |  |  |  |  | }# query params | 
| 951 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 952 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 953 |  |  |  |  |  |  | }else{ | 
| 954 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 955 |  |  |  |  |  |  | }# query params | 
| 956 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 957 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 958 |  |  |  |  |  |  | }else{ | 
| 959 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 960 |  |  |  |  |  |  | }# query params | 
| 961 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 962 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 963 |  |  |  |  |  |  | }else{ | 
| 964 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 965 |  |  |  |  |  |  | } | 
| 966 |  |  |  |  |  |  |  | 
| 967 |  |  |  |  |  |  |  | 
| 968 | 0 |  |  |  |  |  | my $_body_data; | 
| 969 |  |  |  |  |  |  |  | 
| 970 |  |  |  |  |  |  |  | 
| 971 |  |  |  |  |  |  |  | 
| 972 |  |  |  |  |  |  |  | 
| 973 |  |  |  |  |  |  | # authentication setting, if any | 
| 974 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 975 |  |  |  |  |  |  |  | 
| 976 |  |  |  |  |  |  | # make the API Call | 
| 977 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 978 |  |  |  |  |  |  | $query_params, $form_params, | 
| 979 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 980 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 981 | 0 |  |  |  |  |  | return; | 
| 982 |  |  |  |  |  |  | } | 
| 983 |  |  |  |  |  |  |  | 
| 984 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 985 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 986 |  |  |  |  |  |  | } | 
| 987 |  |  |  |  |  |  |  | 
| 988 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CalendarResponse', $response->header('content-type')); | 
| 989 | 0 |  |  |  |  |  | return $_response_object; | 
| 990 |  |  |  |  |  |  |  | 
| 991 |  |  |  |  |  |  | } | 
| 992 |  |  |  |  |  |  | # | 
| 993 |  |  |  |  |  |  | # DeleteProjectCalendar | 
| 994 |  |  |  |  |  |  | # | 
| 995 |  |  |  |  |  |  | # Deletes a project calendar | 
| 996 |  |  |  |  |  |  | # | 
| 997 |  |  |  |  |  |  | # @param String $name  (required) | 
| 998 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 999 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1000 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1001 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 1002 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 1003 |  |  |  |  |  |  | # | 
| 1004 |  |  |  |  |  |  | sub DeleteProjectCalendar { | 
| 1005 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1006 |  |  |  |  |  |  |  | 
| 1007 |  |  |  |  |  |  |  | 
| 1008 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1009 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1010 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteProjectCalendar"); | 
| 1011 |  |  |  |  |  |  | } | 
| 1012 |  |  |  |  |  |  |  | 
| 1013 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 1014 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 1015 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling DeleteProjectCalendar"); | 
| 1016 |  |  |  |  |  |  | } | 
| 1017 |  |  |  |  |  |  |  | 
| 1018 |  |  |  |  |  |  |  | 
| 1019 |  |  |  |  |  |  | # parse inputs | 
| 1020 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 1021 |  |  |  |  |  |  |  | 
| 1022 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1023 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1024 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1025 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1026 |  |  |  |  |  |  |  | 
| 1027 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 1028 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1029 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1030 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1031 |  |  |  |  |  |  |  | 
| 1032 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1033 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1034 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1035 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1036 |  |  |  |  |  |  | } | 
| 1037 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1038 |  |  |  |  |  |  |  | 
| 1039 |  |  |  |  |  |  | # query params | 
| 1040 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1041 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1042 |  |  |  |  |  |  | }else{ | 
| 1043 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1044 |  |  |  |  |  |  | }# query params | 
| 1045 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 1046 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 1047 |  |  |  |  |  |  | }else{ | 
| 1048 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 1049 |  |  |  |  |  |  | }# query params | 
| 1050 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1051 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1052 |  |  |  |  |  |  | }else{ | 
| 1053 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1054 |  |  |  |  |  |  | }# query params | 
| 1055 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1056 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1057 |  |  |  |  |  |  | }else{ | 
| 1058 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1059 |  |  |  |  |  |  | }# query params | 
| 1060 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 1061 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 1062 |  |  |  |  |  |  | }else{ | 
| 1063 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 1064 |  |  |  |  |  |  | } | 
| 1065 |  |  |  |  |  |  |  | 
| 1066 |  |  |  |  |  |  |  | 
| 1067 | 0 |  |  |  |  |  | my $_body_data; | 
| 1068 |  |  |  |  |  |  |  | 
| 1069 |  |  |  |  |  |  |  | 
| 1070 |  |  |  |  |  |  |  | 
| 1071 |  |  |  |  |  |  |  | 
| 1072 |  |  |  |  |  |  | # authentication setting, if any | 
| 1073 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1074 |  |  |  |  |  |  |  | 
| 1075 |  |  |  |  |  |  | # make the API Call | 
| 1076 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1077 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1078 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1079 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1080 | 0 |  |  |  |  |  | return; | 
| 1081 |  |  |  |  |  |  | } | 
| 1082 |  |  |  |  |  |  |  | 
| 1083 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1084 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1085 |  |  |  |  |  |  | } | 
| 1086 |  |  |  |  |  |  |  | 
| 1087 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 1088 | 0 |  |  |  |  |  | return $_response_object; | 
| 1089 |  |  |  |  |  |  |  | 
| 1090 |  |  |  |  |  |  | } | 
| 1091 |  |  |  |  |  |  | # | 
| 1092 |  |  |  |  |  |  | # PostCalendarExceptions | 
| 1093 |  |  |  |  |  |  | # | 
| 1094 |  |  |  |  |  |  | # Adds a new calendar exception to a calendar. | 
| 1095 |  |  |  |  |  |  | # | 
| 1096 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1097 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 1098 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 1099 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1100 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1101 |  |  |  |  |  |  | # @param CalendarException $body  (required) | 
| 1102 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 1103 |  |  |  |  |  |  | # | 
| 1104 |  |  |  |  |  |  | sub PostCalendarExceptions { | 
| 1105 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1106 |  |  |  |  |  |  |  | 
| 1107 |  |  |  |  |  |  |  | 
| 1108 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1109 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1110 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostCalendarExceptions"); | 
| 1111 |  |  |  |  |  |  | } | 
| 1112 |  |  |  |  |  |  |  | 
| 1113 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 1114 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 1115 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling PostCalendarExceptions"); | 
| 1116 |  |  |  |  |  |  | } | 
| 1117 |  |  |  |  |  |  |  | 
| 1118 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 1119 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 1120 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PostCalendarExceptions"); | 
| 1121 |  |  |  |  |  |  | } | 
| 1122 |  |  |  |  |  |  |  | 
| 1123 |  |  |  |  |  |  |  | 
| 1124 |  |  |  |  |  |  | # parse inputs | 
| 1125 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/calendarExceptions/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 1126 |  |  |  |  |  |  |  | 
| 1127 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1128 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1129 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1130 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1131 |  |  |  |  |  |  |  | 
| 1132 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 1133 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1134 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1135 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1136 |  |  |  |  |  |  |  | 
| 1137 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1138 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1139 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1140 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1141 |  |  |  |  |  |  | } | 
| 1142 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1143 |  |  |  |  |  |  |  | 
| 1144 |  |  |  |  |  |  | # query params | 
| 1145 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1146 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1147 |  |  |  |  |  |  | }else{ | 
| 1148 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1149 |  |  |  |  |  |  | }# query params | 
| 1150 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 1151 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 1152 |  |  |  |  |  |  | }else{ | 
| 1153 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 1154 |  |  |  |  |  |  | }# query params | 
| 1155 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 1156 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 1157 |  |  |  |  |  |  | }else{ | 
| 1158 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 1159 |  |  |  |  |  |  | }# query params | 
| 1160 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1161 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1162 |  |  |  |  |  |  | }else{ | 
| 1163 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1164 |  |  |  |  |  |  | }# query params | 
| 1165 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1166 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1167 |  |  |  |  |  |  | }else{ | 
| 1168 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1169 |  |  |  |  |  |  | } | 
| 1170 |  |  |  |  |  |  |  | 
| 1171 |  |  |  |  |  |  |  | 
| 1172 | 0 |  |  |  |  |  | my $_body_data; | 
| 1173 |  |  |  |  |  |  |  | 
| 1174 |  |  |  |  |  |  |  | 
| 1175 |  |  |  |  |  |  | # body params | 
| 1176 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 1177 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 1178 |  |  |  |  |  |  | } | 
| 1179 |  |  |  |  |  |  |  | 
| 1180 |  |  |  |  |  |  | # authentication setting, if any | 
| 1181 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1182 |  |  |  |  |  |  |  | 
| 1183 |  |  |  |  |  |  | # make the API Call | 
| 1184 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1185 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1186 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1187 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1188 | 0 |  |  |  |  |  | return; | 
| 1189 |  |  |  |  |  |  | } | 
| 1190 |  |  |  |  |  |  |  | 
| 1191 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1192 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1193 |  |  |  |  |  |  | } | 
| 1194 |  |  |  |  |  |  |  | 
| 1195 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 1196 | 0 |  |  |  |  |  | return $_response_object; | 
| 1197 |  |  |  |  |  |  |  | 
| 1198 |  |  |  |  |  |  | } | 
| 1199 |  |  |  |  |  |  | # | 
| 1200 |  |  |  |  |  |  | # GetCalendarExceptions | 
| 1201 |  |  |  |  |  |  | # | 
| 1202 |  |  |  |  |  |  | # Get list of calendar exceptions. | 
| 1203 |  |  |  |  |  |  | # | 
| 1204 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1205 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 1206 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1207 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1208 |  |  |  |  |  |  | # @return CalendarExceptionsResponse | 
| 1209 |  |  |  |  |  |  | # | 
| 1210 |  |  |  |  |  |  | sub GetCalendarExceptions { | 
| 1211 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1212 |  |  |  |  |  |  |  | 
| 1213 |  |  |  |  |  |  |  | 
| 1214 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1215 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1216 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetCalendarExceptions"); | 
| 1217 |  |  |  |  |  |  | } | 
| 1218 |  |  |  |  |  |  |  | 
| 1219 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 1220 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 1221 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling GetCalendarExceptions"); | 
| 1222 |  |  |  |  |  |  | } | 
| 1223 |  |  |  |  |  |  |  | 
| 1224 |  |  |  |  |  |  |  | 
| 1225 |  |  |  |  |  |  | # parse inputs | 
| 1226 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/calendarExceptions/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 1227 |  |  |  |  |  |  |  | 
| 1228 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1229 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1230 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1231 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1232 |  |  |  |  |  |  |  | 
| 1233 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 1234 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1235 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1236 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1237 |  |  |  |  |  |  |  | 
| 1238 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1239 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1240 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1241 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1242 |  |  |  |  |  |  | } | 
| 1243 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1244 |  |  |  |  |  |  |  | 
| 1245 |  |  |  |  |  |  | # query params | 
| 1246 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1247 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1248 |  |  |  |  |  |  | }else{ | 
| 1249 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1250 |  |  |  |  |  |  | }# query params | 
| 1251 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 1252 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 1253 |  |  |  |  |  |  | }else{ | 
| 1254 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 1255 |  |  |  |  |  |  | }# query params | 
| 1256 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1257 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1258 |  |  |  |  |  |  | }else{ | 
| 1259 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1260 |  |  |  |  |  |  | }# query params | 
| 1261 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1262 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1263 |  |  |  |  |  |  | }else{ | 
| 1264 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1265 |  |  |  |  |  |  | } | 
| 1266 |  |  |  |  |  |  |  | 
| 1267 |  |  |  |  |  |  |  | 
| 1268 | 0 |  |  |  |  |  | my $_body_data; | 
| 1269 |  |  |  |  |  |  |  | 
| 1270 |  |  |  |  |  |  |  | 
| 1271 |  |  |  |  |  |  |  | 
| 1272 |  |  |  |  |  |  |  | 
| 1273 |  |  |  |  |  |  | # authentication setting, if any | 
| 1274 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1275 |  |  |  |  |  |  |  | 
| 1276 |  |  |  |  |  |  | # make the API Call | 
| 1277 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1278 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1279 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1280 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1281 | 0 |  |  |  |  |  | return; | 
| 1282 |  |  |  |  |  |  | } | 
| 1283 |  |  |  |  |  |  |  | 
| 1284 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1285 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1286 |  |  |  |  |  |  | } | 
| 1287 |  |  |  |  |  |  |  | 
| 1288 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CalendarExceptionsResponse', $response->header('content-type')); | 
| 1289 | 0 |  |  |  |  |  | return $_response_object; | 
| 1290 |  |  |  |  |  |  |  | 
| 1291 |  |  |  |  |  |  | } | 
| 1292 |  |  |  |  |  |  | # | 
| 1293 |  |  |  |  |  |  | # PutCalendarException | 
| 1294 |  |  |  |  |  |  | # | 
| 1295 |  |  |  |  |  |  | # Updates calendar exception. | 
| 1296 |  |  |  |  |  |  | # | 
| 1297 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1298 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 1299 |  |  |  |  |  |  | # @param String $index  (required) | 
| 1300 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 1301 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1302 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1303 |  |  |  |  |  |  | # @param CalendarException $body  (required) | 
| 1304 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 1305 |  |  |  |  |  |  | # | 
| 1306 |  |  |  |  |  |  | sub PutCalendarException { | 
| 1307 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1308 |  |  |  |  |  |  |  | 
| 1309 |  |  |  |  |  |  |  | 
| 1310 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1311 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1312 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutCalendarException"); | 
| 1313 |  |  |  |  |  |  | } | 
| 1314 |  |  |  |  |  |  |  | 
| 1315 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 1316 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 1317 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling PutCalendarException"); | 
| 1318 |  |  |  |  |  |  | } | 
| 1319 |  |  |  |  |  |  |  | 
| 1320 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 1321 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 1322 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling PutCalendarException"); | 
| 1323 |  |  |  |  |  |  | } | 
| 1324 |  |  |  |  |  |  |  | 
| 1325 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 1326 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 1327 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutCalendarException"); | 
| 1328 |  |  |  |  |  |  | } | 
| 1329 |  |  |  |  |  |  |  | 
| 1330 |  |  |  |  |  |  |  | 
| 1331 |  |  |  |  |  |  | # parse inputs | 
| 1332 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/calendarExceptions/{index}/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 1333 |  |  |  |  |  |  |  | 
| 1334 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1335 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1336 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1337 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1338 |  |  |  |  |  |  |  | 
| 1339 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 1340 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1341 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1342 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1343 |  |  |  |  |  |  |  | 
| 1344 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1345 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1346 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1347 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1348 |  |  |  |  |  |  | } | 
| 1349 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1350 |  |  |  |  |  |  |  | 
| 1351 |  |  |  |  |  |  | # query params | 
| 1352 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1353 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1354 |  |  |  |  |  |  | }else{ | 
| 1355 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1356 |  |  |  |  |  |  | }# query params | 
| 1357 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 1358 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 1359 |  |  |  |  |  |  | }else{ | 
| 1360 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 1361 |  |  |  |  |  |  | }# query params | 
| 1362 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 1363 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 1364 |  |  |  |  |  |  | }else{ | 
| 1365 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 1366 |  |  |  |  |  |  | }# query params | 
| 1367 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 1368 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 1369 |  |  |  |  |  |  | }else{ | 
| 1370 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 1371 |  |  |  |  |  |  | }# query params | 
| 1372 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1373 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1374 |  |  |  |  |  |  | }else{ | 
| 1375 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1376 |  |  |  |  |  |  | }# query params | 
| 1377 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1378 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1379 |  |  |  |  |  |  | }else{ | 
| 1380 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1381 |  |  |  |  |  |  | } | 
| 1382 |  |  |  |  |  |  |  | 
| 1383 |  |  |  |  |  |  |  | 
| 1384 | 0 |  |  |  |  |  | my $_body_data; | 
| 1385 |  |  |  |  |  |  |  | 
| 1386 |  |  |  |  |  |  |  | 
| 1387 |  |  |  |  |  |  | # body params | 
| 1388 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 1389 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 1390 |  |  |  |  |  |  | } | 
| 1391 |  |  |  |  |  |  |  | 
| 1392 |  |  |  |  |  |  | # authentication setting, if any | 
| 1393 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1394 |  |  |  |  |  |  |  | 
| 1395 |  |  |  |  |  |  | # make the API Call | 
| 1396 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1397 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1398 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1399 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1400 | 0 |  |  |  |  |  | return; | 
| 1401 |  |  |  |  |  |  | } | 
| 1402 |  |  |  |  |  |  |  | 
| 1403 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1404 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1405 |  |  |  |  |  |  | } | 
| 1406 |  |  |  |  |  |  |  | 
| 1407 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 1408 | 0 |  |  |  |  |  | return $_response_object; | 
| 1409 |  |  |  |  |  |  |  | 
| 1410 |  |  |  |  |  |  | } | 
| 1411 |  |  |  |  |  |  | # | 
| 1412 |  |  |  |  |  |  | # DeleteCalendarException | 
| 1413 |  |  |  |  |  |  | # | 
| 1414 |  |  |  |  |  |  | # Deletes calendar exception from calendar exceptions collection. | 
| 1415 |  |  |  |  |  |  | # | 
| 1416 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1417 |  |  |  |  |  |  | # @param String $calendarUid  (required) | 
| 1418 |  |  |  |  |  |  | # @param String $index  (required) | 
| 1419 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 1420 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1421 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1422 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 1423 |  |  |  |  |  |  | # | 
| 1424 |  |  |  |  |  |  | sub DeleteCalendarException { | 
| 1425 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1426 |  |  |  |  |  |  |  | 
| 1427 |  |  |  |  |  |  |  | 
| 1428 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1429 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1430 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteCalendarException"); | 
| 1431 |  |  |  |  |  |  | } | 
| 1432 |  |  |  |  |  |  |  | 
| 1433 |  |  |  |  |  |  | # verify the required parameter 'calendarUid' is set | 
| 1434 | 0 | 0 |  |  |  |  | unless (exists $args{'calendarUid'}) { | 
| 1435 | 0 |  |  |  |  |  | croak("Missing the required parameter 'calendarUid' when calling DeleteCalendarException"); | 
| 1436 |  |  |  |  |  |  | } | 
| 1437 |  |  |  |  |  |  |  | 
| 1438 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 1439 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 1440 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling DeleteCalendarException"); | 
| 1441 |  |  |  |  |  |  | } | 
| 1442 |  |  |  |  |  |  |  | 
| 1443 |  |  |  |  |  |  |  | 
| 1444 |  |  |  |  |  |  | # parse inputs | 
| 1445 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/calendars/{calendarUid}/calendarExceptions/{index}/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 1446 |  |  |  |  |  |  |  | 
| 1447 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1448 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1449 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1450 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1451 |  |  |  |  |  |  |  | 
| 1452 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 1453 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1454 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1455 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1456 |  |  |  |  |  |  |  | 
| 1457 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1458 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1459 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1460 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1461 |  |  |  |  |  |  | } | 
| 1462 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1463 |  |  |  |  |  |  |  | 
| 1464 |  |  |  |  |  |  | # query params | 
| 1465 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1466 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1467 |  |  |  |  |  |  | }else{ | 
| 1468 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1469 |  |  |  |  |  |  | }# query params | 
| 1470 | 0 | 0 |  |  |  |  | if ( exists $args{'calendarUid'}) { | 
| 1471 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{calendarUid}\E/$args{'calendarUid'}/g; | 
| 1472 |  |  |  |  |  |  | }else{ | 
| 1473 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]calendarUid.*?(?=&|\?|$)//g; | 
| 1474 |  |  |  |  |  |  | }# query params | 
| 1475 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 1476 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 1477 |  |  |  |  |  |  | }else{ | 
| 1478 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 1479 |  |  |  |  |  |  | }# query params | 
| 1480 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 1481 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 1482 |  |  |  |  |  |  | }else{ | 
| 1483 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 1484 |  |  |  |  |  |  | }# query params | 
| 1485 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1486 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1487 |  |  |  |  |  |  | }else{ | 
| 1488 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1489 |  |  |  |  |  |  | }# query params | 
| 1490 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1491 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1492 |  |  |  |  |  |  | }else{ | 
| 1493 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1494 |  |  |  |  |  |  | } | 
| 1495 |  |  |  |  |  |  |  | 
| 1496 |  |  |  |  |  |  |  | 
| 1497 | 0 |  |  |  |  |  | my $_body_data; | 
| 1498 |  |  |  |  |  |  |  | 
| 1499 |  |  |  |  |  |  |  | 
| 1500 |  |  |  |  |  |  |  | 
| 1501 |  |  |  |  |  |  |  | 
| 1502 |  |  |  |  |  |  | # authentication setting, if any | 
| 1503 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1504 |  |  |  |  |  |  |  | 
| 1505 |  |  |  |  |  |  | # make the API Call | 
| 1506 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1507 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1508 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1509 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1510 | 0 |  |  |  |  |  | return; | 
| 1511 |  |  |  |  |  |  | } | 
| 1512 |  |  |  |  |  |  |  | 
| 1513 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1514 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1515 |  |  |  |  |  |  | } | 
| 1516 |  |  |  |  |  |  |  | 
| 1517 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 1518 | 0 |  |  |  |  |  | return $_response_object; | 
| 1519 |  |  |  |  |  |  |  | 
| 1520 |  |  |  |  |  |  | } | 
| 1521 |  |  |  |  |  |  | # | 
| 1522 |  |  |  |  |  |  | # GetCriticalPath | 
| 1523 |  |  |  |  |  |  | # | 
| 1524 |  |  |  |  |  |  | # Returns created report in PDF format. | 
| 1525 |  |  |  |  |  |  | # | 
| 1526 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1527 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1528 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1529 |  |  |  |  |  |  | # @return TaskItemsResponse | 
| 1530 |  |  |  |  |  |  | # | 
| 1531 |  |  |  |  |  |  | sub GetCriticalPath { | 
| 1532 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1533 |  |  |  |  |  |  |  | 
| 1534 |  |  |  |  |  |  |  | 
| 1535 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1536 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1537 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetCriticalPath"); | 
| 1538 |  |  |  |  |  |  | } | 
| 1539 |  |  |  |  |  |  |  | 
| 1540 |  |  |  |  |  |  |  | 
| 1541 |  |  |  |  |  |  | # parse inputs | 
| 1542 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/criticalPath/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 1543 |  |  |  |  |  |  |  | 
| 1544 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1545 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1546 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1547 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1548 |  |  |  |  |  |  |  | 
| 1549 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 1550 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1551 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1552 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1553 |  |  |  |  |  |  |  | 
| 1554 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1555 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1556 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1557 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1558 |  |  |  |  |  |  | } | 
| 1559 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1560 |  |  |  |  |  |  |  | 
| 1561 |  |  |  |  |  |  | # query params | 
| 1562 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1563 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1564 |  |  |  |  |  |  | }else{ | 
| 1565 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1566 |  |  |  |  |  |  | }# query params | 
| 1567 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1568 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1569 |  |  |  |  |  |  | }else{ | 
| 1570 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1571 |  |  |  |  |  |  | }# query params | 
| 1572 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1573 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1574 |  |  |  |  |  |  | }else{ | 
| 1575 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1576 |  |  |  |  |  |  | } | 
| 1577 |  |  |  |  |  |  |  | 
| 1578 |  |  |  |  |  |  |  | 
| 1579 | 0 |  |  |  |  |  | my $_body_data; | 
| 1580 |  |  |  |  |  |  |  | 
| 1581 |  |  |  |  |  |  |  | 
| 1582 |  |  |  |  |  |  |  | 
| 1583 |  |  |  |  |  |  |  | 
| 1584 |  |  |  |  |  |  | # authentication setting, if any | 
| 1585 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1586 |  |  |  |  |  |  |  | 
| 1587 |  |  |  |  |  |  | # make the API Call | 
| 1588 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1589 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1590 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1591 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1592 | 0 |  |  |  |  |  | return; | 
| 1593 |  |  |  |  |  |  | } | 
| 1594 |  |  |  |  |  |  |  | 
| 1595 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1596 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1597 |  |  |  |  |  |  | } | 
| 1598 |  |  |  |  |  |  |  | 
| 1599 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskItemsResponse', $response->header('content-type')); | 
| 1600 | 0 |  |  |  |  |  | return $_response_object; | 
| 1601 |  |  |  |  |  |  |  | 
| 1602 |  |  |  |  |  |  | } | 
| 1603 |  |  |  |  |  |  | # | 
| 1604 |  |  |  |  |  |  | # GetDocumentProperties | 
| 1605 |  |  |  |  |  |  | # | 
| 1606 |  |  |  |  |  |  | # Read document properties. | 
| 1607 |  |  |  |  |  |  | # | 
| 1608 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1609 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1610 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1611 |  |  |  |  |  |  | # @return DocumentPropertiesResponse | 
| 1612 |  |  |  |  |  |  | # | 
| 1613 |  |  |  |  |  |  | sub GetDocumentProperties { | 
| 1614 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1615 |  |  |  |  |  |  |  | 
| 1616 |  |  |  |  |  |  |  | 
| 1617 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1618 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1619 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetDocumentProperties"); | 
| 1620 |  |  |  |  |  |  | } | 
| 1621 |  |  |  |  |  |  |  | 
| 1622 |  |  |  |  |  |  |  | 
| 1623 |  |  |  |  |  |  | # parse inputs | 
| 1624 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/documentproperties/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 1625 |  |  |  |  |  |  |  | 
| 1626 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1627 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1628 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1629 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1630 |  |  |  |  |  |  |  | 
| 1631 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 1632 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1633 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1634 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1635 |  |  |  |  |  |  |  | 
| 1636 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1637 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1638 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1639 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1640 |  |  |  |  |  |  | } | 
| 1641 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1642 |  |  |  |  |  |  |  | 
| 1643 |  |  |  |  |  |  | # query params | 
| 1644 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1645 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1646 |  |  |  |  |  |  | }else{ | 
| 1647 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1648 |  |  |  |  |  |  | }# query params | 
| 1649 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1650 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1651 |  |  |  |  |  |  | }else{ | 
| 1652 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1653 |  |  |  |  |  |  | }# query params | 
| 1654 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1655 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1656 |  |  |  |  |  |  | }else{ | 
| 1657 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1658 |  |  |  |  |  |  | } | 
| 1659 |  |  |  |  |  |  |  | 
| 1660 |  |  |  |  |  |  |  | 
| 1661 | 0 |  |  |  |  |  | my $_body_data; | 
| 1662 |  |  |  |  |  |  |  | 
| 1663 |  |  |  |  |  |  |  | 
| 1664 |  |  |  |  |  |  |  | 
| 1665 |  |  |  |  |  |  |  | 
| 1666 |  |  |  |  |  |  | # authentication setting, if any | 
| 1667 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1668 |  |  |  |  |  |  |  | 
| 1669 |  |  |  |  |  |  | # make the API Call | 
| 1670 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1671 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1672 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1673 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1674 | 0 |  |  |  |  |  | return; | 
| 1675 |  |  |  |  |  |  | } | 
| 1676 |  |  |  |  |  |  |  | 
| 1677 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1678 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1679 |  |  |  |  |  |  | } | 
| 1680 |  |  |  |  |  |  |  | 
| 1681 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertiesResponse', $response->header('content-type')); | 
| 1682 | 0 |  |  |  |  |  | return $_response_object; | 
| 1683 |  |  |  |  |  |  |  | 
| 1684 |  |  |  |  |  |  | } | 
| 1685 |  |  |  |  |  |  | # | 
| 1686 |  |  |  |  |  |  | # GetDocumentProperty | 
| 1687 |  |  |  |  |  |  | # | 
| 1688 |  |  |  |  |  |  | # Read document property by name. | 
| 1689 |  |  |  |  |  |  | # | 
| 1690 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1691 |  |  |  |  |  |  | # @param String $propertyName  (required) | 
| 1692 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1693 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1694 |  |  |  |  |  |  | # @return DocumentPropertyResponse | 
| 1695 |  |  |  |  |  |  | # | 
| 1696 |  |  |  |  |  |  | sub GetDocumentProperty { | 
| 1697 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1698 |  |  |  |  |  |  |  | 
| 1699 |  |  |  |  |  |  |  | 
| 1700 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1701 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1702 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetDocumentProperty"); | 
| 1703 |  |  |  |  |  |  | } | 
| 1704 |  |  |  |  |  |  |  | 
| 1705 |  |  |  |  |  |  | # verify the required parameter 'propertyName' is set | 
| 1706 | 0 | 0 |  |  |  |  | unless (exists $args{'propertyName'}) { | 
| 1707 | 0 |  |  |  |  |  | croak("Missing the required parameter 'propertyName' when calling GetDocumentProperty"); | 
| 1708 |  |  |  |  |  |  | } | 
| 1709 |  |  |  |  |  |  |  | 
| 1710 |  |  |  |  |  |  |  | 
| 1711 |  |  |  |  |  |  | # parse inputs | 
| 1712 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 1713 |  |  |  |  |  |  |  | 
| 1714 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1715 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1716 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1717 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1718 |  |  |  |  |  |  |  | 
| 1719 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 1720 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1721 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1722 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1723 |  |  |  |  |  |  |  | 
| 1724 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1725 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1726 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1727 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1728 |  |  |  |  |  |  | } | 
| 1729 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1730 |  |  |  |  |  |  |  | 
| 1731 |  |  |  |  |  |  | # query params | 
| 1732 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1733 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1734 |  |  |  |  |  |  | }else{ | 
| 1735 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1736 |  |  |  |  |  |  | }# query params | 
| 1737 | 0 | 0 |  |  |  |  | if ( exists $args{'propertyName'}) { | 
| 1738 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | 
| 1739 |  |  |  |  |  |  | }else{ | 
| 1740 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | 
| 1741 |  |  |  |  |  |  | }# query params | 
| 1742 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1743 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1744 |  |  |  |  |  |  | }else{ | 
| 1745 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1746 |  |  |  |  |  |  | }# query params | 
| 1747 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1748 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1749 |  |  |  |  |  |  | }else{ | 
| 1750 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1751 |  |  |  |  |  |  | } | 
| 1752 |  |  |  |  |  |  |  | 
| 1753 |  |  |  |  |  |  |  | 
| 1754 | 0 |  |  |  |  |  | my $_body_data; | 
| 1755 |  |  |  |  |  |  |  | 
| 1756 |  |  |  |  |  |  |  | 
| 1757 |  |  |  |  |  |  |  | 
| 1758 |  |  |  |  |  |  |  | 
| 1759 |  |  |  |  |  |  | # authentication setting, if any | 
| 1760 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1761 |  |  |  |  |  |  |  | 
| 1762 |  |  |  |  |  |  | # make the API Call | 
| 1763 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1764 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1765 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1766 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1767 | 0 |  |  |  |  |  | return; | 
| 1768 |  |  |  |  |  |  | } | 
| 1769 |  |  |  |  |  |  |  | 
| 1770 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1771 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1772 |  |  |  |  |  |  | } | 
| 1773 |  |  |  |  |  |  |  | 
| 1774 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); | 
| 1775 | 0 |  |  |  |  |  | return $_response_object; | 
| 1776 |  |  |  |  |  |  |  | 
| 1777 |  |  |  |  |  |  | } | 
| 1778 |  |  |  |  |  |  | # | 
| 1779 |  |  |  |  |  |  | # PutDocumentProperty | 
| 1780 |  |  |  |  |  |  | # | 
| 1781 |  |  |  |  |  |  | # Set/create document property. | 
| 1782 |  |  |  |  |  |  | # | 
| 1783 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1784 |  |  |  |  |  |  | # @param String $propertyName  (required) | 
| 1785 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1786 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1787 |  |  |  |  |  |  | # @param String $filename  (optional) | 
| 1788 |  |  |  |  |  |  | # @param DocumentProperty $body  (required) | 
| 1789 |  |  |  |  |  |  | # @return DocumentPropertyResponse | 
| 1790 |  |  |  |  |  |  | # | 
| 1791 |  |  |  |  |  |  | sub PutDocumentProperty { | 
| 1792 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1793 |  |  |  |  |  |  |  | 
| 1794 |  |  |  |  |  |  |  | 
| 1795 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1796 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1797 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutDocumentProperty"); | 
| 1798 |  |  |  |  |  |  | } | 
| 1799 |  |  |  |  |  |  |  | 
| 1800 |  |  |  |  |  |  | # verify the required parameter 'propertyName' is set | 
| 1801 | 0 | 0 |  |  |  |  | unless (exists $args{'propertyName'}) { | 
| 1802 | 0 |  |  |  |  |  | croak("Missing the required parameter 'propertyName' when calling PutDocumentProperty"); | 
| 1803 |  |  |  |  |  |  | } | 
| 1804 |  |  |  |  |  |  |  | 
| 1805 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 1806 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 1807 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutDocumentProperty"); | 
| 1808 |  |  |  |  |  |  | } | 
| 1809 |  |  |  |  |  |  |  | 
| 1810 |  |  |  |  |  |  |  | 
| 1811 |  |  |  |  |  |  | # parse inputs | 
| 1812 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}&filename={filename}'; | 
| 1813 |  |  |  |  |  |  |  | 
| 1814 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1815 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1816 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1817 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1818 |  |  |  |  |  |  |  | 
| 1819 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 1820 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1821 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1822 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1823 |  |  |  |  |  |  |  | 
| 1824 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1825 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1826 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1827 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1828 |  |  |  |  |  |  | } | 
| 1829 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1830 |  |  |  |  |  |  |  | 
| 1831 |  |  |  |  |  |  | # query params | 
| 1832 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1833 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1834 |  |  |  |  |  |  | }else{ | 
| 1835 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1836 |  |  |  |  |  |  | }# query params | 
| 1837 | 0 | 0 |  |  |  |  | if ( exists $args{'propertyName'}) { | 
| 1838 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | 
| 1839 |  |  |  |  |  |  | }else{ | 
| 1840 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | 
| 1841 |  |  |  |  |  |  | }# query params | 
| 1842 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1843 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1844 |  |  |  |  |  |  | }else{ | 
| 1845 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1846 |  |  |  |  |  |  | }# query params | 
| 1847 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1848 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1849 |  |  |  |  |  |  | }else{ | 
| 1850 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1851 |  |  |  |  |  |  | }# query params | 
| 1852 | 0 | 0 |  |  |  |  | if ( exists $args{'filename'}) { | 
| 1853 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; | 
| 1854 |  |  |  |  |  |  | }else{ | 
| 1855 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]filename.*?(?=&|\?|$)//g; | 
| 1856 |  |  |  |  |  |  | } | 
| 1857 |  |  |  |  |  |  |  | 
| 1858 |  |  |  |  |  |  |  | 
| 1859 | 0 |  |  |  |  |  | my $_body_data; | 
| 1860 |  |  |  |  |  |  |  | 
| 1861 |  |  |  |  |  |  |  | 
| 1862 |  |  |  |  |  |  | # body params | 
| 1863 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 1864 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 1865 |  |  |  |  |  |  | } | 
| 1866 |  |  |  |  |  |  |  | 
| 1867 |  |  |  |  |  |  | # authentication setting, if any | 
| 1868 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1869 |  |  |  |  |  |  |  | 
| 1870 |  |  |  |  |  |  | # make the API Call | 
| 1871 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1872 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1873 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1874 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1875 | 0 |  |  |  |  |  | return; | 
| 1876 |  |  |  |  |  |  | } | 
| 1877 |  |  |  |  |  |  |  | 
| 1878 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1879 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1880 |  |  |  |  |  |  | } | 
| 1881 |  |  |  |  |  |  |  | 
| 1882 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); | 
| 1883 | 0 |  |  |  |  |  | return $_response_object; | 
| 1884 |  |  |  |  |  |  |  | 
| 1885 |  |  |  |  |  |  | } | 
| 1886 |  |  |  |  |  |  | # | 
| 1887 |  |  |  |  |  |  | # PostDocumentProperty | 
| 1888 |  |  |  |  |  |  | # | 
| 1889 |  |  |  |  |  |  | # Set/create document property. | 
| 1890 |  |  |  |  |  |  | # | 
| 1891 |  |  |  |  |  |  | # @param String $name  (required) | 
| 1892 |  |  |  |  |  |  | # @param String $propertyName  (required) | 
| 1893 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 1894 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 1895 |  |  |  |  |  |  | # @param String $filename  (optional) | 
| 1896 |  |  |  |  |  |  | # @param DocumentProperty $body  (required) | 
| 1897 |  |  |  |  |  |  | # @return DocumentPropertyResponse | 
| 1898 |  |  |  |  |  |  | # | 
| 1899 |  |  |  |  |  |  | sub PostDocumentProperty { | 
| 1900 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 1901 |  |  |  |  |  |  |  | 
| 1902 |  |  |  |  |  |  |  | 
| 1903 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 1904 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 1905 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostDocumentProperty"); | 
| 1906 |  |  |  |  |  |  | } | 
| 1907 |  |  |  |  |  |  |  | 
| 1908 |  |  |  |  |  |  | # verify the required parameter 'propertyName' is set | 
| 1909 | 0 | 0 |  |  |  |  | unless (exists $args{'propertyName'}) { | 
| 1910 | 0 |  |  |  |  |  | croak("Missing the required parameter 'propertyName' when calling PostDocumentProperty"); | 
| 1911 |  |  |  |  |  |  | } | 
| 1912 |  |  |  |  |  |  |  | 
| 1913 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 1914 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 1915 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PostDocumentProperty"); | 
| 1916 |  |  |  |  |  |  | } | 
| 1917 |  |  |  |  |  |  |  | 
| 1918 |  |  |  |  |  |  |  | 
| 1919 |  |  |  |  |  |  | # parse inputs | 
| 1920 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}&filename={filename}'; | 
| 1921 |  |  |  |  |  |  |  | 
| 1922 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 1923 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 1924 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 1925 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 1926 |  |  |  |  |  |  |  | 
| 1927 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 1928 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 1929 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 1930 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 1931 |  |  |  |  |  |  |  | 
| 1932 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 1933 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 1934 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 1935 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 1936 |  |  |  |  |  |  | } | 
| 1937 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 1938 |  |  |  |  |  |  |  | 
| 1939 |  |  |  |  |  |  | # query params | 
| 1940 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 1941 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 1942 |  |  |  |  |  |  | }else{ | 
| 1943 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 1944 |  |  |  |  |  |  | }# query params | 
| 1945 | 0 | 0 |  |  |  |  | if ( exists $args{'propertyName'}) { | 
| 1946 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | 
| 1947 |  |  |  |  |  |  | }else{ | 
| 1948 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | 
| 1949 |  |  |  |  |  |  | }# query params | 
| 1950 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 1951 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 1952 |  |  |  |  |  |  | }else{ | 
| 1953 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 1954 |  |  |  |  |  |  | }# query params | 
| 1955 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 1956 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 1957 |  |  |  |  |  |  | }else{ | 
| 1958 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 1959 |  |  |  |  |  |  | }# query params | 
| 1960 | 0 | 0 |  |  |  |  | if ( exists $args{'filename'}) { | 
| 1961 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; | 
| 1962 |  |  |  |  |  |  | }else{ | 
| 1963 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]filename.*?(?=&|\?|$)//g; | 
| 1964 |  |  |  |  |  |  | } | 
| 1965 |  |  |  |  |  |  |  | 
| 1966 |  |  |  |  |  |  |  | 
| 1967 | 0 |  |  |  |  |  | my $_body_data; | 
| 1968 |  |  |  |  |  |  |  | 
| 1969 |  |  |  |  |  |  |  | 
| 1970 |  |  |  |  |  |  | # body params | 
| 1971 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 1972 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 1973 |  |  |  |  |  |  | } | 
| 1974 |  |  |  |  |  |  |  | 
| 1975 |  |  |  |  |  |  | # authentication setting, if any | 
| 1976 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 1977 |  |  |  |  |  |  |  | 
| 1978 |  |  |  |  |  |  | # make the API Call | 
| 1979 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 1980 |  |  |  |  |  |  | $query_params, $form_params, | 
| 1981 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 1982 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 1983 | 0 |  |  |  |  |  | return; | 
| 1984 |  |  |  |  |  |  | } | 
| 1985 |  |  |  |  |  |  |  | 
| 1986 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 1987 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 1988 |  |  |  |  |  |  | } | 
| 1989 |  |  |  |  |  |  |  | 
| 1990 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); | 
| 1991 | 0 |  |  |  |  |  | return $_response_object; | 
| 1992 |  |  |  |  |  |  |  | 
| 1993 |  |  |  |  |  |  | } | 
| 1994 |  |  |  |  |  |  | # | 
| 1995 |  |  |  |  |  |  | # GetExtendedAttributes | 
| 1996 |  |  |  |  |  |  | # | 
| 1997 |  |  |  |  |  |  | # Represents a project document. | 
| 1998 |  |  |  |  |  |  | # | 
| 1999 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2000 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2001 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2002 |  |  |  |  |  |  | # @return ExtendedAttributeItemsResponse | 
| 2003 |  |  |  |  |  |  | # | 
| 2004 |  |  |  |  |  |  | sub GetExtendedAttributes { | 
| 2005 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2006 |  |  |  |  |  |  |  | 
| 2007 |  |  |  |  |  |  |  | 
| 2008 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2009 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2010 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetExtendedAttributes"); | 
| 2011 |  |  |  |  |  |  | } | 
| 2012 |  |  |  |  |  |  |  | 
| 2013 |  |  |  |  |  |  |  | 
| 2014 |  |  |  |  |  |  | # parse inputs | 
| 2015 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/extendedAttributes/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2016 |  |  |  |  |  |  |  | 
| 2017 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2018 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2019 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2020 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2021 |  |  |  |  |  |  |  | 
| 2022 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 2023 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2024 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2025 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2026 |  |  |  |  |  |  |  | 
| 2027 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2028 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2029 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2030 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2031 |  |  |  |  |  |  | } | 
| 2032 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2033 |  |  |  |  |  |  |  | 
| 2034 |  |  |  |  |  |  | # query params | 
| 2035 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2036 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2037 |  |  |  |  |  |  | }else{ | 
| 2038 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2039 |  |  |  |  |  |  | }# query params | 
| 2040 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2041 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2042 |  |  |  |  |  |  | }else{ | 
| 2043 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2044 |  |  |  |  |  |  | }# query params | 
| 2045 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2046 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2047 |  |  |  |  |  |  | }else{ | 
| 2048 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2049 |  |  |  |  |  |  | } | 
| 2050 |  |  |  |  |  |  |  | 
| 2051 |  |  |  |  |  |  |  | 
| 2052 | 0 |  |  |  |  |  | my $_body_data; | 
| 2053 |  |  |  |  |  |  |  | 
| 2054 |  |  |  |  |  |  |  | 
| 2055 |  |  |  |  |  |  |  | 
| 2056 |  |  |  |  |  |  |  | 
| 2057 |  |  |  |  |  |  | # authentication setting, if any | 
| 2058 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2059 |  |  |  |  |  |  |  | 
| 2060 |  |  |  |  |  |  | # make the API Call | 
| 2061 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2062 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2063 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2064 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2065 | 0 |  |  |  |  |  | return; | 
| 2066 |  |  |  |  |  |  | } | 
| 2067 |  |  |  |  |  |  |  | 
| 2068 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2069 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2070 |  |  |  |  |  |  | } | 
| 2071 |  |  |  |  |  |  |  | 
| 2072 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ExtendedAttributeItemsResponse', $response->header('content-type')); | 
| 2073 | 0 |  |  |  |  |  | return $_response_object; | 
| 2074 |  |  |  |  |  |  |  | 
| 2075 |  |  |  |  |  |  | } | 
| 2076 |  |  |  |  |  |  | # | 
| 2077 |  |  |  |  |  |  | # GetExtendedAttributeByIndex | 
| 2078 |  |  |  |  |  |  | # | 
| 2079 |  |  |  |  |  |  | # Represents a project extended attribute definition. | 
| 2080 |  |  |  |  |  |  | # | 
| 2081 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2082 |  |  |  |  |  |  | # @param String $index  (required) | 
| 2083 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2084 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2085 |  |  |  |  |  |  | # @return ExtendedAttributeResponse | 
| 2086 |  |  |  |  |  |  | # | 
| 2087 |  |  |  |  |  |  | sub GetExtendedAttributeByIndex { | 
| 2088 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2089 |  |  |  |  |  |  |  | 
| 2090 |  |  |  |  |  |  |  | 
| 2091 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2092 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2093 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetExtendedAttributeByIndex"); | 
| 2094 |  |  |  |  |  |  | } | 
| 2095 |  |  |  |  |  |  |  | 
| 2096 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 2097 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 2098 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling GetExtendedAttributeByIndex"); | 
| 2099 |  |  |  |  |  |  | } | 
| 2100 |  |  |  |  |  |  |  | 
| 2101 |  |  |  |  |  |  |  | 
| 2102 |  |  |  |  |  |  | # parse inputs | 
| 2103 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/extendedAttributes/{index}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2104 |  |  |  |  |  |  |  | 
| 2105 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2106 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2107 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2108 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2109 |  |  |  |  |  |  |  | 
| 2110 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 2111 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2112 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2113 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2114 |  |  |  |  |  |  |  | 
| 2115 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2116 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2117 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2118 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2119 |  |  |  |  |  |  | } | 
| 2120 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2121 |  |  |  |  |  |  |  | 
| 2122 |  |  |  |  |  |  | # query params | 
| 2123 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2124 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2125 |  |  |  |  |  |  | }else{ | 
| 2126 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2127 |  |  |  |  |  |  | }# query params | 
| 2128 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 2129 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 2130 |  |  |  |  |  |  | }else{ | 
| 2131 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 2132 |  |  |  |  |  |  | }# query params | 
| 2133 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2134 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2135 |  |  |  |  |  |  | }else{ | 
| 2136 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2137 |  |  |  |  |  |  | }# query params | 
| 2138 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2139 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2140 |  |  |  |  |  |  | }else{ | 
| 2141 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2142 |  |  |  |  |  |  | } | 
| 2143 |  |  |  |  |  |  |  | 
| 2144 |  |  |  |  |  |  |  | 
| 2145 | 0 |  |  |  |  |  | my $_body_data; | 
| 2146 |  |  |  |  |  |  |  | 
| 2147 |  |  |  |  |  |  |  | 
| 2148 |  |  |  |  |  |  |  | 
| 2149 |  |  |  |  |  |  |  | 
| 2150 |  |  |  |  |  |  | # authentication setting, if any | 
| 2151 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2152 |  |  |  |  |  |  |  | 
| 2153 |  |  |  |  |  |  | # make the API Call | 
| 2154 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2155 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2156 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2157 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2158 | 0 |  |  |  |  |  | return; | 
| 2159 |  |  |  |  |  |  | } | 
| 2160 |  |  |  |  |  |  |  | 
| 2161 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2162 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2163 |  |  |  |  |  |  | } | 
| 2164 |  |  |  |  |  |  |  | 
| 2165 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ExtendedAttributeResponse', $response->header('content-type')); | 
| 2166 | 0 |  |  |  |  |  | return $_response_object; | 
| 2167 |  |  |  |  |  |  |  | 
| 2168 |  |  |  |  |  |  | } | 
| 2169 |  |  |  |  |  |  | # | 
| 2170 |  |  |  |  |  |  | # DeleteExtendedAttributeByIndex | 
| 2171 |  |  |  |  |  |  | # | 
| 2172 |  |  |  |  |  |  | # Delete a project extended attribute. | 
| 2173 |  |  |  |  |  |  | # | 
| 2174 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2175 |  |  |  |  |  |  | # @param String $index  (required) | 
| 2176 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2177 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2178 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2179 |  |  |  |  |  |  | # | 
| 2180 |  |  |  |  |  |  | sub DeleteExtendedAttributeByIndex { | 
| 2181 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2182 |  |  |  |  |  |  |  | 
| 2183 |  |  |  |  |  |  |  | 
| 2184 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2185 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2186 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteExtendedAttributeByIndex"); | 
| 2187 |  |  |  |  |  |  | } | 
| 2188 |  |  |  |  |  |  |  | 
| 2189 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 2190 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 2191 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling DeleteExtendedAttributeByIndex"); | 
| 2192 |  |  |  |  |  |  | } | 
| 2193 |  |  |  |  |  |  |  | 
| 2194 |  |  |  |  |  |  |  | 
| 2195 |  |  |  |  |  |  | # parse inputs | 
| 2196 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/extendedAttributes/{index}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2197 |  |  |  |  |  |  |  | 
| 2198 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2199 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2200 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2201 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2202 |  |  |  |  |  |  |  | 
| 2203 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 2204 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2205 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2206 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2207 |  |  |  |  |  |  |  | 
| 2208 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2209 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2210 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2211 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2212 |  |  |  |  |  |  | } | 
| 2213 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2214 |  |  |  |  |  |  |  | 
| 2215 |  |  |  |  |  |  | # query params | 
| 2216 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2217 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2218 |  |  |  |  |  |  | }else{ | 
| 2219 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2220 |  |  |  |  |  |  | }# query params | 
| 2221 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 2222 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 2223 |  |  |  |  |  |  | }else{ | 
| 2224 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 2225 |  |  |  |  |  |  | }# query params | 
| 2226 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2227 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2228 |  |  |  |  |  |  | }else{ | 
| 2229 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2230 |  |  |  |  |  |  | }# query params | 
| 2231 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2232 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2233 |  |  |  |  |  |  | }else{ | 
| 2234 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2235 |  |  |  |  |  |  | } | 
| 2236 |  |  |  |  |  |  |  | 
| 2237 |  |  |  |  |  |  |  | 
| 2238 | 0 |  |  |  |  |  | my $_body_data; | 
| 2239 |  |  |  |  |  |  |  | 
| 2240 |  |  |  |  |  |  |  | 
| 2241 |  |  |  |  |  |  |  | 
| 2242 |  |  |  |  |  |  |  | 
| 2243 |  |  |  |  |  |  | # authentication setting, if any | 
| 2244 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2245 |  |  |  |  |  |  |  | 
| 2246 |  |  |  |  |  |  | # make the API Call | 
| 2247 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2248 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2249 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2250 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2251 | 0 |  |  |  |  |  | return; | 
| 2252 |  |  |  |  |  |  | } | 
| 2253 |  |  |  |  |  |  |  | 
| 2254 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2255 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2256 |  |  |  |  |  |  | } | 
| 2257 |  |  |  |  |  |  |  | 
| 2258 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2259 | 0 |  |  |  |  |  | return $_response_object; | 
| 2260 |  |  |  |  |  |  |  | 
| 2261 |  |  |  |  |  |  | } | 
| 2262 |  |  |  |  |  |  | # | 
| 2263 |  |  |  |  |  |  | # GetOutlineCodes | 
| 2264 |  |  |  |  |  |  | # | 
| 2265 |  |  |  |  |  |  | # Read outline codes. | 
| 2266 |  |  |  |  |  |  | # | 
| 2267 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2268 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2269 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2270 |  |  |  |  |  |  | # @return OutlineCodeItemsResponse | 
| 2271 |  |  |  |  |  |  | # | 
| 2272 |  |  |  |  |  |  | sub GetOutlineCodes { | 
| 2273 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2274 |  |  |  |  |  |  |  | 
| 2275 |  |  |  |  |  |  |  | 
| 2276 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2277 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2278 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetOutlineCodes"); | 
| 2279 |  |  |  |  |  |  | } | 
| 2280 |  |  |  |  |  |  |  | 
| 2281 |  |  |  |  |  |  |  | 
| 2282 |  |  |  |  |  |  | # parse inputs | 
| 2283 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/outlineCodes/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2284 |  |  |  |  |  |  |  | 
| 2285 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2286 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2287 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2288 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2289 |  |  |  |  |  |  |  | 
| 2290 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 2291 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2292 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2293 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2294 |  |  |  |  |  |  |  | 
| 2295 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2296 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2297 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2298 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2299 |  |  |  |  |  |  | } | 
| 2300 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2301 |  |  |  |  |  |  |  | 
| 2302 |  |  |  |  |  |  | # query params | 
| 2303 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2304 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2305 |  |  |  |  |  |  | }else{ | 
| 2306 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2307 |  |  |  |  |  |  | }# query params | 
| 2308 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2309 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2310 |  |  |  |  |  |  | }else{ | 
| 2311 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2312 |  |  |  |  |  |  | }# query params | 
| 2313 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2314 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2315 |  |  |  |  |  |  | }else{ | 
| 2316 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2317 |  |  |  |  |  |  | } | 
| 2318 |  |  |  |  |  |  |  | 
| 2319 |  |  |  |  |  |  |  | 
| 2320 | 0 |  |  |  |  |  | my $_body_data; | 
| 2321 |  |  |  |  |  |  |  | 
| 2322 |  |  |  |  |  |  |  | 
| 2323 |  |  |  |  |  |  |  | 
| 2324 |  |  |  |  |  |  |  | 
| 2325 |  |  |  |  |  |  | # authentication setting, if any | 
| 2326 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2327 |  |  |  |  |  |  |  | 
| 2328 |  |  |  |  |  |  | # make the API Call | 
| 2329 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2330 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2331 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2332 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2333 | 0 |  |  |  |  |  | return; | 
| 2334 |  |  |  |  |  |  | } | 
| 2335 |  |  |  |  |  |  |  | 
| 2336 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2337 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2338 |  |  |  |  |  |  | } | 
| 2339 |  |  |  |  |  |  |  | 
| 2340 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'OutlineCodeItemsResponse', $response->header('content-type')); | 
| 2341 | 0 |  |  |  |  |  | return $_response_object; | 
| 2342 |  |  |  |  |  |  |  | 
| 2343 |  |  |  |  |  |  | } | 
| 2344 |  |  |  |  |  |  | # | 
| 2345 |  |  |  |  |  |  | # GetOutlineCodeByIndex | 
| 2346 |  |  |  |  |  |  | # | 
| 2347 |  |  |  |  |  |  | # Get outline code by index. | 
| 2348 |  |  |  |  |  |  | # | 
| 2349 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2350 |  |  |  |  |  |  | # @param String $index  (required) | 
| 2351 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2352 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2353 |  |  |  |  |  |  | # @return OutlineCodeResponse | 
| 2354 |  |  |  |  |  |  | # | 
| 2355 |  |  |  |  |  |  | sub GetOutlineCodeByIndex { | 
| 2356 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2357 |  |  |  |  |  |  |  | 
| 2358 |  |  |  |  |  |  |  | 
| 2359 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2360 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2361 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetOutlineCodeByIndex"); | 
| 2362 |  |  |  |  |  |  | } | 
| 2363 |  |  |  |  |  |  |  | 
| 2364 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 2365 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 2366 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling GetOutlineCodeByIndex"); | 
| 2367 |  |  |  |  |  |  | } | 
| 2368 |  |  |  |  |  |  |  | 
| 2369 |  |  |  |  |  |  |  | 
| 2370 |  |  |  |  |  |  | # parse inputs | 
| 2371 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/outlineCodes/{index}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2372 |  |  |  |  |  |  |  | 
| 2373 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2374 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2375 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2376 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2377 |  |  |  |  |  |  |  | 
| 2378 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 2379 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2380 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2381 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2382 |  |  |  |  |  |  |  | 
| 2383 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2384 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2385 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2386 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2387 |  |  |  |  |  |  | } | 
| 2388 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2389 |  |  |  |  |  |  |  | 
| 2390 |  |  |  |  |  |  | # query params | 
| 2391 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2392 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2393 |  |  |  |  |  |  | }else{ | 
| 2394 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2395 |  |  |  |  |  |  | }# query params | 
| 2396 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 2397 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 2398 |  |  |  |  |  |  | }else{ | 
| 2399 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 2400 |  |  |  |  |  |  | }# query params | 
| 2401 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2402 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2403 |  |  |  |  |  |  | }else{ | 
| 2404 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2405 |  |  |  |  |  |  | }# query params | 
| 2406 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2407 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2408 |  |  |  |  |  |  | }else{ | 
| 2409 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2410 |  |  |  |  |  |  | } | 
| 2411 |  |  |  |  |  |  |  | 
| 2412 |  |  |  |  |  |  |  | 
| 2413 | 0 |  |  |  |  |  | my $_body_data; | 
| 2414 |  |  |  |  |  |  |  | 
| 2415 |  |  |  |  |  |  |  | 
| 2416 |  |  |  |  |  |  |  | 
| 2417 |  |  |  |  |  |  |  | 
| 2418 |  |  |  |  |  |  | # authentication setting, if any | 
| 2419 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2420 |  |  |  |  |  |  |  | 
| 2421 |  |  |  |  |  |  | # make the API Call | 
| 2422 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2423 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2424 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2425 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2426 | 0 |  |  |  |  |  | return; | 
| 2427 |  |  |  |  |  |  | } | 
| 2428 |  |  |  |  |  |  |  | 
| 2429 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2430 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2431 |  |  |  |  |  |  | } | 
| 2432 |  |  |  |  |  |  |  | 
| 2433 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'OutlineCodeResponse', $response->header('content-type')); | 
| 2434 | 0 |  |  |  |  |  | return $_response_object; | 
| 2435 |  |  |  |  |  |  |  | 
| 2436 |  |  |  |  |  |  | } | 
| 2437 |  |  |  |  |  |  | # | 
| 2438 |  |  |  |  |  |  | # DeleteOutlineCodeByIndex | 
| 2439 |  |  |  |  |  |  | # | 
| 2440 |  |  |  |  |  |  | # Deletes a project outline code | 
| 2441 |  |  |  |  |  |  | # | 
| 2442 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2443 |  |  |  |  |  |  | # @param String $index  (required) | 
| 2444 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2445 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2446 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2447 |  |  |  |  |  |  | # | 
| 2448 |  |  |  |  |  |  | sub DeleteOutlineCodeByIndex { | 
| 2449 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2450 |  |  |  |  |  |  |  | 
| 2451 |  |  |  |  |  |  |  | 
| 2452 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2453 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2454 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteOutlineCodeByIndex"); | 
| 2455 |  |  |  |  |  |  | } | 
| 2456 |  |  |  |  |  |  |  | 
| 2457 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 2458 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 2459 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling DeleteOutlineCodeByIndex"); | 
| 2460 |  |  |  |  |  |  | } | 
| 2461 |  |  |  |  |  |  |  | 
| 2462 |  |  |  |  |  |  |  | 
| 2463 |  |  |  |  |  |  | # parse inputs | 
| 2464 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/outlineCodes/{index}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 2465 |  |  |  |  |  |  |  | 
| 2466 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2467 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2468 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2469 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2470 |  |  |  |  |  |  |  | 
| 2471 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 2472 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2473 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2474 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2475 |  |  |  |  |  |  |  | 
| 2476 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2477 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2478 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2479 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2480 |  |  |  |  |  |  | } | 
| 2481 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2482 |  |  |  |  |  |  |  | 
| 2483 |  |  |  |  |  |  | # query params | 
| 2484 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2485 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2486 |  |  |  |  |  |  | }else{ | 
| 2487 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2488 |  |  |  |  |  |  | }# query params | 
| 2489 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 2490 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 2491 |  |  |  |  |  |  | }else{ | 
| 2492 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 2493 |  |  |  |  |  |  | }# query params | 
| 2494 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2495 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2496 |  |  |  |  |  |  | }else{ | 
| 2497 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2498 |  |  |  |  |  |  | }# query params | 
| 2499 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2500 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2501 |  |  |  |  |  |  | }else{ | 
| 2502 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2503 |  |  |  |  |  |  | } | 
| 2504 |  |  |  |  |  |  |  | 
| 2505 |  |  |  |  |  |  |  | 
| 2506 | 0 |  |  |  |  |  | my $_body_data; | 
| 2507 |  |  |  |  |  |  |  | 
| 2508 |  |  |  |  |  |  |  | 
| 2509 |  |  |  |  |  |  |  | 
| 2510 |  |  |  |  |  |  |  | 
| 2511 |  |  |  |  |  |  | # authentication setting, if any | 
| 2512 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2513 |  |  |  |  |  |  |  | 
| 2514 |  |  |  |  |  |  | # make the API Call | 
| 2515 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2516 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2517 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2518 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2519 | 0 |  |  |  |  |  | return; | 
| 2520 |  |  |  |  |  |  | } | 
| 2521 |  |  |  |  |  |  |  | 
| 2522 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2523 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2524 |  |  |  |  |  |  | } | 
| 2525 |  |  |  |  |  |  |  | 
| 2526 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2527 | 0 |  |  |  |  |  | return $_response_object; | 
| 2528 |  |  |  |  |  |  |  | 
| 2529 |  |  |  |  |  |  | } | 
| 2530 |  |  |  |  |  |  | # | 
| 2531 |  |  |  |  |  |  | # PutRecalculateProject | 
| 2532 |  |  |  |  |  |  | # | 
| 2533 |  |  |  |  |  |  | # GET | 
| 2534 |  |  |  |  |  |  | # | 
| 2535 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2536 |  |  |  |  |  |  | # @param String $mode  (optional) | 
| 2537 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 2538 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2539 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2540 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2541 |  |  |  |  |  |  | # | 
| 2542 |  |  |  |  |  |  | sub PutRecalculateProject { | 
| 2543 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2544 |  |  |  |  |  |  |  | 
| 2545 |  |  |  |  |  |  |  | 
| 2546 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2547 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2548 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutRecalculateProject"); | 
| 2549 |  |  |  |  |  |  | } | 
| 2550 |  |  |  |  |  |  |  | 
| 2551 |  |  |  |  |  |  |  | 
| 2552 |  |  |  |  |  |  | # parse inputs | 
| 2553 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/recalculate/project/?appSid={appSid}&mode={mode}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 2554 |  |  |  |  |  |  |  | 
| 2555 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2556 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2557 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2558 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2559 |  |  |  |  |  |  |  | 
| 2560 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 2561 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2562 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2563 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2564 |  |  |  |  |  |  |  | 
| 2565 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2566 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2567 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2568 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2569 |  |  |  |  |  |  | } | 
| 2570 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2571 |  |  |  |  |  |  |  | 
| 2572 |  |  |  |  |  |  | # query params | 
| 2573 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2574 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2575 |  |  |  |  |  |  | }else{ | 
| 2576 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2577 |  |  |  |  |  |  | }# query params | 
| 2578 | 0 | 0 |  |  |  |  | if ( exists $args{'mode'}) { | 
| 2579 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{mode}\E/$args{'mode'}/g; | 
| 2580 |  |  |  |  |  |  | }else{ | 
| 2581 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]mode.*?(?=&|\?|$)//g; | 
| 2582 |  |  |  |  |  |  | }# query params | 
| 2583 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 2584 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 2585 |  |  |  |  |  |  | }else{ | 
| 2586 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 2587 |  |  |  |  |  |  | }# query params | 
| 2588 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2589 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2590 |  |  |  |  |  |  | }else{ | 
| 2591 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2592 |  |  |  |  |  |  | }# query params | 
| 2593 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2594 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2595 |  |  |  |  |  |  | }else{ | 
| 2596 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2597 |  |  |  |  |  |  | } | 
| 2598 |  |  |  |  |  |  |  | 
| 2599 |  |  |  |  |  |  |  | 
| 2600 | 0 |  |  |  |  |  | my $_body_data; | 
| 2601 |  |  |  |  |  |  |  | 
| 2602 |  |  |  |  |  |  |  | 
| 2603 |  |  |  |  |  |  |  | 
| 2604 |  |  |  |  |  |  |  | 
| 2605 |  |  |  |  |  |  | # authentication setting, if any | 
| 2606 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2607 |  |  |  |  |  |  |  | 
| 2608 |  |  |  |  |  |  | # make the API Call | 
| 2609 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2610 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2611 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2612 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2613 | 0 |  |  |  |  |  | return; | 
| 2614 |  |  |  |  |  |  | } | 
| 2615 |  |  |  |  |  |  |  | 
| 2616 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2617 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2618 |  |  |  |  |  |  | } | 
| 2619 |  |  |  |  |  |  |  | 
| 2620 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2621 | 0 |  |  |  |  |  | return $_response_object; | 
| 2622 |  |  |  |  |  |  |  | 
| 2623 |  |  |  |  |  |  | } | 
| 2624 |  |  |  |  |  |  | # | 
| 2625 |  |  |  |  |  |  | # PutRecalculateProjectWorkAsComplete | 
| 2626 |  |  |  |  |  |  | # | 
| 2627 |  |  |  |  |  |  | # Recalculate project work as complete | 
| 2628 |  |  |  |  |  |  | # | 
| 2629 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2630 |  |  |  |  |  |  | # @param Boolean $setZeroOrHundredPercentCompleteOnly  (optional) | 
| 2631 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2632 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2633 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 2634 |  |  |  |  |  |  | # @param Date $body  (required) | 
| 2635 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2636 |  |  |  |  |  |  | # | 
| 2637 |  |  |  |  |  |  | sub PutRecalculateProjectWorkAsComplete { | 
| 2638 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2639 |  |  |  |  |  |  |  | 
| 2640 |  |  |  |  |  |  |  | 
| 2641 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2642 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2643 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutRecalculateProjectWorkAsComplete"); | 
| 2644 |  |  |  |  |  |  | } | 
| 2645 |  |  |  |  |  |  |  | 
| 2646 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 2647 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 2648 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutRecalculateProjectWorkAsComplete"); | 
| 2649 |  |  |  |  |  |  | } | 
| 2650 |  |  |  |  |  |  |  | 
| 2651 |  |  |  |  |  |  |  | 
| 2652 |  |  |  |  |  |  | # parse inputs | 
| 2653 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/recalculate/projectWorkAsComplete/?appSid={appSid}&setZeroOrHundredPercentCompleteOnly={setZeroOrHundredPercentCompleteOnly}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 2654 |  |  |  |  |  |  |  | 
| 2655 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2656 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2657 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2658 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2659 |  |  |  |  |  |  |  | 
| 2660 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 2661 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2662 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2663 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2664 |  |  |  |  |  |  |  | 
| 2665 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2666 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2667 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2668 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2669 |  |  |  |  |  |  | } | 
| 2670 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2671 |  |  |  |  |  |  |  | 
| 2672 |  |  |  |  |  |  | # query params | 
| 2673 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2674 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2675 |  |  |  |  |  |  | }else{ | 
| 2676 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2677 |  |  |  |  |  |  | }# query params | 
| 2678 | 0 | 0 |  |  |  |  | if ( exists $args{'setZeroOrHundredPercentCompleteOnly'}) { | 
| 2679 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{setZeroOrHundredPercentCompleteOnly}\E/$args{'setZeroOrHundredPercentCompleteOnly'}/g; | 
| 2680 |  |  |  |  |  |  | }else{ | 
| 2681 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]setZeroOrHundredPercentCompleteOnly.*?(?=&|\?|$)//g; | 
| 2682 |  |  |  |  |  |  | }# query params | 
| 2683 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2684 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2685 |  |  |  |  |  |  | }else{ | 
| 2686 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2687 |  |  |  |  |  |  | }# query params | 
| 2688 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2689 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2690 |  |  |  |  |  |  | }else{ | 
| 2691 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2692 |  |  |  |  |  |  | }# query params | 
| 2693 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 2694 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 2695 |  |  |  |  |  |  | }else{ | 
| 2696 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 2697 |  |  |  |  |  |  | } | 
| 2698 |  |  |  |  |  |  |  | 
| 2699 |  |  |  |  |  |  |  | 
| 2700 | 0 |  |  |  |  |  | my $_body_data; | 
| 2701 |  |  |  |  |  |  |  | 
| 2702 |  |  |  |  |  |  |  | 
| 2703 |  |  |  |  |  |  | # body params | 
| 2704 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 2705 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 2706 |  |  |  |  |  |  | } | 
| 2707 |  |  |  |  |  |  |  | 
| 2708 |  |  |  |  |  |  | # authentication setting, if any | 
| 2709 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2710 |  |  |  |  |  |  |  | 
| 2711 |  |  |  |  |  |  | # make the API Call | 
| 2712 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2713 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2714 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2715 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2716 | 0 |  |  |  |  |  | return; | 
| 2717 |  |  |  |  |  |  | } | 
| 2718 |  |  |  |  |  |  |  | 
| 2719 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2720 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2721 |  |  |  |  |  |  | } | 
| 2722 |  |  |  |  |  |  |  | 
| 2723 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2724 | 0 |  |  |  |  |  | return $_response_object; | 
| 2725 |  |  |  |  |  |  |  | 
| 2726 |  |  |  |  |  |  | } | 
| 2727 |  |  |  |  |  |  | # | 
| 2728 |  |  |  |  |  |  | # PutRecalculateProjectResourceFields | 
| 2729 |  |  |  |  |  |  | # | 
| 2730 |  |  |  |  |  |  | # Recalculate project resource fields | 
| 2731 |  |  |  |  |  |  | # | 
| 2732 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2733 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2734 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2735 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 2736 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2737 |  |  |  |  |  |  | # | 
| 2738 |  |  |  |  |  |  | sub PutRecalculateProjectResourceFields { | 
| 2739 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2740 |  |  |  |  |  |  |  | 
| 2741 |  |  |  |  |  |  |  | 
| 2742 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2743 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2744 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutRecalculateProjectResourceFields"); | 
| 2745 |  |  |  |  |  |  | } | 
| 2746 |  |  |  |  |  |  |  | 
| 2747 |  |  |  |  |  |  |  | 
| 2748 |  |  |  |  |  |  | # parse inputs | 
| 2749 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/recalculate/resourceFields/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 2750 |  |  |  |  |  |  |  | 
| 2751 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2752 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2753 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2754 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2755 |  |  |  |  |  |  |  | 
| 2756 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 2757 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2758 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2759 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2760 |  |  |  |  |  |  |  | 
| 2761 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2762 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2763 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2764 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2765 |  |  |  |  |  |  | } | 
| 2766 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2767 |  |  |  |  |  |  |  | 
| 2768 |  |  |  |  |  |  | # query params | 
| 2769 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2770 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2771 |  |  |  |  |  |  | }else{ | 
| 2772 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2773 |  |  |  |  |  |  | }# query params | 
| 2774 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2775 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2776 |  |  |  |  |  |  | }else{ | 
| 2777 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2778 |  |  |  |  |  |  | }# query params | 
| 2779 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2780 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2781 |  |  |  |  |  |  | }else{ | 
| 2782 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2783 |  |  |  |  |  |  | }# query params | 
| 2784 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 2785 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 2786 |  |  |  |  |  |  | }else{ | 
| 2787 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 2788 |  |  |  |  |  |  | } | 
| 2789 |  |  |  |  |  |  |  | 
| 2790 |  |  |  |  |  |  |  | 
| 2791 | 0 |  |  |  |  |  | my $_body_data; | 
| 2792 |  |  |  |  |  |  |  | 
| 2793 |  |  |  |  |  |  |  | 
| 2794 |  |  |  |  |  |  |  | 
| 2795 |  |  |  |  |  |  |  | 
| 2796 |  |  |  |  |  |  | # authentication setting, if any | 
| 2797 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2798 |  |  |  |  |  |  |  | 
| 2799 |  |  |  |  |  |  | # make the API Call | 
| 2800 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2801 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2802 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2803 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2804 | 0 |  |  |  |  |  | return; | 
| 2805 |  |  |  |  |  |  | } | 
| 2806 |  |  |  |  |  |  |  | 
| 2807 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2808 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2809 |  |  |  |  |  |  | } | 
| 2810 |  |  |  |  |  |  |  | 
| 2811 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2812 | 0 |  |  |  |  |  | return $_response_object; | 
| 2813 |  |  |  |  |  |  |  | 
| 2814 |  |  |  |  |  |  | } | 
| 2815 |  |  |  |  |  |  | # | 
| 2816 |  |  |  |  |  |  | # PutRecalculateProjectUncompleteWorkToStartAfter | 
| 2817 |  |  |  |  |  |  | # | 
| 2818 |  |  |  |  |  |  | # Recalculate project uncoplete work | 
| 2819 |  |  |  |  |  |  | # | 
| 2820 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2821 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2822 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2823 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 2824 |  |  |  |  |  |  | # @param Date $body  (required) | 
| 2825 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 2826 |  |  |  |  |  |  | # | 
| 2827 |  |  |  |  |  |  | sub PutRecalculateProjectUncompleteWorkToStartAfter { | 
| 2828 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2829 |  |  |  |  |  |  |  | 
| 2830 |  |  |  |  |  |  |  | 
| 2831 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2832 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2833 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutRecalculateProjectUncompleteWorkToStartAfter"); | 
| 2834 |  |  |  |  |  |  | } | 
| 2835 |  |  |  |  |  |  |  | 
| 2836 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 2837 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 2838 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutRecalculateProjectUncompleteWorkToStartAfter"); | 
| 2839 |  |  |  |  |  |  | } | 
| 2840 |  |  |  |  |  |  |  | 
| 2841 |  |  |  |  |  |  |  | 
| 2842 |  |  |  |  |  |  | # parse inputs | 
| 2843 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/recalculate/uncompleteWorkToStartAfter/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 2844 |  |  |  |  |  |  |  | 
| 2845 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2846 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2847 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2848 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2849 |  |  |  |  |  |  |  | 
| 2850 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 2851 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2852 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2853 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2854 |  |  |  |  |  |  |  | 
| 2855 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2856 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 2857 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2858 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2859 |  |  |  |  |  |  | } | 
| 2860 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2861 |  |  |  |  |  |  |  | 
| 2862 |  |  |  |  |  |  | # query params | 
| 2863 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2864 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2865 |  |  |  |  |  |  | }else{ | 
| 2866 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2867 |  |  |  |  |  |  | }# query params | 
| 2868 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2869 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2870 |  |  |  |  |  |  | }else{ | 
| 2871 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2872 |  |  |  |  |  |  | }# query params | 
| 2873 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2874 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2875 |  |  |  |  |  |  | }else{ | 
| 2876 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2877 |  |  |  |  |  |  | }# query params | 
| 2878 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 2879 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 2880 |  |  |  |  |  |  | }else{ | 
| 2881 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 2882 |  |  |  |  |  |  | } | 
| 2883 |  |  |  |  |  |  |  | 
| 2884 |  |  |  |  |  |  |  | 
| 2885 | 0 |  |  |  |  |  | my $_body_data; | 
| 2886 |  |  |  |  |  |  |  | 
| 2887 |  |  |  |  |  |  |  | 
| 2888 |  |  |  |  |  |  | # body params | 
| 2889 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 2890 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 2891 |  |  |  |  |  |  | } | 
| 2892 |  |  |  |  |  |  |  | 
| 2893 |  |  |  |  |  |  | # authentication setting, if any | 
| 2894 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2895 |  |  |  |  |  |  |  | 
| 2896 |  |  |  |  |  |  | # make the API Call | 
| 2897 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2898 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2899 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2900 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2901 | 0 |  |  |  |  |  | return; | 
| 2902 |  |  |  |  |  |  | } | 
| 2903 |  |  |  |  |  |  |  | 
| 2904 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2905 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2906 |  |  |  |  |  |  | } | 
| 2907 |  |  |  |  |  |  |  | 
| 2908 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 2909 | 0 |  |  |  |  |  | return $_response_object; | 
| 2910 |  |  |  |  |  |  |  | 
| 2911 |  |  |  |  |  |  | } | 
| 2912 |  |  |  |  |  |  | # | 
| 2913 |  |  |  |  |  |  | # GetReportPdf | 
| 2914 |  |  |  |  |  |  | # | 
| 2915 |  |  |  |  |  |  | # Returns created report in PDF format. | 
| 2916 |  |  |  |  |  |  | # | 
| 2917 |  |  |  |  |  |  | # @param String $name  (required) | 
| 2918 |  |  |  |  |  |  | # @param String $type  (required) | 
| 2919 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 2920 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 2921 |  |  |  |  |  |  | # @return ResponseMessage | 
| 2922 |  |  |  |  |  |  | # | 
| 2923 |  |  |  |  |  |  | sub GetReportPdf { | 
| 2924 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 2925 |  |  |  |  |  |  |  | 
| 2926 |  |  |  |  |  |  |  | 
| 2927 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 2928 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 2929 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetReportPdf"); | 
| 2930 |  |  |  |  |  |  | } | 
| 2931 |  |  |  |  |  |  |  | 
| 2932 |  |  |  |  |  |  | # verify the required parameter 'type' is set | 
| 2933 | 0 | 0 |  |  |  |  | unless (exists $args{'type'}) { | 
| 2934 | 0 |  |  |  |  |  | croak("Missing the required parameter 'type' when calling GetReportPdf"); | 
| 2935 |  |  |  |  |  |  | } | 
| 2936 |  |  |  |  |  |  |  | 
| 2937 |  |  |  |  |  |  |  | 
| 2938 |  |  |  |  |  |  | # parse inputs | 
| 2939 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/report/?appSid={appSid}&type={type}&storage={storage}&folder={folder}'; | 
| 2940 |  |  |  |  |  |  |  | 
| 2941 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 2942 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 2943 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 2944 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 2945 |  |  |  |  |  |  |  | 
| 2946 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 2947 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 2948 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 2949 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 2950 |  |  |  |  |  |  |  | 
| 2951 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 2952 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | 
| 2953 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 2954 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 2955 |  |  |  |  |  |  | } | 
| 2956 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 2957 |  |  |  |  |  |  |  | 
| 2958 |  |  |  |  |  |  | # query params | 
| 2959 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 2960 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 2961 |  |  |  |  |  |  | }else{ | 
| 2962 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 2963 |  |  |  |  |  |  | }# query params | 
| 2964 | 0 | 0 |  |  |  |  | if ( exists $args{'type'}) { | 
| 2965 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{type}\E/$args{'type'}/g; | 
| 2966 |  |  |  |  |  |  | }else{ | 
| 2967 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]type.*?(?=&|\?|$)//g; | 
| 2968 |  |  |  |  |  |  | }# query params | 
| 2969 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 2970 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 2971 |  |  |  |  |  |  | }else{ | 
| 2972 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 2973 |  |  |  |  |  |  | }# query params | 
| 2974 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 2975 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 2976 |  |  |  |  |  |  | }else{ | 
| 2977 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 2978 |  |  |  |  |  |  | } | 
| 2979 |  |  |  |  |  |  |  | 
| 2980 |  |  |  |  |  |  |  | 
| 2981 | 0 |  |  |  |  |  | my $_body_data; | 
| 2982 |  |  |  |  |  |  |  | 
| 2983 |  |  |  |  |  |  |  | 
| 2984 |  |  |  |  |  |  |  | 
| 2985 |  |  |  |  |  |  |  | 
| 2986 |  |  |  |  |  |  | # authentication setting, if any | 
| 2987 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 2988 |  |  |  |  |  |  |  | 
| 2989 |  |  |  |  |  |  | # make the API Call | 
| 2990 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 2991 |  |  |  |  |  |  | $query_params, $form_params, | 
| 2992 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 2993 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 2994 | 0 |  |  |  |  |  | return; | 
| 2995 |  |  |  |  |  |  | } | 
| 2996 |  |  |  |  |  |  |  | 
| 2997 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 2998 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 2999 |  |  |  |  |  |  | } | 
| 3000 |  |  |  |  |  |  |  | 
| 3001 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | 
| 3002 | 0 |  |  |  |  |  | return $_response_object; | 
| 3003 |  |  |  |  |  |  |  | 
| 3004 |  |  |  |  |  |  | } | 
| 3005 |  |  |  |  |  |  | # | 
| 3006 |  |  |  |  |  |  | # PostProjectResource | 
| 3007 |  |  |  |  |  |  | # | 
| 3008 |  |  |  |  |  |  | # Add a new resource to a project. | 
| 3009 |  |  |  |  |  |  | # | 
| 3010 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3011 |  |  |  |  |  |  | # @param String $resourceName  (optional) | 
| 3012 |  |  |  |  |  |  | # @param String $beforeResourceId  (optional) | 
| 3013 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3014 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3015 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3016 |  |  |  |  |  |  | # @return ResourceItemResponse | 
| 3017 |  |  |  |  |  |  | # | 
| 3018 |  |  |  |  |  |  | sub PostProjectResource { | 
| 3019 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3020 |  |  |  |  |  |  |  | 
| 3021 |  |  |  |  |  |  |  | 
| 3022 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3023 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3024 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostProjectResource"); | 
| 3025 |  |  |  |  |  |  | } | 
| 3026 |  |  |  |  |  |  |  | 
| 3027 |  |  |  |  |  |  |  | 
| 3028 |  |  |  |  |  |  | # parse inputs | 
| 3029 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/?appSid={appSid}&resourceName={resourceName}&beforeResourceId={beforeResourceId}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 3030 |  |  |  |  |  |  |  | 
| 3031 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3032 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3033 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3034 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3035 |  |  |  |  |  |  |  | 
| 3036 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 3037 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3038 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3039 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3040 |  |  |  |  |  |  |  | 
| 3041 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3042 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3043 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3044 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3045 |  |  |  |  |  |  | } | 
| 3046 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3047 |  |  |  |  |  |  |  | 
| 3048 |  |  |  |  |  |  | # query params | 
| 3049 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3050 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3051 |  |  |  |  |  |  | }else{ | 
| 3052 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3053 |  |  |  |  |  |  | }# query params | 
| 3054 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceName'}) { | 
| 3055 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceName}\E/$args{'resourceName'}/g; | 
| 3056 |  |  |  |  |  |  | }else{ | 
| 3057 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceName.*?(?=&|\?|$)//g; | 
| 3058 |  |  |  |  |  |  | }# query params | 
| 3059 | 0 | 0 |  |  |  |  | if ( exists $args{'beforeResourceId'}) { | 
| 3060 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{beforeResourceId}\E/$args{'beforeResourceId'}/g; | 
| 3061 |  |  |  |  |  |  | }else{ | 
| 3062 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]beforeResourceId.*?(?=&|\?|$)//g; | 
| 3063 |  |  |  |  |  |  | }# query params | 
| 3064 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3065 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3066 |  |  |  |  |  |  | }else{ | 
| 3067 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3068 |  |  |  |  |  |  | }# query params | 
| 3069 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3070 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3071 |  |  |  |  |  |  | }else{ | 
| 3072 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3073 |  |  |  |  |  |  | }# query params | 
| 3074 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3075 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3076 |  |  |  |  |  |  | }else{ | 
| 3077 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3078 |  |  |  |  |  |  | } | 
| 3079 |  |  |  |  |  |  |  | 
| 3080 |  |  |  |  |  |  |  | 
| 3081 | 0 |  |  |  |  |  | my $_body_data; | 
| 3082 |  |  |  |  |  |  |  | 
| 3083 |  |  |  |  |  |  |  | 
| 3084 |  |  |  |  |  |  |  | 
| 3085 |  |  |  |  |  |  |  | 
| 3086 |  |  |  |  |  |  | # authentication setting, if any | 
| 3087 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3088 |  |  |  |  |  |  |  | 
| 3089 |  |  |  |  |  |  | # make the API Call | 
| 3090 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3091 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3092 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3093 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3094 | 0 |  |  |  |  |  | return; | 
| 3095 |  |  |  |  |  |  | } | 
| 3096 |  |  |  |  |  |  |  | 
| 3097 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3098 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3099 |  |  |  |  |  |  | } | 
| 3100 |  |  |  |  |  |  |  | 
| 3101 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResourceItemResponse', $response->header('content-type')); | 
| 3102 | 0 |  |  |  |  |  | return $_response_object; | 
| 3103 |  |  |  |  |  |  |  | 
| 3104 |  |  |  |  |  |  | } | 
| 3105 |  |  |  |  |  |  | # | 
| 3106 |  |  |  |  |  |  | # GetProjectResources | 
| 3107 |  |  |  |  |  |  | # | 
| 3108 |  |  |  |  |  |  | # Read project resources. | 
| 3109 |  |  |  |  |  |  | # | 
| 3110 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3111 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3112 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3113 |  |  |  |  |  |  | # @return ResourceItemsResponse | 
| 3114 |  |  |  |  |  |  | # | 
| 3115 |  |  |  |  |  |  | sub GetProjectResources { | 
| 3116 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3117 |  |  |  |  |  |  |  | 
| 3118 |  |  |  |  |  |  |  | 
| 3119 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3120 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3121 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectResources"); | 
| 3122 |  |  |  |  |  |  | } | 
| 3123 |  |  |  |  |  |  |  | 
| 3124 |  |  |  |  |  |  |  | 
| 3125 |  |  |  |  |  |  | # parse inputs | 
| 3126 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 3127 |  |  |  |  |  |  |  | 
| 3128 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3129 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3130 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3131 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3132 |  |  |  |  |  |  |  | 
| 3133 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 3134 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3135 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3136 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3137 |  |  |  |  |  |  |  | 
| 3138 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3139 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3140 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3141 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3142 |  |  |  |  |  |  | } | 
| 3143 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3144 |  |  |  |  |  |  |  | 
| 3145 |  |  |  |  |  |  | # query params | 
| 3146 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3147 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3148 |  |  |  |  |  |  | }else{ | 
| 3149 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3150 |  |  |  |  |  |  | }# query params | 
| 3151 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3152 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3153 |  |  |  |  |  |  | }else{ | 
| 3154 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3155 |  |  |  |  |  |  | }# query params | 
| 3156 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3157 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3158 |  |  |  |  |  |  | }else{ | 
| 3159 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3160 |  |  |  |  |  |  | } | 
| 3161 |  |  |  |  |  |  |  | 
| 3162 |  |  |  |  |  |  |  | 
| 3163 | 0 |  |  |  |  |  | my $_body_data; | 
| 3164 |  |  |  |  |  |  |  | 
| 3165 |  |  |  |  |  |  |  | 
| 3166 |  |  |  |  |  |  |  | 
| 3167 |  |  |  |  |  |  |  | 
| 3168 |  |  |  |  |  |  | # authentication setting, if any | 
| 3169 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3170 |  |  |  |  |  |  |  | 
| 3171 |  |  |  |  |  |  | # make the API Call | 
| 3172 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3173 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3174 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3175 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3176 | 0 |  |  |  |  |  | return; | 
| 3177 |  |  |  |  |  |  | } | 
| 3178 |  |  |  |  |  |  |  | 
| 3179 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3180 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3181 |  |  |  |  |  |  | } | 
| 3182 |  |  |  |  |  |  |  | 
| 3183 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResourceItemsResponse', $response->header('content-type')); | 
| 3184 | 0 |  |  |  |  |  | return $_response_object; | 
| 3185 |  |  |  |  |  |  |  | 
| 3186 |  |  |  |  |  |  | } | 
| 3187 |  |  |  |  |  |  | # | 
| 3188 |  |  |  |  |  |  | # PutProjectResource | 
| 3189 |  |  |  |  |  |  | # | 
| 3190 |  |  |  |  |  |  | # Updates Resource with spectial Uid | 
| 3191 |  |  |  |  |  |  | # | 
| 3192 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3193 |  |  |  |  |  |  | # @param String $resourceUid  (required) | 
| 3194 |  |  |  |  |  |  | # @param String $mode  (optional) | 
| 3195 |  |  |  |  |  |  | # @param Boolean $recalculate  (optional) | 
| 3196 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3197 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3198 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3199 |  |  |  |  |  |  | # @param Resource $body  (required) | 
| 3200 |  |  |  |  |  |  | # @return ResourceResponse | 
| 3201 |  |  |  |  |  |  | # | 
| 3202 |  |  |  |  |  |  | sub PutProjectResource { | 
| 3203 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3204 |  |  |  |  |  |  |  | 
| 3205 |  |  |  |  |  |  |  | 
| 3206 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3207 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3208 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutProjectResource"); | 
| 3209 |  |  |  |  |  |  | } | 
| 3210 |  |  |  |  |  |  |  | 
| 3211 |  |  |  |  |  |  | # verify the required parameter 'resourceUid' is set | 
| 3212 | 0 | 0 |  |  |  |  | unless (exists $args{'resourceUid'}) { | 
| 3213 | 0 |  |  |  |  |  | croak("Missing the required parameter 'resourceUid' when calling PutProjectResource"); | 
| 3214 |  |  |  |  |  |  | } | 
| 3215 |  |  |  |  |  |  |  | 
| 3216 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 3217 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 3218 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutProjectResource"); | 
| 3219 |  |  |  |  |  |  | } | 
| 3220 |  |  |  |  |  |  |  | 
| 3221 |  |  |  |  |  |  |  | 
| 3222 |  |  |  |  |  |  | # parse inputs | 
| 3223 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/{resourceUid}/?appSid={appSid}&mode={mode}&recalculate={recalculate}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 3224 |  |  |  |  |  |  |  | 
| 3225 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3226 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3227 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3228 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3229 |  |  |  |  |  |  |  | 
| 3230 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 3231 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3232 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3233 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3234 |  |  |  |  |  |  |  | 
| 3235 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3236 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3237 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3238 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3239 |  |  |  |  |  |  | } | 
| 3240 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3241 |  |  |  |  |  |  |  | 
| 3242 |  |  |  |  |  |  | # query params | 
| 3243 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3244 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3245 |  |  |  |  |  |  | }else{ | 
| 3246 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3247 |  |  |  |  |  |  | }# query params | 
| 3248 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceUid'}) { | 
| 3249 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceUid}\E/$args{'resourceUid'}/g; | 
| 3250 |  |  |  |  |  |  | }else{ | 
| 3251 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceUid.*?(?=&|\?|$)//g; | 
| 3252 |  |  |  |  |  |  | }# query params | 
| 3253 | 0 | 0 |  |  |  |  | if ( exists $args{'mode'}) { | 
| 3254 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{mode}\E/$args{'mode'}/g; | 
| 3255 |  |  |  |  |  |  | }else{ | 
| 3256 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]mode.*?(?=&|\?|$)//g; | 
| 3257 |  |  |  |  |  |  | }# query params | 
| 3258 | 0 | 0 |  |  |  |  | if ( exists $args{'recalculate'}) { | 
| 3259 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{recalculate}\E/$args{'recalculate'}/g; | 
| 3260 |  |  |  |  |  |  | }else{ | 
| 3261 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]recalculate.*?(?=&|\?|$)//g; | 
| 3262 |  |  |  |  |  |  | }# query params | 
| 3263 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3264 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3265 |  |  |  |  |  |  | }else{ | 
| 3266 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3267 |  |  |  |  |  |  | }# query params | 
| 3268 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3269 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3270 |  |  |  |  |  |  | }else{ | 
| 3271 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3272 |  |  |  |  |  |  | }# query params | 
| 3273 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3274 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3275 |  |  |  |  |  |  | }else{ | 
| 3276 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3277 |  |  |  |  |  |  | } | 
| 3278 |  |  |  |  |  |  |  | 
| 3279 |  |  |  |  |  |  |  | 
| 3280 | 0 |  |  |  |  |  | my $_body_data; | 
| 3281 |  |  |  |  |  |  |  | 
| 3282 |  |  |  |  |  |  |  | 
| 3283 |  |  |  |  |  |  | # body params | 
| 3284 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 3285 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 3286 |  |  |  |  |  |  | } | 
| 3287 |  |  |  |  |  |  |  | 
| 3288 |  |  |  |  |  |  | # authentication setting, if any | 
| 3289 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3290 |  |  |  |  |  |  |  | 
| 3291 |  |  |  |  |  |  | # make the API Call | 
| 3292 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3293 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3294 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3295 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3296 | 0 |  |  |  |  |  | return; | 
| 3297 |  |  |  |  |  |  | } | 
| 3298 |  |  |  |  |  |  |  | 
| 3299 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3300 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3301 |  |  |  |  |  |  | } | 
| 3302 |  |  |  |  |  |  |  | 
| 3303 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResourceResponse', $response->header('content-type')); | 
| 3304 | 0 |  |  |  |  |  | return $_response_object; | 
| 3305 |  |  |  |  |  |  |  | 
| 3306 |  |  |  |  |  |  | } | 
| 3307 |  |  |  |  |  |  | # | 
| 3308 |  |  |  |  |  |  | # GetProjectResource | 
| 3309 |  |  |  |  |  |  | # | 
| 3310 |  |  |  |  |  |  | # Get project resource. | 
| 3311 |  |  |  |  |  |  | # | 
| 3312 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3313 |  |  |  |  |  |  | # @param String $resourceUid  (required) | 
| 3314 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3315 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3316 |  |  |  |  |  |  | # @return ResourceResponse | 
| 3317 |  |  |  |  |  |  | # | 
| 3318 |  |  |  |  |  |  | sub GetProjectResource { | 
| 3319 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3320 |  |  |  |  |  |  |  | 
| 3321 |  |  |  |  |  |  |  | 
| 3322 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3323 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3324 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectResource"); | 
| 3325 |  |  |  |  |  |  | } | 
| 3326 |  |  |  |  |  |  |  | 
| 3327 |  |  |  |  |  |  | # verify the required parameter 'resourceUid' is set | 
| 3328 | 0 | 0 |  |  |  |  | unless (exists $args{'resourceUid'}) { | 
| 3329 | 0 |  |  |  |  |  | croak("Missing the required parameter 'resourceUid' when calling GetProjectResource"); | 
| 3330 |  |  |  |  |  |  | } | 
| 3331 |  |  |  |  |  |  |  | 
| 3332 |  |  |  |  |  |  |  | 
| 3333 |  |  |  |  |  |  | # parse inputs | 
| 3334 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/{resourceUid}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 3335 |  |  |  |  |  |  |  | 
| 3336 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3337 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3338 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3339 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3340 |  |  |  |  |  |  |  | 
| 3341 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 3342 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3343 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3344 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3345 |  |  |  |  |  |  |  | 
| 3346 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3347 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3348 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3349 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3350 |  |  |  |  |  |  | } | 
| 3351 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3352 |  |  |  |  |  |  |  | 
| 3353 |  |  |  |  |  |  | # query params | 
| 3354 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3355 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3356 |  |  |  |  |  |  | }else{ | 
| 3357 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3358 |  |  |  |  |  |  | }# query params | 
| 3359 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceUid'}) { | 
| 3360 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceUid}\E/$args{'resourceUid'}/g; | 
| 3361 |  |  |  |  |  |  | }else{ | 
| 3362 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceUid.*?(?=&|\?|$)//g; | 
| 3363 |  |  |  |  |  |  | }# query params | 
| 3364 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3365 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3366 |  |  |  |  |  |  | }else{ | 
| 3367 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3368 |  |  |  |  |  |  | }# query params | 
| 3369 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3370 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3371 |  |  |  |  |  |  | }else{ | 
| 3372 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3373 |  |  |  |  |  |  | } | 
| 3374 |  |  |  |  |  |  |  | 
| 3375 |  |  |  |  |  |  |  | 
| 3376 | 0 |  |  |  |  |  | my $_body_data; | 
| 3377 |  |  |  |  |  |  |  | 
| 3378 |  |  |  |  |  |  |  | 
| 3379 |  |  |  |  |  |  |  | 
| 3380 |  |  |  |  |  |  |  | 
| 3381 |  |  |  |  |  |  | # authentication setting, if any | 
| 3382 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3383 |  |  |  |  |  |  |  | 
| 3384 |  |  |  |  |  |  | # make the API Call | 
| 3385 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3386 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3387 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3388 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3389 | 0 |  |  |  |  |  | return; | 
| 3390 |  |  |  |  |  |  | } | 
| 3391 |  |  |  |  |  |  |  | 
| 3392 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3393 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3394 |  |  |  |  |  |  | } | 
| 3395 |  |  |  |  |  |  |  | 
| 3396 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResourceResponse', $response->header('content-type')); | 
| 3397 | 0 |  |  |  |  |  | return $_response_object; | 
| 3398 |  |  |  |  |  |  |  | 
| 3399 |  |  |  |  |  |  | } | 
| 3400 |  |  |  |  |  |  | # | 
| 3401 |  |  |  |  |  |  | # DeleteProjectResource | 
| 3402 |  |  |  |  |  |  | # | 
| 3403 |  |  |  |  |  |  | # Deletes a project resource with all references to it | 
| 3404 |  |  |  |  |  |  | # | 
| 3405 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3406 |  |  |  |  |  |  | # @param String $resourceUid  (required) | 
| 3407 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3408 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3409 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3410 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 3411 |  |  |  |  |  |  | # | 
| 3412 |  |  |  |  |  |  | sub DeleteProjectResource { | 
| 3413 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3414 |  |  |  |  |  |  |  | 
| 3415 |  |  |  |  |  |  |  | 
| 3416 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3417 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3418 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteProjectResource"); | 
| 3419 |  |  |  |  |  |  | } | 
| 3420 |  |  |  |  |  |  |  | 
| 3421 |  |  |  |  |  |  | # verify the required parameter 'resourceUid' is set | 
| 3422 | 0 | 0 |  |  |  |  | unless (exists $args{'resourceUid'}) { | 
| 3423 | 0 |  |  |  |  |  | croak("Missing the required parameter 'resourceUid' when calling DeleteProjectResource"); | 
| 3424 |  |  |  |  |  |  | } | 
| 3425 |  |  |  |  |  |  |  | 
| 3426 |  |  |  |  |  |  |  | 
| 3427 |  |  |  |  |  |  | # parse inputs | 
| 3428 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/{resourceUid}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 3429 |  |  |  |  |  |  |  | 
| 3430 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3431 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3432 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3433 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3434 |  |  |  |  |  |  |  | 
| 3435 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 3436 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3437 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3438 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3439 |  |  |  |  |  |  |  | 
| 3440 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3441 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3442 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3443 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3444 |  |  |  |  |  |  | } | 
| 3445 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3446 |  |  |  |  |  |  |  | 
| 3447 |  |  |  |  |  |  | # query params | 
| 3448 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3449 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3450 |  |  |  |  |  |  | }else{ | 
| 3451 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3452 |  |  |  |  |  |  | }# query params | 
| 3453 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceUid'}) { | 
| 3454 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceUid}\E/$args{'resourceUid'}/g; | 
| 3455 |  |  |  |  |  |  | }else{ | 
| 3456 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceUid.*?(?=&|\?|$)//g; | 
| 3457 |  |  |  |  |  |  | }# query params | 
| 3458 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3459 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3460 |  |  |  |  |  |  | }else{ | 
| 3461 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3462 |  |  |  |  |  |  | }# query params | 
| 3463 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3464 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3465 |  |  |  |  |  |  | }else{ | 
| 3466 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3467 |  |  |  |  |  |  | }# query params | 
| 3468 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3469 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3470 |  |  |  |  |  |  | }else{ | 
| 3471 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3472 |  |  |  |  |  |  | } | 
| 3473 |  |  |  |  |  |  |  | 
| 3474 |  |  |  |  |  |  |  | 
| 3475 | 0 |  |  |  |  |  | my $_body_data; | 
| 3476 |  |  |  |  |  |  |  | 
| 3477 |  |  |  |  |  |  |  | 
| 3478 |  |  |  |  |  |  |  | 
| 3479 |  |  |  |  |  |  |  | 
| 3480 |  |  |  |  |  |  | # authentication setting, if any | 
| 3481 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3482 |  |  |  |  |  |  |  | 
| 3483 |  |  |  |  |  |  | # make the API Call | 
| 3484 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3485 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3486 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3487 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3488 | 0 |  |  |  |  |  | return; | 
| 3489 |  |  |  |  |  |  | } | 
| 3490 |  |  |  |  |  |  |  | 
| 3491 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3492 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3493 |  |  |  |  |  |  | } | 
| 3494 |  |  |  |  |  |  |  | 
| 3495 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 3496 | 0 |  |  |  |  |  | return $_response_object; | 
| 3497 |  |  |  |  |  |  |  | 
| 3498 |  |  |  |  |  |  | } | 
| 3499 |  |  |  |  |  |  | # | 
| 3500 |  |  |  |  |  |  | # GetResourceAssignments | 
| 3501 |  |  |  |  |  |  | # | 
| 3502 |  |  |  |  |  |  | # Get resource assignments. | 
| 3503 |  |  |  |  |  |  | # | 
| 3504 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3505 |  |  |  |  |  |  | # @param String $resourceUid  (required) | 
| 3506 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3507 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3508 |  |  |  |  |  |  | # @return AssignmentsResponse | 
| 3509 |  |  |  |  |  |  | # | 
| 3510 |  |  |  |  |  |  | sub GetResourceAssignments { | 
| 3511 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3512 |  |  |  |  |  |  |  | 
| 3513 |  |  |  |  |  |  |  | 
| 3514 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3515 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3516 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetResourceAssignments"); | 
| 3517 |  |  |  |  |  |  | } | 
| 3518 |  |  |  |  |  |  |  | 
| 3519 |  |  |  |  |  |  | # verify the required parameter 'resourceUid' is set | 
| 3520 | 0 | 0 |  |  |  |  | unless (exists $args{'resourceUid'}) { | 
| 3521 | 0 |  |  |  |  |  | croak("Missing the required parameter 'resourceUid' when calling GetResourceAssignments"); | 
| 3522 |  |  |  |  |  |  | } | 
| 3523 |  |  |  |  |  |  |  | 
| 3524 |  |  |  |  |  |  |  | 
| 3525 |  |  |  |  |  |  | # parse inputs | 
| 3526 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/resources/{resourceUid}/assignments/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 3527 |  |  |  |  |  |  |  | 
| 3528 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3529 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3530 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3531 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3532 |  |  |  |  |  |  |  | 
| 3533 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 3534 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3535 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3536 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3537 |  |  |  |  |  |  |  | 
| 3538 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3539 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3540 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3541 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3542 |  |  |  |  |  |  | } | 
| 3543 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3544 |  |  |  |  |  |  |  | 
| 3545 |  |  |  |  |  |  | # query params | 
| 3546 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3547 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3548 |  |  |  |  |  |  | }else{ | 
| 3549 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3550 |  |  |  |  |  |  | }# query params | 
| 3551 | 0 | 0 |  |  |  |  | if ( exists $args{'resourceUid'}) { | 
| 3552 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{resourceUid}\E/$args{'resourceUid'}/g; | 
| 3553 |  |  |  |  |  |  | }else{ | 
| 3554 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]resourceUid.*?(?=&|\?|$)//g; | 
| 3555 |  |  |  |  |  |  | }# query params | 
| 3556 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3557 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3558 |  |  |  |  |  |  | }else{ | 
| 3559 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3560 |  |  |  |  |  |  | }# query params | 
| 3561 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3562 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3563 |  |  |  |  |  |  | }else{ | 
| 3564 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3565 |  |  |  |  |  |  | } | 
| 3566 |  |  |  |  |  |  |  | 
| 3567 |  |  |  |  |  |  |  | 
| 3568 | 0 |  |  |  |  |  | my $_body_data; | 
| 3569 |  |  |  |  |  |  |  | 
| 3570 |  |  |  |  |  |  |  | 
| 3571 |  |  |  |  |  |  |  | 
| 3572 |  |  |  |  |  |  |  | 
| 3573 |  |  |  |  |  |  | # authentication setting, if any | 
| 3574 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3575 |  |  |  |  |  |  |  | 
| 3576 |  |  |  |  |  |  | # make the API Call | 
| 3577 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3578 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3579 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3580 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3581 | 0 |  |  |  |  |  | return; | 
| 3582 |  |  |  |  |  |  | } | 
| 3583 |  |  |  |  |  |  |  | 
| 3584 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3585 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3586 |  |  |  |  |  |  | } | 
| 3587 |  |  |  |  |  |  |  | 
| 3588 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentsResponse', $response->header('content-type')); | 
| 3589 | 0 |  |  |  |  |  | return $_response_object; | 
| 3590 |  |  |  |  |  |  |  | 
| 3591 |  |  |  |  |  |  | } | 
| 3592 |  |  |  |  |  |  | # | 
| 3593 |  |  |  |  |  |  | # GetRiskAnalysisReport | 
| 3594 |  |  |  |  |  |  | # | 
| 3595 |  |  |  |  |  |  | # Create a RiskAnalysis Report | 
| 3596 |  |  |  |  |  |  | # | 
| 3597 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3598 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 3599 |  |  |  |  |  |  | # @param String $type  (optional) | 
| 3600 |  |  |  |  |  |  | # @param String $optimistic  (optional) | 
| 3601 |  |  |  |  |  |  | # @param String $pessimistic  (optional) | 
| 3602 |  |  |  |  |  |  | # @param String $level  (optional) | 
| 3603 |  |  |  |  |  |  | # @param String $iterations  (optional) | 
| 3604 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3605 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3606 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3607 |  |  |  |  |  |  | # @return ResponseMessage | 
| 3608 |  |  |  |  |  |  | # | 
| 3609 |  |  |  |  |  |  | sub GetRiskAnalysisReport { | 
| 3610 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3611 |  |  |  |  |  |  |  | 
| 3612 |  |  |  |  |  |  |  | 
| 3613 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3614 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3615 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetRiskAnalysisReport"); | 
| 3616 |  |  |  |  |  |  | } | 
| 3617 |  |  |  |  |  |  |  | 
| 3618 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 3619 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 3620 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling GetRiskAnalysisReport"); | 
| 3621 |  |  |  |  |  |  | } | 
| 3622 |  |  |  |  |  |  |  | 
| 3623 |  |  |  |  |  |  |  | 
| 3624 |  |  |  |  |  |  | # parse inputs | 
| 3625 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/riskAnalysisReport/?taskUid={taskUid}&appSid={appSid}&type={type}&optimistic={optimistic}&pessimistic={pessimistic}&level={level}&iterations={iterations}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 3626 |  |  |  |  |  |  |  | 
| 3627 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3628 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3629 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3630 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3631 |  |  |  |  |  |  |  | 
| 3632 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 3633 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3634 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3635 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3636 |  |  |  |  |  |  |  | 
| 3637 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3638 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | 
| 3639 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3640 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3641 |  |  |  |  |  |  | } | 
| 3642 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3643 |  |  |  |  |  |  |  | 
| 3644 |  |  |  |  |  |  | # query params | 
| 3645 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3646 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3647 |  |  |  |  |  |  | }else{ | 
| 3648 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3649 |  |  |  |  |  |  | }# query params | 
| 3650 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 3651 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 3652 |  |  |  |  |  |  | }else{ | 
| 3653 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 3654 |  |  |  |  |  |  | }# query params | 
| 3655 | 0 | 0 |  |  |  |  | if ( exists $args{'type'}) { | 
| 3656 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{type}\E/$args{'type'}/g; | 
| 3657 |  |  |  |  |  |  | }else{ | 
| 3658 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]type.*?(?=&|\?|$)//g; | 
| 3659 |  |  |  |  |  |  | }# query params | 
| 3660 | 0 | 0 |  |  |  |  | if ( exists $args{'optimistic'}) { | 
| 3661 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{optimistic}\E/$args{'optimistic'}/g; | 
| 3662 |  |  |  |  |  |  | }else{ | 
| 3663 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]optimistic.*?(?=&|\?|$)//g; | 
| 3664 |  |  |  |  |  |  | }# query params | 
| 3665 | 0 | 0 |  |  |  |  | if ( exists $args{'pessimistic'}) { | 
| 3666 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{pessimistic}\E/$args{'pessimistic'}/g; | 
| 3667 |  |  |  |  |  |  | }else{ | 
| 3668 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]pessimistic.*?(?=&|\?|$)//g; | 
| 3669 |  |  |  |  |  |  | }# query params | 
| 3670 | 0 | 0 |  |  |  |  | if ( exists $args{'level'}) { | 
| 3671 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{level}\E/$args{'level'}/g; | 
| 3672 |  |  |  |  |  |  | }else{ | 
| 3673 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]level.*?(?=&|\?|$)//g; | 
| 3674 |  |  |  |  |  |  | }# query params | 
| 3675 | 0 | 0 |  |  |  |  | if ( exists $args{'iterations'}) { | 
| 3676 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{iterations}\E/$args{'iterations'}/g; | 
| 3677 |  |  |  |  |  |  | }else{ | 
| 3678 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]iterations.*?(?=&|\?|$)//g; | 
| 3679 |  |  |  |  |  |  | }# query params | 
| 3680 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3681 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3682 |  |  |  |  |  |  | }else{ | 
| 3683 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3684 |  |  |  |  |  |  | }# query params | 
| 3685 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3686 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3687 |  |  |  |  |  |  | }else{ | 
| 3688 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3689 |  |  |  |  |  |  | }# query params | 
| 3690 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3691 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3692 |  |  |  |  |  |  | }else{ | 
| 3693 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3694 |  |  |  |  |  |  | } | 
| 3695 |  |  |  |  |  |  |  | 
| 3696 |  |  |  |  |  |  |  | 
| 3697 | 0 |  |  |  |  |  | my $_body_data; | 
| 3698 |  |  |  |  |  |  |  | 
| 3699 |  |  |  |  |  |  |  | 
| 3700 |  |  |  |  |  |  |  | 
| 3701 |  |  |  |  |  |  |  | 
| 3702 |  |  |  |  |  |  | # authentication setting, if any | 
| 3703 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3704 |  |  |  |  |  |  |  | 
| 3705 |  |  |  |  |  |  | # make the API Call | 
| 3706 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3707 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3708 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3709 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3710 | 0 |  |  |  |  |  | return; | 
| 3711 |  |  |  |  |  |  | } | 
| 3712 |  |  |  |  |  |  |  | 
| 3713 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3714 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3715 |  |  |  |  |  |  | } | 
| 3716 |  |  |  |  |  |  |  | 
| 3717 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | 
| 3718 | 0 |  |  |  |  |  | return $_response_object; | 
| 3719 |  |  |  |  |  |  |  | 
| 3720 |  |  |  |  |  |  | } | 
| 3721 |  |  |  |  |  |  | # | 
| 3722 |  |  |  |  |  |  | # GetTaskLinks | 
| 3723 |  |  |  |  |  |  | # | 
| 3724 |  |  |  |  |  |  | # Read task links. | 
| 3725 |  |  |  |  |  |  | # | 
| 3726 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3727 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3728 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3729 |  |  |  |  |  |  | # @return TaskLinksResponse | 
| 3730 |  |  |  |  |  |  | # | 
| 3731 |  |  |  |  |  |  | sub GetTaskLinks { | 
| 3732 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3733 |  |  |  |  |  |  |  | 
| 3734 |  |  |  |  |  |  |  | 
| 3735 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3736 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3737 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetTaskLinks"); | 
| 3738 |  |  |  |  |  |  | } | 
| 3739 |  |  |  |  |  |  |  | 
| 3740 |  |  |  |  |  |  |  | 
| 3741 |  |  |  |  |  |  | # parse inputs | 
| 3742 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/taskLinks/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 3743 |  |  |  |  |  |  |  | 
| 3744 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3745 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3746 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3747 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3748 |  |  |  |  |  |  |  | 
| 3749 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 3750 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3751 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3752 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3753 |  |  |  |  |  |  |  | 
| 3754 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3755 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3756 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3757 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3758 |  |  |  |  |  |  | } | 
| 3759 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3760 |  |  |  |  |  |  |  | 
| 3761 |  |  |  |  |  |  | # query params | 
| 3762 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3763 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3764 |  |  |  |  |  |  | }else{ | 
| 3765 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3766 |  |  |  |  |  |  | }# query params | 
| 3767 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3768 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3769 |  |  |  |  |  |  | }else{ | 
| 3770 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3771 |  |  |  |  |  |  | }# query params | 
| 3772 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3773 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3774 |  |  |  |  |  |  | }else{ | 
| 3775 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3776 |  |  |  |  |  |  | } | 
| 3777 |  |  |  |  |  |  |  | 
| 3778 |  |  |  |  |  |  |  | 
| 3779 | 0 |  |  |  |  |  | my $_body_data; | 
| 3780 |  |  |  |  |  |  |  | 
| 3781 |  |  |  |  |  |  |  | 
| 3782 |  |  |  |  |  |  |  | 
| 3783 |  |  |  |  |  |  |  | 
| 3784 |  |  |  |  |  |  | # authentication setting, if any | 
| 3785 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3786 |  |  |  |  |  |  |  | 
| 3787 |  |  |  |  |  |  | # make the API Call | 
| 3788 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3789 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3790 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3791 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3792 | 0 |  |  |  |  |  | return; | 
| 3793 |  |  |  |  |  |  | } | 
| 3794 |  |  |  |  |  |  |  | 
| 3795 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3796 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3797 |  |  |  |  |  |  | } | 
| 3798 |  |  |  |  |  |  |  | 
| 3799 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskLinksResponse', $response->header('content-type')); | 
| 3800 | 0 |  |  |  |  |  | return $_response_object; | 
| 3801 |  |  |  |  |  |  |  | 
| 3802 |  |  |  |  |  |  | } | 
| 3803 |  |  |  |  |  |  | # | 
| 3804 |  |  |  |  |  |  | # PostTaskLink | 
| 3805 |  |  |  |  |  |  | # | 
| 3806 |  |  |  |  |  |  | # Adds a new task link to a project. | 
| 3807 |  |  |  |  |  |  | # | 
| 3808 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3809 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3810 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3811 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3812 |  |  |  |  |  |  | # @param TaskLink $body  (required) | 
| 3813 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 3814 |  |  |  |  |  |  | # | 
| 3815 |  |  |  |  |  |  | sub PostTaskLink { | 
| 3816 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3817 |  |  |  |  |  |  |  | 
| 3818 |  |  |  |  |  |  |  | 
| 3819 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3820 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3821 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostTaskLink"); | 
| 3822 |  |  |  |  |  |  | } | 
| 3823 |  |  |  |  |  |  |  | 
| 3824 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 3825 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 3826 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PostTaskLink"); | 
| 3827 |  |  |  |  |  |  | } | 
| 3828 |  |  |  |  |  |  |  | 
| 3829 |  |  |  |  |  |  |  | 
| 3830 |  |  |  |  |  |  | # parse inputs | 
| 3831 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/taskLinks/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 3832 |  |  |  |  |  |  |  | 
| 3833 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3834 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3835 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3836 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3837 |  |  |  |  |  |  |  | 
| 3838 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 3839 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3840 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3841 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3842 |  |  |  |  |  |  |  | 
| 3843 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3844 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3845 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3846 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3847 |  |  |  |  |  |  | } | 
| 3848 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3849 |  |  |  |  |  |  |  | 
| 3850 |  |  |  |  |  |  | # query params | 
| 3851 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3852 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3853 |  |  |  |  |  |  | }else{ | 
| 3854 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3855 |  |  |  |  |  |  | }# query params | 
| 3856 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3857 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3858 |  |  |  |  |  |  | }else{ | 
| 3859 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3860 |  |  |  |  |  |  | }# query params | 
| 3861 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3862 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3863 |  |  |  |  |  |  | }else{ | 
| 3864 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3865 |  |  |  |  |  |  | }# query params | 
| 3866 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3867 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3868 |  |  |  |  |  |  | }else{ | 
| 3869 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3870 |  |  |  |  |  |  | } | 
| 3871 |  |  |  |  |  |  |  | 
| 3872 |  |  |  |  |  |  |  | 
| 3873 | 0 |  |  |  |  |  | my $_body_data; | 
| 3874 |  |  |  |  |  |  |  | 
| 3875 |  |  |  |  |  |  |  | 
| 3876 |  |  |  |  |  |  | # body params | 
| 3877 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 3878 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 3879 |  |  |  |  |  |  | } | 
| 3880 |  |  |  |  |  |  |  | 
| 3881 |  |  |  |  |  |  | # authentication setting, if any | 
| 3882 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3883 |  |  |  |  |  |  |  | 
| 3884 |  |  |  |  |  |  | # make the API Call | 
| 3885 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3886 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3887 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3888 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3889 | 0 |  |  |  |  |  | return; | 
| 3890 |  |  |  |  |  |  | } | 
| 3891 |  |  |  |  |  |  |  | 
| 3892 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 3893 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 3894 |  |  |  |  |  |  | } | 
| 3895 |  |  |  |  |  |  |  | 
| 3896 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 3897 | 0 |  |  |  |  |  | return $_response_object; | 
| 3898 |  |  |  |  |  |  |  | 
| 3899 |  |  |  |  |  |  | } | 
| 3900 |  |  |  |  |  |  | # | 
| 3901 |  |  |  |  |  |  | # PutTaskLink | 
| 3902 |  |  |  |  |  |  | # | 
| 3903 |  |  |  |  |  |  | # Updates task link. | 
| 3904 |  |  |  |  |  |  | # | 
| 3905 |  |  |  |  |  |  | # @param String $name  (required) | 
| 3906 |  |  |  |  |  |  | # @param String $index  (required) | 
| 3907 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 3908 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 3909 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 3910 |  |  |  |  |  |  | # @param TaskLink $body  (required) | 
| 3911 |  |  |  |  |  |  | # @return TaskLinkResponse | 
| 3912 |  |  |  |  |  |  | # | 
| 3913 |  |  |  |  |  |  | sub PutTaskLink { | 
| 3914 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 3915 |  |  |  |  |  |  |  | 
| 3916 |  |  |  |  |  |  |  | 
| 3917 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 3918 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 3919 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutTaskLink"); | 
| 3920 |  |  |  |  |  |  | } | 
| 3921 |  |  |  |  |  |  |  | 
| 3922 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 3923 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 3924 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling PutTaskLink"); | 
| 3925 |  |  |  |  |  |  | } | 
| 3926 |  |  |  |  |  |  |  | 
| 3927 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 3928 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 3929 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutTaskLink"); | 
| 3930 |  |  |  |  |  |  | } | 
| 3931 |  |  |  |  |  |  |  | 
| 3932 |  |  |  |  |  |  |  | 
| 3933 |  |  |  |  |  |  | # parse inputs | 
| 3934 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/taskLinks/{index}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 3935 |  |  |  |  |  |  |  | 
| 3936 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 3937 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 3938 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 3939 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 3940 |  |  |  |  |  |  |  | 
| 3941 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 3942 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 3943 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 3944 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 3945 |  |  |  |  |  |  |  | 
| 3946 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 3947 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 3948 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 3949 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 3950 |  |  |  |  |  |  | } | 
| 3951 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 3952 |  |  |  |  |  |  |  | 
| 3953 |  |  |  |  |  |  | # query params | 
| 3954 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 3955 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 3956 |  |  |  |  |  |  | }else{ | 
| 3957 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 3958 |  |  |  |  |  |  | }# query params | 
| 3959 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 3960 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 3961 |  |  |  |  |  |  | }else{ | 
| 3962 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 3963 |  |  |  |  |  |  | }# query params | 
| 3964 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 3965 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 3966 |  |  |  |  |  |  | }else{ | 
| 3967 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 3968 |  |  |  |  |  |  | }# query params | 
| 3969 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 3970 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 3971 |  |  |  |  |  |  | }else{ | 
| 3972 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 3973 |  |  |  |  |  |  | }# query params | 
| 3974 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 3975 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 3976 |  |  |  |  |  |  | }else{ | 
| 3977 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 3978 |  |  |  |  |  |  | } | 
| 3979 |  |  |  |  |  |  |  | 
| 3980 |  |  |  |  |  |  |  | 
| 3981 | 0 |  |  |  |  |  | my $_body_data; | 
| 3982 |  |  |  |  |  |  |  | 
| 3983 |  |  |  |  |  |  |  | 
| 3984 |  |  |  |  |  |  | # body params | 
| 3985 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 3986 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 3987 |  |  |  |  |  |  | } | 
| 3988 |  |  |  |  |  |  |  | 
| 3989 |  |  |  |  |  |  | # authentication setting, if any | 
| 3990 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 3991 |  |  |  |  |  |  |  | 
| 3992 |  |  |  |  |  |  | # make the API Call | 
| 3993 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 3994 |  |  |  |  |  |  | $query_params, $form_params, | 
| 3995 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 3996 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 3997 | 0 |  |  |  |  |  | return; | 
| 3998 |  |  |  |  |  |  | } | 
| 3999 |  |  |  |  |  |  |  | 
| 4000 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4001 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4002 |  |  |  |  |  |  | } | 
| 4003 |  |  |  |  |  |  |  | 
| 4004 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskLinkResponse', $response->header('content-type')); | 
| 4005 | 0 |  |  |  |  |  | return $_response_object; | 
| 4006 |  |  |  |  |  |  |  | 
| 4007 |  |  |  |  |  |  | } | 
| 4008 |  |  |  |  |  |  | # | 
| 4009 |  |  |  |  |  |  | # DeleteTaskLink | 
| 4010 |  |  |  |  |  |  | # | 
| 4011 |  |  |  |  |  |  | # Updates task link. | 
| 4012 |  |  |  |  |  |  | # | 
| 4013 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4014 |  |  |  |  |  |  | # @param String $index  (required) | 
| 4015 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4016 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4017 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 4018 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 4019 |  |  |  |  |  |  | # | 
| 4020 |  |  |  |  |  |  | sub DeleteTaskLink { | 
| 4021 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4022 |  |  |  |  |  |  |  | 
| 4023 |  |  |  |  |  |  |  | 
| 4024 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4025 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4026 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteTaskLink"); | 
| 4027 |  |  |  |  |  |  | } | 
| 4028 |  |  |  |  |  |  |  | 
| 4029 |  |  |  |  |  |  | # verify the required parameter 'index' is set | 
| 4030 | 0 | 0 |  |  |  |  | unless (exists $args{'index'}) { | 
| 4031 | 0 |  |  |  |  |  | croak("Missing the required parameter 'index' when calling DeleteTaskLink"); | 
| 4032 |  |  |  |  |  |  | } | 
| 4033 |  |  |  |  |  |  |  | 
| 4034 |  |  |  |  |  |  |  | 
| 4035 |  |  |  |  |  |  | # parse inputs | 
| 4036 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/taskLinks/{index}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 4037 |  |  |  |  |  |  |  | 
| 4038 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4039 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4040 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4041 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4042 |  |  |  |  |  |  |  | 
| 4043 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 4044 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4045 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4046 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4047 |  |  |  |  |  |  |  | 
| 4048 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4049 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4050 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4051 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4052 |  |  |  |  |  |  | } | 
| 4053 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4054 |  |  |  |  |  |  |  | 
| 4055 |  |  |  |  |  |  | # query params | 
| 4056 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4057 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4058 |  |  |  |  |  |  | }else{ | 
| 4059 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4060 |  |  |  |  |  |  | }# query params | 
| 4061 | 0 | 0 |  |  |  |  | if ( exists $args{'index'}) { | 
| 4062 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{index}\E/$args{'index'}/g; | 
| 4063 |  |  |  |  |  |  | }else{ | 
| 4064 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]index.*?(?=&|\?|$)//g; | 
| 4065 |  |  |  |  |  |  | }# query params | 
| 4066 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4067 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4068 |  |  |  |  |  |  | }else{ | 
| 4069 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4070 |  |  |  |  |  |  | }# query params | 
| 4071 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4072 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4073 |  |  |  |  |  |  | }else{ | 
| 4074 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4075 |  |  |  |  |  |  | }# query params | 
| 4076 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 4077 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 4078 |  |  |  |  |  |  | }else{ | 
| 4079 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 4080 |  |  |  |  |  |  | } | 
| 4081 |  |  |  |  |  |  |  | 
| 4082 |  |  |  |  |  |  |  | 
| 4083 | 0 |  |  |  |  |  | my $_body_data; | 
| 4084 |  |  |  |  |  |  |  | 
| 4085 |  |  |  |  |  |  |  | 
| 4086 |  |  |  |  |  |  |  | 
| 4087 |  |  |  |  |  |  |  | 
| 4088 |  |  |  |  |  |  | # authentication setting, if any | 
| 4089 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4090 |  |  |  |  |  |  |  | 
| 4091 |  |  |  |  |  |  | # make the API Call | 
| 4092 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4093 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4094 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4095 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4096 | 0 |  |  |  |  |  | return; | 
| 4097 |  |  |  |  |  |  | } | 
| 4098 |  |  |  |  |  |  |  | 
| 4099 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4100 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4101 |  |  |  |  |  |  | } | 
| 4102 |  |  |  |  |  |  |  | 
| 4103 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 4104 | 0 |  |  |  |  |  | return $_response_object; | 
| 4105 |  |  |  |  |  |  |  | 
| 4106 |  |  |  |  |  |  | } | 
| 4107 |  |  |  |  |  |  | # | 
| 4108 |  |  |  |  |  |  | # GetProjectTasks | 
| 4109 |  |  |  |  |  |  | # | 
| 4110 |  |  |  |  |  |  | # Read project task items. | 
| 4111 |  |  |  |  |  |  | # | 
| 4112 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4113 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4114 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4115 |  |  |  |  |  |  | # @return TaskItemsResponse | 
| 4116 |  |  |  |  |  |  | # | 
| 4117 |  |  |  |  |  |  | sub GetProjectTasks { | 
| 4118 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4119 |  |  |  |  |  |  |  | 
| 4120 |  |  |  |  |  |  |  | 
| 4121 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4122 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4123 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectTasks"); | 
| 4124 |  |  |  |  |  |  | } | 
| 4125 |  |  |  |  |  |  |  | 
| 4126 |  |  |  |  |  |  |  | 
| 4127 |  |  |  |  |  |  | # parse inputs | 
| 4128 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 4129 |  |  |  |  |  |  |  | 
| 4130 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4131 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4132 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4133 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4134 |  |  |  |  |  |  |  | 
| 4135 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 4136 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4137 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4138 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4139 |  |  |  |  |  |  |  | 
| 4140 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4141 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4142 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4143 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4144 |  |  |  |  |  |  | } | 
| 4145 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4146 |  |  |  |  |  |  |  | 
| 4147 |  |  |  |  |  |  | # query params | 
| 4148 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4149 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4150 |  |  |  |  |  |  | }else{ | 
| 4151 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4152 |  |  |  |  |  |  | }# query params | 
| 4153 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4154 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4155 |  |  |  |  |  |  | }else{ | 
| 4156 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4157 |  |  |  |  |  |  | }# query params | 
| 4158 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4159 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4160 |  |  |  |  |  |  | }else{ | 
| 4161 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4162 |  |  |  |  |  |  | } | 
| 4163 |  |  |  |  |  |  |  | 
| 4164 |  |  |  |  |  |  |  | 
| 4165 | 0 |  |  |  |  |  | my $_body_data; | 
| 4166 |  |  |  |  |  |  |  | 
| 4167 |  |  |  |  |  |  |  | 
| 4168 |  |  |  |  |  |  |  | 
| 4169 |  |  |  |  |  |  |  | 
| 4170 |  |  |  |  |  |  | # authentication setting, if any | 
| 4171 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4172 |  |  |  |  |  |  |  | 
| 4173 |  |  |  |  |  |  | # make the API Call | 
| 4174 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4175 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4176 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4177 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4178 | 0 |  |  |  |  |  | return; | 
| 4179 |  |  |  |  |  |  | } | 
| 4180 |  |  |  |  |  |  |  | 
| 4181 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4182 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4183 |  |  |  |  |  |  | } | 
| 4184 |  |  |  |  |  |  |  | 
| 4185 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskItemsResponse', $response->header('content-type')); | 
| 4186 | 0 |  |  |  |  |  | return $_response_object; | 
| 4187 |  |  |  |  |  |  |  | 
| 4188 |  |  |  |  |  |  | } | 
| 4189 |  |  |  |  |  |  | # | 
| 4190 |  |  |  |  |  |  | # PostProjectTask | 
| 4191 |  |  |  |  |  |  | # | 
| 4192 |  |  |  |  |  |  | # Add a new task to a project. | 
| 4193 |  |  |  |  |  |  | # | 
| 4194 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4195 |  |  |  |  |  |  | # @param String $taskName  (optional) | 
| 4196 |  |  |  |  |  |  | # @param String $beforeTaskId  (optional) | 
| 4197 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 4198 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4199 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4200 |  |  |  |  |  |  | # @return TaskItemResponse | 
| 4201 |  |  |  |  |  |  | # | 
| 4202 |  |  |  |  |  |  | sub PostProjectTask { | 
| 4203 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4204 |  |  |  |  |  |  |  | 
| 4205 |  |  |  |  |  |  |  | 
| 4206 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4207 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4208 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PostProjectTask"); | 
| 4209 |  |  |  |  |  |  | } | 
| 4210 |  |  |  |  |  |  |  | 
| 4211 |  |  |  |  |  |  |  | 
| 4212 |  |  |  |  |  |  | # parse inputs | 
| 4213 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/?appSid={appSid}&taskName={taskName}&beforeTaskId={beforeTaskId}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 4214 |  |  |  |  |  |  |  | 
| 4215 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4216 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4217 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4218 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4219 |  |  |  |  |  |  |  | 
| 4220 | 0 |  |  |  |  |  | my $_method = 'POST'; | 
| 4221 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4222 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4223 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4224 |  |  |  |  |  |  |  | 
| 4225 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4226 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4227 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4228 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4229 |  |  |  |  |  |  | } | 
| 4230 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4231 |  |  |  |  |  |  |  | 
| 4232 |  |  |  |  |  |  | # query params | 
| 4233 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4234 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4235 |  |  |  |  |  |  | }else{ | 
| 4236 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4237 |  |  |  |  |  |  | }# query params | 
| 4238 | 0 | 0 |  |  |  |  | if ( exists $args{'taskName'}) { | 
| 4239 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskName}\E/$args{'taskName'}/g; | 
| 4240 |  |  |  |  |  |  | }else{ | 
| 4241 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskName.*?(?=&|\?|$)//g; | 
| 4242 |  |  |  |  |  |  | }# query params | 
| 4243 | 0 | 0 |  |  |  |  | if ( exists $args{'beforeTaskId'}) { | 
| 4244 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{beforeTaskId}\E/$args{'beforeTaskId'}/g; | 
| 4245 |  |  |  |  |  |  | }else{ | 
| 4246 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]beforeTaskId.*?(?=&|\?|$)//g; | 
| 4247 |  |  |  |  |  |  | }# query params | 
| 4248 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 4249 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 4250 |  |  |  |  |  |  | }else{ | 
| 4251 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 4252 |  |  |  |  |  |  | }# query params | 
| 4253 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4254 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4255 |  |  |  |  |  |  | }else{ | 
| 4256 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4257 |  |  |  |  |  |  | }# query params | 
| 4258 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4259 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4260 |  |  |  |  |  |  | }else{ | 
| 4261 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4262 |  |  |  |  |  |  | } | 
| 4263 |  |  |  |  |  |  |  | 
| 4264 |  |  |  |  |  |  |  | 
| 4265 | 0 |  |  |  |  |  | my $_body_data; | 
| 4266 |  |  |  |  |  |  |  | 
| 4267 |  |  |  |  |  |  |  | 
| 4268 |  |  |  |  |  |  |  | 
| 4269 |  |  |  |  |  |  |  | 
| 4270 |  |  |  |  |  |  | # authentication setting, if any | 
| 4271 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4272 |  |  |  |  |  |  |  | 
| 4273 |  |  |  |  |  |  | # make the API Call | 
| 4274 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4275 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4276 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4277 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4278 | 0 |  |  |  |  |  | return; | 
| 4279 |  |  |  |  |  |  | } | 
| 4280 |  |  |  |  |  |  |  | 
| 4281 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4282 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4283 |  |  |  |  |  |  | } | 
| 4284 |  |  |  |  |  |  |  | 
| 4285 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskItemResponse', $response->header('content-type')); | 
| 4286 | 0 |  |  |  |  |  | return $_response_object; | 
| 4287 |  |  |  |  |  |  |  | 
| 4288 |  |  |  |  |  |  | } | 
| 4289 |  |  |  |  |  |  | # | 
| 4290 |  |  |  |  |  |  | # PutProjectTask | 
| 4291 |  |  |  |  |  |  | # | 
| 4292 |  |  |  |  |  |  | # Updates special task getting by task UID | 
| 4293 |  |  |  |  |  |  | # | 
| 4294 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4295 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4296 |  |  |  |  |  |  | # @param String $mode  (optional) | 
| 4297 |  |  |  |  |  |  | # @param Boolean $recalculate  (optional) | 
| 4298 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4299 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4300 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 4301 |  |  |  |  |  |  | # @param Task $body  (required) | 
| 4302 |  |  |  |  |  |  | # @return TaskResponse | 
| 4303 |  |  |  |  |  |  | # | 
| 4304 |  |  |  |  |  |  | sub PutProjectTask { | 
| 4305 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4306 |  |  |  |  |  |  |  | 
| 4307 |  |  |  |  |  |  |  | 
| 4308 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4309 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4310 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutProjectTask"); | 
| 4311 |  |  |  |  |  |  | } | 
| 4312 |  |  |  |  |  |  |  | 
| 4313 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4314 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4315 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling PutProjectTask"); | 
| 4316 |  |  |  |  |  |  | } | 
| 4317 |  |  |  |  |  |  |  | 
| 4318 |  |  |  |  |  |  | # verify the required parameter 'body' is set | 
| 4319 | 0 | 0 |  |  |  |  | unless (exists $args{'body'}) { | 
| 4320 | 0 |  |  |  |  |  | croak("Missing the required parameter 'body' when calling PutProjectTask"); | 
| 4321 |  |  |  |  |  |  | } | 
| 4322 |  |  |  |  |  |  |  | 
| 4323 |  |  |  |  |  |  |  | 
| 4324 |  |  |  |  |  |  | # parse inputs | 
| 4325 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/?appSid={appSid}&mode={mode}&recalculate={recalculate}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 4326 |  |  |  |  |  |  |  | 
| 4327 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4328 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4329 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4330 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4331 |  |  |  |  |  |  |  | 
| 4332 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 4333 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4334 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4335 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4336 |  |  |  |  |  |  |  | 
| 4337 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4338 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4339 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4340 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4341 |  |  |  |  |  |  | } | 
| 4342 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4343 |  |  |  |  |  |  |  | 
| 4344 |  |  |  |  |  |  | # query params | 
| 4345 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4346 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4347 |  |  |  |  |  |  | }else{ | 
| 4348 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4349 |  |  |  |  |  |  | }# query params | 
| 4350 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4351 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4352 |  |  |  |  |  |  | }else{ | 
| 4353 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4354 |  |  |  |  |  |  | }# query params | 
| 4355 | 0 | 0 |  |  |  |  | if ( exists $args{'mode'}) { | 
| 4356 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{mode}\E/$args{'mode'}/g; | 
| 4357 |  |  |  |  |  |  | }else{ | 
| 4358 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]mode.*?(?=&|\?|$)//g; | 
| 4359 |  |  |  |  |  |  | }# query params | 
| 4360 | 0 | 0 |  |  |  |  | if ( exists $args{'recalculate'}) { | 
| 4361 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{recalculate}\E/$args{'recalculate'}/g; | 
| 4362 |  |  |  |  |  |  | }else{ | 
| 4363 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]recalculate.*?(?=&|\?|$)//g; | 
| 4364 |  |  |  |  |  |  | }# query params | 
| 4365 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4366 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4367 |  |  |  |  |  |  | }else{ | 
| 4368 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4369 |  |  |  |  |  |  | }# query params | 
| 4370 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4371 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4372 |  |  |  |  |  |  | }else{ | 
| 4373 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4374 |  |  |  |  |  |  | }# query params | 
| 4375 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 4376 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 4377 |  |  |  |  |  |  | }else{ | 
| 4378 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 4379 |  |  |  |  |  |  | } | 
| 4380 |  |  |  |  |  |  |  | 
| 4381 |  |  |  |  |  |  |  | 
| 4382 | 0 |  |  |  |  |  | my $_body_data; | 
| 4383 |  |  |  |  |  |  |  | 
| 4384 |  |  |  |  |  |  |  | 
| 4385 |  |  |  |  |  |  | # body params | 
| 4386 | 0 | 0 |  |  |  |  | if ( exists $args{'body'}) { | 
| 4387 | 0 |  |  |  |  |  | $_body_data = $args{'body'}; | 
| 4388 |  |  |  |  |  |  | } | 
| 4389 |  |  |  |  |  |  |  | 
| 4390 |  |  |  |  |  |  | # authentication setting, if any | 
| 4391 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4392 |  |  |  |  |  |  |  | 
| 4393 |  |  |  |  |  |  | # make the API Call | 
| 4394 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4395 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4396 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4397 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4398 | 0 |  |  |  |  |  | return; | 
| 4399 |  |  |  |  |  |  | } | 
| 4400 |  |  |  |  |  |  |  | 
| 4401 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4402 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4403 |  |  |  |  |  |  | } | 
| 4404 |  |  |  |  |  |  |  | 
| 4405 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskResponse', $response->header('content-type')); | 
| 4406 | 0 |  |  |  |  |  | return $_response_object; | 
| 4407 |  |  |  |  |  |  |  | 
| 4408 |  |  |  |  |  |  | } | 
| 4409 |  |  |  |  |  |  | # | 
| 4410 |  |  |  |  |  |  | # GetProjectTask | 
| 4411 |  |  |  |  |  |  | # | 
| 4412 |  |  |  |  |  |  | # Read project task. | 
| 4413 |  |  |  |  |  |  | # | 
| 4414 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4415 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4416 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4417 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4418 |  |  |  |  |  |  | # @return TaskResponse | 
| 4419 |  |  |  |  |  |  | # | 
| 4420 |  |  |  |  |  |  | sub GetProjectTask { | 
| 4421 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4422 |  |  |  |  |  |  |  | 
| 4423 |  |  |  |  |  |  |  | 
| 4424 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4425 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4426 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectTask"); | 
| 4427 |  |  |  |  |  |  | } | 
| 4428 |  |  |  |  |  |  |  | 
| 4429 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4430 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4431 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling GetProjectTask"); | 
| 4432 |  |  |  |  |  |  | } | 
| 4433 |  |  |  |  |  |  |  | 
| 4434 |  |  |  |  |  |  |  | 
| 4435 |  |  |  |  |  |  | # parse inputs | 
| 4436 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 4437 |  |  |  |  |  |  |  | 
| 4438 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4439 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4440 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4441 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4442 |  |  |  |  |  |  |  | 
| 4443 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 4444 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4445 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4446 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4447 |  |  |  |  |  |  |  | 
| 4448 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4449 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4450 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4451 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4452 |  |  |  |  |  |  | } | 
| 4453 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4454 |  |  |  |  |  |  |  | 
| 4455 |  |  |  |  |  |  | # query params | 
| 4456 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4457 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4458 |  |  |  |  |  |  | }else{ | 
| 4459 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4460 |  |  |  |  |  |  | }# query params | 
| 4461 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4462 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4463 |  |  |  |  |  |  | }else{ | 
| 4464 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4465 |  |  |  |  |  |  | }# query params | 
| 4466 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4467 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4468 |  |  |  |  |  |  | }else{ | 
| 4469 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4470 |  |  |  |  |  |  | }# query params | 
| 4471 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4472 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4473 |  |  |  |  |  |  | }else{ | 
| 4474 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4475 |  |  |  |  |  |  | } | 
| 4476 |  |  |  |  |  |  |  | 
| 4477 |  |  |  |  |  |  |  | 
| 4478 | 0 |  |  |  |  |  | my $_body_data; | 
| 4479 |  |  |  |  |  |  |  | 
| 4480 |  |  |  |  |  |  |  | 
| 4481 |  |  |  |  |  |  |  | 
| 4482 |  |  |  |  |  |  |  | 
| 4483 |  |  |  |  |  |  | # authentication setting, if any | 
| 4484 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4485 |  |  |  |  |  |  |  | 
| 4486 |  |  |  |  |  |  | # make the API Call | 
| 4487 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4488 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4489 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4490 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4491 | 0 |  |  |  |  |  | return; | 
| 4492 |  |  |  |  |  |  | } | 
| 4493 |  |  |  |  |  |  |  | 
| 4494 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4495 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4496 |  |  |  |  |  |  | } | 
| 4497 |  |  |  |  |  |  |  | 
| 4498 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TaskResponse', $response->header('content-type')); | 
| 4499 | 0 |  |  |  |  |  | return $_response_object; | 
| 4500 |  |  |  |  |  |  |  | 
| 4501 |  |  |  |  |  |  | } | 
| 4502 |  |  |  |  |  |  | # | 
| 4503 |  |  |  |  |  |  | # DeleteProjectTask | 
| 4504 |  |  |  |  |  |  | # | 
| 4505 |  |  |  |  |  |  | # Deletes a project task with all references to it and rebuilds tasks tree. | 
| 4506 |  |  |  |  |  |  | # | 
| 4507 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4508 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4509 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4510 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4511 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 4512 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 4513 |  |  |  |  |  |  | # | 
| 4514 |  |  |  |  |  |  | sub DeleteProjectTask { | 
| 4515 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4516 |  |  |  |  |  |  |  | 
| 4517 |  |  |  |  |  |  |  | 
| 4518 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4519 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4520 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling DeleteProjectTask"); | 
| 4521 |  |  |  |  |  |  | } | 
| 4522 |  |  |  |  |  |  |  | 
| 4523 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4524 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4525 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling DeleteProjectTask"); | 
| 4526 |  |  |  |  |  |  | } | 
| 4527 |  |  |  |  |  |  |  | 
| 4528 |  |  |  |  |  |  |  | 
| 4529 |  |  |  |  |  |  | # parse inputs | 
| 4530 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; | 
| 4531 |  |  |  |  |  |  |  | 
| 4532 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4533 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4534 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4535 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4536 |  |  |  |  |  |  |  | 
| 4537 | 0 |  |  |  |  |  | my $_method = 'DELETE'; | 
| 4538 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4539 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4540 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4541 |  |  |  |  |  |  |  | 
| 4542 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4543 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4544 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4545 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4546 |  |  |  |  |  |  | } | 
| 4547 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4548 |  |  |  |  |  |  |  | 
| 4549 |  |  |  |  |  |  | # query params | 
| 4550 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4551 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4552 |  |  |  |  |  |  | }else{ | 
| 4553 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4554 |  |  |  |  |  |  | }# query params | 
| 4555 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4556 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4557 |  |  |  |  |  |  | }else{ | 
| 4558 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4559 |  |  |  |  |  |  | }# query params | 
| 4560 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4561 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4562 |  |  |  |  |  |  | }else{ | 
| 4563 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4564 |  |  |  |  |  |  | }# query params | 
| 4565 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4566 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4567 |  |  |  |  |  |  | }else{ | 
| 4568 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4569 |  |  |  |  |  |  | }# query params | 
| 4570 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 4571 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 4572 |  |  |  |  |  |  | }else{ | 
| 4573 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 4574 |  |  |  |  |  |  | } | 
| 4575 |  |  |  |  |  |  |  | 
| 4576 |  |  |  |  |  |  |  | 
| 4577 | 0 |  |  |  |  |  | my $_body_data; | 
| 4578 |  |  |  |  |  |  |  | 
| 4579 |  |  |  |  |  |  |  | 
| 4580 |  |  |  |  |  |  |  | 
| 4581 |  |  |  |  |  |  |  | 
| 4582 |  |  |  |  |  |  | # authentication setting, if any | 
| 4583 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4584 |  |  |  |  |  |  |  | 
| 4585 |  |  |  |  |  |  | # make the API Call | 
| 4586 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4587 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4588 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4589 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4590 | 0 |  |  |  |  |  | return; | 
| 4591 |  |  |  |  |  |  | } | 
| 4592 |  |  |  |  |  |  |  | 
| 4593 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4594 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4595 |  |  |  |  |  |  | } | 
| 4596 |  |  |  |  |  |  |  | 
| 4597 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 4598 | 0 |  |  |  |  |  | return $_response_object; | 
| 4599 |  |  |  |  |  |  |  | 
| 4600 |  |  |  |  |  |  | } | 
| 4601 |  |  |  |  |  |  | # | 
| 4602 |  |  |  |  |  |  | # GetTaskAssignments | 
| 4603 |  |  |  |  |  |  | # | 
| 4604 |  |  |  |  |  |  | # Get task assignments. | 
| 4605 |  |  |  |  |  |  | # | 
| 4606 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4607 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4608 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4609 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4610 |  |  |  |  |  |  | # @return AssignmentsResponse | 
| 4611 |  |  |  |  |  |  | # | 
| 4612 |  |  |  |  |  |  | sub GetTaskAssignments { | 
| 4613 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4614 |  |  |  |  |  |  |  | 
| 4615 |  |  |  |  |  |  |  | 
| 4616 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4617 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4618 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetTaskAssignments"); | 
| 4619 |  |  |  |  |  |  | } | 
| 4620 |  |  |  |  |  |  |  | 
| 4621 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4622 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4623 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling GetTaskAssignments"); | 
| 4624 |  |  |  |  |  |  | } | 
| 4625 |  |  |  |  |  |  |  | 
| 4626 |  |  |  |  |  |  |  | 
| 4627 |  |  |  |  |  |  | # parse inputs | 
| 4628 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/assignments/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 4629 |  |  |  |  |  |  |  | 
| 4630 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4631 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4632 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4633 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4634 |  |  |  |  |  |  |  | 
| 4635 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 4636 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4637 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4638 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4639 |  |  |  |  |  |  |  | 
| 4640 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4641 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4642 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4643 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4644 |  |  |  |  |  |  | } | 
| 4645 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4646 |  |  |  |  |  |  |  | 
| 4647 |  |  |  |  |  |  | # query params | 
| 4648 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4649 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4650 |  |  |  |  |  |  | }else{ | 
| 4651 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4652 |  |  |  |  |  |  | }# query params | 
| 4653 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4654 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4655 |  |  |  |  |  |  | }else{ | 
| 4656 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4657 |  |  |  |  |  |  | }# query params | 
| 4658 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4659 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4660 |  |  |  |  |  |  | }else{ | 
| 4661 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4662 |  |  |  |  |  |  | }# query params | 
| 4663 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4664 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4665 |  |  |  |  |  |  | }else{ | 
| 4666 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4667 |  |  |  |  |  |  | } | 
| 4668 |  |  |  |  |  |  |  | 
| 4669 |  |  |  |  |  |  |  | 
| 4670 | 0 |  |  |  |  |  | my $_body_data; | 
| 4671 |  |  |  |  |  |  |  | 
| 4672 |  |  |  |  |  |  |  | 
| 4673 |  |  |  |  |  |  |  | 
| 4674 |  |  |  |  |  |  |  | 
| 4675 |  |  |  |  |  |  | # authentication setting, if any | 
| 4676 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4677 |  |  |  |  |  |  |  | 
| 4678 |  |  |  |  |  |  | # make the API Call | 
| 4679 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4680 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4681 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4682 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4683 | 0 |  |  |  |  |  | return; | 
| 4684 |  |  |  |  |  |  | } | 
| 4685 |  |  |  |  |  |  |  | 
| 4686 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4687 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4688 |  |  |  |  |  |  | } | 
| 4689 |  |  |  |  |  |  |  | 
| 4690 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AssignmentsResponse', $response->header('content-type')); | 
| 4691 | 0 |  |  |  |  |  | return $_response_object; | 
| 4692 |  |  |  |  |  |  |  | 
| 4693 |  |  |  |  |  |  | } | 
| 4694 |  |  |  |  |  |  | # | 
| 4695 |  |  |  |  |  |  | # PutMoveTask | 
| 4696 |  |  |  |  |  |  | # | 
| 4697 |  |  |  |  |  |  | # Move one task to another parent task | 
| 4698 |  |  |  |  |  |  | # | 
| 4699 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4700 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4701 |  |  |  |  |  |  | # @param String $parentTaskUid  (required) | 
| 4702 |  |  |  |  |  |  | # @param String $fileName  (optional) | 
| 4703 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4704 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4705 |  |  |  |  |  |  | # @return SaaSposeResponse | 
| 4706 |  |  |  |  |  |  | # | 
| 4707 |  |  |  |  |  |  | sub PutMoveTask { | 
| 4708 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4709 |  |  |  |  |  |  |  | 
| 4710 |  |  |  |  |  |  |  | 
| 4711 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4712 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4713 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling PutMoveTask"); | 
| 4714 |  |  |  |  |  |  | } | 
| 4715 |  |  |  |  |  |  |  | 
| 4716 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4717 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4718 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling PutMoveTask"); | 
| 4719 |  |  |  |  |  |  | } | 
| 4720 |  |  |  |  |  |  |  | 
| 4721 |  |  |  |  |  |  | # verify the required parameter 'parentTaskUid' is set | 
| 4722 | 0 | 0 |  |  |  |  | unless (exists $args{'parentTaskUid'}) { | 
| 4723 | 0 |  |  |  |  |  | croak("Missing the required parameter 'parentTaskUid' when calling PutMoveTask"); | 
| 4724 |  |  |  |  |  |  | } | 
| 4725 |  |  |  |  |  |  |  | 
| 4726 |  |  |  |  |  |  |  | 
| 4727 |  |  |  |  |  |  | # parse inputs | 
| 4728 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/move/?parentTaskUid={parentTaskUid}&appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; | 
| 4729 |  |  |  |  |  |  |  | 
| 4730 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4731 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4732 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4733 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4734 |  |  |  |  |  |  |  | 
| 4735 | 0 |  |  |  |  |  | my $_method = 'PUT'; | 
| 4736 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4737 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4738 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4739 |  |  |  |  |  |  |  | 
| 4740 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4741 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4742 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4743 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4744 |  |  |  |  |  |  | } | 
| 4745 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4746 |  |  |  |  |  |  |  | 
| 4747 |  |  |  |  |  |  | # query params | 
| 4748 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4749 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4750 |  |  |  |  |  |  | }else{ | 
| 4751 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4752 |  |  |  |  |  |  | }# query params | 
| 4753 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4754 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4755 |  |  |  |  |  |  | }else{ | 
| 4756 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4757 |  |  |  |  |  |  | }# query params | 
| 4758 | 0 | 0 |  |  |  |  | if ( exists $args{'parentTaskUid'}) { | 
| 4759 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{parentTaskUid}\E/$args{'parentTaskUid'}/g; | 
| 4760 |  |  |  |  |  |  | }else{ | 
| 4761 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]parentTaskUid.*?(?=&|\?|$)//g; | 
| 4762 |  |  |  |  |  |  | }# query params | 
| 4763 | 0 | 0 |  |  |  |  | if ( exists $args{'fileName'}) { | 
| 4764 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; | 
| 4765 |  |  |  |  |  |  | }else{ | 
| 4766 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]fileName.*?(?=&|\?|$)//g; | 
| 4767 |  |  |  |  |  |  | }# query params | 
| 4768 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4769 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4770 |  |  |  |  |  |  | }else{ | 
| 4771 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4772 |  |  |  |  |  |  | }# query params | 
| 4773 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4774 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4775 |  |  |  |  |  |  | }else{ | 
| 4776 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4777 |  |  |  |  |  |  | } | 
| 4778 |  |  |  |  |  |  |  | 
| 4779 |  |  |  |  |  |  |  | 
| 4780 | 0 |  |  |  |  |  | my $_body_data; | 
| 4781 |  |  |  |  |  |  |  | 
| 4782 |  |  |  |  |  |  |  | 
| 4783 |  |  |  |  |  |  |  | 
| 4784 |  |  |  |  |  |  |  | 
| 4785 |  |  |  |  |  |  | # authentication setting, if any | 
| 4786 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4787 |  |  |  |  |  |  |  | 
| 4788 |  |  |  |  |  |  | # make the API Call | 
| 4789 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4790 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4791 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4792 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4793 | 0 |  |  |  |  |  | return; | 
| 4794 |  |  |  |  |  |  | } | 
| 4795 |  |  |  |  |  |  |  | 
| 4796 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4797 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4798 |  |  |  |  |  |  | } | 
| 4799 |  |  |  |  |  |  |  | 
| 4800 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | 
| 4801 | 0 |  |  |  |  |  | return $_response_object; | 
| 4802 |  |  |  |  |  |  |  | 
| 4803 |  |  |  |  |  |  | } | 
| 4804 |  |  |  |  |  |  | # | 
| 4805 |  |  |  |  |  |  | # GetTaskRecurringInfo | 
| 4806 |  |  |  |  |  |  | # | 
| 4807 |  |  |  |  |  |  | # Get recurring info for the task | 
| 4808 |  |  |  |  |  |  | # | 
| 4809 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4810 |  |  |  |  |  |  | # @param String $taskUid  (required) | 
| 4811 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4812 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4813 |  |  |  |  |  |  | # @return RecurringInfoResponse | 
| 4814 |  |  |  |  |  |  | # | 
| 4815 |  |  |  |  |  |  | sub GetTaskRecurringInfo { | 
| 4816 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4817 |  |  |  |  |  |  |  | 
| 4818 |  |  |  |  |  |  |  | 
| 4819 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4820 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4821 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetTaskRecurringInfo"); | 
| 4822 |  |  |  |  |  |  | } | 
| 4823 |  |  |  |  |  |  |  | 
| 4824 |  |  |  |  |  |  | # verify the required parameter 'taskUid' is set | 
| 4825 | 0 | 0 |  |  |  |  | unless (exists $args{'taskUid'}) { | 
| 4826 | 0 |  |  |  |  |  | croak("Missing the required parameter 'taskUid' when calling GetTaskRecurringInfo"); | 
| 4827 |  |  |  |  |  |  | } | 
| 4828 |  |  |  |  |  |  |  | 
| 4829 |  |  |  |  |  |  |  | 
| 4830 |  |  |  |  |  |  | # parse inputs | 
| 4831 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/tasks/{taskUid}/recurringInfo/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 4832 |  |  |  |  |  |  |  | 
| 4833 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4834 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4835 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4836 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4837 |  |  |  |  |  |  |  | 
| 4838 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 4839 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4840 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4841 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4842 |  |  |  |  |  |  |  | 
| 4843 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4844 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4845 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4846 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4847 |  |  |  |  |  |  | } | 
| 4848 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4849 |  |  |  |  |  |  |  | 
| 4850 |  |  |  |  |  |  | # query params | 
| 4851 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4852 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4853 |  |  |  |  |  |  | }else{ | 
| 4854 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4855 |  |  |  |  |  |  | }# query params | 
| 4856 | 0 | 0 |  |  |  |  | if ( exists $args{'taskUid'}) { | 
| 4857 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{taskUid}\E/$args{'taskUid'}/g; | 
| 4858 |  |  |  |  |  |  | }else{ | 
| 4859 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]taskUid.*?(?=&|\?|$)//g; | 
| 4860 |  |  |  |  |  |  | }# query params | 
| 4861 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4862 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4863 |  |  |  |  |  |  | }else{ | 
| 4864 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4865 |  |  |  |  |  |  | }# query params | 
| 4866 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4867 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4868 |  |  |  |  |  |  | }else{ | 
| 4869 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4870 |  |  |  |  |  |  | } | 
| 4871 |  |  |  |  |  |  |  | 
| 4872 |  |  |  |  |  |  |  | 
| 4873 | 0 |  |  |  |  |  | my $_body_data; | 
| 4874 |  |  |  |  |  |  |  | 
| 4875 |  |  |  |  |  |  |  | 
| 4876 |  |  |  |  |  |  |  | 
| 4877 |  |  |  |  |  |  |  | 
| 4878 |  |  |  |  |  |  | # authentication setting, if any | 
| 4879 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4880 |  |  |  |  |  |  |  | 
| 4881 |  |  |  |  |  |  | # make the API Call | 
| 4882 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4883 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4884 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4885 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4886 | 0 |  |  |  |  |  | return; | 
| 4887 |  |  |  |  |  |  | } | 
| 4888 |  |  |  |  |  |  |  | 
| 4889 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4890 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4891 |  |  |  |  |  |  | } | 
| 4892 |  |  |  |  |  |  |  | 
| 4893 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'RecurringInfoResponse', $response->header('content-type')); | 
| 4894 | 0 |  |  |  |  |  | return $_response_object; | 
| 4895 |  |  |  |  |  |  |  | 
| 4896 |  |  |  |  |  |  | } | 
| 4897 |  |  |  |  |  |  | # | 
| 4898 |  |  |  |  |  |  | # GetProjectWbsDefinition | 
| 4899 |  |  |  |  |  |  | # | 
| 4900 |  |  |  |  |  |  | # Get project WBS Definition. | 
| 4901 |  |  |  |  |  |  | # | 
| 4902 |  |  |  |  |  |  | # @param String $name  (required) | 
| 4903 |  |  |  |  |  |  | # @param String $storage  (optional) | 
| 4904 |  |  |  |  |  |  | # @param String $folder  (optional) | 
| 4905 |  |  |  |  |  |  | # @return WBSDefinitionResponse | 
| 4906 |  |  |  |  |  |  | # | 
| 4907 |  |  |  |  |  |  | sub GetProjectWbsDefinition { | 
| 4908 | 0 |  |  | 0 | 0 |  | my ($self, %args) = @_; | 
| 4909 |  |  |  |  |  |  |  | 
| 4910 |  |  |  |  |  |  |  | 
| 4911 |  |  |  |  |  |  | # verify the required parameter 'name' is set | 
| 4912 | 0 | 0 |  |  |  |  | unless (exists $args{'name'}) { | 
| 4913 | 0 |  |  |  |  |  | croak("Missing the required parameter 'name' when calling GetProjectWbsDefinition"); | 
| 4914 |  |  |  |  |  |  | } | 
| 4915 |  |  |  |  |  |  |  | 
| 4916 |  |  |  |  |  |  |  | 
| 4917 |  |  |  |  |  |  | # parse inputs | 
| 4918 | 0 |  |  |  |  |  | my $_resource_path = '/tasks/{name}/wbsDefinition/?appSid={appSid}&storage={storage}&folder={folder}'; | 
| 4919 |  |  |  |  |  |  |  | 
| 4920 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q&\E/&/g; | 
| 4921 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q\/?\E/?/g; | 
| 4922 | 0 |  |  |  |  |  | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | 
| 4923 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{path}\E/{Path}/g; | 
| 4924 |  |  |  |  |  |  |  | 
| 4925 | 0 |  |  |  |  |  | my $_method = 'GET'; | 
| 4926 | 0 |  |  |  |  |  | my $query_params = {}; | 
| 4927 | 0 |  |  |  |  |  | my $header_params = {}; | 
| 4928 | 0 |  |  |  |  |  | my $form_params = {}; | 
| 4929 |  |  |  |  |  |  |  | 
| 4930 |  |  |  |  |  |  | # 'Accept' and 'Content-Type' header | 
| 4931 | 0 |  |  |  |  |  | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | 
| 4932 | 0 | 0 |  |  |  |  | if ($_header_accept) { | 
| 4933 | 0 |  |  |  |  |  | $header_params->{'Accept'} = $_header_accept; | 
| 4934 |  |  |  |  |  |  | } | 
| 4935 | 0 |  |  |  |  |  | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | 
| 4936 |  |  |  |  |  |  |  | 
| 4937 |  |  |  |  |  |  | # query params | 
| 4938 | 0 | 0 |  |  |  |  | if ( exists $args{'name'}) { | 
| 4939 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | 
| 4940 |  |  |  |  |  |  | }else{ | 
| 4941 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]name.*?(?=&|\?|$)//g; | 
| 4942 |  |  |  |  |  |  | }# query params | 
| 4943 | 0 | 0 |  |  |  |  | if ( exists $args{'storage'}) { | 
| 4944 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | 
| 4945 |  |  |  |  |  |  | }else{ | 
| 4946 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]storage.*?(?=&|\?|$)//g; | 
| 4947 |  |  |  |  |  |  | }# query params | 
| 4948 | 0 | 0 |  |  |  |  | if ( exists $args{'folder'}) { | 
| 4949 | 0 |  |  |  |  |  | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | 
| 4950 |  |  |  |  |  |  | }else{ | 
| 4951 | 0 |  |  |  |  |  | $_resource_path    =~ s/[?&]folder.*?(?=&|\?|$)//g; | 
| 4952 |  |  |  |  |  |  | } | 
| 4953 |  |  |  |  |  |  |  | 
| 4954 |  |  |  |  |  |  |  | 
| 4955 | 0 |  |  |  |  |  | my $_body_data; | 
| 4956 |  |  |  |  |  |  |  | 
| 4957 |  |  |  |  |  |  |  | 
| 4958 |  |  |  |  |  |  |  | 
| 4959 |  |  |  |  |  |  |  | 
| 4960 |  |  |  |  |  |  | # authentication setting, if any | 
| 4961 | 0 |  |  |  |  |  | my $auth_settings = []; | 
| 4962 |  |  |  |  |  |  |  | 
| 4963 |  |  |  |  |  |  | # make the API Call | 
| 4964 | 0 |  |  |  |  |  | my $response = $self->{api_client}->call_api($_resource_path, $_method, | 
| 4965 |  |  |  |  |  |  | $query_params, $form_params, | 
| 4966 |  |  |  |  |  |  | $header_params, $_body_data, $auth_settings); | 
| 4967 | 0 | 0 |  |  |  |  | if (!$response) { | 
| 4968 | 0 |  |  |  |  |  | return; | 
| 4969 |  |  |  |  |  |  | } | 
| 4970 |  |  |  |  |  |  |  | 
| 4971 | 0 | 0 |  |  |  |  | if($AsposeTasksCloud::Configuration::debug){ | 
| 4972 | 0 |  |  |  |  |  | print "\nResponse Content: ".$response->content; | 
| 4973 |  |  |  |  |  |  | } | 
| 4974 |  |  |  |  |  |  |  | 
| 4975 | 0 |  |  |  |  |  | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'WBSDefinitionResponse', $response->header('content-type')); | 
| 4976 | 0 |  |  |  |  |  | return $_response_object; | 
| 4977 |  |  |  |  |  |  |  | 
| 4978 |  |  |  |  |  |  | } | 
| 4979 |  |  |  |  |  |  |  | 
| 4980 |  |  |  |  |  |  |  | 
| 4981 |  |  |  |  |  |  | 1; |