Class: Google::Apis::CloudkmsV1beta1::AuditConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudkms_v1beta1/classes.rb,
generated/google/apis/cloudkms_v1beta1/representations.rb,
generated/google/apis/cloudkms_v1beta1/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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuditConfig

Returns a new instance of AuditConfig



340
341
342
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 340

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audit_log_configsArray<Google::Apis::CloudkmsV1beta1::AuditLogConfig>

The configuration for logging of each type of permission. Next ID: 4 Corresponds to the JSON property auditLogConfigs



338
339
340
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 338

def audit_log_configs
  @audit_log_configs
end

#exempted_membersArray<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

Returns:

  • (Array<String>)


325
326
327
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 325

def exempted_members
  @exempted_members
end

#serviceString

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

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 332

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



345
346
347
348
349
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 345

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