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
| Type | Description |
|---|---|
bytes | A 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
| Name | Type | Description |
|---|---|---|
| data | bytes | The UTF-8 encoded JSON byte string containing the resource metadata to be deserialized |
Returns
| Type | Description |
|---|---|
[ResourceMeta](resourcemeta.md?sid=flyte_connectors__connector_resourcemeta) | A new instance of ResourceMeta populated with the data parsed from the byte string |