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