Class: TencentCloud::Trp::V20210515::CreateProductRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CreateProductRequest
- Defined in:
- lib/v20210515/models.rb
Overview
CreateProduct请求参数结构体
Instance Attribute Summary collapse
- #CorpId ⇒ Object
- #Ext ⇒ Object
- #Logo ⇒ Object
- #MerchantId ⇒ Object
- #MerchantName ⇒ Object
- #Name ⇒ Object
- #Remark ⇒ Object
- #Specification ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, merchantid = nil, remark = nil, merchantname = nil, specification = nil, logo = nil, corpid = nil, ext = nil) ⇒ CreateProductRequest
constructor
A new instance of CreateProductRequest.
Constructor Details
#initialize(name = nil, merchantid = nil, remark = nil, merchantname = nil, specification = nil, logo = nil, corpid = nil, ext = nil) ⇒ CreateProductRequest
Returns a new instance of CreateProductRequest.
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/v20210515/models.rb', line 1036 def initialize(name=nil, merchantid=nil, remark=nil, merchantname=nil, specification=nil, logo=nil, corpid=nil, ext=nil) @Name = name @MerchantId = merchantid @Remark = remark @MerchantName = merchantname @Specification = specification @Logo = logo @CorpId = corpid @Ext = ext end |
Instance Attribute Details
#CorpId ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def CorpId @CorpId end |
#Ext ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def Ext @Ext end |
#Logo ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def Logo @Logo end |
#MerchantId ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def MerchantId @MerchantId end |
#MerchantName ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def MerchantName @MerchantName end |
#Name ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def Name @Name end |
#Remark ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def Remark @Remark end |
#Specification ⇒ Object
1034 1035 1036 |
# File 'lib/v20210515/models.rb', line 1034 def Specification @Specification end |
Instance Method Details
#deserialize(params) ⇒ Object
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'lib/v20210515/models.rb', line 1047 def deserialize(params) @Name = params['Name'] @MerchantId = params['MerchantId'] @Remark = params['Remark'] @MerchantName = params['MerchantName'] @Specification = params['Specification'] @Logo = params['Logo'] @CorpId = params['CorpId'] unless params['Ext'].nil? @Ext = Ext.new @Ext.deserialize(params['Ext']) end end |