class TencentCloud::Cdwpg::V20201230::CreateInstanceByApiRequest
CreateInstanceByApi请求参数结构体
def deserialize(params)
def deserialize(params) @InstanceName = params['InstanceName'] @Zone = params['Zone'] @UserVPCId = params['UserVPCId'] @UserSubnetId = params['UserSubnetId'] unless params['ChargeProperties'].nil? @ChargeProperties = ChargeProperties.new @ChargeProperties.deserialize(params['ChargeProperties']) end @AdminPassword = params['AdminPassword'] unless params['Resources'].nil? @Resources = [] params['Resources'].each do |i| resourcespecnew_tmp = ResourceSpecNew.new resourcespecnew_tmp.deserialize(i) @Resources << resourcespecnew_tmp end end unless params['Tags'].nil? @Tags = Tag.new @Tags.deserialize(params['Tags']) end @ProductVersion = params['ProductVersion'] end
def initialize(instancename=nil, zone=nil, uservpcid=nil, usersubnetid=nil, chargeproperties=nil, adminpassword=nil, resources=nil, tags=nil, productversion=nil)
def initialize(instancename=nil, zone=nil, uservpcid=nil, usersubnetid=nil, chargeproperties=nil, adminpassword=nil, resources=nil, tags=nil, productversion=nil) @InstanceName = instancename @Zone = zone @UserVPCId = uservpcid @UserSubnetId = usersubnetid @ChargeProperties = chargeproperties @AdminPassword = adminpassword @Resources = resources @Tags = tags @ProductVersion = productversion end