Module invenio_rest_api_client.models.embargo
Variables
T
Classes
Embargo
class Embargo(
active: invenio_rest_api_client.types.Unset | bool = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
until: invenio_rest_api_client.types.Unset | datetime.date = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
reason: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>
)
Only in the cases of "record": "restricted"`` or"files": "restricted"`` can an embargo be provided as input.
However, once an embargo is lifted, the embargo section is kept for transparency.
Denotes when an embargo must be lifted, at which point the record is made publicly accessible.
Attributes:
active (Union[Unset, bool]): Is the record under embargo or not.
until (Union[Unset, datetime.date]): Required if `"active": "true"`.
reason (Union[Unset, str]): Explanation for the embargo.
Static methods
from_dict
def from_dict(
src_dict: collections.abc.Mapping[str, typing.Any]
) -> ~T
Instance variables
active
additional_keys
additional_properties
reason
until
Methods
to_dict
def to_dict(
self
) -> dict[str, typing.Any]