Class: Google::Apis::DatastreamV1::SqlServerProfile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerProfile

Returns a new instance of SqlServerProfile.



4707
4708
4709
# File 'lib/google/apis/datastream_v1/classes.rb', line 4707

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

Instance Attribute Details

#databaseString

Required. Database for the SQLServer connection. Corresponds to the JSON property database

Returns:

  • (String)


4673
4674
4675
# File 'lib/google/apis/datastream_v1/classes.rb', line 4673

def database
  @database
end

#hostnameString

Required. Hostname for the SQLServer connection. Corresponds to the JSON property hostname

Returns:

  • (String)


4678
4679
4680
# File 'lib/google/apis/datastream_v1/classes.rb', line 4678

def hostname
  @hostname
end

#passwordString

Optional. Password for the SQLServer connection. Mutually exclusive with the secret_manager_stored_password field. Corresponds to the JSON property password

Returns:

  • (String)


4684
4685
4686
# File 'lib/google/apis/datastream_v1/classes.rb', line 4684

def password
  @password
end

#portFixnum

Port for the SQLServer connection, default value is 1433. Corresponds to the JSON property port

Returns:

  • (Fixnum)


4689
4690
4691
# File 'lib/google/apis/datastream_v1/classes.rb', line 4689

def port
  @port
end

#secret_manager_stored_passwordString

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

Returns:

  • (String)


4695
4696
4697
# File 'lib/google/apis/datastream_v1/classes.rb', line 4695

def secret_manager_stored_password
  @secret_manager_stored_password
end

#ssl_configGoogle::Apis::DatastreamV1::SqlServerSslConfig

SQL Server SSL configuration information. Corresponds to the JSON property sslConfig



4700
4701
4702
# File 'lib/google/apis/datastream_v1/classes.rb', line 4700

def ssl_config
  @ssl_config
end

#usernameString

Required. Username for the SQLServer connection. Corresponds to the JSON property username

Returns:

  • (String)


4705
4706
4707
# File 'lib/google/apis/datastream_v1/classes.rb', line 4705

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4712
4713
4714
4715
4716
4717
4718
4719
4720
# File 'lib/google/apis/datastream_v1/classes.rb', line 4712

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