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

SQLServer database profile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerProfile

Returns a new instance of SqlServerProfile.



2533
2534
2535
# File 'lib/google/apis/datastream_v1/classes.rb', line 2533

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

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


2511
2512
2513
# File 'lib/google/apis/datastream_v1/classes.rb', line 2511

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


2516
2517
2518
# File 'lib/google/apis/datastream_v1/classes.rb', line 2516

def hostname
  @hostname
end

#passwordString

Required. Password for the SQLServer connection. Corresponds to the JSON property password

Returns:

  • (String)


2521
2522
2523
# File 'lib/google/apis/datastream_v1/classes.rb', line 2521

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2526
2527
2528
# File 'lib/google/apis/datastream_v1/classes.rb', line 2526

def port
  @port
end

#usernameString

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

Returns:

  • (String)


2531
2532
2533
# File 'lib/google/apis/datastream_v1/classes.rb', line 2531

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2538
2539
2540
2541
2542
2543
2544
# File 'lib/google/apis/datastream_v1/classes.rb', line 2538

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