Skip to content

Commit 6a9c534

Browse files
[Internal] Update OpenAPI spec (#715)
## Changes <!-- Summary of your changes that are easy to understand --> Update OpenAPI spec ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [X] `make test` run locally - [X] `make fmt` applied - [x] relevant integration tests applied
1 parent b0750eb commit 6a9c534

File tree

17 files changed

+4520
-1148
lines changed

17 files changed

+4520
-1148
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7437dabb9dadee402c1fc060df4c1ce8cc5369f0
1+
37e2bbe0cbcbbbe78a06a018d4fab06314a26a40

.codegen/service.py.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class {{.PascalName}}API:{{if .Description}}
295295
{{if .NeedsOffsetDedupe -}}
296296
# deduplicate items that may have been added during iteration
297297
seen = set()
298-
{{- end}}{{if and .Pagination.Offset (not (eq .Path "/api/2.0/clusters/events")) }}
298+
{{- end}}{{if and .Pagination.Offset (not (eq .Path "/api/2.1/clusters/events")) }}
299299
query['{{.Pagination.Offset.Name}}'] =
300300
{{- if eq .Pagination.Increment 1 -}}
301301
1
@@ -321,7 +321,7 @@ class {{.PascalName}}API:{{if .Description}}
321321
if '{{.Pagination.Token.Bind.Name}}' not in json or not json['{{.Pagination.Token.Bind.Name}}']:
322322
return
323323
{{if or (eq "GET" .Verb) (eq "HEAD" .Verb)}}query{{else}}body{{end}}['{{.Pagination.Token.PollField.Name}}'] = json['{{.Pagination.Token.Bind.Name}}']
324-
{{- else if eq .Path "/api/2.0/clusters/events" -}}
324+
{{- else if eq .Path "/api/2.1/clusters/events" -}}
325325
if 'next_page' not in json or not json['next_page']:
326326
return
327327
body = json['next_page']

databricks/sdk/__init__.py

Lines changed: 49 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)