Class: Google::Apis::ComputeBeta::LogConfigCloudAuditOptions

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

Overview

Write a Cloud Audit log

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) ⇒ LogConfigCloudAuditOptions

Returns a new instance of LogConfigCloudAuditOptions



13144
13145
13146
# File 'generated/google/apis/compute_beta/classes.rb', line 13144

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

Instance Attribute Details

#authorization_logging_optionsGoogle::Apis::ComputeBeta::AuthorizationLoggingOptions

Authorization-related information used by Cloud Audit Logging. Corresponds to the JSON property authorizationLoggingOptions



13137
13138
13139
# File 'generated/google/apis/compute_beta/classes.rb', line 13137

def authorization_logging_options
  @authorization_logging_options
end

#log_nameString

The log_name to populate in the Cloud Audit Record. Corresponds to the JSON property logName

Returns:

  • (String)


13142
13143
13144
# File 'generated/google/apis/compute_beta/classes.rb', line 13142

def log_name
  @log_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13149
13150
13151
13152
# File 'generated/google/apis/compute_beta/classes.rb', line 13149

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