Skip to content

Commit

Permalink
[Internal] Update OpenAPI spec (#316)
Browse files Browse the repository at this point in the history
## Changes
Update OpenAPI spec

## Tests
<!-- How is this tested? -->
- [X] `make test` run locally
- [X] `make fmt` applied
- [ ] relevant integration tests applied
  • Loading branch information
hectorcast-db authored Jul 22, 2024
1 parent 887d63c commit c04f58a
Show file tree
Hide file tree
Showing 288 changed files with 12,364 additions and 2,503 deletions.
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7437dabb9dadee402c1fc060df4c1ce8cc5369f0
37e2bbe0cbcbbbe78a06a018d4fab06314a26a40
4 changes: 2 additions & 2 deletions .codegen/api.java.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public class {{.PascalName}}API {
{{- end}}

{{define "method-call-paginated" -}}
{{- if and .Pagination.Offset (not (eq .Path "/api/2.0/clusters/events")) -}}
{{- if and .Pagination.Offset (not (eq .Path "/api/2.1/clusters/events")) -}}
request.set{{.Pagination.Offset.PascalName}}(
{{- if eq .Pagination.Increment 1 -}}
1
Expand All @@ -167,7 +167,7 @@ public class {{.PascalName}}API {
response ->
{{ if not .Pagination.MultiRequest }}
null
{{- else if eq .Path "/api/2.0/clusters/events" -}}
{{- else if eq .Path "/api/2.1/clusters/events" -}}
response.getNextPage()
{{- else if .Pagination.Token -}}
{
Expand Down
177 changes: 150 additions & 27 deletions .gitattributes

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ log4j.logger.com.databricks.sdk=DEBUG
This will enable logging at the debug level and above. Developers can adjust the logging level as needed to control the verbosity of the logging output. The SDK will log all requests and responses to standard error output, using the format `> ` for requests and `< ` for responses. In some cases, requests or responses may be truncated due to size considerations. If this occurs, the log message will include the text `... (XXX additional elements)` to indicate that the request or response has been truncated. To increase the truncation limits, developers can set the `debug_truncate_bytes` configuration property or the `DATABRICKS_DEBUG_TRUNCATE_BYTES` environment variable. To protect sensitive data, such as authentication tokens, passwords, or any HTTP headers, the SDK will automatically replace these values with `**REDACTED**` in the log output. Developers can disable this redaction by setting the `debug_headers` configuration property to `True`.

```text
2023-03-22 21:19:21,702 [databricks.sdk][DEBUG] GET /api/2.0/clusters/list
2023-03-22 21:19:21,702 [databricks.sdk][DEBUG] GET /api/2.1/clusters/list
< 200 OK
< {
< "clusters": [
Expand Down

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

Loading

0 comments on commit c04f58a

Please sign in to comment.