30 #ifndef GOOGLE_CLOUDBILLING_API_AUDIT_LOG_CONFIG_H_ 31 #define GOOGLE_CLOUDBILLING_API_AUDIT_LOG_CONFIG_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 102 return StringPiece(
"google_cloudbilling_api::AuditLogConfig");
111 return Storage().isMember(
"exemptedMembers");
118 MutableStorage()->removeMember(
"exemptedMembers");
127 const Json::Value& storage = Storage(
"exemptedMembers");
128 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
142 Json::Value* storage = MutableStorage(
"exemptedMembers");
143 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
152 return Storage().isMember(
"logType");
159 MutableStorage()->removeMember(
"logType");
167 const Json::Value& v = Storage(
"logType");
168 if (v == Json::Value::null)
return StringPiece(
"");
169 return StringPiece(v.asCString());
180 *MutableStorage(
"logType") = value.data();
187 #endif // GOOGLE_CLOUDBILLING_API_AUDIT_LOG_CONFIG_H_ const StringPiece GetTypeName() const
Definition: audit_log_config.h:101
void clear_log_type()
Definition: audit_log_config.h:158
const client::JsonCppArray< string > get_exempted_members() const
Definition: audit_log_config.h:126
client::JsonCppArray< string > mutable_exemptedMembers()
Definition: audit_log_config.h:141
bool has_log_type() const
Definition: audit_log_config.h:151
Definition: aggregation_info.h:39
Definition: audit_log_config.h:68
void set_log_type(const StringPiece &value)
Definition: audit_log_config.h:179
void clear_exempted_members()
Definition: audit_log_config.h:117
Definition: aggregation_info.cc:42
bool has_exempted_members() const
Definition: audit_log_config.h:110
const StringPiece get_log_type() const
Definition: audit_log_config.h:166