diff --git a/codegen/Files/Api/FilesApi.php b/codegen/Files/Api/FilesApi.php index a749c622..a15e8bfd 100644 --- a/codegen/Files/Api/FilesApi.php +++ b/codegen/Files/Api/FilesApi.php @@ -223,7 +223,7 @@ public function archiveWithHttpInfo($file_id, string $contentType = self::conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -310,7 +310,7 @@ public function archiveRequest($file_id, string $contentType = self::contentType if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.archive, must conform to the pattern /\\d+/."); } - + $resourcePath = '/files/v3/files/{fileId}'; $formParams = []; @@ -460,7 +460,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -499,7 +499,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -742,7 +742,7 @@ public function deleteWithHttpInfo($file_id, string $contentType = self::content $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -829,7 +829,7 @@ public function deleteRequest($file_id, string $contentType = self::contentTypes if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.delete, must conform to the pattern /\\d+/."); } - + $resourcePath = '/files/v3/files/{fileId}/gdpr-delete'; $formParams = []; @@ -1049,7 +1049,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1088,7 +1088,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1787,7 +1787,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1826,7 +1826,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1929,7 +1929,7 @@ public function getByIdRequest($file_id, $properties = null, string $contentType if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.getById, must conform to the pattern /\\d+/."); } - + $resourcePath = '/files/v3/files/{fileId}'; @@ -2091,7 +2091,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2130,7 +2130,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -2233,7 +2233,7 @@ public function getMetadataRequest($path, $properties = null, string $contentTyp if (!preg_match("/.+/", $path)) { throw new \InvalidArgumentException("invalid value for \"path\" when calling FilesApi.getMetadata, must conform to the pattern /.+/."); } - + $resourcePath = '/files/v3/files/stat/{path}'; @@ -2399,7 +2399,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2438,7 +2438,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -2547,7 +2547,7 @@ public function getSignedUrlRequest($file_id, $size = null, $expiration_seconds if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.getSignedUrl, must conform to the pattern /\\d+/."); } - + @@ -2727,7 +2727,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -2766,7 +2766,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -3018,7 +3018,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3057,7 +3057,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -3166,7 +3166,7 @@ public function replaceRequest($file_id, $charset_hunch = null, $file = null, $o if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.replace, must conform to the pattern /\\d+/."); } - + @@ -3193,7 +3193,7 @@ public function replaceRequest($file_id, $charset_hunch = null, $file = null, $o $formDataProcessor = new FormDataProcessor(); $formData = $formDataProcessor->prepare([ - 'charset_hunch' => $charset_hunch, + 'charsetHunch' => $charset_hunch, 'file' => $file, 'options' => $options, ]); @@ -3333,7 +3333,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3372,7 +3372,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -3475,7 +3475,7 @@ public function updatePropertiesRequest($file_id, $file_update_input, string $co if (!preg_match("/\\d+/", $file_id)) { throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.updateProperties, must conform to the pattern /\\d+/."); } - + // verify the required parameter 'file_update_input' is set if ($file_update_input === null || (is_array($file_update_input) && count($file_update_input) === 0)) { throw new \InvalidArgumentException( @@ -3649,7 +3649,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -3688,7 +3688,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -3815,11 +3815,11 @@ public function uploadRequest($charset_hunch = null, $file = null, $file_name = $formDataProcessor = new FormDataProcessor(); $formData = $formDataProcessor->prepare([ - 'charset_hunch' => $charset_hunch, + 'charsetHunch' => $charset_hunch, 'file' => $file, - 'file_name' => $file_name, - 'folder_id' => $folder_id, - 'folder_path' => $folder_path, + 'fileName' => $file_name, + 'folderId' => $folder_id, + 'folderPath' => $folder_path, 'options' => $options, ]); diff --git a/codegen/Oauth/Api/TokensApi.php b/codegen/Oauth/Api/TokensApi.php index becb8bcc..11dd298b 100644 --- a/codegen/Oauth/Api/TokensApi.php +++ b/codegen/Oauth/Api/TokensApi.php @@ -207,7 +207,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -246,7 +246,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u $e->setResponseObject($data); throw $e; } - + throw $e; }