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.
Definition at line 32 of file policy_document.h.
◆ 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.
Definition at line 74 of file policy_document.h.
◆ 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.
Definition at line 47 of file policy_document.h.
◆ 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.
Definition at line 57 of file policy_document.h.
◆ 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.
Definition at line 65 of file policy_document.h.