Struct PolicyDocumentV4 (2.12.0)

Define a policy document V4.

Policy documents allow HTML forms to restrict uploads based on certain conditions. If the policy document is expired or the conditions are not satisfied, submitting the form will not succeed.

See Also

https://cloud.google.com/storage/docs/xml-api/post-object#policydocument for general information on policy documents in Google Cloud Storage.

Constructors

PolicyDocumentV4()

PolicyDocumentV4(std::string, std::string, std::chrono::seconds, std::chrono::system_clock::time_point, std::vector< PolicyDocumentCondition >)

Parameters
Name Description
bucket std::string
object std::string
expiration std::chrono::seconds
timestamp std::chrono::system_clock::time_point
conditions std::vector< PolicyDocumentCondition >