ts_ids_core.schema.related_file module¶
- Model Checksum[source]¶
Bases:
IdsElementChecksum value and algorithm associated with a file.
Show JSON schema
{ "description": "Checksum value and algorithm associated with a file.", "type": "object", "properties": { "value": { "description": "Checksum string value.", "type": "string" }, "algorithm": { "description": "Checksum algorithm, e.g. 'md5', 'sha256'.", "type": [ "string", "null" ] } }, "additionalProperties": false, "required": [ "value", "algorithm" ] }
- Validators:
all_abstract_fields_implemented»all fields
- Model Pointer[source]¶
Bases:
IdsElementA pointer stores the location metadata of the file on TDP.
Show JSON schema
{ "description": "A pointer stores the location metadata of the file on TDP.", "type": "object", "properties": { "fileKey": { "description": "AWS S3 file key.", "type": "string" }, "version": { "description": "AWS S3 file version number.", "type": "string" }, "bucket": { "description": "AWS S3 bucket.", "type": "string" }, "type": { "description": "Type of the file, e.g. 's3file', 'parquet'.", "type": "string" }, "fileId": { "description": "File ID (UUID) in TDP.", "type": "string" } }, "additionalProperties": false, "required": [ "fileKey", "version", "bucket", "type", "fileId" ] }
- Validators:
all_abstract_fields_implemented»all fields
- Model RelatedFile[source]¶
Bases:
IdsElementA reference to a file related to this IDS stored on the Tetra Data Platform.
Show JSON schema
{ "description": "A reference to a file related to this IDS stored on the Tetra Data Platform.", "type": "object", "properties": { "name": { "description": "File name.", "type": [ "string", "null" ] }, "path": { "description": "File path.", "type": [ "string", "null" ] }, "size": { "$ref": "#/definitions/ValueUnit", "description": "File size." }, "checksum": { "$ref": "#/definitions/Checksum", "description": "File checksum." }, "pointer": { "$ref": "#/definitions/Pointer", "description": "File pointer to location on TDP." } }, "additionalProperties": false, "required": [ "pointer" ], "definitions": { "Checksum": { "additionalProperties": false, "description": "Checksum value and algorithm associated with a file.", "properties": { "value": { "description": "Checksum string value.", "type": "string" }, "algorithm": { "description": "Checksum algorithm, e.g. 'md5', 'sha256'.", "type": [ "string", "null" ] } }, "required": [ "value", "algorithm" ], "type": "object" }, "Pointer": { "additionalProperties": false, "description": "A pointer stores the location metadata of the file on TDP.", "properties": { "fileKey": { "description": "AWS S3 file key.", "type": "string" }, "version": { "description": "AWS S3 file version number.", "type": "string" }, "bucket": { "description": "AWS S3 bucket.", "type": "string" }, "type": { "description": "Type of the file, e.g. 's3file', 'parquet'.", "type": "string" }, "fileId": { "description": "File ID (UUID) in TDP.", "type": "string" } }, "required": [ "fileKey", "version", "bucket", "type", "fileId" ], "type": "object" }, "ValueUnit": { "additionalProperties": false, "description": "A quantity, represented by a value with a unit.", "properties": { "value": { "description": "A numerical value.", "type": [ "number", "null" ] }, "unit": { "description": "Unit for the numerical value.", "type": [ "string", "null" ] } }, "required": [ "value", "unit" ], "type": "object" } } }
- Validators:
all_abstract_fields_implemented»all fields