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
bytesA UTF-8 encoded JSON byte string representing the resource metadata fields

decode()

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

Decode the resource meta from bytes.

Parameters

NameTypeDescription
databytesThe UTF-8 encoded JSON byte string containing the resource metadata to be deserialized

Returns

TypeDescription
[ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta)A new instance of ResourceMeta populated with the data parsed from the byte string