-
Notifications
You must be signed in to change notification settings - Fork 22
feat(notebooks): use normalized parameter names PS-13855 blocked on paperspace/PS_API#1764 #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @attr.s | ||
| class Notebook(object): | ||
| id = attr.ib(type=str, default=None) | ||
| machine_type = attr.ib(type=str, default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
| @attr.s | ||
| class NotebookStart(object): | ||
| notebook_id = attr.ib(type=str, default=None) | ||
| machine_type = attr.ib(type=str, default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to leave the old fields in the models because the responses have not been updated to the new field names yet.
| MODEL = models.Notebook | ||
|
|
||
| id = marshmallow.fields.Str() | ||
| machine_type = marshmallow.fields.Str(load_from="machineType", dump_to="machineType") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
| MODEL = models.NotebookStart | ||
|
|
||
| notebook_id = marshmallow.fields.Str(load_from="notebookId", dump_to="notebookId") | ||
| machine_type = marshmallow.fields.Str(load_from="machineType", dump_to="machineType") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
dfda523 to
879aa6a
Compare
|
@BartoszCki this is ready for review |
No description provided.