deploymentmanager
v2
|
#include <audit_config.h>
Public Member Functions | |
AuditConfig (const Json::Value &storage) | |
AuditConfig (Json::Value *storage) | |
virtual | ~AuditConfig () |
const StringPiece | GetTypeName () const |
bool | has_audit_log_configs () const |
void | clear_audit_log_configs () |
const client::JsonCppArray< AuditLogConfig > | get_audit_log_configs () const |
client::JsonCppArray< AuditLogConfig > | mutable_auditLogConfigs () |
bool | has_exempted_members () const |
void | clear_exempted_members () |
const client::JsonCppArray< string > | get_exempted_members () const |
client::JsonCppArray< string > | mutable_exemptedMembers () |
bool | has_service () const |
void | clear_service () |
const StringPiece | get_service () const |
void | set_service (const StringPiece &value) |
Static Public Member Functions | |
static AuditConfig * | New () |
Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
If there are AuditConfigs for both allServices
and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
Example Policy with multiple AuditConfigs:
{ "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@g from DATA_READ logging, and mail .combar@g from DATA_WRITE logging. mail .com
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'auditLogConfigs
' attribute.
|
inline |
Clears the 'exemptedMembers
' attribute.
|
inline |
Clears the 'service
' attribute.
const client::JsonCppArray<AuditLogConfig > google_deploymentmanager_api::AuditConfig::get_audit_log_configs | ( | ) | const |
Get a reference to the value of the 'auditLogConfigs
' attribute.
|
inline |
Get a reference to the value of the 'exemptedMembers
' attribute.
|
inline |
Get the value of the 'service
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'auditLogConfigs
' attribute was set.
auditLogConfigs
' attribute was set.
|
inline |
Determine if the 'exemptedMembers
' attribute was set.
exemptedMembers
' attribute was set.
|
inline |
Determine if the 'service
' attribute was set.
service
' attribute was set. client::JsonCppArray<AuditLogConfig > google_deploymentmanager_api::AuditConfig::mutable_auditLogConfigs | ( | ) |
Gets a reference to a mutable value of the 'auditLogConfigs
' property.
The configuration for logging of each type of permission.
|
inline |
Gets a reference to a mutable value of the 'exemptedMembers
' property.
|
static |
Creates a new default instance.
|
inline |
Change the 'service
' attribute.
Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com
, cloudsql.googleapis.com
. allServices
is a special value that covers all services.
[in] | value | The new value. |