30 #ifndef GOOGLE_COMPUTE_API_CACHE_KEY_POLICY_H_ 31 #define GOOGLE_COMPUTE_API_CACHE_KEY_POLICY_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_compute_api::CacheKeyPolicy");
94 return Storage().isMember(
"includeHost");
101 MutableStorage()->removeMember(
"includeHost");
109 const Json::Value& storage = Storage(
"includeHost");
110 return client::JsonValueToCppValueHelper<bool >(storage);
121 client::SetJsonValueFromCppValueHelper<bool >(
122 value, MutableStorage(
"includeHost"));
131 return Storage().isMember(
"includeProtocol");
138 MutableStorage()->removeMember(
"includeProtocol");
146 const Json::Value& storage = Storage(
"includeProtocol");
147 return client::JsonValueToCppValueHelper<bool >(storage);
158 client::SetJsonValueFromCppValueHelper<bool >(
159 value, MutableStorage(
"includeProtocol"));
168 return Storage().isMember(
"includeQueryString");
175 MutableStorage()->removeMember(
"includeQueryString");
183 const Json::Value& storage = Storage(
"includeQueryString");
184 return client::JsonValueToCppValueHelper<bool >(storage);
198 client::SetJsonValueFromCppValueHelper<bool >(
199 value, MutableStorage(
"includeQueryString"));
208 return Storage().isMember(
"queryStringBlacklist");
215 MutableStorage()->removeMember(
"queryStringBlacklist");
224 const Json::Value& storage = Storage(
"queryStringBlacklist");
225 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
240 Json::Value* storage = MutableStorage(
"queryStringBlacklist");
241 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
250 return Storage().isMember(
"queryStringWhitelist");
257 MutableStorage()->removeMember(
"queryStringWhitelist");
266 const Json::Value& storage = Storage(
"queryStringWhitelist");
267 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
282 Json::Value* storage = MutableStorage(
"queryStringWhitelist");
283 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
290 #endif // GOOGLE_COMPUTE_API_CACHE_KEY_POLICY_H_ bool get_include_protocol() const
Definition: cache_key_policy.h:145
bool has_include_protocol() const
Definition: cache_key_policy.h:130
bool has_query_string_whitelist() const
Definition: cache_key_policy.h:249
const client::JsonCppArray< string > get_query_string_blacklist() const
Definition: cache_key_policy.h:223
void clear_query_string_whitelist()
Definition: cache_key_policy.h:256
client::JsonCppArray< string > mutable_queryStringBlacklist()
Definition: cache_key_policy.h:239
bool get_include_query_string() const
Definition: cache_key_policy.h:182
const StringPiece GetTypeName() const
Definition: cache_key_policy.h:84
void set_include_host(bool value)
Definition: cache_key_policy.h:120
bool has_query_string_blacklist() const
Definition: cache_key_policy.h:207
Definition: accelerator_config.h:39
void clear_query_string_blacklist()
Definition: cache_key_policy.h:214
bool has_include_query_string() const
Definition: cache_key_policy.h:167
void set_include_query_string(bool value)
Definition: cache_key_policy.h:197
Definition: cache_key_policy.h:51
Definition: accelerator_config.cc:41
void set_include_protocol(bool value)
Definition: cache_key_policy.h:157
void clear_include_protocol()
Definition: cache_key_policy.h:137
void clear_include_query_string()
Definition: cache_key_policy.h:174
bool get_include_host() const
Definition: cache_key_policy.h:108
void clear_include_host()
Definition: cache_key_policy.h:100
client::JsonCppArray< string > mutable_queryStringWhitelist()
Definition: cache_key_policy.h:281
const client::JsonCppArray< string > get_query_string_whitelist() const
Definition: cache_key_policy.h:265
bool has_include_host() const
Definition: cache_key_policy.h:93