Class: Google::Apis::SpannerV1::AuditConfig
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::AuditConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
Specifies the audit configuration for a service. It consists of which permission types are logged, and what identities, if any, are exempted from logging. An AuditConifg must have one or more AuditLogConfigs.
Instance Attribute Summary collapse
-
#audit_log_configs ⇒ Array<Google::Apis::SpannerV1::AuditLogConfig>
The configuration for logging of each type of permission.
-
#exempted_members ⇒ Array<String>
Specifies the identities that are exempted from "data access" audit logging for the
servicespecified above. -
#service ⇒ String
Specifies a service that will be enabled for audit logging.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuditConfig
constructor
A new instance of AuditConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AuditConfig
Returns a new instance of AuditConfig
1153 1154 1155 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audit_log_configs ⇒ Array<Google::Apis::SpannerV1::AuditLogConfig>
The configuration for logging of each type of permission.
Next ID: 4
Corresponds to the JSON property auditLogConfigs
1151 1152 1153 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1151 def audit_log_configs @audit_log_configs end |
#exempted_members ⇒ Array<String>
Specifies the identities that are exempted from "data access" audit
logging for the service specified above.
Follows the same format of Binding.members.
This field is deprecated in favor of per-permission-type exemptions.
Corresponds to the JSON property exemptedMembers
1138 1139 1140 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1138 def exempted_members @exempted_members end |
#service ⇒ String
Specifies a service that will be enabled for audit logging.
For example, resourcemanager, storage, compute.
allServices is a special value that covers all services.
Corresponds to the JSON property service
1145 1146 1147 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1145 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 1161 1162 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1158 def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @service = args[:service] if args.key?(:service) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) end |