unitycatalog.recipients¶
The classes of the recipients API.
Classes
| Name | Description |
|---|---|
ListRecipientsResponse |
Response to list recipients. |
Recipient |
|
RecipientClient |
The requests on one Recipient. |
RecipientProfile |
A Delta Sharing profile file (profile.json): what a Delta Sharing client needs to connect to the server as a recipient. The JSON names are lowerCamelCase, as the protocol has them. |
RecipientToken |
|
SecurablePropertiesKvPairs |
An object with the properties of a securable as key-value pairs. |
Enums
| Name | Description |
|---|---|
AuthenticationType |
class unitycatalog.recipients.ListRecipientsResponse¶
Response to list recipients.
Attributes
- next_page_token (str | None) – Opaque pagination token to go to next page based on previous query.
- recipients (list[Recipient]) – List of recipients.
class unitycatalog.recipients.Recipient¶
Attributes
- authentication_type (AuthenticationType | None) – The delta sharing authentication type.
- comment (str | None) – Description about the recipient.
- created_at (int | None) – Time at which this recipient was created, in epoch milliseconds.
- created_by (str | None) – Username of recipient creator.
- id (str | None) – Unique ID of the recipient.
- name (str) – The name of the recipient.
- owner (str | None) – Username of the recipient owner.
- properties_kvpairs (SecurablePropertiesKvPairs | None) – Recipient properties as map of string key-value pairs.
- tokens (list[RecipientToken]) – This field is only present when the authentication_type is TOKEN.
- updated_at (int | None) – Time at which this recipient was updated, in epoch milliseconds.
- updated_by (str | None) – Username of recipient updater.
class unitycatalog.recipients.RecipientClient¶
The requests on one Recipient.
delete() → None¶
Delete a recipient.
Async: delete_async(…) → Future[None]
get() → Recipient¶
Get a recipient by name.
Returns
- Recipient – The requested resource
Async: get_async(…) → Future[Recipient]
rotate_recipient_token(*, existing_token_expire_in_seconds: SupportsIndex | None = None) → Recipient¶
Rotate a recipient's token: issue a new token (and activation link) and retire the existing one.
Parameters
- existing_token_expire_in_seconds (SupportsIndex | None, optional) – Seconds until the existing token expires. It can only shorten the existing token's lifetime, never extend it; 0 expires it immediately.
Returns
- Recipient – The requested resource
Async: rotate_recipient_token_async(…) → Future[Recipient]
update(*,new_name: str | None = None,owner: str | None = None,comment: str | None = None,properties_kvpairs: SecurablePropertiesKvPairs | None = None,expiration_time: SupportsIndex | None = None,) → Recipient¶
Update a recipient.
Parameters
- new_name (str | None, optional) – New name for the recipient
- owner (str | None, optional) – Username of the recipient owner.
- comment (str | None, optional) – Description about the recipient.
- properties_kvpairs (SecurablePropertiesKvPairs | None, optional) – 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.
- expiration_time (SupportsIndex | None, optional) – Expiration timestamp of the token, in epoch milliseconds.
Returns
- Recipient – The requested resource
Async: update_async(…) → Future[Recipient]
class unitycatalog.recipients.RecipientProfile¶
A Delta Sharing profile file (profile.json): what a Delta Sharing client needs to connect to
the server as a recipient. The JSON names are lowerCamelCase, as the protocol has them.
Attributes
- bearer_token (str) – The bearer token of the recipient.
- endpoint (str) – URL of the Delta Sharing server: the URL the caller used, ending in
/api/v1/delta-sharing. - expiration_time (str | None) – Time at which the token expires, as an ISO 8601 timestamp. Not set for a token that does not expire.
- share_credentials_version (int) – Version of the profile file format. Always 1.
class unitycatalog.recipients.RecipientToken¶
Attributes
- activation_url (str) – Full activation URL to retrieve the access token. It will be empty if the token is already retrieved.
- created_at (int) – Time at which this recipient token was created, in epoch milliseconds.
- created_by (str) – Username of recipient token creator.
- expiration_time (int) – Expiration timestamp of the token in epoch milliseconds.
- id (str) – Unique ID of the recipient token.
- updated_at (int) – Time at which this recipient token was updated, in epoch milliseconds.
- updated_by (str) – Username of recipient token updater.
class unitycatalog.recipients.SecurablePropertiesKvPairs(properties: dict[str, str])¶
An object with the properties of a securable as key-value pairs.
Attributes
- properties (dict[str, str]) – A map of key-value properties attached to the securable.
class unitycatalog.recipients.AuthenticationType¶
Members
- TOKEN – Basic authentication is required.
- OAUTH_CLIENT_CREDENTIALS – OAuth2 authentication is required.