Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
google::cloud::storage::PolicyDocumentV4 Struct Reference

Define a policy document V4. More...

#include <google/cloud/storage/policy_document.h>

Public Member Functions

 PolicyDocumentV4 ()=default
 
 PolicyDocumentV4 (std::string bucket, std::string object, std::chrono::seconds expiration, std::chrono::system_clock::time_point timestamp=std::chrono::system_clock::now(), std::vector< PolicyDocumentCondition > conditions={})
 

Public Attributes

std::string bucket
 
std::string object
 
std::chrono::seconds expiration
 
std::chrono::system_clock::time_point timestamp
 
std::vector< PolicyDocumentConditionconditions
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PolicyDocumentV4() [1/2]

google::cloud::storage::PolicyDocumentV4::PolicyDocumentV4 ( )
default

◆ PolicyDocumentV4() [2/2]

google::cloud::storage::PolicyDocumentV4::PolicyDocumentV4 ( std::string  bucket,
std::string  object,
std::chrono::seconds  expiration,
std::chrono::system_clock::time_point  timestamp = std::chrono::system_clock::now(),
std::vector< PolicyDocumentCondition conditions = {} 
)
inline

Member Data Documentation

◆ bucket

std::string google::cloud::storage::PolicyDocumentV4::bucket

◆ conditions

std::vector<PolicyDocumentCondition> google::cloud::storage::PolicyDocumentV4::conditions

◆ expiration

std::chrono::seconds google::cloud::storage::PolicyDocumentV4::expiration

◆ object

std::string google::cloud::storage::PolicyDocumentV4::object

◆ timestamp

std::chrono::system_clock::time_point google::cloud::storage::PolicyDocumentV4::timestamp