Class: TencentCloud::Dts::V20211206::PipelineInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20211206/models.rb

Overview

mongo输出聚合设置。输出默认 Change Event

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aggop = nil, aggcmd = nil) ⇒ PipelineInfo

Returns a new instance of PipelineInfo.



6007
6008
6009
6010
# File 'lib/v20211206/models.rb', line 6007

def initialize(aggop=nil, aggcmd=nil)
  @AggOp = aggop
  @AggCmd = aggcmd
end

Instance Attribute Details

#AggCmdObject

Parameters:

  • AggOp:

    聚合运算符:$addFields、$match、$project、$replaceRoot、$redact、$replaceWith、$set、$unset。其中 $replaceWith、$set、$unset 只有当订阅实例是4.2及以上版本可选。

  • AggCmd:

    聚合表达式。必须是json格式



6005
6006
6007
# File 'lib/v20211206/models.rb', line 6005

def AggCmd
  @AggCmd
end

#AggOpObject

Parameters:

  • AggOp:

    聚合运算符:$addFields、$match、$project、$replaceRoot、$redact、$replaceWith、$set、$unset。其中 $replaceWith、$set、$unset 只有当订阅实例是4.2及以上版本可选。

  • AggCmd:

    聚合表达式。必须是json格式



6005
6006
6007
# File 'lib/v20211206/models.rb', line 6005

def AggOp
  @AggOp
end

Instance Method Details

#deserialize(params) ⇒ Object



6012
6013
6014
6015
# File 'lib/v20211206/models.rb', line 6012

def deserialize(params)
  @AggOp = params['AggOp']
  @AggCmd = params['AggCmd']
end