30 #ifndef GOOGLE_YOUTUBE_API_ACCESS_POLICY_H_ 31 #define GOOGLE_YOUTUBE_API_ACCESS_POLICY_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_youtube_api::AccessPolicy");
93 return Storage().isMember(
"allowed");
100 MutableStorage()->removeMember(
"allowed");
108 const Json::Value& storage = Storage(
"allowed");
109 return client::JsonValueToCppValueHelper<bool >(storage);
121 client::SetJsonValueFromCppValueHelper<bool >(
122 value, MutableStorage(
"allowed"));
131 return Storage().isMember(
"exception");
138 MutableStorage()->removeMember(
"exception");
146 const Json::Value& storage = Storage(
"exception");
147 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
160 Json::Value* storage = MutableStorage(
"exception");
161 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
168 #endif // GOOGLE_YOUTUBE_API_ACCESS_POLICY_H_ Definition: access_policy.cc:40
void set_allowed(bool value)
Definition: access_policy.h:120
bool get_allowed() const
Definition: access_policy.h:107
Definition: access_policy.h:50
const StringPiece GetTypeName() const
Definition: access_policy.h:83
client::JsonCppArray< string > mutable_exception()
Definition: access_policy.h:159
Definition: access_policy.h:38
void clear_allowed()
Definition: access_policy.h:99
bool has_exception() const
Definition: access_policy.h:130
void clear_exception()
Definition: access_policy.h:137
bool has_allowed() const
Definition: access_policy.h:92
const client::JsonCppArray< string > get_exception() const
Definition: access_policy.h:145