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
| Type | Description |
|---|---|
bytes | The 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
| Name | Type | Description |
|---|---|---|
| data | bytes | The UTF-8 encoded JSON bytes representing the resource metadata to deserialize. |
Returns
| Type | Description |
|---|---|
[ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta) | A new ResourceMeta instance reconstructed from the decoded JSON byte string. |