code: func expandDVSNameArrayUplinkPortPolicy(d *schema.ResourceData) *types.DVSNameArrayUplinkPortPolicy {
  	obj := &types.DVSNameArrayUplinkPortPolicy{
  		UplinkPortName: structure.SliceInterfacesToStrings(d.Get("uplinks").([]interface{})),
  	}
  	if structure.AllFieldsEmpty(obj) {
  		return nil
  	}
  	return obj
  }
docs: // expandDVSNameArrayUplinkPortPolicy reads certain ResourceData keys and
  // returns a DVSNameArrayUplinkPortPolicy.