Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openhexa/graphql/graphql_client/input_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,14 @@ class ResetPasswordInput(BaseModel):


class ResourceCountsInput(BaseModel):
max_pipeline_timeout: Optional[int] = Field(
alias="maxPipelineTimeout", default=None
)
notebook_profile: Optional[str] = Field(alias="notebookProfile", default=None)
pipeline_cpu_limit: Optional[str] = Field(alias="pipelineCpuLimit", default=None)
pipeline_memory_limit: Optional[str] = Field(
alias="pipelineMemoryLimit", default=None
)
pipeline_runs: int = Field(alias="pipelineRuns")
users: int
workspaces: int
Expand Down
21 changes: 21 additions & 0 deletions openhexa/graphql/schema.generated.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3898,6 +3898,18 @@ type ResourceCounts {

"""Input type for resource counts (used for subscription limits)."""
input ResourceCountsInput {
"""Maximum pipeline timeout in seconds."""
maxPipelineTimeout: Int

"""JupyterHub profile to use (e.g., "trial")."""
notebookProfile: String

"""CPU limit for pipeline pods (e.g., "1")."""
pipelineCpuLimit: String

"""Memory limit for pipeline pods (e.g., "1G")."""
pipelineMemoryLimit: String

"""Number of pipeline runs."""
pipelineRuns: Int!

Expand Down Expand Up @@ -4120,6 +4132,15 @@ type Subscription {
"""The date when the subscription ends."""
endDate: Date!

"""Whether the subscription has expired."""
isExpired: Boolean!

"""
Whether the subscription is in the grace period after expiration.
During the grace period, limits are not enforced but a warning is shown.
"""
isInGracePeriod: Boolean!

"""Resource limits for this subscription."""
limits: ResourceCounts!

Expand Down
Loading