Skip to content

Commit 1e54b5c

Browse files
chore: disable introspection and add additional fields (#366)
1 parent 1517ac6 commit 1e54b5c

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

gradient/api_sdk/graphql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def graphql_client(api_key=config.PAPERSPACE_API_KEY):
1010
}
1111
transport = RequestsHTTPTransport(headers=headers, url=config.API_HOST, verify=True, retries=3)
1212

13-
return Client(transport=transport, fetch_schema_from_transport=True)
13+
return Client(transport=transport)

gradient/api_sdk/repositories/gradient_deployments.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ def get_deployment(id, first=100):
6969
deploymentSpecs(first: $first) {
7070
nodes {
7171
id
72+
data {
73+
image
74+
port
75+
resources {
76+
instanceType
77+
replicas
78+
}
79+
}
7280
endpointUrl
7381
actor {
7482
avatarUrl
@@ -134,6 +142,19 @@ def list_deployments(first=100):
134142
deploymentSpecs(first: $first) {
135143
nodes {
136144
id
145+
data {
146+
image
147+
port
148+
resources {
149+
instanceType
150+
replicas
151+
}
152+
}
153+
endpointUrl
154+
actor {
155+
avatarUrl
156+
fullName
157+
}
137158
deploymentRuns(first: $first) {
138159
nodes {
139160
id

gradient/cli/gradient_deployments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from gradient.cli.cli import cli
1212
from gradient.cli.common import api_key_option, ClickGroup
1313
from gradient.commands.helpers import print_table, formatted_graphql
14+
from gradient.exceptions import ApplicationError
1415

1516

1617
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)