Skip to main content

ResourceMeta

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

Methods​


encode()​

def encode(self) -> bytes: ...

Encode the resource meta to bytes.

Returns​

TypeDescription
bytesThe serialized JSON representation of the resource metadata encoded as UTF-8 bytes.

decode()​

@classmethod
def decode(cls, data: bytes) -> "ResourceMeta": ...

Decode the resource meta from bytes.

Parameters​

NameTypeDescription
databytesThe UTF-8 encoded JSON bytes representing the resource metadata to deserialize.

Returns​

TypeDescription
[ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta)A new ResourceMeta instance reconstructed from the decoded JSON byte string.