getData(key) { if (!this.props.data) { return null; } if (is.defined(key)) { return this.props.data[key]; } return this.props.data; }
assignIf(target, ...sources) { return _assign.apply(this, [target, function(key) { return !is.defined(target[key]); }].concat(sources)); }
getInitialState() { if (!this.__status) { this.__status = {}; } this.__status[prop] = { prop: prop, formatName: formatName, type: type, getter: getter, setter: setter, getterFn: getterFn, setterFn: setterFn, value: value, bindProp: bindProp }; var state = {}, propVal; if (bindProp && is.defined((propVal = this.props[bindProp]))) { state[prop] = propVal; } else { state[prop] = value; } return state; }
if (!is.defined(expected)) { return List([ Change.unset(fieldPath)
if (!is.defined(expected)) { return List([Change.unset(fieldPath)]);
].join(''); if (is.defined(json.coolDown)) { json.autoscalingPolicy.coolDownPeriodSec = json.coolDown; delete json.coolDown; if (is.defined(json.cpu)) { json.autoscalingPolicy.cpuUtilization = { utilizationTarget: json.cpu / 100, delete json.cpu; if (is.defined(json.loadBalance)) { json.autoscalingPolicy.loadBalancingUtilization = { utilizationTarget: json.loadBalance / 100, delete json.loadBalance; if (is.defined(json.maxReplicas)) { json.autoscalingPolicy.maxNumReplicas = json.maxReplicas; delete json.maxReplicas; if (is.defined(json.minReplicas)) { json.autoscalingPolicy.minNumReplicas = json.minReplicas; delete json.minReplicas;