Upgrade Rust SDK to spec 1.3.0

This commit is contained in:
Foorack
2021-09-12 13:28:50 +02:00
parent 0bb65d838b
commit 760d14e93c
120 changed files with 864 additions and 379 deletions

View File

@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.1.2
* The version of the OpenAPI document: 1.3.0
* Contact: me@ruby.js.org
* Generated by: https://openapi-generator.tech
*/
@ -283,7 +283,7 @@ pub fn get_file(configuration: &configuration::Configuration, file_id: &str) ->
}
/// Retrieves the upload status for file upload. Can currently only be accessed when `status` is `waiting`. Trying to access it on a file version already uploaded currently times out.
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::InlineResponse2004, Error<GetFileDataUploadStatusError>> {
pub fn get_file_data_upload_status(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str) -> Result<crate::models::InlineResponse2003, Error<GetFileDataUploadStatusError>> {
let local_var_client = &configuration.client;
@ -349,7 +349,7 @@ pub fn get_files(configuration: &configuration::Configuration, tag: Option<&str>
}
/// Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1.
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::InlineResponse2005, Error<StartFileDataUploadError>> {
pub fn start_file_data_upload(configuration: &configuration::Configuration, file_id: &str, version_id: i32, file_type: &str, part_number: i32) -> Result<crate::models::InlineResponse2004, Error<StartFileDataUploadError>> {
let local_var_client = &configuration.client;