Class: TencentCloud::Emr::V20190103::DiffDetail

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

Overview

动态生成的变更详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, count = nil, rows = nil, header = nil) ⇒ DiffDetail

Returns a new instance of DiffDetail.



6055
6056
6057
6058
6059
6060
# File 'lib/v20190103/models.rb', line 6055

def initialize(name=nil, count=nil, rows=nil, header=nil)
  @Name = name
  @Count = count
  @Rows = rows
  @Header = header
end

Instance Attribute Details

#CountObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Name:

    tab页的头

  • Count:

    变化项的个数

  • Rows:

    要渲染的明细数据

  • Header:

    要渲染的头部信息



6053
6054
6055
# File 'lib/v20190103/models.rb', line 6053

def Count
  @Count
end

#HeaderObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Name:

    tab页的头

  • Count:

    变化项的个数

  • Rows:

    要渲染的明细数据

  • Header:

    要渲染的头部信息



6053
6054
6055
# File 'lib/v20190103/models.rb', line 6053

def Header
  @Header
end

#NameObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Name:

    tab页的头

  • Count:

    变化项的个数

  • Rows:

    要渲染的明细数据

  • Header:

    要渲染的头部信息



6053
6054
6055
# File 'lib/v20190103/models.rb', line 6053

def Name
  @Name
end

#RowsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Name:

    tab页的头

  • Count:

    变化项的个数

  • Rows:

    要渲染的明细数据

  • Header:

    要渲染的头部信息



6053
6054
6055
# File 'lib/v20190103/models.rb', line 6053

def Rows
  @Rows
end

Instance Method Details

#deserialize(params) ⇒ Object



6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
# File 'lib/v20190103/models.rb', line 6062

def deserialize(params)
  @Name = params['Name']
  @Count = params['Count']
  unless params['Rows'].nil?
    @Rows = []
    params['Rows'].each do |i|
      diffdetailitem_tmp = DiffDetailItem.new
      diffdetailitem_tmp.deserialize(i)
      @Rows << diffdetailitem_tmp
    end
  end
  unless params['Header'].nil?
    @Header = []
    params['Header'].each do |i|
      diffheader_tmp = DiffHeader.new
      diffheader_tmp.deserialize(i)
      @Header << diffheader_tmp
    end
  end
end