Class: TencentCloud::Mps::V20190612::ImageResizeConfig

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

Overview

图片缩放配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, mode = nil, percent = nil, width = nil, height = nil, longside = nil, shortside = nil) ⇒ ImageResizeConfig

Returns a new instance of ImageResizeConfig.



18056
18057
18058
18059
18060
18061
18062
18063
18064
# File 'lib/v20190612/models.rb', line 18056

def initialize(switch=nil, mode=nil, percent=nil, width=nil, height=nil, longside=nil, shortside=nil)
  @Switch = switch
  @Mode = mode
  @Percent = percent
  @Width = width
  @Height = height
  @LongSide = longside
  @ShortSide = shortside
end

Instance Attribute Details

#HeightObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def Height
  @Height
end

#LongSideObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def LongSide
  @LongSide
end

#ModeObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def Mode
  @Mode
end

#PercentObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def Percent
  @Percent
end

#ShortSideObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def ShortSide
  @ShortSide
end

#SwitchObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def Switch
  @Switch
end

#WidthObject

取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。



18054
18055
18056
# File 'lib/v20190612/models.rb', line 18054

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



18066
18067
18068
18069
18070
18071
18072
18073
18074
# File 'lib/v20190612/models.rb', line 18066

def deserialize(params)
  @Switch = params['Switch']
  @Mode = params['Mode']
  @Percent = params['Percent']
  @Width = params['Width']
  @Height = params['Height']
  @LongSide = params['LongSide']
  @ShortSide = params['ShortSide']
end