diff --git a/gradient/api_sdk/graphql.py b/gradient/api_sdk/graphql.py index 95d1008e..cfad2d03 100644 --- a/gradient/api_sdk/graphql.py +++ b/gradient/api_sdk/graphql.py @@ -10,4 +10,4 @@ def graphql_client(api_key=config.PAPERSPACE_API_KEY): } transport = RequestsHTTPTransport(headers=headers, url=config.API_HOST, verify=True, retries=3) - return Client(transport=transport, fetch_schema_from_transport=True) \ No newline at end of file + return Client(transport=transport) \ No newline at end of file diff --git a/gradient/api_sdk/repositories/gradient_deployments.py b/gradient/api_sdk/repositories/gradient_deployments.py index ccc40599..fbdeb3d3 100644 --- a/gradient/api_sdk/repositories/gradient_deployments.py +++ b/gradient/api_sdk/repositories/gradient_deployments.py @@ -69,6 +69,14 @@ def get_deployment(id, first=100): deploymentSpecs(first: $first) { nodes { id + data { + image + port + resources { + instanceType + replicas + } + } endpointUrl actor { avatarUrl @@ -134,6 +142,19 @@ def list_deployments(first=100): deploymentSpecs(first: $first) { nodes { id + data { + image + port + resources { + instanceType + replicas + } + } + endpointUrl + actor { + avatarUrl + fullName + } deploymentRuns(first: $first) { nodes { id diff --git a/gradient/cli/gradient_deployments.py b/gradient/cli/gradient_deployments.py index c10e34a6..a8a1365f 100644 --- a/gradient/cli/gradient_deployments.py +++ b/gradient/cli/gradient_deployments.py @@ -11,6 +11,7 @@ from gradient.cli.cli import cli from gradient.cli.common import api_key_option, ClickGroup from gradient.commands.helpers import print_table, formatted_graphql +from gradient.exceptions import ApplicationError logger = logging.getLogger(__name__)