@@ -532,30 +532,30 @@ export type PutUsersByUserIdResourcePoolsApiArg = {
532532export type GetVersionApiResponse = /** status 200 The error */ Version ;
533533export type GetVersionApiArg = void ;
534534export type Name = string ;
535+ export type DefaultFlag = boolean ;
535536export type Cpu = number ;
536537export type Memory = number ;
537538export type Gpu = number ;
538539export type Storage = number ;
539- export type IntegerId = number ;
540- export type DefaultFlag = boolean ;
541540export type K8SLabel = string ;
542541export type K8SLabelList = K8SLabel [ ] ;
543542export type NodeAffinity = {
544543 key : K8SLabel ;
545544 required_during_scheduling ?: boolean ;
546545} ;
547546export type NodeAffinityList = NodeAffinity [ ] ;
547+ export type IntegerId = number ;
548548export type ResourceClassWithId = {
549549 name : Name ;
550+ default : DefaultFlag ;
550551 cpu : Cpu ;
551552 memory : Memory ;
552553 gpu : Gpu ;
553554 max_storage : Storage ;
554555 default_storage : Storage ;
555- id : IntegerId ;
556- default : DefaultFlag ;
557556 tolerations ?: K8SLabelList ;
558557 node_affinities ?: NodeAffinityList ;
558+ id : IntegerId ;
559559} ;
560560export type ErrorResponse = {
561561 error : {
@@ -629,22 +629,12 @@ export type QuotaWithId = {
629629 gpu : Gpu ;
630630 id : Name ;
631631} ;
632- export type UsageAvailable = number ;
633- export type UsageLimitTotal = number ;
634- export type ResourceClassWithIdFiltered = {
635- name : Name ;
636- cpu : Cpu ;
637- memory : Memory ;
638- gpu : Gpu ;
639- max_storage : Storage ;
640- default_storage : Storage ;
641- id : IntegerId ;
642- default : DefaultFlag ;
632+ export type UsageHoursRemaining = number ;
633+ export type UsageHoursTotal = number ;
634+ export type ResourceClassWithIdFiltered = ResourceClassWithId & {
643635 matching ?: boolean ;
644- tolerations ?: K8SLabelList ;
645- node_affinities ?: NodeAffinityList ;
646- usage_available ?: UsageAvailable ;
647- usage_limit_total ?: UsageLimitTotal ;
636+ usage_hours_remaining ?: UsageHoursRemaining ;
637+ usage_hours_total ?: UsageHoursTotal ;
648638} ;
649639export type PublicFlag = boolean ;
650640export type RemoteConfigurationFirecrestProviderId = string ;
@@ -673,7 +663,7 @@ export type IdleThreshold = number;
673663export type HibernationThreshold = number ;
674664export type HibernationWarningPeriod = number ;
675665export type RuntimePlatform = "linux/amd64" | "linux/arm64" ;
676- export type ResourceUsage = number ;
666+ export type CreditsUsed = number ;
677667export type ResourcePoolWithIdFiltered = {
678668 quota ?: QuotaWithId ;
679669 classes : ResourceClassWithIdFiltered [ ] ;
@@ -687,7 +677,7 @@ export type ResourcePoolWithIdFiltered = {
687677 hibernation_warning_period ?: HibernationWarningPeriod ;
688678 cluster_id ?: Ulid ;
689679 platform : RuntimePlatform ;
690- resource_usage ?: ResourceUsage ;
680+ credits_used ?: CreditsUsed ;
691681} ;
692682export type ResourcePoolsWithIdFiltered = ResourcePoolWithIdFiltered [ ] ;
693683export type CpuFilter = number ;
@@ -715,17 +705,18 @@ export type QuotaWithOptionalId = {
715705 gpu : Gpu ;
716706 id ?: Name ;
717707} ;
718- export type ResourceClass = {
719- name : Name ;
720- cpu : Cpu ;
721- memory : Memory ;
722- gpu : Gpu ;
723- max_storage : Storage ;
724- default_storage : Storage ;
725- default : DefaultFlag ;
708+ export type ResourceClassProperties = {
709+ name ? : Name ;
710+ default ?: DefaultFlag ;
711+ cpu ?: Cpu ;
712+ memory ?: Memory ;
713+ gpu ?: Gpu ;
714+ max_storage ? : Storage ;
715+ default_storage ?: Storage ;
726716 tolerations ?: K8SLabelList ;
727717 node_affinities ?: NodeAffinityList ;
728718} ;
719+ export type ResourceClass = ResourceClassProperties ;
729720export type ResourceClasses = ResourceClass [ ] ;
730721export type ResourcePool = {
731722 quota ?: QuotaWithOptionalId ;
@@ -759,21 +750,10 @@ export type QuotaPatch = {
759750 memory ?: Memory ;
760751 gpu ?: Gpu ;
761752} ;
762- export type DefaultFlagPatch = boolean ;
763- export type ResourceClassPatchWithId = {
764- name ?: Name ;
765- cpu ?: Cpu ;
766- memory ?: Memory ;
767- gpu ?: Gpu ;
768- max_storage ?: Storage ;
769- default_storage ?: Storage ;
770- id : IntegerId ;
771- default ?: DefaultFlagPatch ;
772- tolerations ?: K8SLabelList ;
773- node_affinities ?: NodeAffinityList ;
753+ export type ResourceClassPatchWithId = ResourceClassProperties & {
754+ id ?: IntegerId ;
774755} ;
775756export type ResourceClassesPatchWithId = ResourceClassPatchWithId [ ] ;
776- export type PublicFlagPatch = boolean ;
777757export type RemoteConfigurationPatchReset = object ;
778758export type RemoteConfigurationFirecrestPatch = {
779759 /** Kind of remote resource pool */
@@ -797,8 +777,8 @@ export type ResourcePoolPatch = {
797777 quota ?: QuotaPatch ;
798778 classes ?: ResourceClassesPatchWithId ;
799779 name ?: Name ;
800- public ?: PublicFlagPatch ;
801- default ?: DefaultFlagPatch ;
780+ public ?: PublicFlag ;
781+ default ?: DefaultFlag ;
802782 remote ?: RemoteConfigurationPatch ;
803783 idle_threshold ?: IdleThreshold ;
804784 hibernation_threshold ?: HibernationThreshold ;
@@ -807,17 +787,7 @@ export type ResourcePoolPatch = {
807787 platform ?: RuntimePlatform ;
808788} ;
809789export type ResourceClassesWithIdResponse = ResourceClassWithId [ ] ;
810- export type ResourceClassPatch = {
811- name ?: Name ;
812- cpu ?: Cpu ;
813- memory ?: Memory ;
814- gpu ?: Gpu ;
815- max_storage ?: Storage ;
816- default_storage ?: Storage ;
817- default ?: DefaultFlagPatch ;
818- tolerations ?: K8SLabelList ;
819- node_affinities ?: NodeAffinityList ;
820- } ;
790+ export type ResourceClassPatch = ResourceClassProperties ;
821791export type NodeAffinityListResponse = NodeAffinity [ ] ;
822792export type UserId = string ;
823793export type PoolUserWithId = {
0 commit comments