Skip to content

Commit

Permalink
Release v0.23.0 (#589)
Browse files Browse the repository at this point in the history
Internal changes:

* Add CONTRIBUTING.md
([#585](#585)).
* Improve diff generation for changelog.

API Changes:

 * Added `databricks.sdk.service.catalog.AwsIamRoleResponse` dataclass.
 * Added `databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
 * Removed `databricks.sdk.service.catalog.AwsIamRole` dataclass.
* Changed `aws_iam_role` field for
`databricks.sdk.service.catalog.CreateStorageCredential` to
`databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Changed `aws_iam_role` field for
`databricks.sdk.service.catalog.StorageCredentialInfo` to
`databricks.sdk.service.catalog.AwsIamRoleResponse` dataclass.
* Changed `aws_iam_role` field for
`databricks.sdk.service.catalog.UpdateStorageCredential` to
`databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Changed `aws_iam_role` field for
`databricks.sdk.service.catalog.ValidateStorageCredential` to
`databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Added `auto_capture_config` field for
`databricks.sdk.service.serving.EndpointPendingConfig`.
* Added `databricks.sdk.service.sharing.SharedDataObjectDataObjectType`
dataclass.
* Changed `data_object_type` field for
`databricks.sdk.service.sharing.SharedDataObject` to
`databricks.sdk.service.sharing.SharedDataObjectDataObjectType`
dataclass.
* Added `content` field for
`databricks.sdk.service.sharing.SharedDataObject`.
* Added `embedding_source_columns` field for
`databricks.sdk.service.vectorsearch.DirectAccessVectorIndexSpec`.

OpenAPI SHA: 93763b0d7ae908520c229c786fff28b8fd623261, Date: 2024-03-20
  • Loading branch information
mgyucht authored Mar 20, 2024
1 parent b239ab1 commit 45fbb69
Show file tree
Hide file tree
Showing 31 changed files with 194 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c84caf9e5ef531cc0b1ddd0a76970d9a8b664e32
93763b0d7ae908520c229c786fff28b8fd623261
18 changes: 16 additions & 2 deletions .codegen/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{end}}{{- if .ApiChanges}}
API Changes:
{{range .ApiChanges}}
* {{.Action}} {{template "what" .}}{{if .Extra}} {{.Extra}}{{with .Other}} {{template "what" .}}{{end}}{{end}}.
* {{.Action}} {{template "what" .}}{{if .Extra}} {{.Extra}}{{with .Other}} {{template "whats" .}}{{end}}{{end}}.
{{- end}}

OpenAPI SHA: {{.Sha}}, Date: {{.Changed}}
Expand All @@ -20,6 +20,20 @@ Dependency updates:

## {{.PrevVersion}}

{{- define "whats" -}}
{{- $length := len . -}}
{{- if gt $length 1 -}}
{{- range $i, $v := . -}}
{{- if lt $i (sub $length 1) -}}
{{- if gt $i 0 -}}, {{- end -}}{{ template "what" $v }}
{{- else -}}
{{- " and " -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- template "what" (index . (sub $length 1)) -}}
{{- end -}}

{{- define "what" -}}
{{if eq .X "package" -}}
`databricks.sdk.service.{{.Package.Name}}` package
Expand All @@ -35,7 +49,7 @@ Dependency updates:
{{- end -}}

{{- define "service" -}}
[{{if .IsAccounts}}a{{else}}w{{end}}.{{.SnakeName}}](https://databricks-sdk-py.readthedocs.io/en/latest/{{if .IsAccounts}}account{{else}}workspace{{end}}/{{.SnakeName}}.html) {{if .IsAccounts}}account{{else}}workspace{{end}}-level service
[{{if .IsAccounts}}a{{else}}w{{end}}.{{.SnakeName}}](https://databricks-sdk-py.readthedocs.io/en/latest/{{if .IsAccounts}}account{{else}}workspace{{end}}{{with .ParentService}}/{{.SnakeName}}{{end}}/{{.SnakeName}}.html) {{if .IsAccounts}}account{{else}}workspace{{end}}-level service
{{- end -}}

{{- define "entity" -}}
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Version changelog

## 0.23.0

* Add CONTRIBUTING.md ([#585](https://github.com/databricks/databricks-sdk-py/pull/585)).

API Changes:

* Added `databricks.sdk.service.catalog.AwsIamRoleResponse` dataclass.
* Added `databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Removed `databricks.sdk.service.catalog.AwsIamRole` dataclass.
* Changed `aws_iam_role` field for `databricks.sdk.service.catalog.CreateStorageCredential` to `databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Changed `aws_iam_role` field for `databricks.sdk.service.catalog.StorageCredentialInfo` to `databricks.sdk.service.catalog.AwsIamRoleResponse` dataclass.
* Changed `aws_iam_role` field for `databricks.sdk.service.catalog.UpdateStorageCredential` to `databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Changed `aws_iam_role` field for `databricks.sdk.service.catalog.ValidateStorageCredential` to `databricks.sdk.service.catalog.AwsIamRoleRequest` dataclass.
* Added `auto_capture_config` field for `databricks.sdk.service.serving.EndpointPendingConfig`.
* Added `databricks.sdk.service.sharing.SharedDataObjectDataObjectType` dataclass.
* Changed `data_object_type` field for `databricks.sdk.service.sharing.SharedDataObject` to `databricks.sdk.service.sharing.SharedDataObjectDataObjectType` dataclass.
* Added `content` field for `databricks.sdk.service.sharing.SharedDataObject`.
* Added `embedding_source_columns` field for `databricks.sdk.service.vectorsearch.DirectAccessVectorIndexSpec`.

OpenAPI SHA: 93763b0d7ae908520c229c786fff28b8fd623261, Date: 2024-03-20

## 0.22.0

* Fix typos in doc string for select_spark_version ([#575](https://github.com/databricks/databricks-sdk-py/pull/575)).
Expand Down
63 changes: 40 additions & 23 deletions databricks/sdk/service/catalog.py

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

8 changes: 7 additions & 1 deletion databricks/sdk/service/serving.py

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

25 changes: 22 additions & 3 deletions databricks/sdk/service/sharing.py

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

Loading

0 comments on commit 45fbb69

Please sign in to comment.