Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions codegen/Files/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function archiveWithHttpInfo($file_id, string $contentType = self::conten
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -460,7 +460,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -499,7 +499,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -742,7 +742,7 @@ public function deleteWithHttpInfo($file_id, string $contentType = self::content
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -1049,7 +1049,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1088,7 +1088,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1787,7 +1787,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1826,7 +1826,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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}';
Expand Down Expand Up @@ -2091,7 +2091,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2130,7 +2130,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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}';
Expand Down Expand Up @@ -2399,7 +2399,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2438,7 +2438,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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+/.");
}




Expand Down Expand Up @@ -2727,7 +2727,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2766,7 +2766,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -3018,7 +3018,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -3057,7 +3057,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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+/.");
}




Expand All @@ -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,
]);
Expand Down Expand Up @@ -3333,7 +3333,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -3372,7 +3372,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -3649,7 +3649,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -3688,7 +3688,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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,
]);

Expand Down
4 changes: 2 additions & 2 deletions codegen/Oauth/Api/TokensApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -246,7 +246,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down
Loading