Class: Google::Apis::ComputeAlpha::LogConfigCloudAuditOptions

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

Overview

Write a Cloud Audit log

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogConfigCloudAuditOptions

Returns a new instance of LogConfigCloudAuditOptions.



20514
20515
20516
# File 'lib/google/apis/compute_alpha/classes.rb', line 20514

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

Instance Attribute Details

#authorization_logging_optionsGoogle::Apis::ComputeAlpha::AuthorizationLoggingOptions

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



20507
20508
20509
# File 'lib/google/apis/compute_alpha/classes.rb', line 20507

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)


20512
20513
20514
# File 'lib/google/apis/compute_alpha/classes.rb', line 20512

def log_name
  @log_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20519
20520
20521
20522
# File 'lib/google/apis/compute_alpha/classes.rb', line 20519

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