class TencentCloud::Cynosdb::V20190107::SecurityGroup
安全组详情
def deserialize(params)
def deserialize(params) @ProjectId = params['ProjectId'] @CreateTime = params['CreateTime'] unless params['Inbound'].nil? @Inbound = [] params['Inbound'].each do |i| policyrule_tmp = PolicyRule.new policyrule_tmp.deserialize(i) @Inbound << policyrule_tmp end end unless params['Outbound'].nil? @Outbound = [] params['Outbound'].each do |i| policyrule_tmp = PolicyRule.new policyrule_tmp.deserialize(i) @Outbound << policyrule_tmp end end @SecurityGroupId = params['SecurityGroupId'] @SecurityGroupName = params['SecurityGroupName'] @SecurityGroupRemark = params['SecurityGroupRemark'] end
def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil)
def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil) @ProjectId = projectid @CreateTime = createtime @Inbound = inbound @Outbound = outbound @SecurityGroupId = securitygroupid @SecurityGroupName = securitygroupname @SecurityGroupRemark = securitygroupremark end