Class: Google::Apis::SqladminV1::SqlServerAuditConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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.



4268
4269
4270
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4268

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)


4251
4252
4253
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4251

def bucket
  @bucket
end

#kindString

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

Returns:

  • (String)


4256
4257
4258
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4256

def kind
  @kind
end

#retention_intervalString

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

Returns:

  • (String)


4261
4262
4263
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4261

def retention_interval
  @retention_interval
end

#upload_intervalString

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

Returns:

  • (String)


4266
4267
4268
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4266

def upload_interval
  @upload_interval
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4273
4274
4275
4276
4277
4278
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4273

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