-
Notifications
You must be signed in to change notification settings - Fork 175
[Internal] Update Model Serving http_request mixin to correctly use the underlying API.
#876
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_request mixin to correctly use the underlying API.
hectorcast-db
approved these changes
Jan 28, 2025
sunishsheth2009
approved these changes
Jan 28, 2025
Contributor
sunishsheth2009
left a comment
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.
LGTM, thank you @renaudhartert-db :)
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
renaudhartert-db
added a commit
that referenced
this pull request
Jan 30, 2025
### Bug Fixes * Fix docs generation when two services have the same name ([#872](#872)). ### Internal Changes * Add CICD environment to the User Agent ([#866](#866)). * Add unit tests for retriable requests ([#879](#879)). * Extract "before retry" handler, use it to rewind the stream ([#878](#878)). * Update Model Serving `http_request` mixin to correctly use the underlying API. ([#876](#876)). ### API Changes: * Added [a.budget_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/budget_policy.html) account-level service. * Added [a.enable_ip_access_lists](https://databricks-sdk-py.readthedocs.io/en/latest/account/account_settings/enable_ip_access_lists.html) account-level service. * Added `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`. * Added `statement_id` field for `databricks.sdk.service.dashboards.QueryAttachment`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.BaseRun`. * Added `performance_target` field for `databricks.sdk.service.jobs.CreateJob`. * Added `performance_target` field for `databricks.sdk.service.jobs.JobSettings`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.Run`. * Added `performance_target` field for `databricks.sdk.service.jobs.RunNow`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.RunTask`. * Added `run_as_repl` field for `databricks.sdk.service.jobs.SparkJarTask`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.CreateCustomAppIntegration`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.GetCustomAppIntegrationOutput`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.UpdateCustomAppIntegration`. * Added `contents` field for `databricks.sdk.service.serving.HttpRequestResponse`. * Added . * Added . * Added . * Changed `create()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service with new required argument order. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to type `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to return `databricks.sdk.service.serving.HttpRequestResponse` dataclass. * Changed `config` field for `databricks.sdk.service.serving.CreateServingEndpoint` to no longer be required. * Removed `securable_kind` field for `databricks.sdk.service.catalog.CatalogInfo`. * Removed `securable_kind` field for `databricks.sdk.service.catalog.ConnectionInfo`. * Removed `status_code` and `text` fields for `databricks.sdk.service.serving.ExternalFunctionResponse`. OpenAPI SHA: 840c660106f820a1a5dff931d51fa5f65cd9fdd9, Date: 2025-01-28
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jan 30, 2025
### Bug Fixes * Fix docs generation when two services have the same name ([#872](#872)). ### Internal Changes * Add CICD environment to the User Agent ([#866](#866)). * Add unit tests for retriable requests ([#879](#879)). * Extract "before retry" handler, use it to rewind the stream ([#878](#878)). * Update Model Serving `http_request` mixin to correctly use the underlying API. ([#876](#876)). ### Backward Incompatible Changes * Changed `create()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service with new required argument order. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service to type `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service. * Changed `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html) workspace-level service to return `databricks.sdk.service.serving.HttpRequestResponse` dataclass. * Changed `config` field for `databricks.sdk.service.serving.CreateServingEndpoint` to no longer be required. * Removed `securable_kind` field for `databricks.sdk.service.catalog.CatalogInfo`. * Removed `securable_kind` field for `databricks.sdk.service.catalog.ConnectionInfo`. * Removed `status_code` and `text` fields for `databricks.sdk.service.serving.ExternalFunctionResponse`. ### API Changes: * Added [a.budget_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/billing/budget_policy.html) account-level service. * Added [a.enable_ip_access_lists](https://databricks-sdk-py.readthedocs.io/en/latest/account/settings/settings/enable_ip_access_lists.html) account-level service. * Added `review_state`, `reviews` and `runner_collaborators` fields for `databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook`. * Added `statement_id` field for `databricks.sdk.service.dashboards.QueryAttachment`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.BaseRun`. * Added `performance_target` field for `databricks.sdk.service.jobs.CreateJob`. * Added `performance_target` field for `databricks.sdk.service.jobs.JobSettings`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.Run`. * Added `performance_target` field for `databricks.sdk.service.jobs.RunNow`. * Added `effective_performance_target` field for `databricks.sdk.service.jobs.RunTask`. * Added `run_as_repl` field for `databricks.sdk.service.jobs.SparkJarTask`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.CreateCustomAppIntegration`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.GetCustomAppIntegrationOutput`. * Added `user_authorized_scopes` field for `databricks.sdk.service.oauth2.UpdateCustomAppIntegration`. * Added `contents` field for `databricks.sdk.service.serving.HttpRequestResponse`. * Added `clean_room` enum value for `databricks.sdk.service.catalog.SecurableType`. * Added `budget_policy_limit_exceeded` enum value for `databricks.sdk.service.jobs.TerminationCodeCode`. * Added `arclight_azure_exchange_token_with_user_delegation_key` enum value for `databricks.sdk.service.settings.TokenType`. OpenAPI SHA: 840c660106f820a1a5dff931d51fa5f65cd9fdd9, Date: 2025-01-28 --------- Signed-off-by: Renaud Hartert <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
This PR updates the Model Serving
http_requestfunction so that it properly uses the underlying generated API.This PR also updates the API of a few unrelated services.
How is this tested?
Added unit tests from PR #874