summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/generated/structs.rs33
-rw-r--r--swagger.v1.json18
2 files changed, 49 insertions, 2 deletions
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<String>,
/// The subjects affected by the rule
- pub subjects: Option<Vec<String>>,
+ pub subjects: Option<Vec<CreateQuotaRuleOptionsSubjects>>,
}
+#[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 {
diff --git a/swagger.v1.json b/swagger.v1.json
index 810ab11..88253ff 100644
--- a/swagger.v1.json
+++ b/swagger.v1.json
@@ -19762,7 +19762,23 @@
"description": "The subjects affected by the rule",
"type": "array",
"items": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "none",
+ "size:all",
+ "size:repos:all",
+ "size:repos:public",
+ "size:repos:private",
+ "size:git:all",
+ "size:git:lfs",
+ "size:assets:all",
+ "size:assets:attachments:all",
+ "size:assets:attachments:issues",
+ "size:assets:attachments:releases",
+ "size:assets:artifacts",
+ "size:assets:packages:all",
+ "size:assets:wiki"
+ ]
},
"x-go-name": "Subjects"
}