Class: Google::Apis::SqladminV1beta4::SqlServerAuditConfig

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

Overview

SQL Server specific audit configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerAuditConfig

Returns a new instance of SqlServerAuditConfig.



3588
3589
3590
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3588

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

Instance Attribute Details

#bucketString

The name of the destination bucket (e.g., gs://mybucket). Corresponds to the JSON property bucket

Returns:

  • (String)


3571
3572
3573
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3571

def bucket
  @bucket
end

#kindString

This is always sql#sqlServerAuditConfig Corresponds to the JSON property kind

Returns:

  • (String)


3576
3577
3578
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3576

def kind
  @kind
end

#retention_intervalString

How long to keep generated audit files. Corresponds to the JSON property retentionInterval

Returns:

  • (String)


3581
3582
3583
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3581

def retention_interval
  @retention_interval
end

#upload_intervalString

How often to upload generated audit files. Corresponds to the JSON property uploadInterval

Returns:

  • (String)


3586
3587
3588
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3586

def upload_interval
  @upload_interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3593
3594
3595
3596
3597
3598
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3593

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @kind = args[:kind] if args.key?(:kind)
  @retention_interval = args[:retention_interval] if args.key?(:retention_interval)
  @upload_interval = args[:upload_interval] if args.key?(:upload_interval)
end