From 194f05da65c73882c4c9628c3954b768ac816e65 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Wed, 23 Oct 2024 14:22:24 -0400 Subject: feat: make quota subjects an enum --- src/generated/structs.rs | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/generated/structs.rs b/src/generated/structs.rs index 1687c0c..a65f45d 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -807,9 +807,40 @@ pub struct CreateQuotaRuleOptions { /// Name of the rule to create pub name: Option, /// The subjects affected by the rule - pub subjects: Option>, + pub subjects: Option>, } +#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +pub enum CreateQuotaRuleOptionsSubjects { + #[serde(rename = "none")] + None, + #[serde(rename = "size:all")] + SizeAll, + #[serde(rename = "size:repos:all")] + SizeReposAll, + #[serde(rename = "size:repos:public")] + SizeReposPublic, + #[serde(rename = "size:repos:private")] + SizeReposPrivate, + #[serde(rename = "size:git:all")] + SizeGitAll, + #[serde(rename = "size:git:lfs")] + SizeGitLfs, + #[serde(rename = "size:assets:all")] + SizeAssetsAll, + #[serde(rename = "size:assets:attachments:all")] + SizeAssetsAttachmentsAll, + #[serde(rename = "size:assets:attachments:issues")] + SizeAssetsAttachmentsIssues, + #[serde(rename = "size:assets:attachments:releases")] + SizeAssetsAttachmentsReleases, + #[serde(rename = "size:assets:artifacts")] + SizeAssetsArtifacts, + #[serde(rename = "size:assets:packages:all")] + SizeAssetsPackagesAll, + #[serde(rename = "size:assets:wiki")] + SizeAssetsWiki, +} /// CreateReleaseOption options when creating a release #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateReleaseOption { -- cgit v1.2.3