Class: Google::Apis::DatastreamV1::SqlServerProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SqlServerProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
Profile for connecting to a SQLServer source.
Instance Attribute Summary collapse
-
#database ⇒ String
Required.
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Optional.
-
#port ⇒ Fixnum
Port for the SQLServer connection, default value is 1433.
-
#secret_manager_stored_password ⇒ String
Optional.
-
#ssl_config ⇒ Google::Apis::DatastreamV1::SqlServerSslConfig
SQL Server SSL configuration information.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlServerProfile
constructor
A new instance of SqlServerProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SqlServerProfile
Returns a new instance of SqlServerProfile.
4741 4742 4743 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. Database for the SQLServer connection.
Corresponds to the JSON property database
4707 4708 4709 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4707 def database @database end |
#hostname ⇒ String
Required. Hostname for the SQLServer connection.
Corresponds to the JSON property hostname
4712 4713 4714 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4712 def hostname @hostname end |
#password ⇒ String
Optional. Password for the SQLServer connection. Mutually exclusive with the
secret_manager_stored_password field.
Corresponds to the JSON property password
4718 4719 4720 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4718 def password @password end |
#port ⇒ Fixnum
Port for the SQLServer connection, default value is 1433.
Corresponds to the JSON property port
4723 4724 4725 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4723 def port @port end |
#secret_manager_stored_password ⇒ String
Optional. A reference to a Secret Manager resource name storing the SQLServer
connection password. Mutually exclusive with the password field.
Corresponds to the JSON property secretManagerStoredPassword
4729 4730 4731 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4729 def secret_manager_stored_password @secret_manager_stored_password end |
#ssl_config ⇒ Google::Apis::DatastreamV1::SqlServerSslConfig
SQL Server SSL configuration information.
Corresponds to the JSON property sslConfig
4734 4735 4736 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4734 def ssl_config @ssl_config end |
#username ⇒ String
Required. Username for the SQLServer connection.
Corresponds to the JSON property username
4739 4740 4741 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4739 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4746 4747 4748 4749 4750 4751 4752 4753 4754 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4746 def update!(**args) @database = args[:database] if args.key?(:database) @hostname = args[:hostname] if args.key?(:hostname) @password = args[:password] if args.key?(:password) @port = args[:port] if args.key?(:port) @secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password) @ssl_config = args[:ssl_config] if args.key?(:ssl_config) @username = args[:username] if args.key?(:username) end |