Skip to content

Module invenio_rest_api_client.models.person_or_org

Variables

T
TYPE_CHECKING

Classes

PersonOrOrg

class PersonOrOrg(
    type_: invenio_rest_api_client.models.person_or_org_type.PersonOrOrgType,
    given_name: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    family_name: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    name: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    identifiers: invenio_rest_api_client.types.Unset | list['Identifier'] = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>
)

The person or organization.

Attributes

Name Type Description Default
type_ PersonOrOrgType The type of name. None
given_name Union[Unset, str] Given name(s). None
family_name Union[Unset, str] Family name. None
name Union[Unset, str] The full name of the organisation.
For a person, this field is generated from given_name and family_name.
None
identifiers Union[Unset, list['Identifier']] Person or organisation identifiers. None

Static methods

from_dict

def from_dict(
    src_dict: collections.abc.Mapping[str, typing.Any]
) -> ~T

Instance variables

additional_keys
additional_properties
family_name
given_name
identifiers
name
type_

Methods

to_dict

def to_dict(
    self
) -> dict[str, typing.Any]