Class: TencentCloud::Ivld::V20210903::SortBy

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

Overview

排序条件

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(by = nil, descend = nil) ⇒ SortBy

Returns a new instance of SortBy.



2542
2543
2544
2545
# File 'lib/v20210903/models.rb', line 2542

def initialize(by=nil, descend=nil)
  @By = by
  @Descend = descend
end

Instance Attribute Details

#ByObject

Parameters:

  • By:

    排序字段,默认为CreateTime

  • Descend:

    true表示降序,false表示升序



2540
2541
2542
# File 'lib/v20210903/models.rb', line 2540

def By
  @By
end

#DescendObject

Parameters:

  • By:

    排序字段,默认为CreateTime

  • Descend:

    true表示降序,false表示升序



2540
2541
2542
# File 'lib/v20210903/models.rb', line 2540

def Descend
  @Descend
end

Instance Method Details

#deserialize(params) ⇒ Object



2547
2548
2549
2550
# File 'lib/v20210903/models.rb', line 2547

def deserialize(params)
  @By = params['By']
  @Descend = params['Descend']
end