Skip to content

Commit

Permalink
API spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
hkhalil-akamai committed Jan 22, 2025
1 parent 1b6607a commit 9a1efa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/api-v4/src/quotas/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ export interface Quota {

/**
* The region slug to which this limit applies.
*
* OBJ limits are applied by endpoint, not region.
*/
region_applied: Region['id'] | 'global';
region_applied?: Region['id'] | 'global';

/**
* The OBJ endpoint type to which this limit applies.
Expand Down
3 changes: 0 additions & 3 deletions packages/manager/src/mocks/presets/crud/handlers/quotas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const mockQuotas: Record<QuotaType, Quota[]> = {
endpoint_type: 'E3',
quota_limit: 1_000_000_000_000_000, // a petabyte
quota_name: 'Total Capacity',
region_applied: 'us-east',
resource_metric: 'byte',
s3_endpoint: 'us-east-1.linodeobjects.com',
used: 900_000_000_000_000,
Expand All @@ -82,15 +81,13 @@ const mockQuotas: Record<QuotaType, Quota[]> = {
endpoint_type: 'E3',
quota_limit: 1000,
quota_name: 'Number of Buckets',
region_applied: 'us-east',
resource_metric: 'bucket',
s3_endpoint: 'us-east-1.linodeobjects.com',
}),
quotaFactory.build({
endpoint_type: 'E3',
quota_limit: 10_000_000,
quota_name: 'Number of Objects',
region_applied: 'us-east',
resource_metric: 'object',
s3_endpoint: 'us-east-1.linodeobjects.com',
}),
Expand Down

0 comments on commit 9a1efa0

Please sign in to comment.