Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 76c5bf9

Browse files
committed
Remove some parameters - need to investigate which to use
1 parent 379715f commit 76c5bf9

File tree

1 file changed

+4
-124
lines changed

1 file changed

+4
-124
lines changed

paperspace/cli.py

Lines changed: 4 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -323,18 +323,6 @@ def deployments():
323323
"name",
324324
required=True,
325325
)
326-
@click.option(
327-
"--tag",
328-
"tag",
329-
)
330-
@click.option(
331-
"--code",
332-
"code"
333-
)
334-
@click.option(
335-
"--cluster",
336-
"cluster",
337-
)
338326
@click.option(
339327
"--machineType",
340328
"machineType",
@@ -345,56 +333,12 @@ def deployments():
345333
"imageUrl",
346334
required=True,
347335
)
348-
@click.option(
349-
"--imageUsername",
350-
"imageUsername",
351-
)
352-
@click.option(
353-
"--imagePassword",
354-
"imagePassword",
355-
)
356-
@click.option(
357-
"--workspaceUrl",
358-
"workspaceUrl",
359-
)
360-
@click.option(
361-
"--workspaceUsername",
362-
"workspaceUsername",
363-
)
364-
@click.option(
365-
"--workspacePassword",
366-
"workspacePassword",
367-
)
368336
@click.option(
369337
"--instanceCount",
370338
"instanceCount",
371339
type=int,
372340
required=True,
373341
)
374-
@click.option(
375-
"--authToken",
376-
"authToken",
377-
)
378-
@click.option(
379-
"--oauthKey",
380-
"oauthKey",
381-
)
382-
@click.option(
383-
"--oauthSecret",
384-
"oauthSecret",
385-
)
386-
@click.option(
387-
"--serviceType",
388-
"serviceType",
389-
)
390-
@click.option(
391-
"--apiType",
392-
"apiType",
393-
)
394-
@click.option(
395-
"--ports",
396-
"ports",
397-
)
398342
def create_deployment(**kwargs):
399343
del_if_value_is_none(kwargs)
400344
command = deployments_commands.CreateDeployment()
@@ -432,24 +376,12 @@ def get_deployments_list(**kwargs):
432376
required=True,
433377
)
434378
@click.option(
435-
"--name",
436-
"name",
437-
)
438-
@click.option(
439-
"--tag",
440-
"tag",
441-
)
442-
@click.option(
443-
"--params",
444-
"params",
445-
)
446-
@click.option(
447-
"--code",
448-
"code",
379+
"--modelId",
380+
"modelId",
449381
)
450382
@click.option(
451-
"--cluster",
452-
"cluster",
383+
"--name",
384+
"name",
453385
)
454386
@click.option(
455387
"--machineType",
@@ -459,62 +391,10 @@ def get_deployments_list(**kwargs):
459391
"--imageUrl",
460392
"imageUrl",
461393
)
462-
@click.option(
463-
"--imageUsername",
464-
"imageUsername",
465-
)
466-
@click.option(
467-
"--imagePassword",
468-
"imagePassword",
469-
)
470-
@click.option(
471-
"--workspaceUrl",
472-
"workspaceUrl",
473-
)
474-
@click.option(
475-
"--workspaceUsername",
476-
"workspaceUsername",
477-
)
478-
@click.option(
479-
"--workspacePassword",
480-
"workspacePassword",
481-
)
482394
@click.option(
483395
"--instanceCount",
484396
"instanceCount",
485397
)
486-
@click.option(
487-
"--authToken",
488-
"authToken",
489-
)
490-
@click.option(
491-
"--annotations",
492-
"annotations",
493-
)
494-
@click.option(
495-
"--authToken",
496-
"authToken",
497-
)
498-
@click.option(
499-
"--oauthKey",
500-
"oauthKey",
501-
)
502-
@click.option(
503-
"--oauthSecret",
504-
"oauthSecret",
505-
)
506-
@click.option(
507-
"--serviceType",
508-
"serviceType",
509-
)
510-
@click.option(
511-
"--apiType",
512-
"apiType",
513-
)
514-
@click.option(
515-
"--ports",
516-
"ports",
517-
)
518398
def update_deployment_model(id=None, **kwargs):
519399
del_if_value_is_none(kwargs)
520400
command = deployments_commands.UpdateModelCommand()

0 commit comments

Comments
 (0)