11// This file was automatically generated. DO NOT EDIT.
22// If you have any remark or suggestion do not hesitate to open an issue.
3+ import type { Region as ScwRegion , Zone as ScwZone } from '../../../bridge'
34
45export type BearerType = 'unknown_bearer_type' | 'user' | 'application'
56
@@ -76,6 +77,8 @@ export type ListUsersRequestOrderBy =
7677 | 'username_asc'
7778 | 'username_desc'
7879
80+ export type LocalityType = 'global' | 'region' | 'zone'
81+
7982export type LogAction = 'unknown_action' | 'created' | 'updated' | 'deleted'
8083
8184export type LogResourceType =
@@ -96,6 +99,42 @@ export type UserStatus = 'unknown_status' | 'invitation_pending' | 'activated'
9699
97100export type UserType = 'unknown_type' | 'guest' | 'owner' | 'member'
98101
102+ export interface QuotumLimit {
103+ /**
104+ * Whether or not the limit is applied globally.
105+ *
106+ * One-of ('locality'): at most one of 'global', 'region', 'zone' could be
107+ * set.
108+ */
109+ global ?: boolean
110+ /**
111+ * The region on which the limit is applied.
112+ *
113+ * One-of ('locality'): at most one of 'global', 'region', 'zone' could be
114+ * set.
115+ */
116+ region ?: ScwRegion
117+ /**
118+ * The zone on which the limit is applied.
119+ *
120+ * One-of ('locality'): at most one of 'global', 'region', 'zone' could be
121+ * set.
122+ */
123+ zone ?: ScwZone
124+ /**
125+ * Maximum locality limit.
126+ *
127+ * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
128+ */
129+ limit ?: number
130+ /**
131+ * Whether or not the quota per locality is unlimited.
132+ *
133+ * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
134+ */
135+ unlimited ?: boolean
136+ }
137+
99138export interface JWT {
100139 /** JWT ID. */
101140 jti : string
@@ -345,15 +384,15 @@ export interface Quotum {
345384 /** Name of the quota. */
346385 name : string
347386 /**
348- * Maximum limit of the quota.
387+ * @deprecated Maximum limit of the quota.
349388 *
350- * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
389+ * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
351390 */
352391 limit ?: number
353392 /**
354- * Defines whether or not the quota is unlimited.
393+ * @deprecated Defines whether or not the quota is unlimited.
355394 *
356- * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
395+ * One-of ('value'): at most one of 'limit', 'unlimited' could be set.
357396 */
358397 unlimited ?: boolean
359398 /** A human-readable name for the quota. */
@@ -362,6 +401,13 @@ export interface Quotum {
362401 unit : string
363402 /** Details about the quota. */
364403 description : string
404+ /**
405+ * Whether this quotum is applied on at the zone level, region level, or
406+ * globally.
407+ */
408+ localityType : LocalityType
409+ /** Limits per locality. */
410+ limits : QuotumLimit [ ]
365411}
366412
367413export interface Rule {
0 commit comments