gravitino.dto.schema_dto.SchemaDTO¶
- class gravitino.dto.schema_dto.SchemaDTO(_name: str, _comment: str | None, _properties: Dict[str, str] | None, _audit: AuditDTO)¶
Bases:
Schema,DataClassJsonMixinRepresents a Schema DTO (Data Transfer Object).
- __init__(_name: str, _comment: str | None, _properties: Dict[str, str] | None, _audit: AuditDTO) None¶
Methods
__init__(_name, _comment, _properties, _audit)audit_info()comment()Returns the comment of the Schema.
from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])name()Returns the name of the Schema.
Returns the properties of the Schema.
schema(*[, infer_missing, only, exclude, ...])supports_tags()to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])Attributes
dataclass_json_config- comment() str | None¶
Returns the comment of the Schema. None is returned if the comment is not set.
- name() str¶
Returns the name of the Schema.
- properties() Dict[str, str]¶
Returns the properties of the Schema. An empty dictionary is returned if no properties are set.