GoogleCloudPlatform / node-red-contrib-google-cloud

Node-RED nodes for Google Cloud Platform
Apache License 2.0
90 stars 57 forks source link

missing ability to read/write GCS object metadata #84

Open BorisDaich opened 4 years ago

BorisDaich commented 4 years ago

please add an option to read/write GCS object metadata

high level proposed addition:

depending on the boolean flag in the node that can be overridden by the flags in the message "readMetadata" for the GCS Read node and "writeMetadata" GCS Write node

absence of the flag in the message considered as "false".

If the flag is set to "true" than GCS Read will return the GCS Object's metadata in msg.metadata GCS Write will write the msg.metadata along with the object. if metadata provided violates GCS metadata rules - the node should through a relevant exception. on write if both msg.metadata and msg.contentType contain contentType than the msg.contentType should prevail.

Open Questions that the proposal does not address:

Update of the metadata for existing GCS object reading metadata without reading the GCS object itself.