Skip to content

Commit

Permalink
chore(notebooks): remove deprecated option nb-1131 (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-r-i-k-a authored May 31, 2022
1 parent f3d1b32 commit 16fad0c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions gradient/api_sdk/clients/notebook_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def create(
registry_username=None,
registry_password=None,
command=None,
container_user=None,
shutdown_timeout=None,
is_preemptible=None,
is_public=None,
Expand All @@ -38,7 +37,6 @@ def create(
:param str registry_username:
:param str registry_password:
:param str command:
:param str container_user:
:param int shutdown_timeout:
:param bool is_preemptible:
:param bool is_public:
Expand All @@ -62,7 +60,6 @@ def create(
registry_username=registry_username,
registry_password=registry_password,
command=command,
container_user=container_user,
shutdown_timeout=shutdown_timeout,
is_preemptible=is_preemptible,
machine_type=machine_type,
Expand Down
1 change: 0 additions & 1 deletion gradient/api_sdk/models/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Notebook(object):
registry_password = attr.ib(type=str, default=None)
command = attr.ib(type=str, default=None)
default_entrypoint = attr.ib(type=str, default=None)
container_user = attr.ib(type=str, default=None)
shutdown_timeout = attr.ib(type=int, default=None)
is_preemptible = attr.ib(type=bool, default=None)
project_id = attr.ib(type=str, default=None)
Expand Down
1 change: 0 additions & 1 deletion gradient/api_sdk/serializers/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class NotebookSchema(BaseSchema):
registry_password = marshmallow.fields.Str(load_from="registryPassword", dump_to="registryPassword")
command = marshmallow.fields.Str(load_from="command", dump_to="command")
default_entrypoint = marshmallow.fields.Str(load_from="defaultEntrypoint", dump_to="defaultEntrypoint")
container_user = marshmallow.fields.Str(load_from="containerUser", dump_to="containerUser")
shutdown_timeout = marshmallow.fields.Int(load_from="shutdownTimeout", dump_to="shutdownTimeout")
is_preemptible = marshmallow.fields.Bool(load_from="isPreemptible", dump_to="isPreemptible")
is_public = marshmallow.fields.Bool(load_from="isPublic", dump_to="isPublic")
Expand Down
7 changes: 0 additions & 7 deletions gradient/cli/notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ def notebook_metrics():
help="Command (executed as `/bin/sh -c 'YOUR COMMAND'`)",
cls=common.GradientOption,
)
@click.option(
"--containerUser",
"container_user",
type=str,
help="Container user",
cls=common.GradientOption,
)
@click.option(
"--shutdownTimeout",
"shutdown_timeout",
Expand Down
1 change: 0 additions & 1 deletion tests/config_files/notebooks_create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ clusterId: 321
projectId: pr1234
container: "jupyter/notebook"
command: some_entrypoint
containerUser: some_container_user
isPreemptible: true
name: some_notebook_name
registryPassword: some_password
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class TestNotebooksCreate(object):
"--registryUsername", "some_username",
"--registryPassword", "some_password",
"--command", "some_entrypoint",
"--containerUser", "some_container_user",
"--shutdownTimeout", "8",
"--environment", '{"key":"val"}',
"--isPreemptible",
Expand All @@ -112,7 +111,6 @@ class TestNotebooksCreate(object):
"registryUsername": "some_username",
"registryPassword": "some_password",
"command": "c29tZV9lbnRyeXBvaW50",
"containerUser": "some_container_user",
"environment": {"key": "val"},
"shutdownTimeout": 8,
"isPreemptible": True,
Expand Down

0 comments on commit 16fad0c

Please sign in to comment.