Class: TencentCloud::Mps::V20190612::ImageResizeConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ImageResizeConfig
- Defined in:
- lib/v20190612/models.rb
Overview
图片缩放配置
Instance Attribute Summary collapse
-
#Height ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#LongSide ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Mode ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Percent ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ShortSide ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Width ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, mode = nil, percent = nil, width = nil, height = nil, longside = nil, shortside = nil) ⇒ ImageResizeConfig
constructor
A new instance of ImageResizeConfig.
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
#Height ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def Height @Height end |
#LongSide ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def LongSide @LongSide end |
#Mode ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def Mode @Mode end |
#Percent ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def Percent @Percent end |
#ShortSide ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def ShortSide @ShortSide end |
#Switch ⇒ Object
取值范围:[1,16384]。 注意:此字段在Mode非percent且未配置Width和Height时使用。 注意:此字段可能返回 null,表示取不到有效值。
18054 18055 18056 |
# File 'lib/v20190612/models.rb', line 18054 def Switch @Switch end |
#Width ⇒ Object
取值范围:[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 |