Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ff7b7d2584e5e5b8f47772019b22d861c6ab066d
bd3bc8d53f689219f2cfce6c31806579bea45e6c
3 changes: 2 additions & 1 deletion NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@
* [Breaking] Remove `poolerMode` field for `com.databricks.sdk.service.postgres.EndpointStatus`.
* [Breaking] Remove `pgbouncerSettings` field for `com.databricks.sdk.service.postgres.ProjectDefaultEndpointSettings`.
* Add `owner` field for `com.databricks.sdk.service.postgres.ProjectStatus`.
* Add `validityCheckConfigurations` field for `com.databricks.sdk.service.qualitymonitorv2.QualityMonitor`.
* Add `validityCheckConfigurations` field for `com.databricks.sdk.service.qualitymonitorv2.QualityMonitor`.
* Add `burstScalingEnabled` field for `com.databricks.sdk.service.serving.PtServedModel`.
24 changes: 22 additions & 2 deletions databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/PtServedModel.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@

@Generated
public class PtServedModel {
/**
* Whether burst scaling is enabled. When enabled (default), the endpoint can automatically scale
* up beyond provisioned capacity to handle traffic spikes. When disabled, the endpoint maintains
* fixed capacity at provisioned_model_units.
*/
@JsonProperty("burst_scaling_enabled")
private Boolean burstScalingEnabled;

/**
* The name of the entity to be served. The entity may be a model in the Databricks Model
* Registry, a model in the Unity Catalog (UC), or a function of type FEATURE_SPEC in the UC. If
Expand All @@ -35,6 +43,15 @@ public class PtServedModel {
@JsonProperty("provisioned_model_units")
private Long provisionedModelUnits;

public PtServedModel setBurstScalingEnabled(Boolean burstScalingEnabled) {
this.burstScalingEnabled = burstScalingEnabled;
return this;
}

public Boolean getBurstScalingEnabled() {
return burstScalingEnabled;
}

public PtServedModel setEntityName(String entityName) {
this.entityName = entityName;
return this;
Expand Down Expand Up @@ -76,20 +93,23 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PtServedModel that = (PtServedModel) o;
return Objects.equals(entityName, that.entityName)
return Objects.equals(burstScalingEnabled, that.burstScalingEnabled)
&& Objects.equals(entityName, that.entityName)
&& Objects.equals(entityVersion, that.entityVersion)
&& Objects.equals(name, that.name)
&& Objects.equals(provisionedModelUnits, that.provisionedModelUnits);
}

@Override
public int hashCode() {
return Objects.hash(entityName, entityVersion, name, provisionedModelUnits);
return Objects.hash(
burstScalingEnabled, entityName, entityVersion, name, provisionedModelUnits);
}

@Override
public String toString() {
return new ToStringer(PtServedModel.class)
.add("burstScalingEnabled", burstScalingEnabled)
.add("entityName", entityName)
.add("entityVersion", entityVersion)
.add("name", name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public Iterable<SettingsMetadata> listAccountSettingsMetadata(
* list of setting available via public APIs at account level. To determine the correct field to
* include in a patch request, refer to the type field of the setting returned in the
* :method:settingsv2/listaccountsettingsmetadata response.
*
* <p>Note: Page refresh is required for changes to take effect in UI.
*/
public Setting patchPublicAccountSetting(PatchPublicAccountSettingRequest request) {
return impl.patchPublicAccountSetting(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ ListAccountSettingsMetadataResponse listAccountSettingsMetadata(
* list of setting available via public APIs at account level. To determine the correct field to
* include in a patch request, refer to the type field of the setting returned in the
* :method:settingsv2/listaccountsettingsmetadata response.
*
* <p>Note: Page refresh is required for changes to take effect in UI.
*/
Setting patchPublicAccountSetting(
PatchPublicAccountSettingRequest patchPublicAccountSettingRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public Iterable<SettingsMetadata> listWorkspaceSettingsMetadata(
* for list of setting available via public APIs at workspace level. To determine the correct
* field to include in a patch request, refer to the type field of the setting returned in the
* :method:settingsv2/listworkspacesettingsmetadata response.
*
* <p>Note: Page refresh is required for changes to take effect in UI.
*/
public Setting patchPublicWorkspaceSetting(PatchPublicWorkspaceSettingRequest request) {
return impl.patchPublicWorkspaceSetting(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ ListWorkspaceSettingsMetadataResponse listWorkspaceSettingsMetadata(
* for list of setting available via public APIs at workspace level. To determine the correct
* field to include in a patch request, refer to the type field of the setting returned in the
* :method:settingsv2/listworkspacesettingsmetadata response.
*
* <p>Note: Page refresh is required for changes to take effect in UI.
*/
Setting patchPublicWorkspaceSetting(
PatchPublicWorkspaceSettingRequest patchPublicWorkspaceSettingRequest);
Expand Down
Loading