Class: TencentCloud::Ckafka::V20190819::MongoDBParam
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::MongoDBParam
- Defined in:
- lib/v20190819/models.rb
Overview
MongoDB类型入参
Instance Attribute Summary collapse
- #Collection ⇒ Object
- #CopyExisting ⇒ Object
- #Database ⇒ Object
- #Ip ⇒ Object
- #ListeningEvent ⇒ Object
- #Password ⇒ Object
- #Pipeline ⇒ Object
- #Port ⇒ Object
- #ReadPreference ⇒ Object
- #Resource ⇒ Object
- #SelfBuilt ⇒ Object
- #UserName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(database = nil, collection = nil, copyexisting = nil, resource = nil, ip = nil, port = nil, username = nil, password = nil, listeningevent = nil, readpreference = nil, pipeline = nil, selfbuilt = nil) ⇒ MongoDBParam
constructor
A new instance of MongoDBParam.
Constructor Details
#initialize(database = nil, collection = nil, copyexisting = nil, resource = nil, ip = nil, port = nil, username = nil, password = nil, listeningevent = nil, readpreference = nil, pipeline = nil, selfbuilt = nil) ⇒ MongoDBParam
Returns a new instance of MongoDBParam.
9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 |
# File 'lib/v20190819/models.rb', line 9847 def initialize(database=nil, collection=nil, copyexisting=nil, resource=nil, ip=nil, port=nil, username=nil, password=nil, listeningevent=nil, readpreference=nil, pipeline=nil, selfbuilt=nil) @Database = database @Collection = collection @CopyExisting = copyexisting @Resource = resource @Ip = ip @Port = port @UserName = username @Password = password @ListeningEvent = listeningevent @ReadPreference = readpreference @Pipeline = pipeline @SelfBuilt = selfbuilt end |
Instance Attribute Details
#Collection ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Collection @Collection end |
#CopyExisting ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def CopyExisting @CopyExisting end |
#Database ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Database @Database end |
#Ip ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Ip @Ip end |
#ListeningEvent ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def ListeningEvent @ListeningEvent end |
#Password ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Password @Password end |
#Pipeline ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Pipeline @Pipeline end |
#Port ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Port @Port end |
#ReadPreference ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def ReadPreference @ReadPreference end |
#Resource ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def Resource @Resource end |
#SelfBuilt ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def SelfBuilt @SelfBuilt end |
#UserName ⇒ Object
9845 9846 9847 |
# File 'lib/v20190819/models.rb', line 9845 def UserName @UserName end |
Instance Method Details
#deserialize(params) ⇒ Object
9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 |
# File 'lib/v20190819/models.rb', line 9862 def deserialize(params) @Database = params['Database'] @Collection = params['Collection'] @CopyExisting = params['CopyExisting'] @Resource = params['Resource'] @Ip = params['Ip'] @Port = params['Port'] @UserName = params['UserName'] @Password = params['Password'] @ListeningEvent = params['ListeningEvent'] @ReadPreference = params['ReadPreference'] @Pipeline = params['Pipeline'] @SelfBuilt = params['SelfBuilt'] end |