Class: Google::Apis::DatastreamV1alpha1::MysqlSslConfig

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

Overview

MySQL SSL configuration information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlSslConfig

Returns a new instance of MysqlSslConfig.



1082
1083
1084
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1082

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

Instance Attribute Details

#ca_certificateString

Input only. PEM-encoded certificate of the CA that signed the source database server's certificate. Corresponds to the JSON property caCertificate

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1048

def ca_certificate
  @ca_certificate
end

#ca_certificate_setBoolean Also known as: ca_certificate_set?

Output only. Indicates whether the ca_certificate field is set. Corresponds to the JSON property caCertificateSet

Returns:

  • (Boolean)


1053
1054
1055
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1053

def ca_certificate_set
  @ca_certificate_set
end

#client_certificateString

Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory. Corresponds to the JSON property clientCertificate

Returns:

  • (String)


1061
1062
1063
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1061

def client_certificate
  @client_certificate
end

#client_certificate_setBoolean Also known as: client_certificate_set?

Output only. Indicates whether the client_certificate field is set. Corresponds to the JSON property clientCertificateSet

Returns:

  • (Boolean)


1066
1067
1068
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1066

def client_certificate_set
  @client_certificate_set
end

#client_keyString

Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. Corresponds to the JSON property clientKey

Returns:

  • (String)


1074
1075
1076
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1074

def client_key
  @client_key
end

#client_key_setBoolean Also known as: client_key_set?

Output only. Indicates whether the client_key field is set. Corresponds to the JSON property clientKeySet

Returns:

  • (Boolean)


1079
1080
1081
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1079

def client_key_set
  @client_key_set
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1087
1088
1089
1090
1091
1092
1093
1094
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1087

def update!(**args)
  @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
  @ca_certificate_set = args[:ca_certificate_set] if args.key?(:ca_certificate_set)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @client_certificate_set = args[:client_certificate_set] if args.key?(:client_certificate_set)
  @client_key = args[:client_key] if args.key?(:client_key)
  @client_key_set = args[:client_key_set] if args.key?(:client_key_set)
end