Delta Sharing

These dataclasses are used in the SDK to represent API requests and responses for services in the databricks.sdk.service.sharing module.

class databricks.sdk.service.sharing.AuthenticationType

The delta sharing authentication type.

DATABRICKS = "DATABRICKS"
OAUTH_CLIENT_CREDENTIALS = "OAUTH_CLIENT_CREDENTIALS"
OIDC_FEDERATION = "OIDC_FEDERATION"
TOKEN = "TOKEN"
class databricks.sdk.service.sharing.ColumnTypeName

UC supported column types Copied from https://src.dev.databricks.com/databricks/universe@23a85902bb58695ab9293adc9f327b0714b55e72/-/blob/managed-catalog/api/messages/table.proto?L68

ARRAY = "ARRAY"
BINARY = "BINARY"
BOOLEAN = "BOOLEAN"
BYTE = "BYTE"
CHAR = "CHAR"
DATE = "DATE"
DECIMAL = "DECIMAL"
DOUBLE = "DOUBLE"
FLOAT = "FLOAT"
INT = "INT"
INTERVAL = "INTERVAL"
LONG = "LONG"
MAP = "MAP"
NULL = "NULL"
SHORT = "SHORT"
STRING = "STRING"
STRUCT = "STRUCT"
TABLE_TYPE = "TABLE_TYPE"
TIMESTAMP = "TIMESTAMP"
TIMESTAMP_NTZ = "TIMESTAMP_NTZ"
USER_DEFINED_TYPE = "USER_DEFINED_TYPE"
VARIANT = "VARIANT"
class databricks.sdk.service.sharing.CreateProvider
name: str

The name of the Provider.

authentication_type: AuthenticationType

The delta sharing authentication type.

comment: str | None = None

Description about the provider.

recipient_profile_str: str | None = None

This field is required when the __authentication_type__ is TOKEN, OAUTH_CLIENT_CREDENTIALS or not provided.

as_dict() dict

Serializes the CreateProvider into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the CreateProvider into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) CreateProvider

Deserializes the CreateProvider from a dictionary.

class databricks.sdk.service.sharing.CreateRecipient
name: str

Name of Recipient.

authentication_type: AuthenticationType

The delta sharing authentication type.

comment: str | None = None

Description about the recipient.

data_recipient_global_metastore_id: str | None = None

The global Unity Catalog metastore id provided by the data recipient. This field is only present when the __authentication_type__ is DATABRICKS. The identifier is of format __cloud__:__region__:__metastore-uuid__.

expiration_time: int | None = None

Expiration timestamp of the token, in epoch milliseconds.

ip_access_list: IpAccessList | None = None

IP Access List

owner: str | None = None

Username of the recipient owner.

properties_kvpairs: SecurablePropertiesKvPairs | None = None

Recipient properties as map of string key-value pairs. When provided in update request, the specified properties will override the existing properties. To add and remove properties, one would need to perform a read-modify-write.

sharing_code: str | None = None

The one-time sharing code provided by the data recipient. This field is only present when the __authentication_type__ is DATABRICKS.

as_dict() dict

Serializes the CreateRecipient into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the CreateRecipient into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) CreateRecipient

Deserializes the CreateRecipient from a dictionary.

class databricks.sdk.service.sharing.CreateShare
name: str

Name of the share.

comment: str | None = None

User-provided free-form text description.

storage_root: str | None = None

Storage root URL for the share.

as_dict() dict

Serializes the CreateShare into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the CreateShare into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) CreateShare

Deserializes the CreateShare from a dictionary.

class databricks.sdk.service.sharing.DeleteResponse
as_dict() dict

Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeleteResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeleteResponse

Deserializes the DeleteResponse from a dictionary.

class databricks.sdk.service.sharing.DeltaSharingDependency

Represents a UC dependency.

function: DeltaSharingFunctionDependency | None = None

A Function in UC as a dependency.

table: DeltaSharingTableDependency | None = None

A Table in UC as a dependency.

as_dict() dict

Serializes the DeltaSharingDependency into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeltaSharingDependency into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeltaSharingDependency

Deserializes the DeltaSharingDependency from a dictionary.

class databricks.sdk.service.sharing.DeltaSharingDependencyList

Represents a list of dependencies.

dependencies: List[DeltaSharingDependency] | None = None

An array of Dependency.

as_dict() dict

Serializes the DeltaSharingDependencyList into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeltaSharingDependencyList into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeltaSharingDependencyList

Deserializes the DeltaSharingDependencyList from a dictionary.

class databricks.sdk.service.sharing.DeltaSharingFunction
aliases: List[RegisteredModelAlias] | None = None

The aliass of registered model.

comment: str | None = None

The comment of the function.

data_type: ColumnTypeName | None = None

The data type of the function.

dependency_list: DeltaSharingDependencyList | None = None

The dependency list of the function.

full_data_type: str | None = None

The full data type of the function.

id: str | None = None

The id of the function.

input_params: FunctionParameterInfos | None = None

The function parameter information.

name: str | None = None

The name of the function.

properties: str | None = None

The properties of the function.

routine_definition: str | None = None

The routine definition of the function.

schema: str | None = None

The name of the schema that the function belongs to.

securable_kind: SharedSecurableKind | None = None

The securable kind of the function.

share: str | None = None

The name of the share that the function belongs to.

share_id: str | None = None

The id of the share that the function belongs to.

storage_location: str | None = None

The storage location of the function.

tags: List[TagKeyValue] | None = None

The tags of the function.

as_dict() dict

Serializes the DeltaSharingFunction into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeltaSharingFunction into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeltaSharingFunction

Deserializes the DeltaSharingFunction from a dictionary.

class databricks.sdk.service.sharing.DeltaSharingFunctionDependency

A Function in UC as a dependency.

function_name: str | None = None
schema_name: str | None = None
as_dict() dict

Serializes the DeltaSharingFunctionDependency into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeltaSharingFunctionDependency into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeltaSharingFunctionDependency

Deserializes the DeltaSharingFunctionDependency from a dictionary.

class databricks.sdk.service.sharing.DeltaSharingTableDependency

A Table in UC as a dependency.

schema_name: str | None = None
table_name: str | None = None
as_dict() dict

Serializes the DeltaSharingTableDependency into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the DeltaSharingTableDependency into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) DeltaSharingTableDependency

Deserializes the DeltaSharingTableDependency from a dictionary.

class databricks.sdk.service.sharing.FederationPolicy
comment: str | None = None

Description of the policy. This is a user-provided description.

create_time: str | None = None

System-generated timestamp indicating when the policy was created.

id: str | None = None

Unique, immutable system-generated identifier for the federation policy.

name: str | None = None

Name of the federation policy. A recipient can have multiple policies with different names. The name must contain only lowercase alphanumeric characters, numbers, and hyphens.

oidc_policy: OidcFederationPolicy | None = None

Specifies the policy to use for validating OIDC claims in the federated tokens.

update_time: str | None = None

System-generated timestamp indicating when the policy was last updated.

as_dict() dict

Serializes the FederationPolicy into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the FederationPolicy into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) FederationPolicy

Deserializes the FederationPolicy from a dictionary.

class databricks.sdk.service.sharing.FunctionParameterInfo

Represents a parameter of a function. The same message is used for both input and output columns.

comment: str | None = None

The comment of the parameter.

name: str | None = None

The name of the parameter.

parameter_default: str | None = None

The default value of the parameter.

parameter_mode: FunctionParameterMode | None = None

The mode of the function parameter.

parameter_type: FunctionParameterType | None = None

The type of the function parameter.

position: int | None = None

The position of the parameter.

type_interval_type: str | None = None

The interval type of the parameter type.

type_json: str | None = None

The type of the parameter in JSON format.

type_name: ColumnTypeName | None = None

The type of the parameter in Enum format.

type_precision: int | None = None

The precision of the parameter type.

type_scale: int | None = None

The scale of the parameter type.

type_text: str | None = None

The type of the parameter in text format.

as_dict() dict

Serializes the FunctionParameterInfo into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the FunctionParameterInfo into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) FunctionParameterInfo

Deserializes the FunctionParameterInfo from a dictionary.

class databricks.sdk.service.sharing.FunctionParameterInfos
parameters: List[FunctionParameterInfo] | None = None

The list of parameters of the function.

as_dict() dict

Serializes the FunctionParameterInfos into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the FunctionParameterInfos into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) FunctionParameterInfos

Deserializes the FunctionParameterInfos from a dictionary.

class databricks.sdk.service.sharing.FunctionParameterMode
IN = "IN"
INOUT = "INOUT"
OUT = "OUT"
class databricks.sdk.service.sharing.FunctionParameterType
COLUMN = "COLUMN"
PARAM = "PARAM"
class databricks.sdk.service.sharing.GetActivationUrlInfoResponse
as_dict() dict

Serializes the GetActivationUrlInfoResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the GetActivationUrlInfoResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) GetActivationUrlInfoResponse

Deserializes the GetActivationUrlInfoResponse from a dictionary.

class databricks.sdk.service.sharing.GetRecipientSharePermissionsResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

permissions_out: List[ShareToPrivilegeAssignment] | None = None

An array of data share permissions for a recipient.

as_dict() dict

Serializes the GetRecipientSharePermissionsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the GetRecipientSharePermissionsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) GetRecipientSharePermissionsResponse

Deserializes the GetRecipientSharePermissionsResponse from a dictionary.

class databricks.sdk.service.sharing.GetSharePermissionsResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

privilege_assignments: List[PrivilegeAssignment] | None = None

The privileges assigned to each principal

as_dict() dict

Serializes the GetSharePermissionsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the GetSharePermissionsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) GetSharePermissionsResponse

Deserializes the GetSharePermissionsResponse from a dictionary.

class databricks.sdk.service.sharing.IpAccessList
allowed_ip_addresses: List[str] | None = None

Allowed IP Addresses in CIDR notation. Limit of 100.

as_dict() dict

Serializes the IpAccessList into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the IpAccessList into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) IpAccessList

Deserializes the IpAccessList from a dictionary.

class databricks.sdk.service.sharing.ListFederationPoliciesResponse
next_page_token: str | None = None
policies: List[FederationPolicy] | None = None
as_dict() dict

Serializes the ListFederationPoliciesResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListFederationPoliciesResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListFederationPoliciesResponse

Deserializes the ListFederationPoliciesResponse from a dictionary.

class databricks.sdk.service.sharing.ListProviderShareAssetsResponse

Response to ListProviderShareAssets, which contains the list of assets of a share.

functions: List[DeltaSharingFunction] | None = None

The list of functions in the share.

notebooks: List[NotebookFile] | None = None

The list of notebooks in the share.

tables: List[Table] | None = None

The list of tables in the share.

volumes: List[Volume] | None = None

The list of volumes in the share.

as_dict() dict

Serializes the ListProviderShareAssetsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListProviderShareAssetsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListProviderShareAssetsResponse

Deserializes the ListProviderShareAssetsResponse from a dictionary.

class databricks.sdk.service.sharing.ListProviderSharesResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

shares: List[ProviderShare] | None = None

An array of provider shares.

as_dict() dict

Serializes the ListProviderSharesResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListProviderSharesResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListProviderSharesResponse

Deserializes the ListProviderSharesResponse from a dictionary.

class databricks.sdk.service.sharing.ListProvidersResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

providers: List[ProviderInfo] | None = None

An array of provider information objects.

as_dict() dict

Serializes the ListProvidersResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListProvidersResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListProvidersResponse

Deserializes the ListProvidersResponse from a dictionary.

class databricks.sdk.service.sharing.ListRecipientsResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

recipients: List[RecipientInfo] | None = None

An array of recipient information objects.

as_dict() dict

Serializes the ListRecipientsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListRecipientsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListRecipientsResponse

Deserializes the ListRecipientsResponse from a dictionary.

class databricks.sdk.service.sharing.ListSharesResponse
next_page_token: str | None = None

Opaque token to retrieve the next page of results. Absent if there are no more pages. __page_token__ should be set to this value for the next request (for the next page of results).

shares: List[ShareInfo] | None = None

An array of data share information objects.

as_dict() dict

Serializes the ListSharesResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListSharesResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListSharesResponse

Deserializes the ListSharesResponse from a dictionary.

class databricks.sdk.service.sharing.NotebookFile
comment: str | None = None

The comment of the notebook file.

id: str | None = None

The id of the notebook file.

name: str | None = None

Name of the notebook file.

share: str | None = None

The name of the share that the notebook file belongs to.

share_id: str | None = None

The id of the share that the notebook file belongs to.

tags: List[TagKeyValue] | None = None

The tags of the notebook file.

as_dict() dict

Serializes the NotebookFile into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the NotebookFile into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) NotebookFile

Deserializes the NotebookFile from a dictionary.

class databricks.sdk.service.sharing.OidcFederationPolicy

Specifies the policy to use for validating OIDC claims in your federated tokens from Delta Sharing Clients. Refer to https://docs.databricks.com/en/delta-sharing/create-recipient-oidc-fed for more details.

issuer: str

The required token issuer, as specified in the ‘iss’ claim of federated tokens.

subject_claim: str

The claim that contains the subject of the token. Depending on the identity provider and the use case (U2M or M2M), this can vary: - For Entra ID (AAD): * U2M flow (group access): Use groups. * U2M flow (user access): Use oid. * M2M flow (OAuth App access): Use azp. - For other IdPs, refer to the specific IdP documentation.

Supported subject_claim values are: - oid: Object ID of the user. - azp: Client ID of the OAuth app. - groups: Object ID of the group. - sub: Subject identifier for other use cases.

subject: str

The required token subject, as specified in the subject claim of federated tokens. The subject claim identifies the identity of the user or machine accessing the resource. Examples for Entra ID (AAD): - U2M flow (group access): If the subject claim is groups, this must be the Object ID of the group in Entra ID. - U2M flow (user access): If the subject claim is oid, this must be the Object ID of the user in Entra ID. - M2M flow (OAuth App access): If the subject claim is azp, this must be the client ID of the OAuth app registered in Entra ID.

audiences: List[str] | None = None

The allowed token audiences, as specified in the ‘aud’ claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy,

as_dict() dict

Serializes the OidcFederationPolicy into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the OidcFederationPolicy into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) OidcFederationPolicy

Deserializes the OidcFederationPolicy from a dictionary.

class databricks.sdk.service.sharing.Partition
values: List[PartitionValue] | None = None

An array of partition values.

as_dict() dict

Serializes the Partition into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the Partition into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) Partition

Deserializes the Partition from a dictionary.

class databricks.sdk.service.sharing.PartitionValue
name: str | None = None

The name of the partition column.

op: PartitionValueOp | None = None

The operator to apply for the value.

recipient_property_key: str | None = None

The key of a Delta Sharing recipient’s property. For example “databricks-account-id”. When this field is set, field value can not be set.

value: str | None = None

The value of the partition column. When this value is not set, it means null value. When this field is set, field recipient_property_key can not be set.

as_dict() dict

Serializes the PartitionValue into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the PartitionValue into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) PartitionValue

Deserializes the PartitionValue from a dictionary.

class databricks.sdk.service.sharing.PartitionValueOp
EQUAL = "EQUAL"
LIKE = "LIKE"
class databricks.sdk.service.sharing.PermissionsChange
add: List[str] | None = None

The set of privileges to add.

principal: str | None = None

The principal whose privileges we are changing.

remove: List[str] | None = None

The set of privileges to remove.

as_dict() dict

Serializes the PermissionsChange into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the PermissionsChange into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) PermissionsChange

Deserializes the PermissionsChange from a dictionary.

class databricks.sdk.service.sharing.Privilege
ACCESS = "ACCESS"
ALL_PRIVILEGES = "ALL_PRIVILEGES"
APPLY_TAG = "APPLY_TAG"
CREATE = "CREATE"
CREATE_CATALOG = "CREATE_CATALOG"
CREATE_CONNECTION = "CREATE_CONNECTION"
CREATE_EXTERNAL_LOCATION = "CREATE_EXTERNAL_LOCATION"
CREATE_EXTERNAL_TABLE = "CREATE_EXTERNAL_TABLE"
CREATE_EXTERNAL_VOLUME = "CREATE_EXTERNAL_VOLUME"
CREATE_FOREIGN_CATALOG = "CREATE_FOREIGN_CATALOG"
CREATE_FOREIGN_SECURABLE = "CREATE_FOREIGN_SECURABLE"
CREATE_FUNCTION = "CREATE_FUNCTION"
CREATE_MANAGED_STORAGE = "CREATE_MANAGED_STORAGE"
CREATE_MATERIALIZED_VIEW = "CREATE_MATERIALIZED_VIEW"
CREATE_MODEL = "CREATE_MODEL"
CREATE_PROVIDER = "CREATE_PROVIDER"
CREATE_RECIPIENT = "CREATE_RECIPIENT"
CREATE_SCHEMA = "CREATE_SCHEMA"
CREATE_SERVICE_CREDENTIAL = "CREATE_SERVICE_CREDENTIAL"
CREATE_SHARE = "CREATE_SHARE"
CREATE_STORAGE_CREDENTIAL = "CREATE_STORAGE_CREDENTIAL"
CREATE_TABLE = "CREATE_TABLE"
CREATE_VIEW = "CREATE_VIEW"
CREATE_VOLUME = "CREATE_VOLUME"
EXECUTE = "EXECUTE"
MANAGE = "MANAGE"
MANAGE_ALLOWLIST = "MANAGE_ALLOWLIST"
MODIFY = "MODIFY"
READ_FILES = "READ_FILES"
READ_PRIVATE_FILES = "READ_PRIVATE_FILES"
READ_VOLUME = "READ_VOLUME"
REFRESH = "REFRESH"
SELECT = "SELECT"
SET_SHARE_PERMISSION = "SET_SHARE_PERMISSION"
USAGE = "USAGE"
USE_CATALOG = "USE_CATALOG"
USE_CONNECTION = "USE_CONNECTION"
USE_MARKETPLACE_ASSETS = "USE_MARKETPLACE_ASSETS"
USE_PROVIDER = "USE_PROVIDER"
USE_RECIPIENT = "USE_RECIPIENT"
USE_SCHEMA = "USE_SCHEMA"
USE_SHARE = "USE_SHARE"
WRITE_FILES = "WRITE_FILES"
WRITE_PRIVATE_FILES = "WRITE_PRIVATE_FILES"
WRITE_VOLUME = "WRITE_VOLUME"
class databricks.sdk.service.sharing.PrivilegeAssignment
principal: str | None = None

The principal (user email address or group name).

privileges: List[Privilege] | None = None

The privileges assigned to the principal.

as_dict() dict

Serializes the PrivilegeAssignment into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the PrivilegeAssignment into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) PrivilegeAssignment

Deserializes the PrivilegeAssignment from a dictionary.

class databricks.sdk.service.sharing.ProviderInfo
authentication_type: AuthenticationType | None = None

The delta sharing authentication type.

cloud: str | None = None

Cloud vendor of the provider’s UC metastore. This field is only present when the __authentication_type__ is DATABRICKS.

comment: str | None = None

Description about the provider.

created_at: int | None = None

Time at which this Provider was created, in epoch milliseconds.

created_by: str | None = None

Username of Provider creator.

data_provider_global_metastore_id: str | None = None

The global UC metastore id of the data provider. This field is only present when the __authentication_type__ is DATABRICKS. The identifier is of format __cloud__:__region__:__metastore-uuid__.

metastore_id: str | None = None

UUID of the provider’s UC metastore. This field is only present when the __authentication_type__ is DATABRICKS.

name: str | None = None

The name of the Provider.

owner: str | None = None

Username of Provider owner.

recipient_profile: RecipientProfile | None = None

The recipient profile. This field is only present when the authentication_type is TOKEN or OAUTH_CLIENT_CREDENTIALS.

recipient_profile_str: str | None = None

This field is required when the __authentication_type__ is TOKEN, OAUTH_CLIENT_CREDENTIALS or not provided.

region: str | None = None

Cloud region of the provider’s UC metastore. This field is only present when the __authentication_type__ is DATABRICKS.

updated_at: int | None = None

Time at which this Provider was created, in epoch milliseconds.

updated_by: str | None = None

Username of user who last modified Provider.

as_dict() dict

Serializes the ProviderInfo into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ProviderInfo into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ProviderInfo

Deserializes the ProviderInfo from a dictionary.

class databricks.sdk.service.sharing.ProviderShare
name: str | None = None

The name of the Provider Share.

as_dict() dict

Serializes the ProviderShare into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ProviderShare into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ProviderShare

Deserializes the ProviderShare from a dictionary.

class databricks.sdk.service.sharing.RecipientInfo
activated: bool | None = None

A boolean status field showing whether the Recipient’s activation URL has been exercised or not.

activation_url: str | None = None

Full activation url to retrieve the access token. It will be empty if the token is already retrieved.

authentication_type: AuthenticationType | None = None

The delta sharing authentication type.

cloud: str | None = None

Cloud vendor of the recipient’s Unity Catalog Metastore. This field is only present when the __authentication_type__ is DATABRICKS.

comment: str | None = None

Description about the recipient.

created_at: int | None = None

Time at which this recipient was created, in epoch milliseconds.

created_by: str | None = None

Username of recipient creator.

data_recipient_global_metastore_id: str | None = None

The global Unity Catalog metastore id provided by the data recipient. This field is only present when the __authentication_type__ is DATABRICKS. The identifier is of format __cloud__:__region__:__metastore-uuid__.

expiration_time: int | None = None

Expiration timestamp of the token, in epoch milliseconds.

ip_access_list: IpAccessList | None = None

IP Access List

metastore_id: str | None = None

Unique identifier of recipient’s Unity Catalog Metastore. This field is only present when the __authentication_type__ is DATABRICKS.

name: str | None = None

Name of Recipient.

owner: str | None = None

Username of the recipient owner.

properties_kvpairs: SecurablePropertiesKvPairs | None = None

Recipient properties as map of string key-value pairs. When provided in update request, the specified properties will override the existing properties. To add and remove properties, one would need to perform a read-modify-write.

region: str | None = None

Cloud region of the recipient’s Unity Catalog Metastore. This field is only present when the __authentication_type__ is DATABRICKS.

sharing_code: str | None = None

The one-time sharing code provided by the data recipient. This field is only present when the __authentication_type__ is DATABRICKS.

tokens: List[RecipientTokenInfo] | None = None

This field is only present when the __authentication_type__ is TOKEN.

updated_at: int | None = None

Time at which the recipient was updated, in epoch milliseconds.

updated_by: str | None = None

Username of recipient updater.

as_dict() dict

Serializes the RecipientInfo into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RecipientInfo into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RecipientInfo

Deserializes the RecipientInfo from a dictionary.

class databricks.sdk.service.sharing.RecipientProfile
bearer_token: str | None = None

The token used to authorize the recipient.

endpoint: str | None = None

The endpoint for the share to be used by the recipient.

share_credentials_version: int | None = None

The version number of the recipient’s credentials on a share.

as_dict() dict

Serializes the RecipientProfile into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RecipientProfile into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RecipientProfile

Deserializes the RecipientProfile from a dictionary.

class databricks.sdk.service.sharing.RecipientTokenInfo
activation_url: str | None = None

Full activation URL to retrieve the access token. It will be empty if the token is already retrieved.

created_at: int | None = None

Time at which this recipient token was created, in epoch milliseconds.

created_by: str | None = None

Username of recipient token creator.

expiration_time: int | None = None

Expiration timestamp of the token in epoch milliseconds.

id: str | None = None

Unique ID of the recipient token.

updated_at: int | None = None

Time at which this recipient token was updated, in epoch milliseconds.

updated_by: str | None = None

Username of recipient token updater.

as_dict() dict

Serializes the RecipientTokenInfo into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RecipientTokenInfo into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RecipientTokenInfo

Deserializes the RecipientTokenInfo from a dictionary.

class databricks.sdk.service.sharing.RegisteredModelAlias
alias_name: str | None = None

Name of the alias.

version_num: int | None = None

Numeric model version that alias will reference.

as_dict() dict

Serializes the RegisteredModelAlias into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RegisteredModelAlias into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RegisteredModelAlias

Deserializes the RegisteredModelAlias from a dictionary.

class databricks.sdk.service.sharing.RetrieveTokenResponse
bearer_token: str | None = None

The token used to authorize the recipient.

endpoint: str | None = None

The endpoint for the share to be used by the recipient.

expiration_time: str | None = None

Expiration timestamp of the token in epoch milliseconds.

share_credentials_version: int | None = None

These field names must follow the delta sharing protocol.

as_dict() dict

Serializes the RetrieveTokenResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RetrieveTokenResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RetrieveTokenResponse

Deserializes the RetrieveTokenResponse from a dictionary.

class databricks.sdk.service.sharing.RotateRecipientToken
existing_token_expire_in_seconds: int

The expiration time of the bearer token in ISO 8601 format. This will set the expiration_time of existing token only to a smaller timestamp, it cannot extend the expiration_time. Use 0 to expire the existing token immediately, negative number will return an error.

name: str | None = None

The name of the Recipient.

as_dict() dict

Serializes the RotateRecipientToken into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the RotateRecipientToken into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) RotateRecipientToken

Deserializes the RotateRecipientToken from a dictionary.

class databricks.sdk.service.sharing.SecurablePropertiesKvPairs

An object with __properties__ containing map of key-value properties attached to the securable.

properties: Dict[str, str]

A map of key-value properties attached to the securable.

as_dict() dict

Serializes the SecurablePropertiesKvPairs into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the SecurablePropertiesKvPairs into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) SecurablePropertiesKvPairs

Deserializes the SecurablePropertiesKvPairs from a dictionary.

class databricks.sdk.service.sharing.ShareInfo
comment: str | None = None

User-provided free-form text description.

created_at: int | None = None

Time at which this share was created, in epoch milliseconds.

created_by: str | None = None

Username of share creator.

name: str | None = None

Name of the share.

objects: List[SharedDataObject] | None = None

A list of shared data objects within the share.

owner: str | None = None

Username of current owner of share.

storage_location: str | None = None

Storage Location URL (full path) for the share.

storage_root: str | None = None

Storage root URL for the share.

updated_at: int | None = None

Time at which this share was updated, in epoch milliseconds.

updated_by: str | None = None

Username of share updater.

as_dict() dict

Serializes the ShareInfo into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ShareInfo into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ShareInfo

Deserializes the ShareInfo from a dictionary.

class databricks.sdk.service.sharing.ShareToPrivilegeAssignment
privilege_assignments: List[PrivilegeAssignment] | None = None

The privileges assigned to the principal.

share_name: str | None = None

The share name.

as_dict() dict

Serializes the ShareToPrivilegeAssignment into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ShareToPrivilegeAssignment into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ShareToPrivilegeAssignment

Deserializes the ShareToPrivilegeAssignment from a dictionary.

class databricks.sdk.service.sharing.SharedDataObject
name: str

A fully qualified name that uniquely identifies a data object. For example, a table’s fully qualified name is in the format of <catalog>.<schema>.<table>,

added_at: int | None = None

The time when this data object is added to the share, in epoch milliseconds.

added_by: str | None = None

Username of the sharer.

cdf_enabled: bool | None = None

Whether to enable cdf or indicate if cdf is enabled on the shared object.

comment: str | None = None

A user-provided comment when adding the data object to the share.

content: str | None = None

The content of the notebook file when the data object type is NOTEBOOK_FILE. This should be base64 encoded. Required for adding a NOTEBOOK_FILE, optional for updating, ignored for other types.

data_object_type: SharedDataObjectDataObjectType | None = None

The type of the data object.

history_data_sharing_status: SharedDataObjectHistoryDataSharingStatus | None = None

Whether to enable or disable sharing of data history. If not specified, the default is DISABLED.

partitions: List[Partition] | None = None

Array of partitions for the shared data.

shared_as: str | None = None

A user-provided new name for the data object within the share. If this new name is not provided, the object’s original name will be used as the shared_as name. The shared_as name must be unique within a share. For tables, the new name must follow the format of <schema>.<table>.

start_version: int | None = None

The start version associated with the object. This allows data providers to control the lowest object version that is accessible by clients. If specified, clients can query snapshots or changes for versions >= start_version. If not specified, clients can only query starting from the version of the object at the time it was added to the share.

NOTE: The start_version should be <= the current version of the object.

status: SharedDataObjectStatus | None = None

One of: ACTIVE, PERMISSION_DENIED.

string_shared_as: str | None = None

A user-provided new name for the shared object within the share. If this new name is not not provided, the object’s original name will be used as the string_shared_as name. The string_shared_as name must be unique for objects of the same type within a Share. For notebooks, the new name should be the new notebook file name.

as_dict() dict

Serializes the SharedDataObject into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the SharedDataObject into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) SharedDataObject

Deserializes the SharedDataObject from a dictionary.

class databricks.sdk.service.sharing.SharedDataObjectDataObjectType
FEATURE_SPEC = "FEATURE_SPEC"
FUNCTION = "FUNCTION"
MATERIALIZED_VIEW = "MATERIALIZED_VIEW"
MODEL = "MODEL"
NOTEBOOK_FILE = "NOTEBOOK_FILE"
SCHEMA = "SCHEMA"
STREAMING_TABLE = "STREAMING_TABLE"
TABLE = "TABLE"
VIEW = "VIEW"
class databricks.sdk.service.sharing.SharedDataObjectHistoryDataSharingStatus
DISABLED = "DISABLED"
ENABLED = "ENABLED"
class databricks.sdk.service.sharing.SharedDataObjectStatus
ACTIVE = "ACTIVE"
PERMISSION_DENIED = "PERMISSION_DENIED"
class databricks.sdk.service.sharing.SharedDataObjectUpdate
action: SharedDataObjectUpdateAction | None = None

One of: ADD, REMOVE, UPDATE.

data_object: SharedDataObject | None = None

The data object that is being added, removed, or updated.

as_dict() dict

Serializes the SharedDataObjectUpdate into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the SharedDataObjectUpdate into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) SharedDataObjectUpdate

Deserializes the SharedDataObjectUpdate from a dictionary.

class databricks.sdk.service.sharing.SharedDataObjectUpdateAction
ADD = "ADD"
REMOVE = "REMOVE"
UPDATE = "UPDATE"
class databricks.sdk.service.sharing.SharedSecurableKind

The SecurableKind of a delta-shared object.

FUNCTION_FEATURE_SPEC = "FUNCTION_FEATURE_SPEC"
FUNCTION_REGISTERED_MODEL = "FUNCTION_REGISTERED_MODEL"
FUNCTION_STANDARD = "FUNCTION_STANDARD"
class databricks.sdk.service.sharing.Table
comment: str | None = None

The comment of the table.

id: str | None = None

The id of the table.

internal_attributes: TableInternalAttributes | None = None

Internal information for D2D sharing that should not be disclosed to external users.

materialization_namespace: str | None = None

The catalog and schema of the materialized table

materialized_table_name: str | None = None

The name of a materialized table.

name: str | None = None

The name of the table.

schema: str | None = None

The name of the schema that the table belongs to.

share: str | None = None

The name of the share that the table belongs to.

share_id: str | None = None

The id of the share that the table belongs to.

tags: List[TagKeyValue] | None = None

The Tags of the table.

as_dict() dict

Serializes the Table into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the Table into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) Table

Deserializes the Table from a dictionary.

class databricks.sdk.service.sharing.TableInternalAttributes

Internal information for D2D sharing that should not be disclosed to external users.

parent_storage_location: str | None = None

Will be populated in the reconciliation response for VIEW and FOREIGN_TABLE, with the value of the parent UC entity’s storage_location, following the same logic as getManagedEntityPath in CreateStagingTableHandler, which is used to store the materialized table for a shared VIEW/FOREIGN_TABLE for D2O queries. The value will be used on the recipient side to be whitelisted when SEG is enabled on the workspace of the recipient, to allow the recipient users to query this shared VIEW/FOREIGN_TABLE.

storage_location: str | None = None

The cloud storage location of a shard table with DIRECTORY_BASED_TABLE type.

type: TableInternalAttributesSharedTableType | None = None

The type of the shared table.

view_definition: str | None = None

The view definition of a shared view. DEPRECATED.

as_dict() dict

Serializes the TableInternalAttributes into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the TableInternalAttributes into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) TableInternalAttributes

Deserializes the TableInternalAttributes from a dictionary.

class databricks.sdk.service.sharing.TableInternalAttributesSharedTableType
DIRECTORY_BASED_TABLE = "DIRECTORY_BASED_TABLE"
FILE_BASED_TABLE = "FILE_BASED_TABLE"
FOREIGN_TABLE = "FOREIGN_TABLE"
MATERIALIZED_VIEW = "MATERIALIZED_VIEW"
STREAMING_TABLE = "STREAMING_TABLE"
VIEW = "VIEW"
class databricks.sdk.service.sharing.UpdateProvider
comment: str | None = None

Description about the provider.

name: str | None = None

Name of the provider.

new_name: str | None = None

New name for the provider.

owner: str | None = None

Username of Provider owner.

recipient_profile_str: str | None = None

This field is required when the __authentication_type__ is TOKEN, OAUTH_CLIENT_CREDENTIALS or not provided.

as_dict() dict

Serializes the UpdateProvider into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the UpdateProvider into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) UpdateProvider

Deserializes the UpdateProvider from a dictionary.

class databricks.sdk.service.sharing.UpdateRecipient
comment: str | None = None

Description about the recipient.

expiration_time: int | None = None

Expiration timestamp of the token, in epoch milliseconds.

ip_access_list: IpAccessList | None = None

IP Access List

name: str | None = None

Name of the recipient.

new_name: str | None = None

New name for the recipient. .

owner: str | None = None

Username of the recipient owner.

properties_kvpairs: SecurablePropertiesKvPairs | None = None

Recipient properties as map of string key-value pairs. When provided in update request, the specified properties will override the existing properties. To add and remove properties, one would need to perform a read-modify-write.

as_dict() dict

Serializes the UpdateRecipient into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the UpdateRecipient into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) UpdateRecipient

Deserializes the UpdateRecipient from a dictionary.

class databricks.sdk.service.sharing.UpdateShare
comment: str | None = None

User-provided free-form text description.

name: str | None = None

The name of the share.

new_name: str | None = None

New name for the share.

owner: str | None = None

Username of current owner of share.

storage_root: str | None = None

Storage root URL for the share.

updates: List[SharedDataObjectUpdate] | None = None

Array of shared data object updates.

as_dict() dict

Serializes the UpdateShare into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the UpdateShare into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) UpdateShare

Deserializes the UpdateShare from a dictionary.

class databricks.sdk.service.sharing.UpdateSharePermissions
changes: List[PermissionsChange] | None = None

Array of permissions change objects.

name: str | None = None

The name of the share.

omit_permissions_list: bool | None = None

Optional. Whether to return the latest permissions list of the share in the response.

as_dict() dict

Serializes the UpdateSharePermissions into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the UpdateSharePermissions into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) UpdateSharePermissions

Deserializes the UpdateSharePermissions from a dictionary.

class databricks.sdk.service.sharing.UpdateSharePermissionsResponse
privilege_assignments: List[PrivilegeAssignment] | None = None

The privileges assigned to each principal

as_dict() dict

Serializes the UpdateSharePermissionsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the UpdateSharePermissionsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) UpdateSharePermissionsResponse

Deserializes the UpdateSharePermissionsResponse from a dictionary.

class databricks.sdk.service.sharing.Volume
comment: str | None = None

The comment of the volume.

id: str | None = None

This id maps to the shared_volume_id in database Recipient needs shared_volume_id for recon to check if this volume is already in recipient’s DB or not.

internal_attributes: VolumeInternalAttributes | None = None

Internal attributes for D2D sharing that should not be disclosed to external users.

name: str | None = None

The name of the volume.

schema: str | None = None

The name of the schema that the volume belongs to.

share: str | None = None

The name of the share that the volume belongs to.

share_id: str | None = None

/ The id of the share that the volume belongs to.

tags: List[TagKeyValue] | None = None

The tags of the volume.

as_dict() dict

Serializes the Volume into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the Volume into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) Volume

Deserializes the Volume from a dictionary.

class databricks.sdk.service.sharing.VolumeInternalAttributes

Internal information for D2D sharing that should not be disclosed to external users.

storage_location: str | None = None

The cloud storage location of the volume

type: str | None = None

The type of the shared volume.

as_dict() dict

Serializes the VolumeInternalAttributes into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the VolumeInternalAttributes into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) VolumeInternalAttributes

Deserializes the VolumeInternalAttributes from a dictionary.