Skip to content

Commit 184f63f

Browse files
Fix FilesApi
1 parent 93447ce commit 184f63f

2 files changed

Lines changed: 34 additions & 34 deletions

File tree

codegen/Files/Api/FilesApi.php

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function archiveWithHttpInfo($file_id, string $contentType = self::conten
223223
$e->setResponseObject($data);
224224
throw $e;
225225
}
226-
226+
227227

228228
throw $e;
229229
}
@@ -310,7 +310,7 @@ public function archiveRequest($file_id, string $contentType = self::contentType
310310
if (!preg_match("/\\d+/", $file_id)) {
311311
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.archive, must conform to the pattern /\\d+/.");
312312
}
313-
313+
314314

315315
$resourcePath = '/files/v3/files/{fileId}';
316316
$formParams = [];
@@ -460,7 +460,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co
460460
);
461461
}
462462

463-
463+
464464

465465
if ($statusCode < 200 || $statusCode > 299) {
466466
throw new ApiException(
@@ -499,7 +499,7 @@ public function checkImportWithHttpInfo($task_id, string $contentType = self::co
499499
$e->setResponseObject($data);
500500
throw $e;
501501
}
502-
502+
503503

504504
throw $e;
505505
}
@@ -742,7 +742,7 @@ public function deleteWithHttpInfo($file_id, string $contentType = self::content
742742
$e->setResponseObject($data);
743743
throw $e;
744744
}
745-
745+
746746

747747
throw $e;
748748
}
@@ -829,7 +829,7 @@ public function deleteRequest($file_id, string $contentType = self::contentTypes
829829
if (!preg_match("/\\d+/", $file_id)) {
830830
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.delete, must conform to the pattern /\\d+/.");
831831
}
832-
832+
833833

834834
$resourcePath = '/files/v3/files/{fileId}/gdpr-delete';
835835
$formParams = [];
@@ -1049,7 +1049,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before
10491049
);
10501050
}
10511051

1052-
1052+
10531053

10541054
if ($statusCode < 200 || $statusCode > 299) {
10551055
throw new ApiException(
@@ -1088,7 +1088,7 @@ public function doSearchWithHttpInfo($properties = null, $after = null, $before
10881088
$e->setResponseObject($data);
10891089
throw $e;
10901090
}
1091-
1091+
10921092

10931093
throw $e;
10941094
}
@@ -1787,7 +1787,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten
17871787
);
17881788
}
17891789

1790-
1790+
17911791

17921792
if ($statusCode < 200 || $statusCode > 299) {
17931793
throw new ApiException(
@@ -1826,7 +1826,7 @@ public function getByIdWithHttpInfo($file_id, $properties = null, string $conten
18261826
$e->setResponseObject($data);
18271827
throw $e;
18281828
}
1829-
1829+
18301830

18311831
throw $e;
18321832
}
@@ -1929,7 +1929,7 @@ public function getByIdRequest($file_id, $properties = null, string $contentType
19291929
if (!preg_match("/\\d+/", $file_id)) {
19301930
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.getById, must conform to the pattern /\\d+/.");
19311931
}
1932-
1932+
19331933

19341934

19351935
$resourcePath = '/files/v3/files/{fileId}';
@@ -2091,7 +2091,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte
20912091
);
20922092
}
20932093

2094-
2094+
20952095

20962096
if ($statusCode < 200 || $statusCode > 299) {
20972097
throw new ApiException(
@@ -2130,7 +2130,7 @@ public function getMetadataWithHttpInfo($path, $properties = null, string $conte
21302130
$e->setResponseObject($data);
21312131
throw $e;
21322132
}
2133-
2133+
21342134

21352135
throw $e;
21362136
}
@@ -2233,7 +2233,7 @@ public function getMetadataRequest($path, $properties = null, string $contentTyp
22332233
if (!preg_match("/.+/", $path)) {
22342234
throw new \InvalidArgumentException("invalid value for \"path\" when calling FilesApi.getMetadata, must conform to the pattern /.+/.");
22352235
}
2236-
2236+
22372237

22382238

22392239
$resourcePath = '/files/v3/files/stat/{path}';
@@ -2399,7 +2399,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec
23992399
);
24002400
}
24012401

2402-
2402+
24032403

24042404
if ($statusCode < 200 || $statusCode > 299) {
24052405
throw new ApiException(
@@ -2438,7 +2438,7 @@ public function getSignedUrlWithHttpInfo($file_id, $size = null, $expiration_sec
24382438
$e->setResponseObject($data);
24392439
throw $e;
24402440
}
2441-
2441+
24422442

24432443
throw $e;
24442444
}
@@ -2547,7 +2547,7 @@ public function getSignedUrlRequest($file_id, $size = null, $expiration_seconds
25472547
if (!preg_match("/\\d+/", $file_id)) {
25482548
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.getSignedUrl, must conform to the pattern /\\d+/.");
25492549
}
2550-
2550+
25512551

25522552

25532553

@@ -2727,7 +2727,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten
27272727
);
27282728
}
27292729

2730-
2730+
27312731

27322732
if ($statusCode < 200 || $statusCode > 299) {
27332733
throw new ApiException(
@@ -2766,7 +2766,7 @@ public function importFromUrlWithHttpInfo($import_from_url_input, string $conten
27662766
$e->setResponseObject($data);
27672767
throw $e;
27682768
}
2769-
2769+
27702770

27712771
throw $e;
27722772
}
@@ -3018,7 +3018,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul
30183018
);
30193019
}
30203020

3021-
3021+
30223022

30233023
if ($statusCode < 200 || $statusCode > 299) {
30243024
throw new ApiException(
@@ -3057,7 +3057,7 @@ public function replaceWithHttpInfo($file_id, $charset_hunch = null, $file = nul
30573057
$e->setResponseObject($data);
30583058
throw $e;
30593059
}
3060-
3060+
30613061

30623062
throw $e;
30633063
}
@@ -3166,7 +3166,7 @@ public function replaceRequest($file_id, $charset_hunch = null, $file = null, $o
31663166
if (!preg_match("/\\d+/", $file_id)) {
31673167
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.replace, must conform to the pattern /\\d+/.");
31683168
}
3169-
3169+
31703170

31713171

31723172

@@ -3193,7 +3193,7 @@ public function replaceRequest($file_id, $charset_hunch = null, $file = null, $o
31933193
$formDataProcessor = new FormDataProcessor();
31943194

31953195
$formData = $formDataProcessor->prepare([
3196-
'charset_hunch' => $charset_hunch,
3196+
'charsetHunch' => $charset_hunch,
31973197
'file' => $file,
31983198
'options' => $options,
31993199
]);
@@ -3333,7 +3333,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin
33333333
);
33343334
}
33353335

3336-
3336+
33373337

33383338
if ($statusCode < 200 || $statusCode > 299) {
33393339
throw new ApiException(
@@ -3372,7 +3372,7 @@ public function updatePropertiesWithHttpInfo($file_id, $file_update_input, strin
33723372
$e->setResponseObject($data);
33733373
throw $e;
33743374
}
3375-
3375+
33763376

33773377
throw $e;
33783378
}
@@ -3475,7 +3475,7 @@ public function updatePropertiesRequest($file_id, $file_update_input, string $co
34753475
if (!preg_match("/\\d+/", $file_id)) {
34763476
throw new \InvalidArgumentException("invalid value for \"file_id\" when calling FilesApi.updateProperties, must conform to the pattern /\\d+/.");
34773477
}
3478-
3478+
34793479
// verify the required parameter 'file_update_input' is set
34803480
if ($file_update_input === null || (is_array($file_update_input) && count($file_update_input) === 0)) {
34813481
throw new \InvalidArgumentException(
@@ -3649,7 +3649,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na
36493649
);
36503650
}
36513651

3652-
3652+
36533653

36543654
if ($statusCode < 200 || $statusCode > 299) {
36553655
throw new ApiException(
@@ -3688,7 +3688,7 @@ public function uploadWithHttpInfo($charset_hunch = null, $file = null, $file_na
36883688
$e->setResponseObject($data);
36893689
throw $e;
36903690
}
3691-
3691+
36923692

36933693
throw $e;
36943694
}
@@ -3815,11 +3815,11 @@ public function uploadRequest($charset_hunch = null, $file = null, $file_name =
38153815
$formDataProcessor = new FormDataProcessor();
38163816

38173817
$formData = $formDataProcessor->prepare([
3818-
'charset_hunch' => $charset_hunch,
3818+
'charsetHunch' => $charset_hunch,
38193819
'file' => $file,
3820-
'file_name' => $file_name,
3821-
'folder_id' => $folder_id,
3822-
'folder_path' => $folder_path,
3820+
'fileName' => $file_name,
3821+
'folderId' => $folder_id,
3822+
'folderPath' => $folder_path,
38233823
'options' => $options,
38243824
]);
38253825

codegen/Oauth/Api/TokensApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u
207207
);
208208
}
209209

210-
210+
211211

212212
if ($statusCode < 200 || $statusCode > 299) {
213213
throw new ApiException(
@@ -246,7 +246,7 @@ public function createWithHttpInfo($grant_type = null, $code = null, $redirect_u
246246
$e->setResponseObject($data);
247247
throw $e;
248248
}
249-
249+
250250

251251
throw $e;
252252
}

0 commit comments

Comments
 (0)