30 #ifndef GOOGLE_COMPUTE_API_AUDIT_CONFIG_H_ 31 #define GOOGLE_COMPUTE_API_AUDIT_CONFIG_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/compute_api/audit_log_config.h" 106 return StringPiece(
"google_compute_api::AuditConfig");
115 return Storage().isMember(
"auditLogConfigs");
122 MutableStorage()->removeMember(
"auditLogConfigs");
130 const client::JsonCppArray<AuditLogConfig > get_audit_log_configs()
const;
140 client::JsonCppArray<AuditLogConfig > mutable_auditLogConfigs();
148 return Storage().isMember(
"exemptedMembers");
155 MutableStorage()->removeMember(
"exemptedMembers");
164 const Json::Value& storage = Storage(
"exemptedMembers");
165 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
174 Json::Value* storage = MutableStorage(
"exemptedMembers");
175 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
184 return Storage().isMember(
"service");
191 MutableStorage()->removeMember(
"service");
199 const Json::Value& v = Storage(
"service");
200 if (v == Json::Value::null)
return StringPiece(
"");
201 return StringPiece(v.asCString());
214 *MutableStorage(
"service") = value.data();
221 #endif // GOOGLE_COMPUTE_API_AUDIT_CONFIG_H_ void set_service(const StringPiece &value)
Definition: audit_config.h:213
void clear_service()
Definition: audit_config.h:190
Definition: audit_config.h:72
const client::JsonCppArray< string > get_exempted_members() const
Definition: audit_config.h:163
void clear_audit_log_configs()
Definition: audit_config.h:121
client::JsonCppArray< string > mutable_exemptedMembers()
Definition: audit_config.h:173
bool has_exempted_members() const
Definition: audit_config.h:147
void clear_exempted_members()
Definition: audit_config.h:154
Definition: accelerator_config.h:39
bool has_audit_log_configs() const
Definition: audit_config.h:114
Definition: accelerator_config.cc:41
const StringPiece GetTypeName() const
Definition: audit_config.h:105
const StringPiece get_service() const
Definition: audit_config.h:198
bool has_service() const
Definition: audit_config.h:183