Set OpenAPI version back to 6.2.1 and fix GitLab CI

This commit is contained in:
Foorack / Max Faxälv
2022-12-05 00:43:30 +01:00
parent 934f89850d
commit a4cf1025e0
98 changed files with 4975 additions and 169 deletions

View File

@ -0,0 +1,51 @@
/*
* VRChat API Documentation
*
*
* Contact: me@ariesclark.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateGroupGalleryRequest {
/// Name of the gallery.
#[serde(rename = "name")]
pub name: String,
/// Description of the gallery.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Whether the gallery is members only.
#[serde(rename = "membersOnly", skip_serializing_if = "Option::is_none")]
pub members_only: Option<bool>,
///
#[serde(rename = "roleIdsToView", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub role_ids_to_view: Option<Option<Vec<String>>>,
///
#[serde(rename = "roleIdsToSubmit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub role_ids_to_submit: Option<Option<Vec<String>>>,
///
#[serde(rename = "roleIdsToAutoApprove", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub role_ids_to_auto_approve: Option<Option<Vec<String>>>,
///
#[serde(rename = "roleIdsToManage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub role_ids_to_manage: Option<Option<Vec<String>>>,
}
impl CreateGroupGalleryRequest {
pub fn new(name: String) -> CreateGroupGalleryRequest {
CreateGroupGalleryRequest {
name,
description: None,
members_only: None,
role_ids_to_view: None,
role_ids_to_submit: None,
role_ids_to_auto_approve: None,
role_ids_to_manage: None,
}
}
}