Define a condition for a policy document.
More...
#include <google/cloud/storage/policy_document.h>
|
|
static std::vector< std::string > | ExactMatch (std::string const &field, std::string const &value) |
| Creates an exact match condition, in the list form syntax. More...
|
|
static std::vector< std::string > | ExactMatchObject (std::string const &field, std::string const &value) |
| Creates an exact match condition, but in object form syntax. More...
|
|
static std::vector< std::string > | StartsWith (std::string const &field, std::string const &value) |
| Creates an exact match condition, in the list form syntax. More...
|
|
static std::vector< std::string > | ContentLengthRange (std::int32_t min_range, std::int32_t max_range) |
| Creates an exact match condition, in the list form syntax. More...
|
|
Define a condition for a policy document.
◆ PolicyDocumentCondition() [1/2]
google::cloud::storage::PolicyDocumentCondition::PolicyDocumentCondition |
( |
| ) |
|
|
default |
◆ PolicyDocumentCondition() [2/2]
google::cloud::storage::PolicyDocumentCondition::PolicyDocumentCondition |
( |
std::vector< std::string > |
elements | ) |
|
|
inline |
◆ ContentLengthRange()
static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ContentLengthRange |
( |
std::int32_t |
min_range, |
|
|
std::int32_t |
max_range |
|
) |
| |
|
inlinestatic |
Creates an exact match condition, in the list form syntax.
◆ elements()
std::vector< std::string > const & google::cloud::storage::PolicyDocumentCondition::elements |
( |
| ) |
const |
|
inline |
◆ ExactMatch()
static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ExactMatch |
( |
std::string const & |
field, |
|
|
std::string const & |
value |
|
) |
| |
|
inlinestatic |
Creates an exact match condition, in the list form syntax.
◆ ExactMatchObject()
static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ExactMatchObject |
( |
std::string const & |
field, |
|
|
std::string const & |
value |
|
) |
| |
|
inlinestatic |
Creates an exact match condition, but in object form syntax.
◆ StartsWith()
static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::StartsWith |
( |
std::string const & |
field, |
|
|
std::string const & |
value |
|
) |
| |
|
inlinestatic |
Creates an exact match condition, in the list form syntax.