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
SQLServer database profile
Instance Attribute Summary collapse
-
#database ⇒ String
Required.
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Required.
-
#port ⇒ Fixnum
Port for the SQLServer connection, default value is 1433.
-
#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.
2501 2502 2503 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. Database for the SQLServer connection.
Corresponds to the JSON property database
2479 2480 2481 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2479 def database @database end |
#hostname ⇒ String
Required. Hostname for the SQLServer connection.
Corresponds to the JSON property hostname
2484 2485 2486 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2484 def hostname @hostname end |
#password ⇒ String
Required. Password for the SQLServer connection.
Corresponds to the JSON property password
2489 2490 2491 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2489 def password @password end |
#port ⇒ Fixnum
Port for the SQLServer connection, default value is 1433.
Corresponds to the JSON property port
2494 2495 2496 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2494 def port @port end |
#username ⇒ String
Required. Username for the SQLServer connection.
Corresponds to the JSON property username
2499 2500 2501 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2499 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2506 2507 2508 2509 2510 2511 2512 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2506 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) @username = args[:username] if args.key?(:username) end |