code: func (d *ResourceData) Partial(on bool) {
  	d.partial = on
  	if on {
  		if d.partialMap == nil {
  			d.partialMap = make(map[string]struct{})
  		}
  	} else {
  		d.partialMap = nil
  	}
  }
docs: // Partial turns partial state mode on/off.
  //
  // When partial state mode is enabled, then only key prefixes specified
  // by SetPartial will be in the final state. This allows providers to return
  // partial states for partially applied resources (when errors occur).