class TencentCloud::Sqlserver::V20180328::SecurityGroup
安全组
def deserialize(params)
def deserialize(params) @ProjectId = params['ProjectId'] @CreateTime = params['CreateTime'] unless params['InboundSet'].nil? @InboundSet = [] params['InboundSet'].each do |i| securitygrouppolicy_tmp = SecurityGroupPolicy.new securitygrouppolicy_tmp.deserialize(i) @InboundSet << securitygrouppolicy_tmp end end unless params['OutboundSet'].nil? @OutboundSet = [] params['OutboundSet'].each do |i| securitygrouppolicy_tmp = SecurityGroupPolicy.new securitygrouppolicy_tmp.deserialize(i) @OutboundSet << securitygrouppolicy_tmp end end @SecurityGroupId = params['SecurityGroupId'] @SecurityGroupName = params['SecurityGroupName'] @SecurityGroupRemark = params['SecurityGroupRemark'] end
def initialize(projectid=nil, createtime=nil, inboundset=nil, outboundset=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil)
def initialize(projectid=nil, createtime=nil, inboundset=nil, outboundset=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil) @ProjectId = projectid @CreateTime = createtime @InboundSet = inboundset @OutboundSet = outboundset @SecurityGroupId = securitygroupid @SecurityGroupName = securitygroupname @SecurityGroupRemark = securitygroupremark end