@@ -536,30 +536,30 @@ export type PutUsersByUserIdResourcePoolsApiArg = {
536536export type GetVersionApiResponse = /** status 200 The error */ Version ;
537537export type GetVersionApiArg = void ;
538538export type Name = string ;
539+ export type DefaultFlag = boolean ;
539540export type Cpu = number ;
540541export type Memory = number ;
541542export type Gpu = number ;
542543export type Storage = number ;
543- export type IntegerId = number ;
544- export type DefaultFlag = boolean ;
545544export type K8SLabel = string ;
546545export type K8SLabelList = K8SLabel [ ] ;
547546export type NodeAffinity = {
548547 key : K8SLabel ;
549548 required_during_scheduling ?: boolean ;
550549} ;
551550export type NodeAffinityList = NodeAffinity [ ] ;
551+ export type IntegerId = number ;
552552export type ResourceClassWithId = {
553553 name : Name ;
554+ default : DefaultFlag ;
554555 cpu : Cpu ;
555556 memory : Memory ;
556557 gpu : Gpu ;
557558 max_storage : Storage ;
558559 default_storage : Storage ;
559- id : IntegerId ;
560- default : DefaultFlag ;
561560 tolerations ?: K8SLabelList ;
562561 node_affinities ?: NodeAffinityList ;
562+ id : IntegerId ;
563563} ;
564564export type ErrorResponse = {
565565 error : {
@@ -633,18 +633,12 @@ export type QuotaWithId = {
633633 gpu : Gpu ;
634634 id : Name ;
635635} ;
636- export type ResourceClassWithIdFiltered = {
637- name : Name ;
638- cpu : Cpu ;
639- memory : Memory ;
640- gpu : Gpu ;
641- max_storage : Storage ;
642- default_storage : Storage ;
643- id : IntegerId ;
644- default : DefaultFlag ;
636+ export type UsageHoursRemaining = number ;
637+ export type UsageHoursTotal = number ;
638+ export type ResourceClassWithIdFiltered = ResourceClassWithId & {
645639 matching ?: boolean ;
646- tolerations ?: K8SLabelList ;
647- node_affinities ?: NodeAffinityList ;
640+ usage_hours_remaining ?: UsageHoursRemaining ;
641+ usage_hours_total ?: UsageHoursTotal ;
648642} ;
649643export type PublicFlag = boolean ;
650644export type RemoteConfigurationFirecrestProviderId = string ;
@@ -673,6 +667,7 @@ export type IdleThreshold = number;
673667export type HibernationThreshold = number ;
674668export type HibernationWarningPeriod = number ;
675669export type RuntimePlatform = "linux/amd64" | "linux/arm64" ;
670+ export type CreditsUsed = number ;
676671export type ResourcePoolWithIdFiltered = {
677672 quota ?: QuotaWithId ;
678673 classes : ResourceClassWithIdFiltered [ ] ;
@@ -686,6 +681,7 @@ export type ResourcePoolWithIdFiltered = {
686681 hibernation_warning_period ?: HibernationWarningPeriod ;
687682 cluster_id ?: Ulid ;
688683 platform : RuntimePlatform ;
684+ credits_used ?: CreditsUsed ;
689685} ;
690686export type ResourcePoolsWithIdFiltered = ResourcePoolWithIdFiltered [ ] ;
691687export type CpuFilter = number ;
@@ -715,12 +711,12 @@ export type QuotaWithOptionalId = {
715711} ;
716712export type ResourceClass = {
717713 name : Name ;
714+ default : DefaultFlag ;
718715 cpu : Cpu ;
719716 memory : Memory ;
720717 gpu : Gpu ;
721718 max_storage : Storage ;
722719 default_storage : Storage ;
723- default : DefaultFlag ;
724720 tolerations ?: K8SLabelList ;
725721 node_affinities ?: NodeAffinityList ;
726722} ;
@@ -757,21 +753,21 @@ export type QuotaPatch = {
757753 memory ?: Memory ;
758754 gpu ?: Gpu ;
759755} ;
760- export type DefaultFlagPatch = boolean ;
761- export type ResourceClassPatchWithId = {
756+ export type ResourceClassProperties = {
762757 name ?: Name ;
758+ default ?: DefaultFlag ;
763759 cpu ?: Cpu ;
764760 memory ?: Memory ;
765761 gpu ?: Gpu ;
766762 max_storage ?: Storage ;
767763 default_storage ?: Storage ;
768- id : IntegerId ;
769- default ?: DefaultFlagPatch ;
770764 tolerations ?: K8SLabelList ;
771765 node_affinities ?: NodeAffinityList ;
772766} ;
767+ export type ResourceClassPatchWithId = ResourceClassProperties & {
768+ id : IntegerId ;
769+ } ;
773770export type ResourceClassesPatchWithId = ResourceClassPatchWithId [ ] ;
774- export type PublicFlagPatch = boolean ;
775771export type RemoteConfigurationPatchReset = object ;
776772export type RemoteConfigurationFirecrestPatch = {
777773 /** Kind of remote resource pool */
@@ -795,8 +791,8 @@ export type ResourcePoolPatch = {
795791 quota ?: QuotaPatch ;
796792 classes ?: ResourceClassesPatchWithId ;
797793 name ?: Name ;
798- public ?: PublicFlagPatch ;
799- default ?: DefaultFlagPatch ;
794+ public ?: PublicFlag ;
795+ default ?: DefaultFlag ;
800796 remote ?: RemoteConfigurationPatch ;
801797 idle_threshold ?: IdleThreshold ;
802798 hibernation_threshold ?: HibernationThreshold ;
@@ -805,17 +801,7 @@ export type ResourcePoolPatch = {
805801 platform ?: RuntimePlatform ;
806802} ;
807803export type ResourceClassesWithIdResponse = ResourceClassWithId [ ] ;
808- export type ResourceClassPatch = {
809- name ?: Name ;
810- cpu ?: Cpu ;
811- memory ?: Memory ;
812- gpu ?: Gpu ;
813- max_storage ?: Storage ;
814- default_storage ?: Storage ;
815- default ?: DefaultFlagPatch ;
816- tolerations ?: K8SLabelList ;
817- node_affinities ?: NodeAffinityList ;
818- } ;
804+ export type ResourceClassPatch = ResourceClassProperties ;
819805export type NodeAffinityListResponse = NodeAffinity [ ] ;
820806export type UserId = string ;
821807export type PoolUserWithId = {
0 commit comments