Skip to content

Commit

Permalink
chore: update GraphQL schema dump
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa authored and github-actions[bot] committed Oct 22, 2024
1 parent abffa81 commit ee27774
Showing 1 changed file with 159 additions and 22 deletions.
181 changes: 159 additions & 22 deletions src/ai/backend/manager/api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ type Queries {
agents(scaling_group: String, status: String): [Agent]
agent_summary(agent_id: String!): AgentSummary
agent_summary_list(limit: Int!, offset: Int!, filter: String, order: String, scaling_group: String, status: String): AgentSummaryList

"""Added in 24.12.0."""
domain_node(id: GlobalIDField!, permission: DomainPermissionValueField = "read_attribute"): DomainNode

Check notice on line 19 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'domain_node' was added to object type 'Queries'

Field 'domain_node' was added to object type 'Queries'

"""Added in 24.12.0."""
domain_nodes(filter: String, order: String, permission: DomainPermissionValueField = "read_attribute", offset: Int, before: String, after: String, first: Int, last: Int): DomainConnection

Check notice on line 22 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'domain_nodes' was added to object type 'Queries'

Field 'domain_nodes' was added to object type 'Queries'
domain(name: String): Domain
domains(is_active: Boolean): [Domain]

Expand Down Expand Up @@ -360,6 +366,115 @@ type AgentSummaryList implements PaginatedList {
total_count: Int!
}

"""Added in 24.12.0."""
type DomainNode implements Node {

Check notice on line 370 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'DomainNode' was added

Type 'DomainNode' was added
"""The ID of the object"""
id: ID!
name: String
description: String
is_active: Boolean
created_at: DateTime
modified_at: DateTime
total_resource_slots: JSONString
allowed_vfolder_hosts: JSONString
allowed_docker_registries: [String]
dotfiles: Bytes
integration_id: String
scaling_groups(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): ScalinGroupConnection
}

"""Added in 24.09.1."""
scalar Bytes

Check notice on line 387 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Bytes' was added

Type 'Bytes' was added

"""Added in 24.12.0."""
type ScalinGroupConnection {

Check notice on line 390 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'ScalinGroupConnection' was added

Type 'ScalinGroupConnection' was added
"""Pagination data for this connection."""
pageInfo: PageInfo!

"""Contains the nodes in this connection."""
edges: [ScalinGroupEdge]!

"""Total count of the GQL nodes of the query."""
count: Int
}

"""
The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!

"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!

"""When paginating backwards, the cursor to continue."""
startCursor: String

"""When paginating forwards, the cursor to continue."""
endCursor: String
}

"""
Added in 24.12.0. A Relay edge containing a `ScalinGroup` and its cursor.
"""
type ScalinGroupEdge {

Check notice on line 421 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'ScalinGroupEdge' was added

Type 'ScalinGroupEdge' was added
"""The item at the end of the edge"""
node: ScalingGroupNode

"""A cursor for use in pagination"""
cursor: String!
}

"""Added in 24.12.0."""
type ScalingGroupNode implements Node {

Check notice on line 430 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'ScalingGroupNode' was added

Type 'ScalingGroupNode' was added
"""The ID of the object"""
id: ID!
name: String
description: String
is_active: Boolean
is_public: Boolean
created_at: DateTime
wsproxy_addr: String
wsproxy_api_token: String
driver: String
driver_opts: JSONString
scheduler: String
scheduler_opts: JSONString
use_host_network: Boolean
}

"""
Added in 24.09.0. Global ID of GQL relay spec. Base64 encoded version of "<node type name>:<node id>". UUID or string type values are also allowed.
"""
scalar GlobalIDField

"""
Added in 24.12.0. One of ['read_attribute', 'read_sensitive_attribute', 'update_attribute', 'create_user', 'create_project'].
"""
scalar DomainPermissionValueField

Check notice on line 455 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'DomainPermissionValueField' was added

Type 'DomainPermissionValueField' was added

"""Added in 24.12.0"""
type DomainConnection {

Check notice on line 458 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'DomainConnection' was added

Type 'DomainConnection' was added
"""Pagination data for this connection."""
pageInfo: PageInfo!

"""Contains the nodes in this connection."""
edges: [DomainEdge]!

"""Total count of the GQL nodes of the query."""
count: Int
}

"""Added in 24.12.0 A Relay edge containing a `Domain` and its cursor."""
type DomainEdge {

Check notice on line 470 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'DomainEdge' was added

Type 'DomainEdge' was added
"""The item at the end of the edge"""
node: DomainNode

"""A cursor for use in pagination"""
cursor: String!
}

type Domain {
name: String
description: String
Expand Down Expand Up @@ -411,23 +526,6 @@ type UserConnection {
count: Int
}

"""
The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!

"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!

"""When paginating backwards, the cursor to continue."""
startCursor: String

"""When paginating forwards, the cursor to continue."""
endCursor: String
}

"""Added in 24.03.0 A Relay edge containing a `User` and its cursor."""
type UserEdge {
"""The item at the end of the edge"""
Expand Down Expand Up @@ -1041,11 +1139,6 @@ type ComputeSessionEdge {
cursor: String!
}

"""
Added in 24.09.0. Global ID of GQL relay spec. Base64 encoded version of "<node type name>:<node id>". UUID or string type values are also allowed.
"""
scalar GlobalIDField

type ComputeSessionList implements PaginatedList {
items: [ComputeSession]!
total_count: Int!
Expand Down Expand Up @@ -1404,6 +1497,12 @@ type Mutations {
To purge domain, there should be no users and groups in the target domain.
"""
purge_domain(name: String!): PurgeDomain

"""Added in 24.12.0."""
create_domain_node(input: CreateDomainInput!): CreateDomainNode

Check notice on line 1502 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'create_domain_node' was added to object type 'Mutations'

Field 'create_domain_node' was added to object type 'Mutations'

"""Added in 24.12.0."""
modify_domain_node(input: ModifyDomainNodeInput!): ModifyDomainNodePayload

Check notice on line 1505 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'modify_domain_node' was added to object type 'Mutations'

Field 'modify_domain_node' was added to object type 'Mutations'
create_group(name: String!, props: GroupInput!): CreateGroup
modify_group(gid: UUID!, props: ModifyGroupInput!): ModifyGroup

Expand Down Expand Up @@ -1637,6 +1736,44 @@ type PurgeDomain {
msg: String
}

type CreateDomainNode {

Check failure on line 1739 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

New types must include a description with a version number in the format "Added in XX.XX.X.", Type 'CreateDomainNode' was added

New types must include a description with a version number in the format "Added in XX.XX.X."
ok: Boolean
msg: String
item: DomainNode
}

input CreateDomainInput {

Check failure on line 1745 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

New types must include a description with a version number in the format "Added in XX.XX.X.", Type 'CreateDomainInput' was added

New types must include a description with a version number in the format "Added in XX.XX.X."
name: String!
description: String
is_active: Boolean = true
total_resource_slots: JSONString = "{}"
allowed_vfolder_hosts: JSONString = "{}"
allowed_docker_registries: [String] = []
integration_id: String = null
dotfiles: Bytes = "90"
scaling_groups: [String]
}

"""Added in 24.12.0."""
type ModifyDomainNodePayload {

Check notice on line 1758 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'ModifyDomainNodePayload' was added

Type 'ModifyDomainNodePayload' was added
item: DomainNode
clientMutationId: String
}

input ModifyDomainNodeInput {

Check failure on line 1763 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

New types must include a description with a version number in the format "Added in XX.XX.X.", Type 'ModifyDomainNodeInput' was added

New types must include a description with a version number in the format "Added in XX.XX.X."
id: GlobalIDField!
description: String
is_active: Boolean
total_resource_slots: JSONString
allowed_vfolder_hosts: JSONString
allowed_docker_registries: [String]
integration_id: String
dotfiles: Bytes
sgroups_to_add: [String]
sgroups_to_remove: [String]
clientMutationId: String
}

type CreateGroup {
ok: Boolean
msg: String
Expand Down

0 comments on commit ee27774

Please sign in to comment.