settingsv2

package
v0.95.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

These APIs allow you to manage Account Settings V2, Workspace Settings V2, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountSettingsV2API

type AccountSettingsV2API struct {
	// contains filtered or unexported fields
}

APIs to manage account level settings

func NewAccountSettingsV2

func NewAccountSettingsV2(client *client.DatabricksClient) *AccountSettingsV2API

func (*AccountSettingsV2API) GetPublicAccountSetting

func (a *AccountSettingsV2API) GetPublicAccountSetting(ctx context.Context, request GetPublicAccountSettingRequest) (*Setting, error)

func (*AccountSettingsV2API) ListAccountSettingsMetadata

func (a *AccountSettingsV2API) ListAccountSettingsMetadata(ctx context.Context, request ListAccountSettingsMetadataRequest) listing.Iterator[SettingsMetadata]

List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH :method:settingsv2/patchpublicaccountsetting APIs

func (*AccountSettingsV2API) ListAccountSettingsMetadataAll

func (a *AccountSettingsV2API) ListAccountSettingsMetadataAll(ctx context.Context, request ListAccountSettingsMetadataRequest) ([]SettingsMetadata, error)

List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH :method:settingsv2/patchpublicaccountsetting APIs

func (*AccountSettingsV2API) PatchPublicAccountSetting

func (a *AccountSettingsV2API) PatchPublicAccountSetting(ctx context.Context, request PatchPublicAccountSettingRequest) (*Setting, error)

type AccountSettingsV2Interface

type AccountSettingsV2Interface interface {

	// Get a setting value at account level. See
	// :method:settingsv2/listaccountsettingsmetadata for list of setting available
	// via public APIs at account level.
	GetPublicAccountSetting(ctx context.Context, request GetPublicAccountSettingRequest) (*Setting, error)

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH
	// :method:settingsv2/patchpublicaccountsetting APIs
	//
	// This method is generated by Databricks SDK Code Generator.
	ListAccountSettingsMetadata(ctx context.Context, request ListAccountSettingsMetadataRequest) listing.Iterator[SettingsMetadata]

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH
	// :method:settingsv2/patchpublicaccountsetting APIs
	//
	// This method is generated by Databricks SDK Code Generator.
	ListAccountSettingsMetadataAll(ctx context.Context, request ListAccountSettingsMetadataRequest) ([]SettingsMetadata, error)

	// Patch a setting value at account level. See
	// :method:settingsv2/listaccountsettingsmetadata for 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.
	PatchPublicAccountSetting(ctx context.Context, request PatchPublicAccountSettingRequest) (*Setting, error)
}

type AccountSettingsV2Service deprecated

type AccountSettingsV2Service interface {

	// Get a setting value at account level. See
	// :method:settingsv2/listaccountsettingsmetadata for list of setting
	// available via public APIs at account level.
	GetPublicAccountSetting(ctx context.Context, request GetPublicAccountSettingRequest) (*Setting, error)

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH
	// :method:settingsv2/patchpublicaccountsetting APIs
	ListAccountSettingsMetadata(ctx context.Context, request ListAccountSettingsMetadataRequest) (*ListAccountSettingsMetadataResponse, error)

	// Patch a setting value at account level. See
	// :method:settingsv2/listaccountsettingsmetadata for 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.
	PatchPublicAccountSetting(ctx context.Context, request PatchPublicAccountSettingRequest) (*Setting, error)
}

APIs to manage account level settings

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

type AibiDashboardEmbeddingAccessPolicy

type AibiDashboardEmbeddingAccessPolicy struct {
	AccessPolicyType AibiDashboardEmbeddingAccessPolicyAccessPolicyType `json:"access_policy_type"`
}

type AibiDashboardEmbeddingAccessPolicyAccessPolicyType

type AibiDashboardEmbeddingAccessPolicyAccessPolicyType string
const AibiDashboardEmbeddingAccessPolicyAccessPolicyTypeAllowAllDomains AibiDashboardEmbeddingAccessPolicyAccessPolicyType = `ALLOW_ALL_DOMAINS`
const AibiDashboardEmbeddingAccessPolicyAccessPolicyTypeAllowApprovedDomains AibiDashboardEmbeddingAccessPolicyAccessPolicyType = `ALLOW_APPROVED_DOMAINS`
const AibiDashboardEmbeddingAccessPolicyAccessPolicyTypeDenyAllDomains AibiDashboardEmbeddingAccessPolicyAccessPolicyType = `DENY_ALL_DOMAINS`

func (*AibiDashboardEmbeddingAccessPolicyAccessPolicyType) Set

Set raw string value and validate it against allowed values

func (*AibiDashboardEmbeddingAccessPolicyAccessPolicyType) String

String representation for fmt.Print

func (*AibiDashboardEmbeddingAccessPolicyAccessPolicyType) Type

Type always returns AibiDashboardEmbeddingAccessPolicyAccessPolicyType to satisfy [pflag.Value] interface

func (*AibiDashboardEmbeddingAccessPolicyAccessPolicyType) Values

Values returns all possible values for AibiDashboardEmbeddingAccessPolicyAccessPolicyType.

There is no guarantee on the order of the values in the slice.

type AibiDashboardEmbeddingApprovedDomains

type AibiDashboardEmbeddingApprovedDomains struct {
	ApprovedDomains []string `json:"approved_domains,omitempty"`
}

type BooleanMessage

type BooleanMessage struct {
	Value bool `json:"value,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (BooleanMessage) MarshalJSON

func (s BooleanMessage) MarshalJSON() ([]byte, error)

func (*BooleanMessage) UnmarshalJSON

func (s *BooleanMessage) UnmarshalJSON(b []byte) error

type ClusterAutoRestartMessage

type ClusterAutoRestartMessage struct {
	CanToggle bool `json:"can_toggle,omitempty"`

	Enabled bool `json:"enabled,omitempty"`

	EnablementDetails *ClusterAutoRestartMessageEnablementDetails `json:"enablement_details,omitempty"`

	MaintenanceWindow *ClusterAutoRestartMessageMaintenanceWindow `json:"maintenance_window,omitempty"`

	RestartEvenIfNoUpdatesAvailable bool `json:"restart_even_if_no_updates_available,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ClusterAutoRestartMessage) MarshalJSON

func (s ClusterAutoRestartMessage) MarshalJSON() ([]byte, error)

func (*ClusterAutoRestartMessage) UnmarshalJSON

func (s *ClusterAutoRestartMessage) UnmarshalJSON(b []byte) error

type ClusterAutoRestartMessageEnablementDetails

type ClusterAutoRestartMessageEnablementDetails struct {
	// The feature is force enabled if compliance mode is active
	ForcedForComplianceMode bool `json:"forced_for_compliance_mode,omitempty"`
	// The feature is unavailable if the corresponding entitlement disabled (see
	// getShieldEntitlementEnable)
	UnavailableForDisabledEntitlement bool `json:"unavailable_for_disabled_entitlement,omitempty"`
	// The feature is unavailable if the customer doesn't have enterprise tier
	UnavailableForNonEnterpriseTier bool `json:"unavailable_for_non_enterprise_tier,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

Contains an information about the enablement status judging (e.g. whether the enterprise tier is enabled) This is only additional information that MUST NOT be used to decide whether the setting is enabled or not. This is intended to use only for purposes like showing an error message to the customer with the additional details. For example, using these details we can check why exactly the feature is disabled for this customer.

func (ClusterAutoRestartMessageEnablementDetails) MarshalJSON

func (*ClusterAutoRestartMessageEnablementDetails) UnmarshalJSON

type ClusterAutoRestartMessageMaintenanceWindow

type ClusterAutoRestartMessageMaintenanceWindow struct {
	WeekDayBasedSchedule *ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule `json:"week_day_based_schedule,omitempty"`
}

type ClusterAutoRestartMessageMaintenanceWindowDayOfWeek

type ClusterAutoRestartMessageMaintenanceWindowDayOfWeek string
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekFriday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `FRIDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekMonday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `MONDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekSaturday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `SATURDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekSunday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `SUNDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekThursday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `THURSDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekTuesday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `TUESDAY`
const ClusterAutoRestartMessageMaintenanceWindowDayOfWeekWednesday ClusterAutoRestartMessageMaintenanceWindowDayOfWeek = `WEDNESDAY`

func (*ClusterAutoRestartMessageMaintenanceWindowDayOfWeek) Set

Set raw string value and validate it against allowed values

func (*ClusterAutoRestartMessageMaintenanceWindowDayOfWeek) String

String representation for fmt.Print

func (*ClusterAutoRestartMessageMaintenanceWindowDayOfWeek) Type

Type always returns ClusterAutoRestartMessageMaintenanceWindowDayOfWeek to satisfy [pflag.Value] interface

func (*ClusterAutoRestartMessageMaintenanceWindowDayOfWeek) Values

Values returns all possible values for ClusterAutoRestartMessageMaintenanceWindowDayOfWeek.

There is no guarantee on the order of the values in the slice.

type ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule

type ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule struct {
	DayOfWeek ClusterAutoRestartMessageMaintenanceWindowDayOfWeek `json:"day_of_week,omitempty"`

	Frequency ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency `json:"frequency,omitempty"`

	WindowStartTime *ClusterAutoRestartMessageMaintenanceWindowWindowStartTime `json:"window_start_time,omitempty"`
}

type ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency

type ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency string
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencyEveryWeek ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `EVERY_WEEK`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencyFirstAndThirdOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `FIRST_AND_THIRD_OF_MONTH`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencyFirstOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `FIRST_OF_MONTH`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencyFourthOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `FOURTH_OF_MONTH`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencySecondAndFourthOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `SECOND_AND_FOURTH_OF_MONTH`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencySecondOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `SECOND_OF_MONTH`
const ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequencyThirdOfMonth ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency = `THIRD_OF_MONTH`

func (*ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency) Set

Set raw string value and validate it against allowed values

func (*ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency) String

String representation for fmt.Print

func (*ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency) Type

Type always returns ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency to satisfy [pflag.Value] interface

func (*ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency) Values

Values returns all possible values for ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency.

There is no guarantee on the order of the values in the slice.

type ClusterAutoRestartMessageMaintenanceWindowWindowStartTime

type ClusterAutoRestartMessageMaintenanceWindowWindowStartTime struct {
	Hours int `json:"hours,omitempty"`

	Minutes int `json:"minutes,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) MarshalJSON

func (*ClusterAutoRestartMessageMaintenanceWindowWindowStartTime) UnmarshalJSON

type GetPublicAccountSettingRequest

type GetPublicAccountSettingRequest struct {
	Name string `json:"-" url:"-"`
}

type GetPublicWorkspaceSettingRequest

type GetPublicWorkspaceSettingRequest struct {
	// Name of the setting
	Name string `json:"-" url:"-"`
}

type IntegerMessage

type IntegerMessage struct {
	Value int `json:"value,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (IntegerMessage) MarshalJSON

func (s IntegerMessage) MarshalJSON() ([]byte, error)

func (*IntegerMessage) UnmarshalJSON

func (s *IntegerMessage) UnmarshalJSON(b []byte) error

type ListAccountSettingsMetadataRequest

type ListAccountSettingsMetadataRequest struct {
	// The maximum number of settings to return. The service may return fewer
	// than this value. If unspecified, at most 200 settings will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int `json:"-" url:"page_size,omitempty"`
	// A page token, received from a previous
	// `ListAccountSettingsMetadataRequest` call. Provide this to retrieve the
	// subsequent page.
	//
	// When paginating, all other parameters provided to
	// `ListAccountSettingsMetadataRequest` must match the call that provided
	// the page token.
	PageToken string `json:"-" url:"page_token,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListAccountSettingsMetadataRequest) MarshalJSON

func (s ListAccountSettingsMetadataRequest) MarshalJSON() ([]byte, error)

func (*ListAccountSettingsMetadataRequest) UnmarshalJSON

func (s *ListAccountSettingsMetadataRequest) UnmarshalJSON(b []byte) error

type ListAccountSettingsMetadataResponse

type ListAccountSettingsMetadataResponse struct {
	// A token that can be sent as `page_token` to retrieve the next page. If
	// this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"next_page_token,omitempty"`
	// List of all settings available via public APIs and their metadata
	SettingsMetadata []SettingsMetadata `json:"settings_metadata,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListAccountSettingsMetadataResponse) MarshalJSON

func (s ListAccountSettingsMetadataResponse) MarshalJSON() ([]byte, error)

func (*ListAccountSettingsMetadataResponse) UnmarshalJSON

func (s *ListAccountSettingsMetadataResponse) UnmarshalJSON(b []byte) error

type ListWorkspaceSettingsMetadataRequest

type ListWorkspaceSettingsMetadataRequest struct {
	// The maximum number of settings to return. The service may return fewer
	// than this value. If unspecified, at most 200 settings will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int `json:"-" url:"page_size,omitempty"`
	// A page token, received from a previous
	// `ListWorkspaceSettingsMetadataRequest` call. Provide this to retrieve the
	// subsequent page.
	//
	// When paginating, all other parameters provided to
	// `ListWorkspaceSettingsMetadataRequest` must match the call that provided
	// the page token.
	PageToken string `json:"-" url:"page_token,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListWorkspaceSettingsMetadataRequest) MarshalJSON

func (s ListWorkspaceSettingsMetadataRequest) MarshalJSON() ([]byte, error)

func (*ListWorkspaceSettingsMetadataRequest) UnmarshalJSON

func (s *ListWorkspaceSettingsMetadataRequest) UnmarshalJSON(b []byte) error

type ListWorkspaceSettingsMetadataResponse

type ListWorkspaceSettingsMetadataResponse struct {
	// A token that can be sent as `page_token` to retrieve the next page. If
	// this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"next_page_token,omitempty"`
	// List of all settings available via public APIs and their metadata
	SettingsMetadata []SettingsMetadata `json:"settings_metadata,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListWorkspaceSettingsMetadataResponse) MarshalJSON

func (s ListWorkspaceSettingsMetadataResponse) MarshalJSON() ([]byte, error)

func (*ListWorkspaceSettingsMetadataResponse) UnmarshalJSON

func (s *ListWorkspaceSettingsMetadataResponse) UnmarshalJSON(b []byte) error

type PatchPublicAccountSettingRequest

type PatchPublicAccountSettingRequest struct {
	Name string `json:"-" url:"-"`

	Setting Setting `json:"setting"`
}

type PatchPublicWorkspaceSettingRequest

type PatchPublicWorkspaceSettingRequest struct {
	// Name of the setting
	Name string `json:"-" url:"-"`

	Setting Setting `json:"setting"`
}

type PersonalComputeMessage

type PersonalComputeMessage struct {
	Value PersonalComputeMessagePersonalComputeMessageEnum `json:"value,omitempty"`
}

type PersonalComputeMessagePersonalComputeMessageEnum

type PersonalComputeMessagePersonalComputeMessageEnum string

ON: Grants all users in all workspaces access to the Personal Compute default policy, allowing all users to create single-machine compute resources. DELEGATE: Moves access control for the Personal Compute default policy to individual workspaces and requires a workspace’s users or groups to be added to the ACLs of that workspace’s Personal Compute default policy before they will be able to create compute resources through that policy.

const PersonalComputeMessagePersonalComputeMessageEnumDelegate PersonalComputeMessagePersonalComputeMessageEnum = `DELEGATE`
const PersonalComputeMessagePersonalComputeMessageEnumOn PersonalComputeMessagePersonalComputeMessageEnum = `ON`

func (*PersonalComputeMessagePersonalComputeMessageEnum) Set

Set raw string value and validate it against allowed values

func (*PersonalComputeMessagePersonalComputeMessageEnum) String

String representation for fmt.Print

func (*PersonalComputeMessagePersonalComputeMessageEnum) Type

Type always returns PersonalComputeMessagePersonalComputeMessageEnum to satisfy [pflag.Value] interface

func (*PersonalComputeMessagePersonalComputeMessageEnum) Values

Values returns all possible values for PersonalComputeMessagePersonalComputeMessageEnum.

There is no guarantee on the order of the values in the slice.

type RestrictWorkspaceAdminsMessage

type RestrictWorkspaceAdminsMessage struct {
	Status RestrictWorkspaceAdminsMessageStatus `json:"status"`
}

type RestrictWorkspaceAdminsMessageStatus

type RestrictWorkspaceAdminsMessageStatus string
const RestrictWorkspaceAdminsMessageStatusAllowAll RestrictWorkspaceAdminsMessageStatus = `ALLOW_ALL`
const RestrictWorkspaceAdminsMessageStatusRestrictTokensAndJobRunAs RestrictWorkspaceAdminsMessageStatus = `RESTRICT_TOKENS_AND_JOB_RUN_AS`

func (*RestrictWorkspaceAdminsMessageStatus) Set

Set raw string value and validate it against allowed values

func (*RestrictWorkspaceAdminsMessageStatus) String

String representation for fmt.Print

func (*RestrictWorkspaceAdminsMessageStatus) Type

Type always returns RestrictWorkspaceAdminsMessageStatus to satisfy [pflag.Value] interface

func (*RestrictWorkspaceAdminsMessageStatus) Values

Values returns all possible values for RestrictWorkspaceAdminsMessageStatus.

There is no guarantee on the order of the values in the slice.

type Setting

type Setting struct {
	// Setting value for aibi_dashboard_embedding_access_policy setting. This is
	// the setting value set by consumers, check
	// effective_aibi_dashboard_embedding_access_policy for final setting value.
	AibiDashboardEmbeddingAccessPolicy *AibiDashboardEmbeddingAccessPolicy `json:"aibi_dashboard_embedding_access_policy,omitempty"`
	// Setting value for aibi_dashboard_embedding_approved_domains setting. This
	// is the setting value set by consumers, check
	// effective_aibi_dashboard_embedding_approved_domains for final setting
	// value.
	AibiDashboardEmbeddingApprovedDomains *AibiDashboardEmbeddingApprovedDomains `json:"aibi_dashboard_embedding_approved_domains,omitempty"`
	// Setting value for automatic_cluster_update_workspace setting. This is the
	// setting value set by consumers, check
	// effective_automatic_cluster_update_workspace for final setting value.
	AutomaticClusterUpdateWorkspace *ClusterAutoRestartMessage `json:"automatic_cluster_update_workspace,omitempty"`
	// 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"`
	// 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.
	EffectiveAibiDashboardEmbeddingAccessPolicy *AibiDashboardEmbeddingAccessPolicy `json:"effective_aibi_dashboard_embedding_access_policy,omitempty"`
	// Effective setting value for aibi_dashboard_embedding_approved_domains
	// setting. This is the final effective value of setting. To set a value use
	// aibi_dashboard_embedding_approved_domains.
	EffectiveAibiDashboardEmbeddingApprovedDomains *AibiDashboardEmbeddingApprovedDomains `json:"effective_aibi_dashboard_embedding_approved_domains,omitempty"`
	// Effective setting value for automatic_cluster_update_workspace setting.
	// This is the final effective value of setting. To set a value use
	// automatic_cluster_update_workspace.
	EffectiveAutomaticClusterUpdateWorkspace *ClusterAutoRestartMessage `json:"effective_automatic_cluster_update_workspace,omitempty"`
	// 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 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"`
	// Effective setting value for personal_compute setting. This is the final
	// effective value of setting. To set a value use personal_compute.
	EffectivePersonalCompute *PersonalComputeMessage `json:"effective_personal_compute,omitempty"`
	// Effective setting value for restrict_workspace_admins setting. This is
	// the final effective value of setting. To set a value use
	// restrict_workspace_admins.
	EffectiveRestrictWorkspaceAdmins *RestrictWorkspaceAdminsMessage `json:"effective_restrict_workspace_admins,omitempty"`
	// Effective setting value for string type setting. This is the final
	// effective value of setting. To set a value use string_val.
	EffectiveStringVal *StringMessage `json:"effective_string_val,omitempty"`
	// Setting value for integer type setting. This is the setting value set by
	// consumers, check effective_integer_val for final setting value.
	IntegerVal *IntegerMessage `json:"integer_val,omitempty"`
	// Name of the setting.
	Name string `json:"name,omitempty"`
	// Setting value for personal_compute setting. This is the setting value set
	// by consumers, check effective_personal_compute for final setting value.
	PersonalCompute *PersonalComputeMessage `json:"personal_compute,omitempty"`
	// Setting value for restrict_workspace_admins setting. This is the setting
	// value set by consumers, check effective_restrict_workspace_admins for
	// final setting value.
	RestrictWorkspaceAdmins *RestrictWorkspaceAdminsMessage `json:"restrict_workspace_admins,omitempty"`
	// Setting value for string type setting. This is the setting value set by
	// consumers, check effective_string_val for final setting value.
	StringVal *StringMessage `json:"string_val,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (Setting) MarshalJSON

func (s Setting) MarshalJSON() ([]byte, error)

func (*Setting) UnmarshalJSON

func (s *Setting) UnmarshalJSON(b []byte) error

type SettingsMetadata

type SettingsMetadata struct {
	// Setting description for what this setting controls
	Description string `json:"description,omitempty"`
	// Link to databricks documentation for the setting
	DocsLink string `json:"docs_link,omitempty"`
	// Name of the setting.
	Name string `json:"name,omitempty"`
	// Sample message depicting the type of the setting. To set this setting,
	// the value sent must match this type.
	Type string `json:"type,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SettingsMetadata) MarshalJSON

func (s SettingsMetadata) MarshalJSON() ([]byte, error)

func (*SettingsMetadata) UnmarshalJSON

func (s *SettingsMetadata) UnmarshalJSON(b []byte) error

type StringMessage

type StringMessage struct {
	// Represents a generic string value.
	Value string `json:"value,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (StringMessage) MarshalJSON

func (s StringMessage) MarshalJSON() ([]byte, error)

func (*StringMessage) UnmarshalJSON

func (s *StringMessage) UnmarshalJSON(b []byte) error

type WorkspaceSettingsV2API

type WorkspaceSettingsV2API struct {
	// contains filtered or unexported fields
}

APIs to manage workspace level settings

func NewWorkspaceSettingsV2

func NewWorkspaceSettingsV2(client *client.DatabricksClient) *WorkspaceSettingsV2API

func (*WorkspaceSettingsV2API) GetPublicWorkspaceSetting

func (a *WorkspaceSettingsV2API) GetPublicWorkspaceSetting(ctx context.Context, request GetPublicWorkspaceSettingRequest) (*Setting, error)

func (*WorkspaceSettingsV2API) ListWorkspaceSettingsMetadata

func (a *WorkspaceSettingsV2API) ListWorkspaceSettingsMetadata(ctx context.Context, request ListWorkspaceSettingsMetadataRequest) listing.Iterator[SettingsMetadata]

List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH :method:settingsv2/patchpublicworkspacesetting APIs

func (*WorkspaceSettingsV2API) ListWorkspaceSettingsMetadataAll

func (a *WorkspaceSettingsV2API) ListWorkspaceSettingsMetadataAll(ctx context.Context, request ListWorkspaceSettingsMetadataRequest) ([]SettingsMetadata, error)

List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH :method:settingsv2/patchpublicworkspacesetting APIs

func (*WorkspaceSettingsV2API) PatchPublicWorkspaceSetting

func (a *WorkspaceSettingsV2API) PatchPublicWorkspaceSetting(ctx context.Context, request PatchPublicWorkspaceSettingRequest) (*Setting, error)

type WorkspaceSettingsV2Interface

type WorkspaceSettingsV2Interface interface {

	// Get a setting value at workspace level. See
	// :method:settingsv2/listworkspacesettingsmetadata for list of setting
	// available via public APIs.
	GetPublicWorkspaceSetting(ctx context.Context, request GetPublicWorkspaceSettingRequest) (*Setting, error)

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH
	// :method:settingsv2/patchpublicworkspacesetting APIs
	//
	// This method is generated by Databricks SDK Code Generator.
	ListWorkspaceSettingsMetadata(ctx context.Context, request ListWorkspaceSettingsMetadataRequest) listing.Iterator[SettingsMetadata]

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH
	// :method:settingsv2/patchpublicworkspacesetting APIs
	//
	// This method is generated by Databricks SDK Code Generator.
	ListWorkspaceSettingsMetadataAll(ctx context.Context, request ListWorkspaceSettingsMetadataRequest) ([]SettingsMetadata, error)

	// Patch a setting value at workspace level. See
	// :method:settingsv2/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.
	PatchPublicWorkspaceSetting(ctx context.Context, request PatchPublicWorkspaceSettingRequest) (*Setting, error)
}

type WorkspaceSettingsV2Service deprecated

type WorkspaceSettingsV2Service interface {

	// Get a setting value at workspace level. See
	// :method:settingsv2/listworkspacesettingsmetadata for list of setting
	// available via public APIs.
	GetPublicWorkspaceSetting(ctx context.Context, request GetPublicWorkspaceSettingRequest) (*Setting, error)

	// List valid setting keys and metadata. These settings are available to be
	// referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH
	// :method:settingsv2/patchpublicworkspacesetting APIs
	ListWorkspaceSettingsMetadata(ctx context.Context, request ListWorkspaceSettingsMetadataRequest) (*ListWorkspaceSettingsMetadataResponse, error)

	// Patch a setting value at workspace level. See
	// :method:settingsv2/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.
	PatchPublicWorkspaceSetting(ctx context.Context, request PatchPublicWorkspaceSettingRequest) (*Setting, error)
}

APIs to manage workspace level settings

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL