Skip to content

Lifetimeclient

Classes

LifetimeClient

LifetimeClient(
    rucio_host=None,
    auth_host=None,
    account=None,
    ca_cert=None,
    auth_type=None,
    creds=None,
    timeout=600,
    user_agent="rucio-clients",
    vo=None,
    logger=LOG,
)

Lifetime client class for working with Lifetime Model exceptions

Functions

list_exceptions
list_exceptions(exception_id=None, states=None)

List exceptions to Lifetime Model.

PARAMETER DESCRIPTION
id

The id of the exception

states

The states to filter

TYPE: Optional[Sequence[LifetimeExceptionsState]] DEFAULT: None

add_exception
add_exception(dids, account, pattern, comments, expires_at)

Add exceptions to Lifetime Model.

PARAMETER DESCRIPTION
dids

The list of dids

TYPE: list[dict[str, Any]]

account

The account of the requester.

TYPE: str

pattern

The account.

TYPE: str

comments

The comments associated to the exception.

TYPE: str

expires_at

The expiration date of the exception. returns: The id of the exception.

TYPE: datetime

Functions