Class: TencentCloud::Mrs::V20200910::BlockInfo

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

Overview

块信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil, positive = nil, src = nil, value = nil, type = nil, name = nil, size = nil) ⇒ BlockInfo



1061
1062
1063
1064
1065
1066
1067
1068
1069
# File 'lib/v20200910/models.rb', line 1061

def initialize(index=nil, positive=nil, src=nil, value=nil, type=nil, name=nil, size=nil)
  @Index = index
  @Positive = positive
  @Src = src
  @Value = value
  @Type = type
  @Name = name
  @Size = size
end

Instance Attribute Details

#IndexObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Index
  @Index
end

#NameObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Name
  @Name
end

#PositiveObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Positive
  @Positive
end

#SizeObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Size
  @Size
end

#SrcObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Src
  @Src
end

#TypeObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Type
  @Type
end

#ValueObject



1059
1060
1061
# File 'lib/v20200910/models.rb', line 1059

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/v20200910/models.rb', line 1071

def deserialize(params)
  @Index = params['Index']
  @Positive = params['Positive']
  @Src = params['Src']
  @Value = params['Value']
  @Type = params['Type']
  @Name = params['Name']
  unless params['Size'].nil?
    @Size = []
    params['Size'].each do |i|
      size_tmp = Size.new
      size_tmp.deserialize(i)
      @Size << size_tmp
    end
  end
end