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. Next ID: 8.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerProfile

Returns a new instance of SqlServerProfile.



2854
2855
2856
# File 'lib/google/apis/datastream_v1/classes.rb', line 2854

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

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


2831
2832
2833
# File 'lib/google/apis/datastream_v1/classes.rb', line 2831

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


2836
2837
2838
# File 'lib/google/apis/datastream_v1/classes.rb', line 2836

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)


2842
2843
2844
# File 'lib/google/apis/datastream_v1/classes.rb', line 2842

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2847
2848
2849
# File 'lib/google/apis/datastream_v1/classes.rb', line 2847

def port
  @port
end

#usernameString

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

Returns:

  • (String)


2852
2853
2854
# File 'lib/google/apis/datastream_v1/classes.rb', line 2852

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2859
2860
2861
2862
2863
2864
2865
# File 'lib/google/apis/datastream_v1/classes.rb', line 2859

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