Skip to content

Commit

Permalink
Add from_dict when headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Feb 16, 2024
1 parent 67161f2 commit 30f21a2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .codegen/service.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}:{{if .Descriptio
{{template "safe-snake-name" .}}: Optional[{{template "type" .Entity}}] = None{{if .Description}}
"""{{.Comment " " 100 | trimSuffix "\""}}"""{{end}}
{{end}}
{{if .HasJsonField -}}
{{if or .HasJsonField .HasHeaderField -}}
def as_dict(self) -> dict:
"""Serializes the {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}} into a dictionary suitable for use as a JSON request body."""
body = {}
Expand Down
15 changes: 15 additions & 0 deletions databricks/sdk/service/files.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions databricks/sdk/service/sql.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30f21a2

Please sign in to comment.