Class: Google::Apis::AlloydbV1::SslConfig

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

Overview

SSL configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SslConfig

Returns a new instance of SslConfig.



2280
2281
2282
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2280

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

Instance Attribute Details

#ca_sourceString

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value. Corresponds to the JSON property caSource

Returns:

  • (String)


2273
2274
2275
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2273

def ca_source
  @ca_source
end

#ssl_modeString

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior. Corresponds to the JSON property sslMode

Returns:

  • (String)


2278
2279
2280
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2278

def ssl_mode
  @ssl_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2285
2286
2287
2288
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2285

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