From 061296c906bbff0558c6004e0e2c5ba0083d734b Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-2[bot]" <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 03:36:24 +0000 Subject: [PATCH] Update SDK to c68a27fa9c9d838e839c584be8018eb3b68377d5 --- .codegen/_openapi_sha | 2 +- NEXT_CHANGELOG.md | 3 ++ service/bundle/model.go | 46 ++++++++++++++++++++++++++++++ service/settings/model.go | 3 +- service/settingsv2/model.go | 57 +++++++++++++++++++++++++++++++++++++ 5 files changed, 109 insertions(+), 2 deletions(-) mode change 100644 => 100755 NEXT_CHANGELOG.md diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 9f7293ebb..c30ba6afa 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -9718484d914270778e25e06040a5b3a17e19a7f7 \ No newline at end of file +c68a27fa9c9d838e839c584be8018eb3b68377d5 \ No newline at end of file diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md old mode 100644 new mode 100755 index a7d6d5cc7..1f089f51a --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -13,3 +13,6 @@ ### Internal Changes ### API Changes +* Add `DeploymentMode` field for [bundle.Deployment](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/bundle#Deployment). +* Add `DeploymentMode` field for [bundle.Version](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/bundle#Version). +* Add `CollaborationPlatformConnectivity` and `EffectiveCollaborationPlatformConnectivity` fields for [settingsv2.Setting](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/settingsv2#Setting). \ No newline at end of file diff --git a/service/bundle/model.go b/service/bundle/model.go index 49db49475..9be6c01d2 100755 --- a/service/bundle/model.go +++ b/service/bundle/model.go @@ -78,6 +78,9 @@ type Deployment struct { CreateTime *time.Time `json:"create_time,omitempty"` // The user who created the deployment (email or principal name). CreatedBy string `json:"created_by,omitempty"` + // Bundle target deployment mode (development or production), derived from + // the most recent version's mode. + DeploymentMode DeploymentMode `json:"deployment_mode,omitempty"` // When the deployment was destroyed (i.e. `bundle destroy` completed). // Unset if the deployment has not been destroyed. Named destroy_time (not // delete_time) because this tracks the `databricks bundle destroy` command, @@ -110,6 +113,46 @@ func (s Deployment) MarshalJSON() ([]byte, error) { return marshal.Marshal(s) } +// Bundle target deployment mode. Mirrors the `mode` field on a bundle target in +// `databricks.yml` (see +// https://docs.databricks.com/dev-tools/bundles/deployment-modes). +type DeploymentMode string + +const DeploymentModeDeploymentModeDevelopment DeploymentMode = `DEPLOYMENT_MODE_DEVELOPMENT` + +const DeploymentModeDeploymentModeProduction DeploymentMode = `DEPLOYMENT_MODE_PRODUCTION` + +// String representation for [fmt.Print] +func (f *DeploymentMode) String() string { + return string(*f) +} + +// Set raw string value and validate it against allowed values +func (f *DeploymentMode) Set(v string) error { + switch v { + case `DEPLOYMENT_MODE_DEVELOPMENT`, `DEPLOYMENT_MODE_PRODUCTION`: + *f = DeploymentMode(v) + return nil + default: + return fmt.Errorf(`value "%s" is not one of "DEPLOYMENT_MODE_DEVELOPMENT", "DEPLOYMENT_MODE_PRODUCTION"`, v) + } +} + +// Values returns all possible values for DeploymentMode. +// +// There is no guarantee on the order of the values in the slice. +func (f *DeploymentMode) Values() []DeploymentMode { + return []DeploymentMode{ + DeploymentModeDeploymentModeDevelopment, + DeploymentModeDeploymentModeProduction, + } +} + +// Type always returns DeploymentMode to satisfy [pflag.Value] interface +func (f *DeploymentMode) Type() string { + return "DeploymentMode" +} + // Type of a deployment resource. type DeploymentResourceType string @@ -655,6 +698,9 @@ type Version struct { CreateTime *time.Time `json:"create_time,omitempty"` // The user who created the version (email or principal name). CreatedBy string `json:"created_by,omitempty"` + // Bundle target deployment mode (development or production), captured at + // the time of this version. + DeploymentMode DeploymentMode `json:"deployment_mode,omitempty"` // Display name for the deployment, captured at the time of this version. DisplayName string `json:"display_name,omitempty"` // Resource name of the version. Format: diff --git a/service/settings/model.go b/service/settings/model.go index 283e5f4cd..f838e0d89 100755 --- a/service/settings/model.go +++ b/service/settings/model.go @@ -1246,7 +1246,8 @@ func (s CustomerFacingIngressNetworkPolicyPublicRequestOrigin) MarshalJSON() ([] type CustomerFacingIngressNetworkPolicyRequestDestination struct { AccountApi *CustomerFacingIngressNetworkPolicyAccountApiDestination `json:"account_api,omitempty"` - + // Account DatabricksOne destination is not supported. DO NOT change the + // stage of this destination past PRIVATE_PREVIEW. AccountDatabricksOne *CustomerFacingIngressNetworkPolicyAccountDatabricksOneDestination `json:"account_databricks_one,omitempty"` AccountUi *CustomerFacingIngressNetworkPolicyAccountUiDestination `json:"account_ui,omitempty"` diff --git a/service/settingsv2/model.go b/service/settingsv2/model.go index 7b24258f8..da967ae7d 100755 --- a/service/settingsv2/model.go +++ b/service/settingsv2/model.go @@ -254,6 +254,55 @@ func (s ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) MarshalJSON() return marshal.Marshal(s) } +// Controls which external collaboration platforms (Slack, Microsoft Teams) can +// connect to a workspace. Defaults to ALLOW_ALL. +type CollaborationPlatformConnectivityMessage struct { + Connectivity CollaborationPlatformConnectivityMessageConnectivity `json:"connectivity"` +} + +type CollaborationPlatformConnectivityMessageConnectivity string + +const CollaborationPlatformConnectivityMessageConnectivityAllowAll CollaborationPlatformConnectivityMessageConnectivity = `ALLOW_ALL` + +const CollaborationPlatformConnectivityMessageConnectivityAllowSlack CollaborationPlatformConnectivityMessageConnectivity = `ALLOW_SLACK` + +const CollaborationPlatformConnectivityMessageConnectivityAllowTeams CollaborationPlatformConnectivityMessageConnectivity = `ALLOW_TEAMS` + +const CollaborationPlatformConnectivityMessageConnectivityDenyAll CollaborationPlatformConnectivityMessageConnectivity = `DENY_ALL` + +// String representation for [fmt.Print] +func (f *CollaborationPlatformConnectivityMessageConnectivity) String() string { + return string(*f) +} + +// Set raw string value and validate it against allowed values +func (f *CollaborationPlatformConnectivityMessageConnectivity) Set(v string) error { + switch v { + case `ALLOW_ALL`, `ALLOW_SLACK`, `ALLOW_TEAMS`, `DENY_ALL`: + *f = CollaborationPlatformConnectivityMessageConnectivity(v) + return nil + default: + return fmt.Errorf(`value "%s" is not one of "ALLOW_ALL", "ALLOW_SLACK", "ALLOW_TEAMS", "DENY_ALL"`, v) + } +} + +// Values returns all possible values for CollaborationPlatformConnectivityMessageConnectivity. +// +// There is no guarantee on the order of the values in the slice. +func (f *CollaborationPlatformConnectivityMessageConnectivity) Values() []CollaborationPlatformConnectivityMessageConnectivity { + return []CollaborationPlatformConnectivityMessageConnectivity{ + CollaborationPlatformConnectivityMessageConnectivityAllowAll, + CollaborationPlatformConnectivityMessageConnectivityAllowSlack, + CollaborationPlatformConnectivityMessageConnectivityAllowTeams, + CollaborationPlatformConnectivityMessageConnectivityDenyAll, + } +} + +// Type always returns CollaborationPlatformConnectivityMessageConnectivity to satisfy [pflag.Value] interface +func (f *CollaborationPlatformConnectivityMessageConnectivity) Type() string { + return "CollaborationPlatformConnectivityMessageConnectivity" +} + type GetPublicAccountSettingRequest struct { Name string `json:"-" url:"-"` } @@ -623,6 +672,10 @@ type Setting struct { // Setting value for boolean type setting. This is the setting value set by // consumers, check effective_boolean_val for final setting value. BooleanVal *BooleanMessage `json:"boolean_val,omitempty"` + // Setting value for collaboration_platform_connectivity setting. This is + // the setting value set by consumers, check + // effective_collaboration_platform_connectivity for final setting value. + CollaborationPlatformConnectivity *CollaborationPlatformConnectivityMessage `json:"collaboration_platform_connectivity,omitempty"` // Effective setting value for aibi_dashboard_embedding_access_policy // setting. This is the final effective value of setting. To set a value use // aibi_dashboard_embedding_access_policy. @@ -642,6 +695,10 @@ type Setting struct { // Effective setting value for boolean type setting. This is the final // effective value of setting. To set a value use boolean_val. EffectiveBooleanVal *BooleanMessage `json:"effective_boolean_val,omitempty"` + // Effective setting value for collaboration_platform_connectivity setting. + // This is the final effective value of setting. To set a value use + // collaboration_platform_connectivity. + EffectiveCollaborationPlatformConnectivity *CollaborationPlatformConnectivityMessage `json:"effective_collaboration_platform_connectivity,omitempty"` // Effective setting value for integer type setting. This is the final // effective value of setting. To set a value use integer_val. EffectiveIntegerVal *IntegerMessage `json:"effective_integer_val,omitempty"`