Class: Google::Apis::CloudsearchV1::AuditLoggingSettings
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AuditLoggingSettings
- 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
-
#log_admin_read_actions ⇒ Boolean
(also: #log_admin_read_actions?)
Indicates whether audit logging is on/off for admin activity read APIs i.e.
-
#log_data_read_actions ⇒ Boolean
(also: #log_data_read_actions?)
Indicates whether audit logging is on/off for data access read APIs i.e.
-
#log_data_write_actions ⇒ Boolean
(also: #log_data_write_actions?)
Indicates whether audit logging is on/off for data access write APIs i.e.
-
#project ⇒ String
The resource name of the GCP Project to store audit logs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuditLoggingSettings
constructor
A new instance of AuditLoggingSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuditLoggingSettings
Returns a new instance of AuditLoggingSettings.
57 58 59 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 57 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_admin_read_actions ⇒ Boolean 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
33 34 35 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 33 def log_admin_read_actions @log_admin_read_actions end |
#log_data_read_actions ⇒ Boolean 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
40 41 42 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 40 def log_data_read_actions @log_data_read_actions end |
#log_data_write_actions ⇒ Boolean 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
47 48 49 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 47 def log_data_write_actions @log_data_write_actions end |
#project ⇒ String
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
55 56 57 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 55 def project @project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
62 63 64 65 66 67 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 62 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 |