Skip to main content

ResourceMeta

This is the metadata for the job. For example, the id of the job.

Methods


encode()

@classmethod
def encode() - > bytes

Encode the resource meta to bytes.

Returns

TypeDescription
bytesThe byte representation of the resource metadata.

decode()

@classmethod
def decode(
data: bytes
) - > [ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta)

Decode the resource meta from bytes.

Parameters

NameTypeDescription
databytesThe byte data representing the encoded ResourceMeta object.

Returns

TypeDescription
[ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta)A ResourceMeta object reconstructed from the provided bytes.