class TencentCloud::Emr::V20190103::AllNodeResourceSpec
资源描述
def deserialize(params)
def deserialize(params) unless params['MasterResourceSpec'].nil? @MasterResourceSpec = NodeResourceSpec.new @MasterResourceSpec.deserialize(params['MasterResourceSpec']) end unless params['CoreResourceSpec'].nil? @CoreResourceSpec = NodeResourceSpec.new @CoreResourceSpec.deserialize(params['CoreResourceSpec']) end unless params['TaskResourceSpec'].nil? @TaskResourceSpec = NodeResourceSpec.new @TaskResourceSpec.deserialize(params['TaskResourceSpec']) end unless params['CommonResourceSpec'].nil? @CommonResourceSpec = NodeResourceSpec.new @CommonResourceSpec.deserialize(params['CommonResourceSpec']) end @MasterCount = params['MasterCount'] @CoreCount = params['CoreCount'] @TaskCount = params['TaskCount'] @CommonCount = params['CommonCount'] end
def initialize(masterresourcespec=nil, coreresourcespec=nil, taskresourcespec=nil, commonresourcespec=nil, mastercount=nil, corecount=nil, taskcount=nil, commoncount=nil)
def initialize(masterresourcespec=nil, coreresourcespec=nil, taskresourcespec=nil, commonresourcespec=nil, mastercount=nil, corecount=nil, taskcount=nil, commoncount=nil) @MasterResourceSpec = masterresourcespec @CoreResourceSpec = coreresourcespec @TaskResourceSpec = taskresourcespec @CommonResourceSpec = commonresourcespec @MasterCount = mastercount @CoreCount = corecount @TaskCount = taskcount @CommonCount = commoncount end