Class: Google::Apis::DeploymentmanagerV2::AuditConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/deploymentmanager_v2/classes.rb,
generated/google/apis/deploymentmanager_v2/representations.rb,
generated/google/apis/deploymentmanager_v2/representations.rb

Overview

Enables "data access" audit logging for a service and specifies a list of members that are log-exempted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AuditConfig

Returns a new instance of AuditConfig.



43
44
45
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 43

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

Instance Attribute Details

#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. Corresponds to the JSON property exemptedMembers

Returns:

  • (Array<String>)


34
35
36
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 34

def exempted_members
  @exempted_members
end

#serviceString

Specifies a service that will be enabled for "data access" audit logging. For example, resourcemanager, storage, compute. allServices is a special value that covers all services. Corresponds to the JSON property service

Returns:

  • (String)


41
42
43
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 41

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 48

def update!(**args)
  @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
  @service = args[:service] if args.key?(:service)
end