Class: Google::Apis::CloudsearchV1::AuditLoggingSettings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Represents the settings for Cloud audit logging

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuditLoggingSettings

Returns a new instance of AuditLoggingSettings.



4945
4946
4947
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4945

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

Instance Attribute Details

#log_admin_read_actionsBoolean Also known as: log_admin_read_actions?

Indicates whether audit logging is on/off for admin activity read APIs i.e. Get/List DataSources, Get/List SearchApplications etc. Corresponds to the JSON property logAdminReadActions

Returns:

  • (Boolean)


4921
4922
4923
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4921

def log_admin_read_actions
  @log_admin_read_actions
end

#log_data_read_actionsBoolean Also known as: log_data_read_actions?

Indicates whether audit logging is on/off for data access read APIs i.e. ListItems, GetItem etc. Corresponds to the JSON property logDataReadActions

Returns:

  • (Boolean)


4928
4929
4930
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4928

def log_data_read_actions
  @log_data_read_actions
end

#log_data_write_actionsBoolean Also known as: log_data_write_actions?

Indicates whether audit logging is on/off for data access write APIs i.e. IndexItem etc. Corresponds to the JSON property logDataWriteActions

Returns:

  • (Boolean)


4935
4936
4937
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4935

def log_data_write_actions
  @log_data_write_actions
end

#projectString

The resource name of the GCP Project to store audit logs. Cloud audit logging will be enabled after project_name has been updated through CustomerService. Format: projects/project_id Corresponds to the JSON property project

Returns:

  • (String)


4943
4944
4945
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4943

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4950
4951
4952
4953
4954
4955
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4950

def update!(**args)
  @log_admin_read_actions = args[:log_admin_read_actions] if args.key?(:log_admin_read_actions)
  @log_data_read_actions = args[:log_data_read_actions] if args.key?(:log_data_read_actions)
  @log_data_write_actions = args[:log_data_write_actions] if args.key?(:log_data_write_actions)
  @project = args[:project] if args.key?(:project)
end